.live-gallery {
  --gallery-ink: #101612;
  --gallery-paper: #edece2;
  --gallery-lime: #d7f477;
  --gallery-orange: #e58855;
  --gallery-title: 'Barlow Condensed', 'Editorial display fallback', Impact, sans-serif;
  --gallery-text: 'DM Sans', Arial, sans-serif;
  color: var(--gallery-ink);
  background: var(--gallery-paper);
  font-family: var(--gallery-text);
}

.gallery-cover {
  background: var(--gallery-ink);
  color: var(--gallery-paper);
  overflow: hidden;
}
.gallery-cover-spread,
.gallery-measure {
  width: min(1440px, 100%);
  margin: auto;
  padding-inline: clamp(20px, 5.5vw, 84px);
}
.gallery-cover-spread {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(14px, 4vw, 68px);
  padding-block: clamp(32px, 5vw, 76px);
}
.gallery-dateline {
  margin: 0 0 1.6rem;
  font-size: .72rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gallery-lime);
}
.gallery-dateline span { margin-inline: .45em; color: var(--gallery-orange); }
.gallery-heading h1 {
  margin: 0;
  font: 900 clamp(100px, 11vw, 172px)/.73 var(--gallery-title);
  text-transform: uppercase;
  letter-spacing: -.025em;
  color: var(--gallery-paper);
}
.gallery-heading h1 em { color: var(--gallery-lime); font-style: normal; }
.gallery-lead {
  max-width: 22em;
  margin: 1.9rem 0 0;
  color: #d3d6c9;
  font-size: clamp(.98rem, 1.25vw, 1.2rem);
  line-height: 1.55;
}
.gallery-cover-image,
.contact-frame { margin: 0; min-width: 0; }
.gallery-cover-image > a,
.contact-frame > a {
  display: block;
  position: relative;
  overflow: hidden;
  color: var(--gallery-paper);
  background: #1c211b;
  cursor: zoom-in;
}
.gallery-cover-image img,
.contact-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.gallery-cover-image > a { aspect-ratio: 1.57; }
.gallery-cover-image figcaption {
  margin-top: 10px;
  color: #c1c6bc;
  font-size: .75rem;
  line-height: 1.45;
}
.open-photo {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: var(--gallery-paper);
  color: var(--gallery-ink);
  padding: .64rem .9rem;
  font-size: .77rem;
  font-weight: 700;
}
.expand-icon { display: inline-block; width: 15px; height: 15px; position: relative; }
.expand-icon::before, .expand-icon::after {
  content: '';
  width: 42%;
  height: 42%;
  position: absolute;
  border: solid currentColor;
}
.expand-icon::before { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.expand-icon::after { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }

.gallery-collection { padding-block: clamp(48px, 6.5vw, 104px); }
.collection-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(25px, 3vw, 46px);
}
.collection-heading h2 {
  margin: 0;
  color: var(--gallery-ink);
  font: 800 clamp(42px, 5.3vw, 84px)/.92 var(--gallery-title);
  letter-spacing: -.018em;
  text-transform: uppercase;
}
.collection-heading p, .gallery-press p {
  margin: 0;
  line-height: 1.55;
  font-size: clamp(.9rem, 1.05vw, 1rem);
  color: #485446;
}
.collection-heading p { max-width: 33em; justify-self: end; }
.contact-sheet {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 1.8vw, 28px);
  row-gap: clamp(24px, 3vw, 46px);
}
.contact-frame { grid-column: span 4; display: flex; flex-direction: column; }
.contact-frame:nth-child(1), .contact-frame:nth-child(6) { grid-column: span 7; }
.contact-frame:nth-child(2), .contact-frame:nth-child(7) { grid-column: span 5; }
.contact-frame > a { aspect-ratio: 1.36; }
.contact-frame:nth-child(1) > a, .contact-frame:nth-child(6) > a { aspect-ratio: 1.66; }
.contact-frame:nth-child(2) > a, .contact-frame:nth-child(7) > a { aspect-ratio: auto; flex: 1; }
.contact-frame img { position: absolute; inset: 0; transition: transform .3s ease; }
.contact-frame img[height="1536"] { object-position: 50% 24%; }
.contact-frame figcaption {
  border-bottom: 1px solid #bebfb2;
  padding: .65rem 0;
  color: var(--gallery-ink);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.3;
}
.frame-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border: 7px solid transparent;
  background: #101612dd;
}
.live-gallery :is(a, button):focus-visible {
  outline: 3px solid #b45122;
  outline-offset: 3px;
}
.gallery-cover a:focus-visible, .photo-viewer button:focus-visible {
  outline-color: var(--gallery-lime);
}
@media (hover: hover) {
  .contact-frame a:hover img { transform: scale(1.025); }
  .gallery-cover-image a:hover .open-photo { background: var(--gallery-lime); }
}
.gallery-press {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 24px;
  border-top: 1px solid #aaa99e;
}
.gallery-press p { max-width: 56ch; }
.gallery-press a {
  color: var(--gallery-ink);
  text-decoration: underline;
  text-underline-offset: .28em;
  font-weight: 700;
}

html.photo-view-open { overflow: hidden; }
.photo-viewer {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  overflow: hidden;
  color: var(--gallery-paper);
  background: #0b0f0c;
}
.photo-viewer:not([open]) { display: none; }
.photo-viewer::backdrop { background: #0b0f0c; }
.viewer-layout {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}
.viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #3b433b;
}
.viewer-bar h2 {
  font: 700 clamp(1.15rem, 2vw, 1.6rem)/1.1 var(--gallery-title);
  color: var(--gallery-paper);
  text-transform: uppercase;
  margin: 0;
}
.viewer-bar h2 span {
  display: inline-block;
  font: 600 .65rem/1.4 var(--gallery-text);
  letter-spacing: .1em;
  margin-left: 1em;
  color: #b7c0ae;
  vertical-align: middle;
}
.viewer-bar button, .viewer-stage button, .viewer-strip button {
  color: var(--gallery-paper);
  font-family: var(--gallery-text);
  cursor: pointer;
  border: 1px solid #646d61;
  background: #101612ed;
  border-radius: 0;
}
.viewer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 650;
  font-size: .85rem;
  min-height: 44px;
  padding: 0 14px;
}
.close-cross { position: relative; width: 15px; height: 15px; }
.close-cross::before, .close-cross::after {
  content: ''; position: absolute; background: currentColor;
  width: 16px; height: 1.5px; top: 7px; left: 0;
  transform: rotate(45deg);
}
.close-cross::after { transform: rotate(-45deg); }
.viewer-stage { position: relative; min-height: 0; }
.viewer-image { width: 100%; height: 100%; object-fit: contain; touch-action: pan-y pinch-zoom; }
.viewer-exposure { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; background: #0b0f0c; }
.viewer-step {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
}
.viewer-back { left: 0; }
.viewer-next { right: 0; }
.viewer-step > span {
  display: block;
  width: 12px;
  height: 12px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: translateX(-2px) rotate(45deg);
}
.viewer-back > span { transform: translateX(2px) rotate(-135deg); }
.viewer-details {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  padding: 10px 0;
  line-height: 1.3;
}
.viewer-count {
  color: var(--gallery-lime);
  font: 700 .72rem var(--gallery-text);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.viewer-caption { font-size: .9rem; font-weight: 600; }
.viewer-strip {
  display: flex;
  position: relative;
  gap: 5px;
  max-width: 100%;
  justify-self: center;
  overflow-x: auto;
  padding: 5px;
  scrollbar-width: thin;
  scrollbar-color: #646d61 #0b0f0c;
}
.viewer-strip button { width: 62px; height: 44px; padding: 2px; flex: none; }
.viewer-strip button[aria-current] { border: 2px solid var(--gallery-lime); padding: 1px; }
.viewer-strip img { width: 100%; height: 100%; display: block; object-fit: cover; }
@media (max-width: 720px) {
  .gallery-cover-spread { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .gallery-heading h1 { font-size: clamp(75px, 15vw, 110px); line-height: .87; }
  .gallery-heading h1 br { display: none; }
  .gallery-heading h1 em::before { content: ' '; }
  .gallery-dateline { margin-bottom: .85rem; }
  .gallery-lead { max-width: none; margin-top: 1rem; }
  .gallery-cover-image > a { aspect-ratio: 1.5; }
  .collection-heading { grid-template-columns: auto; gap: 12px; }
  .collection-heading p { justify-self: start; }
  .contact-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-frame:nth-child(n) { grid-column: auto; }
  .contact-frame:nth-child(n) > a { flex: none; aspect-ratio: 1.15; }
  .contact-frame:nth-child(5n + 1) { grid-column: 1 / -1; }
  .contact-frame:nth-child(5n + 1) > a { aspect-ratio: 1.55; }
  .gallery-press { flex-direction: column; align-items: start; gap: 14px; }
}
@media (max-width: 420px) {
  .gallery-cover-spread, .gallery-measure { padding-inline: 16px; }
  .frame-expand { right: 6px; bottom: 6px; }
  .viewer-bar h2 span { display: block; margin: 3px 0 0; }
}
@media (max-height: 500px) {
  .viewer-strip { display: none; }
  .viewer-layout { padding-block: 4px; }
  .viewer-details, .viewer-bar { padding-block: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-frame img { transition: none; }
  .contact-frame a:hover img { transform: none; }
}
.photo-title, .photo-credit, .photo-collection { display:block; }
.photo-credit, .photo-collection, .viewer-credit { font-size:.72rem; line-height:1.45; font-weight:500; }
.photo-credit, .photo-collection { margin-top:.18rem; }
.viewer-credit:empty, .viewer-collection:empty { display:none; }
.viewer-credit { color:#c5c8bd; }
.viewer-details { flex-wrap:wrap; row-gap:3px; }
.gallery-credit { margin: .9rem 0 0; font-size: .85rem; line-height: 1.45; }
