/* TEZEL page openings: align all headings to the shared top inset.
   Center the artwork independently, using its visible footprint. */
body {
  --tezel-opening-top: 8px;
}

body main > section#home.tz-showroom {
  padding-top: var(--tezel-opening-top) !important;
}

body[data-tezel-hero="catalogue"] main > #urun-videosu {
  height: auto;
  min-height: clamp(530px, 54vw, 690px);
  padding-top: var(--tezel-opening-top);
  padding-bottom: var(--tezel-opening-top);
}

#urun-videosu .tz-video-intro-inner {
  align-self: stretch;
}

#urun-videosu .tz-video-intro-copy {
  align-self: start;
}

@media (min-width: 1200px) {
  body[data-tezel-hero="catalogue"] main > #urun-videosu {
    min-height: 567px;
  }

  #home.tz-showroom > .tz-showroom-model {
    margin-top: 10px !important;
  }
}

@media (min-width: 681px) and (max-width: 1199px) {
  body {
    --tezel-opening-top: 20px;
  }

  body main > section#home.tz-showroom {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    grid-template-rows: repeat(3, auto);
    align-content: start;
    gap: 18px 0;
    height: auto !important;
    min-height: clamp(520px, 63vw, 660px) !important;
    padding: var(--tezel-opening-top) 5% 34px !important;
  }

  #home.tz-showroom .tz-showroom-eyebrow[aria-hidden="true"] {
    display: none;
  }

  #home.tz-showroom .tz-showroom-copy,
  #home.tz-showroom > .tz-showroom-model,
  #home.tz-showroom .tz-showroom-controls {
    grid-column: 1;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  #home.tz-showroom .tz-showroom-copy { grid-row: 1; }
  #home.tz-showroom > .tz-showroom-model { grid-row: 2; margin-top: 10px !important; }

  #home.tz-showroom .tz-showroom-controls {
    grid-row: 3;
    justify-self: start;
    width: max-content !important;
  }

  #home.tz-showroom .tz-showroom-dots {
    top: auto !important;
    bottom: -19px !important;
  }

  #home.tz-showroom .tz-showroom-stage picture {
    container-type: size;
  }

  /* Center the common visible outline inside the unchanged image canvas. */
  #home.tz-showroom .tz-showroom-stage img {
    transform: translateY(calc(min(100cqw, 100cqh * 1672 / 941) * -16.5 / 1672));
  }

  body[data-tezel-hero="catalogue"] main > #urun-videosu {
    --opening-gutter: 5%;
    min-height: clamp(520px, 63vw, 660px);
  }

  #urun-videosu .tz-video-intro-inner {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  body {
    --tezel-opening-top: 14px;
  }

  body[data-tezel-hero="catalogue"] main > #urun-videosu {
    min-height: 0;
    padding-bottom: 36px;
  }

  #home.tz-showroom > .tz-showroom-model {
    margin-top: 34px !important;
  }
}
