.opening-hero {
  background: #080a08;
}

.opening-film {
  height: clamp(520px, calc(100svh - 86px), 820px);
  min-height: 520px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #080a08;
}

.opening-film video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #080a08;
}

.opening-film-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .18) 62%, rgba(0, 0, 0, .06) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .52) 0%, transparent 44%);
}

.opening-hero-copy {
  position: absolute;
  z-index: 2;
  inset: auto 0 64px;
  color: #fff;
  pointer-events: none;
}

.opening-hero-copy .eyebrow {
  margin-bottom: 15px;
  color: #fff;
}

.opening-hero-copy h1 {
  max-width: 900px;
  margin: 0;
  color: var(--gold);
  font: 400 clamp(58px, 8vw, 112px)/.92 var(--serif);
  letter-spacing: -.025em;
  -webkit-text-stroke: .35px #000;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .38);
}

.opening-hero-copy p:last-child {
  max-width: 500px;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.opening-film-meta {
  position: absolute;
  z-index: 2;
  right: 36px;
  bottom: 26px;
  display: flex;
  gap: 14px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 10px;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
  pointer-events: none;
}

.opening-film-meta span + span {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .45);
}

.opening-gallery-section {
  --gallery-gap: 6px;
  padding: 78px 0 56px;
}

.opening-gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  align-items: end;
  gap: 48px;
  padding-bottom: 42px;
}

.opening-gallery-head .eyebrow {
  color: var(--dark-gold);
}

.opening-gallery-head h2 {
  margin: 0;
  color: var(--gold);
  font: 400 clamp(42px, 5vw, 70px)/1 var(--serif);
  letter-spacing: -.02em;
  -webkit-text-stroke: .25px #000;
}

.opening-gallery-head > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.opening-featured,
.opening-gallery,
.opening-centre {
  width: min(1580px, calc(100% - 48px));
  margin-inline: auto;
}

.opening-centre {
  display: flex;
  gap: var(--gallery-gap);
  margin-bottom: var(--gallery-gap);
}

.opening-centre > .opening-photo {
  height: 100%;
}

.opening-centre-column {
  display: flex;
  flex-direction: column;
  gap: var(--gallery-gap);
}

.opening-centre-column .opening-photo {
  width: 100%;
  height: auto;
}

.opening-row {
  display: flex;
  gap: var(--gallery-gap);
  width: 100%;
  margin-bottom: var(--gallery-gap);
}

.opening-photo {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: var(--mint-deep);
  cursor: zoom-in;
}

.opening-row .opening-photo {
  min-width: 0;
  height: 100%;
}

.opening-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0);
  background: rgba(10, 16, 11, 0);
  pointer-events: none;
  transition: background .3s ease, border-color .3s ease;
}

.opening-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .45s ease;
}

.opening-photo:hover img {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.02);
}

.opening-photo:hover::after {
  border-color: rgba(255, 255, 255, .36);
  background: rgba(10, 16, 11, .06);
}

.opening-photo:focus-visible,
.opening-viewer-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.opening-empty {
  margin: 32px 16px 78px;
  text-align: center;
  font-size: 14px;
}

.opening-viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: rgba(5, 6, 5, .98);
  color: #fff;
}

.opening-viewer::backdrop {
  background: rgba(5, 6, 5, .98);
}

.opening-viewer:not([open]) {
  display: none;
}

.opening-viewer[open] {
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
}

.opening-viewer-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 44px 88px 54px;
  display: grid;
  place-items: center;
  grid-area: 1 / 1;
  touch-action: pan-y;
  user-select: none;
}

.opening-viewer-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -15px 0 0 -15px;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: var(--gold);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  animation: opening-image-loading .8s linear infinite;
}

.opening-viewer-stage.is-loading::after {
  opacity: 1;
}

.opening-viewer-stage.is-error::after {
  opacity: 1;
  animation: none;
  border-color: rgba(255, 255, 255, .45);
}

@keyframes opening-image-loading {
  to { transform: rotate(360deg); }
}

.opening-viewer-stage img {
  grid-area: 1 / 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .4);
  opacity: 1;
  transition: opacity .24s ease;
}

.opening-viewer-stage img.is-entering {
  opacity: 0;
}

.opening-viewer-button {
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: rgba(7, 9, 7, .52);
  color: #fff;
  cursor: pointer;
  font: 300 32px/1 var(--sans);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.opening-viewer-button:hover {
  border-color: var(--gold);
  background: rgba(184, 138, 46, .2);
}

.opening-close {
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  font-size: 29px;
}

.opening-previous,
.opening-next {
  top: 50%;
  transform: translateY(-50%);
}

.opening-previous:hover,
.opening-next:hover {
  transform: translateY(-50%) scale(1.04);
}

.opening-previous {
  left: max(18px, env(safe-area-inset-left));
}

.opening-next {
  right: max(18px, env(safe-area-inset-right));
}

.opening-viewer-count {
  z-index: 2;
  position: absolute;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.4;
  transform: translateX(-50%);
}

@media (max-width: 1100px) {
  .opening-film {
    height: clamp(500px, 70vw, 720px);
  }
}

@media (max-width: 820px) {
  .opening-gallery-section {
    padding-top: 62px;
  }

  .opening-gallery-head {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 34px;
  }

  .opening-gallery-head > p {
    max-width: 560px;
  }
}

@media (max-width: 650px) {
  .opening-film {
    height: min(68svh, 560px);
    min-height: 390px;
  }

  .opening-film-shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .08)),
      linear-gradient(0deg, rgba(0, 0, 0, .72), transparent 62%);
  }

  .opening-hero-copy {
    bottom: 92px;
  }

  .opening-hero-copy h1 {
    max-width: 90%;
    font-size: clamp(48px, 16vw, 76px);
  }

  .opening-hero-copy p:last-child {
    max-width: 84%;
    margin-top: 16px;
    font-size: 14px;
  }

  .opening-film-meta {
    display: none;
  }

  .opening-gallery-section {
    --gallery-gap: 4px;
    padding-top: 48px;
  }

  .opening-gallery-head {
    padding-bottom: 28px;
  }

  .opening-gallery-head h2 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .opening-featured,
  .opening-gallery,
  .opening-centre {
    width: calc(100% - 24px);
  }

  .opening-viewer-stage {
    padding: 66px 10px 80px;
  }

  .opening-viewer-button {
    width: 44px;
    height: 44px;
    background: rgba(7, 9, 7, .7);
  }

  .opening-previous,
  .opening-next {
    top: auto;
    bottom: max(18px, env(safe-area-inset-bottom));
    transform: none;
  }

  .opening-previous:hover,
  .opening-next:hover {
    transform: scale(1.04);
  }

  .opening-viewer-count {
    bottom: max(33px, calc(env(safe-area-inset-bottom) + 15px));
  }
}

@media (max-width: 520px) {
  .opening-centre {
    display: block;
    margin-bottom: 0;
  }

  .opening-centre-column {
    display: contents;
  }

  .opening-centre .opening-photo {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: var(--gallery-gap);
  }
}

@media (max-width: 360px) {
  .opening-hero-copy p:last-child {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-photo img,
  .opening-photo::after,
  .opening-viewer-button {
    transition: none;
  }

  .opening-viewer-stage img,
  .opening-viewer-stage::after {
    transition: none;
  }

  .opening-viewer-stage::after {
    animation: none;
  }
}
