/* Align the home content while keeping its opening photograph full-width. */
main:has(> .reference-hero) {
  --mck-content-gutter: max(6%, calc((100% - 1400px) / 2));
}

main:has(> .reference-hero) > :is(
  .reference-hero, .home-intro-statement, .mck-premium-section-head,
  .visual-services, .values-strip, .reference-feature, .section,
  .rental-home, .artist-home, .cta
) {
  padding-inline: var(--mck-content-gutter);
}

main > .reference-hero .hero-bottom {
  inset-inline: var(--mck-content-gutter);
}

main > .reference-hero ~ .visual-services {
  gap: clamp(10px, 1.1vw, 18px);
}

.page-intro.mck-photo-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3.4vw, 54px);
  max-width: none;
  padding: clamp(28px, 4vh, 64px) max(6%, calc((100% - 1400px) / 2));
}

.mck-opening-copy,
.mck-opening-media {
  min-width: 0;
}

.mck-photo-opening .mck-opening-copy h1 {
  font-size: clamp(32px, 7.7vw, 52px);
  line-height: 1.1;
  margin-bottom: 0.34em;
  overflow-wrap: anywhere;
}

.mck-opening-copy > p:not(.eyebrow) {
  max-width: 52ch;
}

.mck-opening-copy > :last-child {
  margin-bottom: 0;
}

.mck-photo-opening .mck-opening-media {
  margin: 0;
}

.mck-photo-opening .mck-opening-media > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 62svh;
  margin: 0 auto;
  object-fit: contain;
  filter: var(--photo-grade, none);
}

.mck-opening-media figcaption {
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 8px;
}

.section.mck-opening-support {
  grid-template-columns: minmax(0, 1fr);
  padding-top: clamp(32px, 5vw, 70px);
}

.mck-opening-support > div {
  max-width: 76ch;
}

@media (min-width: 900px) {
  .page-intro.mck-photo-opening {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  }

  .mck-photo-opening .mck-opening-copy h1 {
    font-size: clamp(35px, 3.8vw, 62px);
  }

  .mck-photo-opening .mck-opening-media > img {
    max-height: min(560px, max(210px, calc(100svh - var(--mck-header-height, 105px) - 115px)));
  }
}

@media (min-width: 900px) and (max-height: 740px) {
  .page-intro.mck-photo-opening {
    padding-block: 24px;
  }

  .mck-photo-opening .mck-opening-copy h1 {
    font-size: clamp(34px, 3.5vw, 53px);
  }

  .mck-opening-copy .eyebrow {
    margin-bottom: 12px;
  }
}

/* Keep the Wix preview badge clear of the site's fixed mobile controls. */
@media (max-width: 850px) {
  #wixheadless-banner-container {
    inset-inline-start: 12px !important;
    inset-inline-end: auto !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  }

  body.has-mobile-cta #wixheadless-banner-container {
    bottom: calc(var(--mck-mobile-contact-height, 80px) + 12px) !important;
  }
}

:root main .reference-hero h1 {
  text-transform: uppercase;
}
