@font-face {
  font-family: "IG Gallery Newsreader";
  src: url("/assets/fonts/newsreader/newsreader-latin-wght-normal-v26.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "IG Gallery Inter";
  src: url("/assets/fonts/inter/inter-latin-wght-normal-v20.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.gallery-editorial-page {
  --gallery-ivory: #fcfbf7;
  --gallery-ink: #101713;
  --gallery-forest: #0c2118;
  --gallery-lime: #91e100;
  --gallery-blue: #153b74;
  --gallery-blue-light: #85b2ff;
  --gallery-paper: #f2f0e8;
  --gallery-navy: #060b12;
  --gallery-white: #ffffff;
  --gallery-rule-dark: rgba(16, 23, 19, 0.22);
  --gallery-rule-light: rgba(252, 251, 247, 0.28);
  --gallery-radius: 0.35rem;
  --gallery-muted: #536158;
  --gallery-line: var(--gallery-rule-dark);
  --gallery-surface: var(--gallery-white);
  --gallery-proof-ink: var(--gallery-ivory);
  --gallery-proof-muted: rgba(252, 251, 247, 0.74);
  --gallery-shell-pad: max(clamp(1rem, 4vw, 3rem), calc((100% - 80rem) / 2));
  background: var(--gallery-ivory);
  color: var(--gallery-ink);
  font-family: "IG Gallery Inter", system-ui, sans-serif;
}

.gallery-editorial-page .gallery-proof-hero {
  position: relative;
  overflow: clip;
  padding: 0;
  color: var(--gallery-ink);
  background: var(--gallery-ivory);
}

.gallery-editorial-page .gallery-proof-hero > .container {
  position: relative;
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.gallery-editorial-page .gallery-proof-hero .breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding-block: 1rem;
  padding-inline: var(--gallery-shell-pad);
  color: color-mix(in srgb, var(--gallery-ink) 72%, transparent);
  font-size: 0.82rem;
  background: var(--gallery-ivory);
}

.gallery-editorial-page .gallery-proof-hero .breadcrumb a {
  color: inherit;
}

.gallery-editorial-page .gallery-proof-hero__frame {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: 0;
  align-items: stretch;
}

.gallery-editorial-page .gallery-proof-hero__copy {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  min-height: 100%;
  padding-block: clamp(2.5rem, 4vw, 4rem);
  padding-inline: var(--gallery-shell-pad);
  color: var(--gallery-ink);
  background: var(--gallery-ivory);
  align-content: center;
  grid-auto-rows: max-content;
}

.gallery-editorial-page .gallery-proof-hero .eyebrow {
  margin: 0 0 1rem;
  color: var(--gallery-blue);
  font-family: "IG Gallery Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.gallery-editorial-page .gallery-proof-hero h1 {
  max-width: 14ch;
  margin: 0 0 1.15rem;
  color: var(--gallery-ink);
  font-family: "IG Gallery Newsreader", Georgia, serif;
  font-size: clamp(2.65rem, 4.15vw, 4.5rem);
  font-weight: 620;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.gallery-editorial-page .gallery-proof-hero__copy > p:not(.eyebrow) {
  max-width: 52ch;
  margin: 0;
  color: color-mix(in srgb, var(--gallery-ink) 78%, transparent);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.65;
}

.gallery-editorial-page .gallery-proof-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.gallery-editorial-page .gallery-proof-hero__actions .btn {
  min-height: 44px;
  border-radius: 0.35rem;
}

.gallery-editorial-page .gallery-proof-hero__actions .btn-secondary {
  border-color: color-mix(in srgb, var(--gallery-ink) 42%, transparent);
  color: var(--gallery-ink);
  background: transparent;
}

.gallery-editorial-page .gallery-proof-hero__actions a:focus-visible {
  outline: 3px solid var(--gallery-blue);
  outline-offset: 3px;
}

.gallery-editorial-page .gallery-proof-hero__collage {
  position: relative;
  overflow: clip;
  min-height: clamp(32rem, 44vw, 38rem);
  container-type: size;
  isolation: isolate;
  background: var(--gallery-forest);
}

/* The 3:5 timber cross keeps its Latin proportions regardless of collage width.
 * The photo zones below use the same container-height dimensions: a 13% beam
 * and a crossbar centered 30% down an 80%-height cross. */
.gallery-editorial-page .gallery-proof-hero__cross {
  position: absolute;
  z-index: 2;
  top: 10%;
  left: 50%;
  height: 80%;
  aspect-ratio: 3 / 5;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0.18rem 0.3rem 0.24rem rgb(3 12 7 / .58));
}

.gallery-editorial-page .gallery-proof-hero__cross::before,
.gallery-editorial-page .gallery-proof-hero__cross::after {
  content: "";
  position: absolute;
  border: 1px solid #6d4526;
  border-radius: 2px;
  background-color: #996436;
  background-image: linear-gradient(90deg, rgb(250 213 145 / .22), transparent 9%, transparent 88%, rgb(52 26 9 / .34)), url("/assets/images/decorative/gallery-oak-grain-20260908.webp");
  background-size: 100% 100%, auto 36rem;
  box-shadow: inset 2px 0 1px rgb(252 224 164 / .48), inset -3px -2px 2px rgb(53 27 10 / .48);
}

.gallery-editorial-page .gallery-proof-hero__cross::before {
  inset: 0 39.166667%;
}

.gallery-editorial-page .gallery-proof-hero__cross::after {
  top: 0;
  left: 39.166667%;
  width: 21.666667%;
  height: 60%;
  transform: rotate(90deg);
  background-position: center, 76% 30%;
  box-shadow: inset -2px 0 1px rgb(252 224 164 / .48), inset 3px -2px 2px rgb(53 27 10 / .48), 2px 0 2px rgb(48 23 9 / .28);
}

.gallery-editorial-page .gallery-proof-hero__zone {
  position: absolute;
  overflow: clip;
  isolation: isolate;
  background: var(--gallery-forest);
}

.gallery-editorial-page .gallery-proof-hero__zone--top-left {
  inset: 0 calc(50% + 5.2cqh) 71.2% 0;
}

.gallery-editorial-page .gallery-proof-hero__zone--top-cap {
  inset: 0 calc(50% - 5.2cqh) 90% calc(50% - 5.2cqh);
}

.gallery-editorial-page .gallery-proof-hero__zone--top-right {
  inset: 0 0 71.2% calc(50% + 5.2cqh);
}

.gallery-editorial-page .gallery-proof-hero__zone--left-arm {
  inset: 28.8% calc(50% + 24cqh) 60.8% 0;
}

.gallery-editorial-page .gallery-proof-hero__zone--right-arm {
  inset: 28.8% 0 60.8% calc(50% + 24cqh);
}

.gallery-editorial-page .gallery-proof-hero__zone--bottom-left {
  inset: 39.2% calc(50% + 5.2cqh) 0 0;
}

.gallery-editorial-page .gallery-proof-hero__zone--bottom-cap {
  inset: 90% calc(50% - 5.2cqh) 0 calc(50% - 5.2cqh);
}

.gallery-editorial-page .gallery-proof-hero__zone--bottom-right {
  inset: 39.2% 0 0 calc(50% + 5.2cqh);
}

.gallery-editorial-page .gallery-proof-hero__zone > .gallery-proof-hero__image {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  border: 0.35rem solid var(--gallery-ivory);
  border-radius: 0.12rem;
  background: var(--gallery-paper);
  box-shadow: 0 0.8rem 1.8rem rgba(5, 15, 10, 0.22);
  transform-origin: 50% 50%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-editorial-page .gallery-proof-hero__image picture,
.gallery-editorial-page .gallery-proof-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-editorial-page .gallery-proof-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: calc(var(--gallery-focal-x) * 100%) calc(var(--gallery-focal-y) * 100%);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-tl-a {
  top: -4%;
  left: -3%;
  width: 59%;
  height: 112%;
  transform: rotate(-2.2deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-tl-b {
  top: -3%;
  left: 52%;
  width: 52%;
  height: 66%;
  transform: rotate(1.1deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-tl-c {
  top: 57%;
  left: 44%;
  width: 61%;
  height: 49%;
  transform: rotate(-0.6deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-tc-a {
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  transform: rotate(0.8deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-tr-a {
  top: -4%;
  left: -3%;
  width: 42%;
  height: 109%;
  transform: rotate(1.7deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-tr-b {
  top: -4%;
  left: 35%;
  width: 69%;
  height: 50%;
  transform: rotate(-1.2deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-tr-c {
  top: 41%;
  left: 35%;
  width: 40%;
  height: 65%;
  transform: rotate(0.4deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-tr-x {
  top: 43%;
  left: 69%;
  z-index: 4;
  width: 35%;
  height: 61%;
  transform: rotate(3.1deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-la-a {
  top: -5%;
  left: -4%;
  width: 108%;
  height: 110%;
  transform: rotate(-0.9deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-ra-a {
  top: -5%;
  left: -4%;
  width: 49%;
  height: 110%;
  transform: rotate(1.3deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-ra-b {
  top: -4%;
  left: 40%;
  width: 64%;
  height: 108%;
  transform: rotate(-0.4deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-bl-a {
  top: -3%;
  left: -3%;
  width: 59%;
  height: 40%;
  transform: rotate(0.7deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-bl-b {
  top: 32%;
  left: -3%;
  width: 39%;
  height: 72%;
  transform: rotate(-1.6deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-bl-c {
  top: 33%;
  left: 33%;
  width: 70%;
  height: 43%;
  transform: rotate(1.9deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-bl-d {
  top: 71%;
  left: 32%;
  width: 72%;
  height: 33%;
  transform: rotate(-0.3deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-bl-x {
  top: -3%;
  left: 52%;
  z-index: 4;
  width: 52%;
  height: 42%;
  transform: rotate(-3.4deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-bc-a {
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  transform: rotate(1deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-br-a {
  top: -3%;
  left: -3%;
  width: 44%;
  height: 107%;
  transform: rotate(-1.1deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-br-b {
  top: -3%;
  left: 37%;
  width: 67%;
  height: 58%;
  transform: rotate(0.5deg);
}

.gallery-editorial-page .gallery-proof-hero__image--slot-br-x {
  top: 49%;
  left: 38%;
  z-index: 4;
  width: 66%;
  height: 55%;
  transform: rotate(3.6deg);
}

.gallery-editorial-page .gallery-proof-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 0;
  background: var(--gallery-forest);
  color: var(--gallery-ivory);
  padding-inline: var(--gallery-shell-pad);
  padding-block: 1.2rem;
  list-style: none;
}

.gallery-editorial-page .gallery-proof-facts li {
  min-width: 0;
  padding: 0.25rem clamp(1rem, 2.5vw, 2rem);
  border-inline-start: 1px solid rgba(252, 251, 247, 0.24);
}

.gallery-editorial-page .gallery-proof-facts li:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.gallery-editorial-page .gallery-proof-facts strong,
.gallery-editorial-page .gallery-proof-facts span {
  display: block;
}

.gallery-editorial-page .gallery-proof-facts strong {
  color: var(--gallery-lime);
  font-family: "IG Gallery Newsreader", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 650;
  line-height: 1.05;
}

.gallery-editorial-page .gallery-proof-facts span {
  margin-top: 0.25rem;
  color: var(--gallery-proof-muted);
  font-size: 0.75rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-editorial-page .gallery-library {
  min-inline-size: 0;
  background: var(--gallery-ivory);
}

.gallery-editorial-page .gallery-library > .container {
  width: 100%;
  max-width: none;
  padding-inline: var(--gallery-shell-pad);
}

.gallery-editorial-page .cta-banner h2 {
  color: var(--gallery-ivory);
}

.gallery-editorial-page .gallery-library-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.92fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: 1.25rem;
}

.gallery-editorial-page .gallery-library-heading h2 {
  max-width: 18ch;
  margin-bottom: 0.75rem;
  color: var(--gallery-ink);
  font-family: "IG Gallery Newsreader", Georgia, serif;
  font-size: clamp(2.2rem, 3.4vw, 3.65rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.gallery-editorial-page .gallery-library-heading > div > p:last-child {
  max-width: 64ch;
  color: var(--gallery-muted);
}

.gallery-editorial-page .gallery-filter-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  min-inline-size: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-block: 1px solid var(--gallery-rule-dark);
  border-radius: var(--gallery-radius);
  background: var(--gallery-paper);
  box-shadow: none;
}

.gallery-editorial-page .gallery-filter-rail__heading {
  min-inline-size: 0;
}

.gallery-editorial-page .gallery-filter-rail__heading .eyebrow {
  margin-block-end: 0.5rem;
  color: var(--gallery-blue);
}

.gallery-editorial-page .gallery-filter-rail__heading h3 {
  margin: 0;
  color: var(--gallery-ink);
  font-family: "IG Gallery Newsreader", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 620;
  line-height: 1;
}

.gallery-editorial-page .gallery-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(14rem, 1fr));
  gap: 0.75rem;
  align-items: end;
  min-inline-size: 0;
}

.gallery-editorial-page .gallery-control {
  display: grid;
  min-inline-size: 0;
}

.gallery-editorial-page .gallery-control + .gallery-control {
  padding-inline-start: 0.75rem;
  border-inline-start: 1px solid var(--gallery-rule-dark);
}

.gallery-editorial-page .gallery-control:nth-child(3) {
  grid-column: 1 / -1;
  padding-inline-start: 0;
  border-inline-start: 0;
}

.gallery-editorial-page .gallery-control label {
  display: block;
  margin-block-end: 0.35rem;
  color: var(--gallery-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery-editorial-page .gallery-control select {
  inline-size: 100%;
  min-block-size: 44px;
  min-inline-size: 0;
  border: 1px solid var(--gallery-rule-dark);
  border-radius: var(--gallery-radius);
  padding: 0.65rem 2.3rem 0.65rem 0.8rem;
  color: var(--gallery-ink);
  background: var(--gallery-white);
  font: inherit;
}

.gallery-editorial-page .gallery-reset {
  min-block-size: 44px;
  grid-column: 1 / -1;
  justify-self: end;
  align-self: end;
  border: 0;
  padding: 0.65rem 0;
  color: var(--gallery-muted);
  background: transparent;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.gallery-editorial-page .gallery-control select[disabled],
.gallery-editorial-page .gallery-reset[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
}

.gallery-editorial-page :is(
  [data-gallery-event-trigger],
  [data-gallery-photo-trigger],
  [data-gallery-back-to-events],
  [data-gallery-photo-dialog-close],
  .gallery-reset,
  select
):focus-visible {
  outline: 3px solid var(--gallery-lime);
  outline-offset: 3px;
}

.gallery-editorial-page .gallery-status {
  margin: 0 0 1rem;
  color: var(--gallery-muted);
  font-size: 0.92rem;
}

.gallery-editorial-page [data-gallery-grid] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  min-inline-size: 0;
}

.gallery-editorial-page .gallery-event-card {
  min-inline-size: 0;
  block-size: 100%;
  overflow: clip;
  border: 1px solid var(--gallery-rule-dark);
  border-radius: var(--gallery-radius);
  background: var(--gallery-white);
  box-shadow: none;
}

.gallery-editorial-page .gallery-event-card__action {
  display: grid;
  grid-template-rows: auto 1fr;
  min-inline-size: 0;
  block-size: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease;
}

.gallery-editorial-page .gallery-event-card__action:hover {
  transform: translateY(-2px);
}

.gallery-editorial-page .gallery-event-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: clip;
  background: var(--gallery-navy);
}

.gallery-editorial-page .gallery-event-card__media img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: calc(var(--gallery-focal-x) * 100%) calc(var(--gallery-focal-y) * 100%);
}

.gallery-editorial-page .gallery-event-card__copy {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  gap: 0.65rem;
  min-inline-size: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-block-start: 1px solid var(--gallery-rule-dark);
}

.gallery-editorial-page .gallery-event-card__title {
  color: var(--gallery-ink);
  font-family: "IG Gallery Newsreader", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 620;
  line-height: 1.05;
}

.gallery-editorial-page .gallery-event-card__meta {
  color: var(--gallery-muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-editorial-page .gallery-event-card__count {
  margin-block-start: 0.15rem;
  padding-block-start: 0.65rem;
  border-block-start: 1px solid var(--gallery-rule-dark);
  color: var(--gallery-ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-editorial-page .gallery-event-card__cue {
  align-self: end;
  color: var(--gallery-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-editorial-page .gallery-empty {
  margin: 2rem 0 0;
  padding: 1.2rem;
  border: 1px dashed var(--gallery-rule-dark);
  border-radius: var(--gallery-radius);
  color: var(--gallery-muted);
  background: var(--gallery-paper);
  text-align: center;
}

.gallery-editorial-page [data-gallery-selected-event] {
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  min-inline-size: 0;
  inline-size: 100%;
  max-inline-size: 100%;
}

.gallery-editorial-page .gallery-selected-event__header {
  display: grid;
  grid-template-columns: minmax(9rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: start;
  min-inline-size: 0;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--gallery-rule-light);
  border-radius: var(--gallery-radius);
  color: var(--gallery-ivory);
  background: var(--gallery-forest);
}

.gallery-editorial-page .gallery-selected-event__back {
  min-block-size: 44px;
  justify-self: start;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gallery-rule-light);
  border-radius: var(--gallery-radius);
  color: var(--gallery-ivory);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.gallery-editorial-page .gallery-selected-event__copy {
  display: grid;
  gap: 0.7rem;
  min-inline-size: 0;
}

.gallery-editorial-page .gallery-selected-event__meta {
  margin: 0;
  color: var(--gallery-lime);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.gallery-editorial-page .gallery-selected-event__title {
  max-inline-size: 18ch;
  margin: 0;
  color: var(--gallery-ivory);
  font-family: "IG Gallery Newsreader", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.gallery-editorial-page .gallery-selected-event__title:focus {
  outline: 3px solid var(--gallery-lime);
  outline-offset: 4px;
}

.gallery-editorial-page .gallery-selected-event__summary {
  margin: 0;
  max-inline-size: 68ch;
  color: color-mix(in srgb, var(--gallery-ivory) 78%, transparent);
  line-height: 1.65;
}

.gallery-editorial-page .gallery-selected-event__count {
  margin: 0;
  max-inline-size: 14rem;
  padding-block-start: 0.75rem;
  border-block-start: 1px solid var(--gallery-rule-light);
  color: var(--gallery-lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-editorial-page .gallery-selected-event__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  margin-block-start: 0.25rem;
}

.gallery-editorial-page .gallery-selected-event__links a {
  color: var(--gallery-blue-light);
  font-weight: 750;
  text-underline-offset: 0.2em;
}

.gallery-editorial-page .gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
  min-inline-size: 0;
}

.gallery-editorial-page [data-gallery-photo-grid] {
  min-inline-size: 0;
}

.gallery-editorial-page .gallery-photo-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-inline-size: 0;
  overflow: clip;
  border: 1px solid var(--gallery-rule-dark);
  border-radius: var(--gallery-radius);
  color: var(--gallery-ink);
  background: var(--gallery-white);
  box-shadow: none;
  text-decoration: none;
}

.gallery-editorial-page .gallery-photo-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: clip;
  background: var(--gallery-navy);
}

.gallery-editorial-page .gallery-photo-card__media img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: calc(var(--gallery-focal-x) * 100%) calc(var(--gallery-focal-y) * 100%);
}

.gallery-editorial-page .gallery-photo-card__caption {
  min-inline-size: 0;
  padding: 0.75rem 0.85rem 0.9rem;
  border-block-start: 1px solid var(--gallery-rule-dark);
  color: var(--gallery-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.gallery-editorial-page dialog.gallery-photo-dialog:not([open]) {
  display: none;
}

.gallery-editorial-page .gallery-photo-dialog {
  inline-size: min(calc(100vw - 2rem), 70rem);
  max-inline-size: 70rem;
  max-block-size: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--gallery-rule-light);
  border-radius: var(--gallery-radius);
  color: var(--gallery-white);
  background: var(--gallery-navy);
  box-shadow: none;
  overscroll-behavior: contain;
}

.gallery-editorial-page .gallery-photo-dialog::backdrop {
  background: rgb(6 11 18 / 82%);
}

.gallery-editorial-page .gallery-photo-dialog__panel {
  position: relative;
  max-inline-size: 100%;
  max-block-size: calc(100dvh - 2rem);
  overflow: auto;
  background: var(--gallery-navy);
}

.gallery-editorial-page .gallery-photo-dialog__close {
  position: absolute;
  z-index: 3;
  inset-block-start: 0.75rem;
  inset-inline-end: 0.75rem;
  display: inline-grid;
  place-items: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 0;
  border: 1px solid var(--gallery-rule-light);
  border-radius: var(--gallery-radius);
  color: var(--gallery-white);
  background: var(--gallery-navy);
  box-shadow: none;
  font: inherit;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.gallery-editorial-page .gallery-photo-dialog__close:hover {
  color: var(--gallery-navy);
  background: var(--gallery-lime);
  transform: translateY(-1px);
}

.gallery-editorial-page .gallery-photo-dialog__header {
  min-inline-size: 0;
  padding: 1.1rem 4.75rem 1rem 1.25rem;
  border-block-end: 1px solid var(--gallery-rule-light);
}

.gallery-editorial-page .gallery-photo-dialog__meta {
  margin: 0 0 0.3rem;
  color: var(--gallery-lime);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-editorial-page .gallery-photo-dialog__header h2 {
  margin: 0;
  color: var(--gallery-white);
  font-family: "IG Gallery Newsreader", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 650;
  line-height: 1.08;
}

.gallery-editorial-page .gallery-photo-dialog__figure {
  display: grid;
  gap: 0.7rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0.75rem;
  color: var(--gallery-ink);
  background: var(--gallery-ivory);
}

.gallery-editorial-page [data-gallery-photo-dialog-image] {
  display: block;
  inline-size: auto;
  block-size: auto;
  max-inline-size: 100%;
  max-block-size: min(72dvh, 52rem);
  margin-inline: auto;
  object-fit: contain;
}

.gallery-editorial-page [data-gallery-photo-dialog-caption] {
  min-inline-size: 0;
  margin: 0;
  padding-inline: 0.25rem;
  color: var(--gallery-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.gallery-editorial-page .site-footer {
  border-top-color: var(--gallery-rule-dark);
  background: var(--gallery-ivory);
  color: var(--gallery-ink);
}

.gallery-editorial-page .site-footer .footer-brand,
.gallery-editorial-page .site-footer h4 {
  color: var(--gallery-ink);
}

.gallery-editorial-page .site-footer .footer-tagline,
.gallery-editorial-page .site-footer .footer-legal,
.gallery-editorial-page .site-footer .footer-list li,
.gallery-editorial-page .site-footer .footer-bottom {
  color: var(--gallery-muted);
}

.gallery-editorial-page .site-footer .footer-bottom {
  border-top-color: var(--gallery-rule-dark);
}

.gallery-editorial-page .site-footer a {
  color: var(--gallery-blue);
}

.gallery-editorial-page .site-footer a:focus-visible {
  outline: 3px solid var(--gallery-blue);
  outline-offset: 3px;
}

@media (max-width: 1199px) {
  .gallery-editorial-page .gallery-library-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gallery-editorial-page .gallery-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 799px) {
  .gallery-editorial-page .gallery-proof-hero__frame {
    grid-template-columns: 1fr;
  }

  .gallery-editorial-page .gallery-proof-hero__copy {
    min-height: auto;
    padding-block: clamp(3rem, 10vw, 5rem);
  }

  .gallery-editorial-page .gallery-proof-hero h1 {
    max-width: 14ch;
  }

  .gallery-editorial-page .gallery-proof-hero__collage {
    min-height: clamp(32rem, 92vw, 44rem);
  }

  .gallery-editorial-page .gallery-proof-hero__image {
    transform: none;
    z-index: 1;
  }

  .gallery-editorial-page .gallery-proof-hero__image--accent {
    z-index: 2;
  }

  .gallery-editorial-page .gallery-filter-rail,
  .gallery-editorial-page .gallery-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-editorial-page .gallery-control + .gallery-control {
    padding-block-start: 0.75rem;
    padding-inline-start: 0;
    border-block-start: 1px solid var(--gallery-rule-dark);
    border-inline-start: 0;
  }

  .gallery-editorial-page [data-gallery-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-editorial-page .gallery-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-editorial-page .gallery-selected-event__header {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 390px) {
  .gallery-editorial-page .gallery-proof-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.25rem);
  }

  .gallery-editorial-page .gallery-proof-hero__collage {
    min-height: clamp(38rem, 160vw, 44rem);
  }

  .gallery-editorial-page .gallery-proof-facts {
    grid-template-columns: 1fr;
  }

  .gallery-editorial-page .gallery-proof-facts li,
  .gallery-editorial-page .gallery-proof-facts li:first-child {
    padding: 0.75rem 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(252, 251, 247, 0.24);
  }

  .gallery-editorial-page .gallery-proof-facts li:first-child {
    border-top: 0;
  }

  .gallery-editorial-page .gallery-filter-rail {
    padding: 1rem;
  }

  .gallery-editorial-page .gallery-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-editorial-page [data-gallery-grid] {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-editorial-page .gallery-photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-editorial-page .gallery-reset {
    justify-self: start;
  }

  .gallery-editorial-page .gallery-proof-hero__image--slot-tl-a,
  .gallery-editorial-page .gallery-proof-hero__image--slot-tr-a,
  .gallery-editorial-page .gallery-proof-hero__image--slot-bl-a,
  .gallery-editorial-page .gallery-proof-hero__image--slot-br-a,
  .gallery-editorial-page .gallery-proof-hero__image--slot-tc-a,
  .gallery-editorial-page .gallery-proof-hero__image--slot-bc-a,
  .gallery-editorial-page .gallery-proof-hero__image--slot-la-a,
  .gallery-editorial-page .gallery-proof-hero__image--slot-ra-a,
  .gallery-editorial-page .gallery-proof-hero__image--slot-tl-b,
  .gallery-editorial-page .gallery-proof-hero__image--slot-tr-b {
    display: block;
  }

  .gallery-editorial-page .gallery-proof-hero__image--slot-tl-c,
  .gallery-editorial-page .gallery-proof-hero__image--slot-tr-c,
  .gallery-editorial-page .gallery-proof-hero__image--slot-tr-x,
  .gallery-editorial-page .gallery-proof-hero__image--slot-ra-b,
  .gallery-editorial-page .gallery-proof-hero__image--slot-bl-b,
  .gallery-editorial-page .gallery-proof-hero__image--slot-bl-c,
  .gallery-editorial-page .gallery-proof-hero__image--slot-bl-d,
  .gallery-editorial-page .gallery-proof-hero__image--slot-bl-x,
  .gallery-editorial-page .gallery-proof-hero__image--slot-br-b,
  .gallery-editorial-page .gallery-proof-hero__image--slot-br-x {
    display: none;
  }

  .gallery-editorial-page .gallery-proof-hero__image--slot-tl-a {
    top: -4%;
    left: -4%;
    width: 57%;
    height: 108%;
    transform: rotate(-0.7deg);
  }

  .gallery-editorial-page .gallery-proof-hero__image--slot-tl-b {
    top: -4%;
    left: 49%;
    width: 55%;
    height: 108%;
    transform: rotate(0.6deg);
  }

  .gallery-editorial-page .gallery-proof-hero__image--slot-tr-a {
    top: -4%;
    left: -4%;
    width: 55%;
    height: 108%;
    transform: rotate(0.7deg);
  }

  .gallery-editorial-page .gallery-proof-hero__image--slot-tr-b {
    top: -4%;
    left: 47%;
    width: 57%;
    height: 108%;
    transform: rotate(-0.6deg);
  }

  .gallery-editorial-page .gallery-proof-hero__image--slot-bl-a {
    top: -2%;
    left: -3%;
    width: 106%;
    height: 104%;
    transform: rotate(-0.5deg);
  }

  .gallery-editorial-page .gallery-proof-hero__image--slot-br-a {
    top: -2%;
    left: -3%;
    width: 106%;
    height: 104%;
    transform: rotate(0.6deg);
  }

  .gallery-editorial-page .gallery-proof-hero__image--slot-tc-a {
    top: -6%;
    left: -8%;
    width: 116%;
    height: 112%;
    transform: rotate(-0.4deg);
  }

  .gallery-editorial-page .gallery-proof-hero__image--slot-bc-a {
    top: -6%;
    left: -8%;
    width: 116%;
    height: 112%;
    transform: rotate(0.4deg);
  }

  .gallery-editorial-page .gallery-proof-hero__image--slot-la-a {
    top: -8%;
    left: -5%;
    width: 110%;
    height: 116%;
    transform: rotate(-0.5deg);
  }

  .gallery-editorial-page .gallery-proof-hero__image--slot-ra-a {
    top: -8%;
    left: -5%;
    width: 110%;
    height: 116%;
    transform: rotate(0.5deg);
  }

  .gallery-editorial-page .gallery-photo-dialog {
    inline-size: calc(100vw - 1rem);
    max-inline-size: calc(100vw - 1rem);
    max-block-size: calc(100dvh - 1rem);
  }

  .gallery-editorial-page .gallery-photo-dialog__panel {
    max-inline-size: 100%;
    max-block-size: calc(100dvh - 1rem);
  }

  .gallery-editorial-page .gallery-photo-dialog__header {
    padding: 0.85rem 4rem 0.75rem 0.85rem;
  }

  .gallery-editorial-page .gallery-photo-dialog__figure {
    padding: 0.5rem;
  }
}

@media (max-width: 320px) {
  .gallery-editorial-page .gallery-proof-hero__collage {
    min-width: 0;
    min-height: 36rem;
  }

  .gallery-editorial-page .gallery-proof-hero__actions .btn {
    width: 100%;
  }

  .gallery-editorial-page .gallery-filter-rail,
  .gallery-editorial-page .gallery-controls,
  .gallery-editorial-page .gallery-control,
  .gallery-editorial-page .gallery-selected-event,
  .gallery-editorial-page .gallery-photo-dialog__panel {
    min-inline-size: 0;
    max-inline-size: 100%;
  }

  .gallery-editorial-page .gallery-filter-rail {
    padding: 0.8rem;
  }

  .gallery-editorial-page .gallery-controls {
    padding: 0;
  }

  .gallery-editorial-page .gallery-control select {
    min-inline-size: 0;
    inline-size: 100%;
    max-inline-size: 100%;
  }

  .gallery-editorial-page .gallery-selected-event__header {
    min-inline-size: 0;
    padding: 1rem;
  }

  .gallery-editorial-page .gallery-photo-dialog__figure {
    min-inline-size: 0;
    max-inline-size: 100%;
    padding: 0.35rem;
  }

  .gallery-editorial-page .gallery-photo-dialog__header {
    min-inline-size: 0;
    padding-inline-end: 3.75rem;
  }

  .gallery-editorial-page [data-gallery-photo-dialog-title] {
    min-inline-size: 0;
    overflow-wrap: anywhere;
  }

  .gallery-editorial-page [data-gallery-photo-dialog-caption] {
    min-inline-size: 0;
    max-inline-size: 100%;
    overflow-wrap: anywhere;
  }

  .gallery-editorial-page [data-gallery-photo-dialog-image] {
    min-inline-size: 0;
    max-inline-size: 100%;
    block-size: auto;
  }

  .gallery-editorial-page .gallery-photo-dialog__close {
    inset-block-start: 0.45rem;
    inset-inline-end: 0.45rem;
    min-inline-size: 44px;
    min-block-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-editorial-page .gallery-proof-hero__image {
    transition: none;
  }

  .gallery-editorial-page .gallery-proof-hero__image img {
    transition: none;
  }

  .gallery-editorial-page .gallery-event-card__action,
  .gallery-editorial-page .gallery-photo-dialog__close {
    transition: none;
    transform: none;
  }
}

@media (forced-colors: active) {
  .gallery-editorial-page .gallery-proof-hero__cross {
    display: none;
  }

  .gallery-editorial-page .site-footer {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  .gallery-editorial-page .site-footer .footer-brand,
  .gallery-editorial-page .site-footer h4,
  .gallery-editorial-page .site-footer .footer-tagline,
  .gallery-editorial-page .site-footer .footer-legal,
  .gallery-editorial-page .site-footer .footer-list li,
  .gallery-editorial-page .site-footer .footer-bottom {
    border-color: CanvasText;
    color: CanvasText;
  }

  .gallery-editorial-page .site-footer a {
    color: LinkText;
  }

  .gallery-editorial-page .site-footer a:focus-visible {
    outline-color: Highlight;
  }

  .gallery-editorial-page .gallery-proof-hero__image {
    border-color: CanvasText;
    box-shadow: none;
  }

  .gallery-editorial-page .gallery-filter-rail,
  .gallery-editorial-page .gallery-event-card,
  .gallery-editorial-page .gallery-selected-event,
  .gallery-editorial-page .gallery-photo-dialog {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
  }

  .gallery-editorial-page .gallery-control select,
  .gallery-editorial-page .gallery-photo-card,
  .gallery-editorial-page .gallery-photo-dialog__figure {
    border-color: CanvasText;
    color: CanvasText;
    background: Canvas;
  }

  .gallery-editorial-page .gallery-control select[disabled],
  .gallery-editorial-page .gallery-reset[disabled] {
    border-color: GrayText;
    color: GrayText;
  }

  .gallery-editorial-page .gallery-photo-dialog__close {
    border-color: CanvasText;
    color: CanvasText;
    background: Canvas;
    forced-color-adjust: auto;
  }

  .gallery-editorial-page .gallery-selected-event__links a {
    color: LinkText;
  }

  .gallery-editorial-page :is(
    [data-gallery-event-trigger],
    [data-gallery-photo-trigger],
    [data-gallery-back-to-events],
    [data-gallery-photo-dialog-close],
    .gallery-reset,
    select
  ):focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
  }
}

@media print {
  .gallery-editorial-page .gallery-proof-hero__cross {
    display: none;
  }

  .gallery-editorial-page .gallery-proof-hero {
    padding: 0;
    color: #000;
    background: #fff;
  }

  .gallery-editorial-page .gallery-proof-hero h1,
  .gallery-editorial-page .gallery-proof-hero__copy > p:not(.eyebrow),
  .gallery-editorial-page .gallery-proof-hero .breadcrumb {
    color: #000;
  }

  .gallery-editorial-page .gallery-proof-hero__frame {
    grid-template-columns: 1fr;
  }

  .gallery-editorial-page .gallery-proof-hero__collage {
    min-height: 24rem;
  }

  .gallery-editorial-page .gallery-proof-hero__image {
    box-shadow: none;
    transform: none;
  }

  .gallery-editorial-page .gallery-filter-rail,
  .gallery-editorial-page [data-gallery-back-to-events],
  .gallery-editorial-page .gallery-photo-dialog {
    display: none !important;
  }

  .gallery-editorial-page [data-gallery-grid] {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-editorial-page .gallery-photo-grid,
  .gallery-editorial-page [data-gallery-photo-grid] {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-editorial-page [data-gallery-selected-event],
  .gallery-editorial-page .gallery-photo-grid,
  .gallery-editorial-page .gallery-photo-card {
    display: grid;
  }

  .gallery-editorial-page .gallery-photo-card__media img,
  .gallery-editorial-page .gallery-photo-card__caption {
    display: block;
  }

  .gallery-editorial-page .gallery-event-card,
  .gallery-editorial-page .gallery-photo-grid > * {
    break-inside: avoid;
  }
}
