.premium-gallery-page {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 18rem, rgba(255,250,240,.045), transparent 25rem),
    linear-gradient(90deg, rgba(4,9,11,.66), rgba(4,9,11,.34) 36%, rgba(4,9,11,.38) 64%, rgba(4,9,11,.74)),
    linear-gradient(180deg, rgba(4,9,11,.3) 0%, rgba(4,9,11,.46) 38rem, rgba(4,9,11,.62) 58rem, rgba(4,9,11,.84) 100%),
    url("../images/selected/home-hero-tablescape.jpg") center 46% / cover fixed no-repeat,
    #05090b;
  color: var(--ivory);
}

.premium-gallery-page > section {
  position: relative;
  z-index: 1;
}

.premium-gallery-body .premium-gallery-cta {
  display: none;
}

.premium-gallery-body > .site-header.reference-header:not(.sticky-reference-header) {
  background:
    linear-gradient(180deg, rgba(1,5,7,.96) 0%, rgba(1,5,7,.72) 54%, rgba(1,5,7,0) 100%) !important;
  border-bottom-color: transparent !important;
}

.premium-gallery-body .site-header.reference-header.sticky-reference-header.scrolled {
  background: rgba(1,5,7,.94) !important;
  border-bottom-color: rgba(164,73,88,.28) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.25) !important;
  backdrop-filter: blur(18px);
}

.gallery-reference-hero {
  min-height: clamp(860px, 90dvh, 1040px) !important;
  background: transparent;
}

.gallery-reference-hero::before {
  display: none;
}

.gallery-reference-hero::after {
  display: none;
  filter: saturate(.88) contrast(1.04) brightness(.86);
}

.gallery-reference-hero .gallery-static-hero-media {
  display: none;
  filter: none;
}

.gallery-reference-hero .gallery-static-hero-media::after {
  display: none;
}

.gallery-reference-hero .hero-slide {
  object-position: center 47%;
  filter: saturate(.88) contrast(1.04) brightness(.86);
}

.gallery-reference-hero .approved-hero__inner {
  min-height: clamp(860px, 90dvh, 1040px) !important;
  display: grid !important;
  place-items: center !important;
  padding-top: clamp(8.5rem, 10vw, 11.5rem) !important;
  padding-bottom: clamp(7.5rem, 9vw, 10.5rem) !important;
}

.gallery-reference-hero .approved-hero__copy {
  position: relative;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1500px, calc(100% - clamp(2rem, 8vw, 9rem)));
  max-width: min(1500px, 82vw) !important;
  margin: 0 auto;
  text-align: center;
  transform: translateY(clamp(2.4rem, 4.5vh, 4.4rem));
}

.gallery-reference-hero .approved-hero__copy::before {
  content: "";
  position: absolute;
  inset: -5rem -8vw -4.5rem;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(2, 5, 6, .34), rgba(2, 5, 6, .16) 42%, transparent 72%);
  filter: blur(12px);
}

.gallery-reference-hero .eyebrow {
  order: 1;
  color: #b66a70;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(.88rem, .74vw, 1.06rem);
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.gallery-reference-hero .hero-ornament {
  order: 3;
  margin: clamp(1.75rem, 2.35vw, 2.6rem) auto 0;
}

.gallery-reference-hero h1 {
  order: 2;
  max-width: 1450px !important;
  margin-left: auto;
  margin-right: auto;
  color: #fff8ee;
  font-size: clamp(5.4rem, 7.05vw, 9.7rem) !important;
  line-height: 1.02 !important;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 5px 18px rgba(0, 0, 0, .32);
}

.gallery-reference-hero .gallery-hero-accent {
  display: block;
  color: #a44958;
}

.gallery-reference-hero .lead {
  order: 4;
  max-width: 650px;
  margin: clamp(2rem, 2.75vw, 3.15rem) auto 0;
  color: rgba(255, 250, 240, .9);
  font-size: clamp(.96rem, .86vw, 1.1rem);
  line-height: 1.62;
}

.gallery-reference-hero .hero-actions {
  order: 5;
  display: none;
}

@media (max-width: 700px) {
  .premium-gallery-page,
  .gallery-reference-hero {
    background-attachment: scroll;
  }

  .gallery-reference-hero {
    min-height: clamp(640px, 78svh, 760px) !important;
  }

  .gallery-reference-hero .approved-hero__inner {
    min-height: clamp(640px, 78svh, 760px) !important;
    place-items: center !important;
    padding-top: 6.4rem !important;
    padding-bottom: 3.6rem !important;
  }

  .gallery-reference-hero .approved-hero__copy {
    width: min(100% - 1.5rem, 38rem);
    max-width: calc(100% - 1.5rem) !important;
    transform: translateY(-.5rem);
  }

  .gallery-reference-hero h1 {
    max-width: 100% !important;
    font-size: clamp(4.35rem, 16vw, 5.15rem) !important;
    line-height: .98 !important;
  }

  .gallery-reference-hero .lead {
    max-width: 22rem;
    margin-top: 1.15rem;
    font-size: 1rem;
  }

  .gallery-reference-hero .hero-actions {
    margin-top: 1.6rem;
  }

  .gallery-reference-hero .button {
    width: min(100%, 21rem);
    min-width: 0;
  }
}

.premium-gallery-hero {
  position: relative;
  min-height: 66svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.premium-gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 8, .96), rgba(5, 7, 8, .52) 46%, rgba(5, 7, 8, .76)),
    linear-gradient(0deg, var(--ink), rgba(5, 7, 8, 0) 56%, rgba(5, 7, 8, .48));
}

.premium-gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .18;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

.premium-gallery-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.74) contrast(1.08) brightness(.78) hue-rotate(-4deg);
}

.premium-gallery-hero__copy {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - clamp(2rem, 8vw, 8rem)));
  margin: 0 auto;
  padding: clamp(8rem, 15svh, 12rem) 0 clamp(3.6rem, 7vw, 6rem);
}

.premium-gallery-hero h1 {
  max-width: 820px;
  font-size: clamp(5rem, 11vw, 12rem);
  line-height: .78;
}

.premium-gallery-hero p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 1.15rem;
  color: rgba(248, 250, 245, .72);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.premium-gallery-feature {
  margin-top: clamp(.5rem, 1.2vw, 1.6rem);
  padding: clamp(5rem, 6.4vw, 8.4rem) clamp(1.25rem, 4vw, 4.8rem) clamp(7rem, 9vw, 10rem);
  background: transparent;
}

.premium-gallery-heading {
  width: min(1760px, 100%);
  margin: 0 auto clamp(2rem, 3.6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}

.premium-gallery-heading h2 {
  max-width: 1040px;
  font-size: clamp(3.4rem, 6.35vw, 8.8rem);
  line-height: .84;
  letter-spacing: 0;
  text-wrap: balance;
}

.premium-gallery-heading > p {
  margin: 0 0 .35rem;
  color: rgba(248, 250, 245, .62);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.premium-gallery-tabs {
  position: relative;
  top: auto;
  z-index: 35;
  width: min(1760px, 100%);
  min-height: 58px;
  margin: 0 auto clamp(2.4rem, 3.4vw, 4rem);
  padding: .72rem clamp(.75rem, 1.8vw, 1.65rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.65rem, 1.15vw, 1.25rem);
  border-top: 1px solid rgba(255, 250, 240, .14);
  border-bottom: 1px solid rgba(255, 250, 240, .14);
  background:
    linear-gradient(90deg, rgba(255,250,240,.045), rgba(255,250,240,.018) 44%, rgba(164,73,88,.06));
  backdrop-filter: blur(14px) saturate(1.04);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-padding-inline: 1rem;
}

.premium-gallery-tabs::-webkit-scrollbar {
  display: none;
}

.premium-gallery-tabs button {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  min-height: 36px;
  padding: .55rem .55rem .72rem;
  background: transparent;
  color: rgba(255, 250, 240, .84);
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: .42rem;
  font-size: clamp(.72rem, .62vw, .86rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .26s var(--ease), transform .26s var(--ease);
}

.premium-gallery-tabs button em {
  display: none;
  color: rgba(255, 250, 240, .36);
  font-style: normal;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.premium-gallery-tabs button::after {
  content: "";
  position: absolute;
  left: .55rem;
  right: .55rem;
  bottom: .42rem;
  height: 1px;
  background: #a44958;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}

.premium-gallery-tabs button:hover,
.premium-gallery-tabs button.is-active {
  color: #fffaf0;
  transform: translateY(-1px);
}

.premium-gallery-tabs button:hover em,
.premium-gallery-tabs button.is-active em {
  color: #b66a70;
}

.premium-gallery-tabs button:hover::after,
.premium-gallery-tabs button.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.premium-gallery-grid {
  width: min(1760px, 100%);
  margin: 0 auto;
  display: block;
  contain: layout paint;
}

.premium-gallery-showcase {
  position: relative;
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.8rem);
}

.premium-gallery-stage {
  position: relative;
  min-height: clamp(560px, 68vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 250, 240, .14);
  border-radius: 8px;
  background: #050808;
  cursor: zoom-in;
  box-shadow: 0 38px 120px rgba(0, 0, 0, .44);
  contain: layout paint style;
}

.premium-gallery-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 8, 8, .86) 0%, rgba(5, 8, 8, .58) 39%, rgba(5, 8, 8, .1) 66%, rgba(5, 8, 8, .34) 100%),
    linear-gradient(180deg, rgba(5, 8, 8, .18), rgba(5, 8, 8, .72));
}

.premium-gallery-stage__backdrop {
  position: absolute;
  inset: -12%;
  z-index: 0;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(28px) saturate(.82) contrast(1.04) brightness(.54);
  transform: scale(1.03);
}

.premium-gallery-stage__media {
  position: relative;
  z-index: 2;
  grid-column: 2;
  align-self: stretch;
  min-height: 100%;
  padding: clamp(1.2rem, 2vw, 2.4rem);
  display: grid;
  place-items: center;
}

.premium-gallery-stage__media img {
  width: 100%;
  height: min(100%, 680px);
  max-height: calc(100vh - 190px);
  object-fit: contain;
  object-position: center;
  background: rgba(3, 6, 7, .38);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .38);
  transform: translateZ(0);
}

.premium-gallery-stage__copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding: clamp(2rem, 4.6vw, 5.4rem);
  max-width: 720px;
}

.premium-gallery-stage__copy span,
.premium-gallery-stage__copy p {
  color: rgba(255, 250, 240, .66);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.premium-gallery-stage__copy h3 {
  margin: .85rem 0 1.15rem;
  color: #fff8ee;
  font-family: var(--serif);
  font-size: clamp(3.35rem, 6.8vw, 8.8rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: 0;
  text-wrap: balance;
}

.premium-gallery-reel {
  display: flex;
  gap: clamp(.65rem, .9vw, 1rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: clamp(.75rem, 2vw, 1.4rem);
  padding: .25rem clamp(.25rem, .75vw, .75rem) .75rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
}

.premium-gallery-reel::-webkit-scrollbar {
  display: none;
}

.premium-gallery-reel__item {
  position: relative;
  flex: 0 0 clamp(128px, 10vw, 178px);
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, .13);
  border-radius: 6px;
  padding: 0;
  background: rgba(255, 250, 240, .04);
  color: #fffaf0;
  cursor: pointer;
  scroll-snap-align: center;
  opacity: 0;
  transform: translateX(12px);
  transition: border-color .24s var(--ease), transform .24s var(--ease), opacity .24s var(--ease);
}

.premium-gallery-reel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.74) contrast(1.04) brightness(.72);
  transform: scale(1.02);
  transition: filter .28s var(--ease), transform .34s var(--ease);
}

.premium-gallery-reel__item span {
  position: absolute;
  left: .55rem;
  bottom: .45rem;
  z-index: 2;
  color: rgba(255, 250, 240, .74);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.premium-gallery-reel__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color .24s var(--ease);
}

.premium-gallery-reel__item:hover,
.premium-gallery-reel__item:focus-visible,
.premium-gallery-reel__item.is-active {
  border-color: rgba(255, 250, 240, .36);
  transform: translateX(0) translateY(-2px);
}

.premium-gallery-reel__item:hover img,
.premium-gallery-reel__item:focus-visible img,
.premium-gallery-reel__item.is-active img {
  filter: saturate(1) contrast(1.06) brightness(.98);
  transform: scale(1.065);
}

.premium-gallery-reel__item.is-active::after {
  border-color: #a44958;
}

.premium-gallery-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, .12);
  border-radius: 8px;
  background: #101617;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(18px);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .38);
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 280px 360px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

.premium-gallery-card.is-lowres {
  max-width: none;
}

.premium-gallery-card.is-tall {
  grid-row: span 2;
}

.premium-gallery-card.is-large {
  grid-column: span 2;
  grid-row: span 2;
}

.premium-gallery-card.is-wide {
  grid-column: span 2;
}

.premium-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.86) contrast(1.04) brightness(.88);
  transition: transform .72s var(--ease), filter .72s var(--ease);
}

.premium-gallery-card.is-lowres img {
  image-rendering: auto;
}

.premium-gallery-card::before {
  display: none;
}

.premium-gallery-card figcaption {
  display: none;
}

.premium-gallery-card figcaption span {
  color: #d27787;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.premium-gallery-card figcaption strong {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.75vw, 2.55rem);
  font-weight: 500;
  line-height: .96;
  text-wrap: balance;
}

.premium-gallery-card:hover,
.premium-gallery-card:focus-visible {
  border-color: rgba(255, 250, 240, .26);
  box-shadow: 0 32px 105px rgba(0, 0, 0, .5);
}

.premium-gallery-card:hover img,
.premium-gallery-card:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.02) contrast(1.08) brightness(.98);
}

.premium-gallery-masonry {
  position: relative;
  width: 100%;
  column-count: 3;
  column-gap: clamp(.85rem, 1.25vw, 1.25rem);
}

.premium-gallery-card.is-masonry {
  position: relative;
  display: inline-block;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  height: auto;
  min-height: 0;
  margin: 0 0 clamp(.85rem, 1.25vw, 1.25rem);
  opacity: 1;
  transform: translateZ(0);
  break-inside: avoid;
  contain: paint style;
  transition:
    border-color .24s var(--ease),
    box-shadow .24s var(--ease),
    opacity .24s var(--ease),
    filter .24s var(--ease);
}

.premium-gallery-card.is-masonry:nth-child(6n + 1) {
  aspect-ratio: 1 / 1.12;
  border-radius: 4px;
}

.premium-gallery-card.is-masonry:nth-child(6n + 2) {
  aspect-ratio: 1.42 / 1;
}

.premium-gallery-card.is-masonry:nth-child(6n + 3) {
  aspect-ratio: 1 / 1.04;
  border-radius: 10px 4px 10px 4px;
}

.premium-gallery-card.is-masonry:nth-child(6n + 4) {
  aspect-ratio: 1.55 / 1;
}

.premium-gallery-card.is-masonry:nth-child(6n + 5) {
  aspect-ratio: .86 / 1;
}

.premium-gallery-card.is-masonry.is-tall {
  aspect-ratio: .76 / 1;
}

.premium-gallery-card.is-masonry.is-wide,
.premium-gallery-card.is-masonry.is-large {
  aspect-ratio: 1.58 / 1;
}

.premium-gallery-card.is-masonry img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transform: scale(1.01);
}

.premium-gallery-card.is-masonry:hover,
.premium-gallery-card.is-masonry:focus-visible {
  transform: translateZ(0);
  border-color: rgba(255, 250, 240, .34);
  box-shadow: 0 34px 105px rgba(0, 0, 0, .52);
  outline: 0;
}

.premium-gallery-card.is-masonry:hover img,
.premium-gallery-card.is-masonry:focus-visible img {
  transform: scale(1.055);
}

.premium-gallery-card.is-masonry::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 250, 240, .08);
  opacity: .7;
}

.premium-gallery-empty {
  width: min(760px, 100%);
  margin: 4rem auto;
  color: rgba(255, 250, 240, .72);
  text-align: center;
}

.premium-gallery-cta {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 1rem;
  text-align: center;
  isolation: isolate;
}

.premium-gallery-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 7, 8, .72);
}

.premium-gallery-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) brightness(.7);
}

.premium-gallery-cta > div {
  position: relative;
  z-index: 2;
}

.premium-gallery-cta h2 {
  max-width: 820px;
  margin: 0 auto 1rem;
  font-size: clamp(2.9rem, 5.8vw, 7.2rem);
}

.premium-gallery-body .back-to-top {
  display: none;
}

.premium-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 3rem);
  background: rgba(3, 4, 5, .94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(18px);
}

.premium-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.has-premium-lightbox {
  overflow: hidden;
}

.premium-lightbox figure {
  width: min(1180px, calc(100vw - clamp(6rem, 12vw, 13rem)));
  max-height: calc(100svh - clamp(2rem, 6vw, 6rem));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(.85rem, 1.4vw, 1.35rem);
  margin: 0;
}

.premium-lightbox img {
  width: 100%;
  max-height: calc(100svh - clamp(4.5rem, 9vw, 8rem));
  object-fit: contain;
  background: #050607;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

.premium-lightbox figcaption {
  display: none;
}

.premium-lightbox figcaption span,
.premium-lightbox figcaption em {
  font-size: .66rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.premium-lightbox figcaption strong {
  grid-column: 1 / -1;
  max-width: min(920px, 100%);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 4.5rem);
  font-weight: 500;
  line-height: .92;
  text-wrap: balance;
}

.premium-lightbox button {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 248, 238, .22);
  border-radius: 999px;
  background: rgba(255, 248, 238, .06);
  color: var(--ivory);
  cursor: pointer;
}

.premium-lightbox__close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
}

.premium-lightbox__close::before,
.premium-lightbox__close::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 22px;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.premium-lightbox__close::before { transform: rotate(45deg); }
.premium-lightbox__close::after { transform: rotate(-45deg); }

.premium-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.premium-lightbox__nav--prev { left: clamp(.75rem, 2vw, 2rem); }
.premium-lightbox__nav--next { right: clamp(.75rem, 2vw, 2rem); }

.premium-lightbox__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 10px;
  height: 10px;
  margin: auto;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.premium-lightbox__nav--prev::before { transform: translateX(2px) rotate(-135deg); }
.premium-lightbox__nav--next::before { transform: translateX(-2px) rotate(45deg); }

@media (min-width: 1780px) {
  .premium-gallery-grid {
    width: min(1480px, 100%);
    grid-auto-rows: 292px;
  }
}

@media (max-width: 980px) {
  .premium-gallery-hero {
    min-height: 72svh;
  }

  .premium-gallery-heading {
    grid-template-columns: 1fr;
  }

  .premium-gallery-masonry {
    column-count: 2;
  }

  .premium-gallery-stage {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .premium-gallery-stage__media {
    grid-column: 1;
    min-height: clamp(380px, 62vw, 560px);
    padding: 1rem;
  }

  .premium-gallery-stage__media img {
    max-height: 560px;
  }

  .premium-gallery-stage__copy {
    grid-column: 1;
    align-self: end;
    padding: clamp(1.35rem, 5vw, 2.4rem);
    background: linear-gradient(180deg, transparent, rgba(4, 7, 8, .72));
  }
}

@media (max-width: 620px) {
  .premium-gallery-hero {
    min-height: 76svh;
  }

  .premium-gallery-hero__copy {
    width: calc(100% - 2rem);
    padding-top: 7rem;
  }

  .premium-gallery-hero h1 {
    font-size: clamp(3.5rem, 17vw, 5.4rem);
  }

  .premium-gallery-feature {
    padding-inline: .65rem;
  }

  .premium-gallery-tabs {
    justify-content: flex-start;
    padding-inline: .35rem;
  }

  .premium-gallery-heading {
    padding-inline: .35rem;
  }

  .premium-gallery-heading h2 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .premium-gallery-masonry {
    column-count: 1;
    column-gap: .75rem;
  }

  .premium-gallery-stage {
    min-height: auto;
    border-radius: 6px;
  }

  .premium-gallery-stage__media {
    min-height: clamp(330px, 92vw, 520px);
    padding: .75rem;
  }

  .premium-gallery-stage__media img {
    max-height: 520px;
  }

  .premium-gallery-stage__copy h3 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .premium-gallery-reel {
    gap: .6rem;
    padding-inline: .15rem;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .premium-gallery-reel__item {
    flex-basis: clamp(112px, 34vw, 150px);
  }

  .premium-lightbox {
    align-items: start;
    padding: 4.6rem .85rem 1.2rem;
  }

  .premium-lightbox figure {
    width: 100%;
    max-height: calc(100svh - 5.8rem);
    gap: .85rem;
  }

  .premium-lightbox img {
    max-height: calc(100svh - 6.6rem);
  }

  .premium-lightbox__nav {
    top: auto;
    bottom: 1rem;
  }

  .premium-lightbox__nav--prev { left: 1rem; }
  .premium-lightbox__nav--next { right: 1rem; }

}
