/* KGC Denizcilik v22: keep every project identity centered in its dark panel. */

@media (min-width: 761px) {
  /*
   * A fixed-height grid can otherwise expand its implicit row to the copy's
   * min-content height. The hero then clips the correctly rendered copy below
   * its own 380px boundary. A zero-minimum track keeps both grid cells locked
   * to the visible card height.
   */
  .project-detail-page .project-detail-hero.kgc-project-hero-v9 {
    grid-template-rows: minmax(0, 1fr) !important;
  }

  .project-detail-page
    .project-detail-hero.kgc-project-hero-v9
    .project-detail-hero-content {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .project-detail-page .kgc-project-hero-v9 .kgc-project-copy-center {
    position: relative !important;
    inset: auto !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    z-index: 4;
  }

  .project-detail-page .kgc-project-hero-v9 .kgc-project-copy-center > * {
    opacity: 1 !important;
    visibility: visible !important;
  }
}
