.gallery-page .gallery-page__main {
  overflow: clip;
}

.gallery-page .gallery-hero {
  padding: calc(var(--header-height) + clamp(54px, 6vw, 82px)) 0 clamp(72px, 8vw, 106px);
  background: var(--cream);
  text-align: center;
}

.gallery-page .gallery-hero__inner {
  width: min(900px, calc(100% - 40px));
}

.gallery-page .gallery-hero .eyebrow {
  margin-bottom: 18px;
}

.gallery-page .gallery-hero h1 {
  margin: 0 0 26px;
  color: var(--black);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4.3rem, 9vw, 7.6rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .92;
}

.gallery-page .gallery-hero__lead {
  max-width: 760px;
  margin: 0 auto 18px;
  color: var(--ink);
  font-family: Lato, Arial, sans-serif;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.gallery-page .gallery-hero__note {
  margin: 0;
  color: var(--red-dark);
  font-family: Lato, Arial, sans-serif;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-page .gallery-featured {
  padding: 0 0 clamp(84px, 9vw, 128px);
  background: var(--cream);
}

.gallery-page .gallery-featured__collage {
  display: grid;
  grid-template-columns: 1.35fr .85fr .85fr;
  grid-template-rows: minmax(275px, 1.15fr) minmax(205px, .85fr);
  gap: 16px;
  min-height: 590px;
}

.gallery-page .gallery-featured__item {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: var(--white);
  background: var(--black);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.gallery-page .gallery-featured__item--lead {
  grid-row: 1 / 3;
}

.gallery-page .gallery-featured__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.gallery-page .gallery-featured__item--lead img {
  object-position: center;
}

.gallery-page .gallery-featured__item--medium:nth-of-type(3) img {
  object-position: center 48%;
}

.gallery-page .gallery-featured__item span {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  width: max-content;
  max-width: calc(100% - 48px);
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--black);
  background: var(--cream);
  font-family: Lato, Arial, sans-serif;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

.gallery-page .gallery-featured__item:hover img,
.gallery-page .gallery-featured__item:focus-visible img {
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.025);
}

.gallery-page .gallery-collection {
  padding: clamp(84px, 9vw, 128px) 0;
  background: var(--white);
}

.gallery-page .gallery-collection__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 46px;
  margin-bottom: 38px;
}

.gallery-page .gallery-collection__heading > div {
  max-width: 790px;
}

.gallery-page .gallery-collection__heading h2 {
  margin: 0;
  color: var(--black);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.2rem, 6.5vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .98;
}

.gallery-page .gallery-collection__heading > p {
  max-width: 320px;
  margin: 0 0 8px;
  color: var(--muted);
  font-family: Lato, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.gallery-page .gallery-filter-wrap {
  position: relative;
  margin-bottom: 32px;
}

.gallery-page .gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-page .gallery-filter button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #d9c8b5;
  border-radius: 999px;
  color: var(--red-deeper);
  background: var(--cream);
  font-family: Lato, Arial, sans-serif;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .045em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.gallery-page .gallery-filter button:hover,
.gallery-page .gallery-filter button:focus-visible {
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

.gallery-page .gallery-filter button[aria-pressed="true"] {
  border-color: var(--black);
  color: var(--white);
  background: var(--black);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.gallery-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 150px;
  gap: 16px;
}

.gallery-page .gallery-item {
  grid-column: span 2;
  grid-row: span 2;
  min-width: 0;
  min-height: 0;
}

.gallery-page .gallery-item--wide {
  grid-column: span 4;
}

.gallery-page .gallery-item--tall {
  grid-row: span 3;
}

.gallery-page .gallery-item[hidden] {
  display: none;
}

.gallery-page .gallery-item button {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #eadfce;
  box-shadow: 0 14px 32px rgba(61, 20, 6, .12);
  cursor: zoom-in;
}

.gallery-page .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}

.gallery-page .gallery-item button:hover img,
.gallery-page .gallery-item button:focus-visible img {
  filter: saturate(1.05) contrast(1.025);
  transform: scale(1.035);
}

.gallery-page .gallery-empty {
  margin: 44px 0 0;
  padding: 30px;
  border: 1px solid #eadfce;
  border-radius: 20px;
  color: var(--muted);
  background: var(--cream);
  font-family: Lato, Arial, sans-serif;
  text-align: center;
}

.gallery-page .gallery-final-cta {
  padding: clamp(88px, 9vw, 130px) 0;
  color: var(--white);
  background: var(--red-dark);
  text-align: center;
}

.gallery-page .gallery-final-cta__inner {
  max-width: 900px;
}

.gallery-page .gallery-final-cta .eyebrow {
  color: var(--gold);
}

.gallery-page .gallery-final-cta h2 {
  margin: 0 0 22px;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4.2rem, 8vw, 7rem);
  font-weight: 500;
  line-height: .92;
}

.gallery-page .gallery-final-cta__inner > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--cream);
  font-family: Lato, Arial, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.gallery-page .gallery-final-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.gallery-page .gallery-final-cta__actions .button {
  min-width: 190px;
}

.gallery-page .gallery-page__lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(18px, 3vw, 42px);
  overflow: hidden;
  border: 0;
  color: var(--white);
  background: rgba(5, 5, 5, .94);
}

.gallery-page .gallery-page__lightbox[open] {
  display: grid;
  place-items: center;
}

.gallery-page .gallery-page__lightbox::backdrop {
  background: rgba(5, 5, 5, .86);
}

.gallery-page .gallery-page__lightbox-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  width: min(100%, 1280px);
  height: min(100%, 900px);
  min-height: 0;
}

.gallery-page .gallery-page__lightbox-figure {
  grid-column: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
  background: var(--black);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .48);
}

.gallery-page .gallery-page__lightbox-figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 14px;
  object-fit: contain;
}

.gallery-page .gallery-page__lightbox-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: var(--cream);
  background: #120b08;
  font-family: Lato, Arial, sans-serif;
  font-size: .95rem;
  line-height: 1.45;
}

.gallery-page .gallery-page__lightbox-figure figcaption strong {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: .82rem;
  letter-spacing: .08em;
}

.gallery-page .gallery-page__lightbox-close,
.gallery-page .gallery-page__lightbox-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  color: var(--white);
  background: rgba(5, 5, 5, .72);
  font-family: Georgia, serif;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.gallery-page .gallery-page__lightbox-close:hover,
.gallery-page .gallery-page__lightbox-close:focus-visible,
.gallery-page .gallery-page__lightbox-arrow:hover,
.gallery-page .gallery-page__lightbox-arrow:focus-visible {
  border-color: var(--gold);
  color: var(--black);
  background: var(--gold);
}

.gallery-page .gallery-page__lightbox-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 74px;
  font-size: 1.8rem;
}

.gallery-page .gallery-page__lightbox-arrow {
  font-size: 2.4rem;
}

.gallery-page .gallery-page__lightbox-arrow--previous {
  grid-column: 1;
  justify-self: start;
}

.gallery-page .gallery-page__lightbox-arrow--next {
  grid-column: 3;
  justify-self: end;
}

.gallery-page.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .gallery-page .gallery-featured__collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 340px 250px 250px;
    min-height: 0;
  }

  .gallery-page .gallery-featured__item--lead {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-page .gallery-collection__heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .gallery-page .gallery-collection__heading > p {
    max-width: 620px;
  }

  .gallery-page .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 155px;
  }

  .gallery-page .gallery-item--wide {
    grid-column: span 4;
  }

  .gallery-page .gallery-page__lightbox-dialog {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
  }

  .gallery-page .gallery-page__lightbox-close {
    right: 64px;
  }
}

@media (max-width: 680px) {
  .gallery-page .gallery-hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
  }

  .gallery-page .gallery-hero__inner {
    width: calc(100% - 32px);
  }

  .gallery-page .gallery-hero .eyebrow {
    margin-bottom: 14px;
  }

  .gallery-page .gallery-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(3.45rem, 16vw, 4.65rem);
    line-height: .94;
    text-wrap: balance;
  }

  .gallery-page .gallery-hero__lead {
    max-width: 36rem;
    margin-bottom: 16px;
    font-size: clamp(.98rem, 4.2vw, 1.08rem);
    line-height: 1.55;
  }

  .gallery-page .gallery-hero__note {
    max-width: 340px;
    margin-inline: auto;
    font-size: .7rem;
    line-height: 1.5;
    letter-spacing: .1em;
  }

  .gallery-page .gallery-featured {
    padding-bottom: 72px;
  }

  .gallery-page .gallery-featured__collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 10px;
  }

  .gallery-page .gallery-featured__item--lead {
    grid-column: 1 / -1;
  }

  .gallery-page .gallery-featured__item {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }

  .gallery-page .gallery-featured__item--lead {
    aspect-ratio: 16 / 10;
  }

  .gallery-page .gallery-featured__item span {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 9px 12px;
    font-size: .62rem;
    letter-spacing: .05em;
  }

  .gallery-page .gallery-collection {
    padding: 72px 0 80px;
  }

  .gallery-page .gallery-collection__heading {
    gap: 14px;
    margin-bottom: 30px;
  }

  .gallery-page .gallery-collection__heading > div,
  .gallery-page .gallery-collection__heading > p {
    width: 100%;
    max-width: none;
  }

  .gallery-page .gallery-collection__heading h2 {
    font-size: clamp(2.75rem, 12vw, 3.25rem);
    line-height: 1;
    text-wrap: balance;
  }

  .gallery-page .gallery-collection__heading > p {
    margin-bottom: 0;
    font-size: .98rem;
    line-height: 1.55;
  }

  .gallery-page .gallery-filter-wrap {
    width: calc(100% + 28px);
    margin-bottom: 26px;
    margin-left: -14px;
    overflow: hidden;
  }

  .gallery-page .gallery-filter {
    flex-wrap: nowrap;
    gap: 9px;
    padding: 3px 14px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-page .gallery-filter::-webkit-scrollbar {
    display: none;
  }

  .gallery-page .gallery-filter button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 18px;
    font-size: .82rem;
  }

  .gallery-page .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: auto;
    align-items: start;
    gap: 10px;
  }

  .gallery-page .gallery-item,
  .gallery-page .gallery-item--tall {
    grid-column: span 1;
    grid-row: auto;
  }

  .gallery-page .gallery-item--wide {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-page .gallery-item button {
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }

  .gallery-page .gallery-item--wide button {
    aspect-ratio: 16 / 9;
  }

  .gallery-page .gallery-item--tall button {
    aspect-ratio: 4 / 5;
  }

  .gallery-page .gallery-final-cta__actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 380px);
    margin-inline: auto;
    gap: 12px;
  }

  .gallery-page .gallery-final-cta {
    padding: 96px 0;
  }

  .gallery-page .gallery-final-cta__inner {
    width: calc(100% - 32px);
  }

  .gallery-page .gallery-final-cta h2 {
    margin-bottom: 22px;
    font-size: clamp(4rem, 17vw, 5.25rem);
  }

  .gallery-page .gallery-final-cta__inner > p:not(.eyebrow) {
    max-width: 360px;
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .gallery-page .gallery-final-cta__actions .button {
    width: 100%;
    min-height: 52px;
  }

  .gallery-page .gallery-page__lightbox {
    padding: 14px;
  }

  .gallery-page .gallery-page__lightbox-dialog {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) 54px;
    gap: 10px 14px;
    width: 100%;
    height: 100%;
    padding-top: 54px;
  }

  .gallery-page .gallery-page__lightbox-figure {
    grid-column: 1 / -1;
    grid-row: 1;
    border-radius: 18px;
  }

  .gallery-page .gallery-page__lightbox-figure img {
    padding: 8px;
  }

  .gallery-page .gallery-page__lightbox-figure figcaption {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    min-height: 88px;
    padding: 14px 16px;
    font-size: .86rem;
  }

  .gallery-page .gallery-page__lightbox-close {
    top: 0;
    right: 0;
  }

  .gallery-page .gallery-page__lightbox-arrow--previous {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .gallery-page .gallery-page__lightbox-arrow--next {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}

@media (max-width: 359px) {
  .gallery-page .gallery-featured__collage,
  .gallery-page .gallery-grid {
    gap: 8px;
  }

  .gallery-page .gallery-collection__heading h2 {
    font-size: 2.65rem;
  }

  .gallery-page .gallery-filter {
    gap: 8px;
  }

  .gallery-page .gallery-filter button {
    padding-inline: 16px;
    font-size: .78rem;
  }
}

@media (max-width: 319px) {
  .gallery-page .gallery-featured__collage,
  .gallery-page .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-page .gallery-featured__item--lead,
  .gallery-page .gallery-item,
  .gallery-page .gallery-item--wide,
  .gallery-page .gallery-item--tall {
    grid-column: 1;
  }

  .gallery-page .gallery-featured__item:not(.gallery-featured__item--lead),
  .gallery-page .gallery-item button,
  .gallery-page .gallery-item--wide button,
  .gallery-page .gallery-item--tall button {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-page .gallery-featured__item img,
  .gallery-page .gallery-item img,
  .gallery-page .gallery-filter button {
    transition: none;
  }
}
