/* Generated by scripts/fetch-manrope.mjs — do not edit by hand. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Self-hosted Manrope (/fonts/*.woff2 via fonts:fetch / prebuild). */

/* PUB-72: size-adjusted system fallback limits swap CLS. */
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 104%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  color: #0a0a0a;
  background: #ffffff;
  font-family: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.site {
  position: relative;
  min-height: 100vh;
  background: #ffffff;
  color: #0a0a0a;
}

.site-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 148px;
  padding: 0 40px;
}

.site-logo {
  display: flex;
  align-items: center;
  height: 120px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
}

.site-logo-img {
  display: block;
  height: 120px;
  width: auto;
}

.site-hdr-actions {
  display: flex;
  gap: 6px;
}

.site-icobtn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.site-icobtn:hover {
  background: #f0f0f0;
}

.site-icobtn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #0a0a0a;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-icobtn.is-on {
  background: #0a0a0a;
}

.site-icobtn.is-on svg {
  stroke: #fff;
}

.site-icobtn:focus-visible,
.site-logo:focus-visible {
  outline: 3px solid #0a0a0a;
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  .site-hdr {
    height: 128px;
    padding: 0 28px;
  }

  .site-logo {
    height: 100px;
  }

  .site-logo-img {
    height: 100px;
  }
}

@media (max-width: 639px) {
  .site-hdr {
    height: 112px;
    padding: 0 16px;
  }

  .site-logo {
    height: 88px;
  }

  .site-logo-img {
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-icobtn {
    transition: none;
  }
}

.site-intro {
  padding: 0 40px 18px;
}

.site-intro-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0a0a0a;
}

.site-intro-byline {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
  color: #666666;
}

@media (max-width: 1023px) {
  .site-intro {
    padding: 0 28px 16px;
  }

  .site-intro-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 639px) {
  .site-intro {
    padding: 0 16px 14px;
  }

  .site-intro-title {
    font-size: 1.125rem;
  }

  .site-intro-byline {
    font-size: 0.875rem;
  }
}

.site-filters {
  display: flex;
  align-items: baseline;
  gap: 4px 18px;
  flex-wrap: wrap;
  padding: 4px 40px 20px;
}

.site-filters::-webkit-scrollbar {
  display: none;
}

.site-filter {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #555555;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  text-underline-offset: 5px;
}

.site-filter:hover {
  color: #0a0a0a;
}

.site-filter.is-on {
  color: #0a0a0a;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.site-filter:focus-visible,
.site-clear-filters:focus-visible,
.site-empty-clear:focus-visible {
  outline: 3px solid #0a0a0a;
  outline-offset: 3px;
}

.site-clear-filters {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
  color: #888888;
  cursor: pointer;
}

.site-empty {
  padding: 72px 40px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #555;
}

.site-empty p {
  margin: 0 0 16px;
}

.site-empty-clear {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid #0a0a0a;
  background: #fff;
  color: #0a0a0a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.site-manifest-status {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-home {
  padding: 0 0 56px;
  /* PUB-12: brief fade when the filtered set changes. */
  animation: site-filter-fade 200ms ease;
}

/* PUB-22 / A-07: edge fade while more remain; retry if append failed. */
.roll-footer {
  width: 100%;
}

.roll-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.roll-fade {
  height: 88px;
  margin-top: -40px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 55%,
    #ffffff 100%
  );
}

.roll-fade.is-busy {
  animation: roll-fade-pulse 1.4s ease-in-out infinite;
}

.roll-retry {
  display: block;
  width: 100%;
  margin: 0;
  padding: 20px 0 64px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #555555;
  cursor: pointer;
}

.roll-retry:hover {
  color: #0a0a0a;
}

.roll-retry:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 4px;
}

.roll-end {
  padding: 8px 0 72px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
}

@keyframes roll-fade-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@keyframes site-filter-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1023px) {
  .site-filters {
    padding: 4px 28px 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

@media (max-width: 639px) {
  .site-filters {
    padding: 2px 16px 14px;
  }

  .site-empty {
    padding: 56px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-home {
    animation: none;
  }

  .roll-fade.is-busy {
    animation: none;
  }
}

.site-stub {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
}

.site-stub p {
  margin: 0;
  max-width: 28rem;
  color: #555555;
}

/* About (ABT-01 / ABT-02): portrait 5 + copy 6, 72 px gap, ≤1180. */
.site-about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
  padding: 24px 40px 96px;
}

.site-about-copy {
  min-width: 0;
}

.site-about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: #ececec;
}

.site-about-portrait-placeholder {
  background: #ececec;
}

.site-about-portrait > picture,
.site-about-portrait > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.site-about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Colour portrait (ABT-03); grid grayscale must not apply here. */
  filter: none;
}

.site-about-copy h1 {
  margin: 0 0 6px;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-about-role {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: #555555;
}

.site-about-location {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: #777777;
}

.site-about-gear {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #999999;
}

.site-about-copy > p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
  color: #1c1c1c;
}

.site-about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.site-about-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.site-about-link-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #0a0a0a;
}

.site-about-link-label {
  text-decoration: inherit;
}

.site-about-links a:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .site-about {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 640px;
    padding: 16px 28px 80px;
  }
}

@media (max-width: 640px) {
  .site-about {
    gap: 24px;
    padding: 8px 16px 64px;
  }

  .site-about-copy h1 {
    font-size: 34px;
  }
}

/* Contact (CON-07): single column ≤640, 54 px inputs, ≥48 px reason pills. */
.site-contact {
  width: 100%;
  max-width: 640px;
  min-width: 0;
  margin: 0 auto;
  padding: 24px 40px 96px;
}

.site-contact-form,
.site-contact-success {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.site-contact h1 {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-contact-success h1:focus {
  outline: none;
}

.site-contact-success h1:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 2px;
}

.site-contact-success p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
  color: #1c1c1c;
}

.site-contact-summary {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #c45c5c;
  background: #fff6f6;
  color: #8a1f1f;
}

.site-contact-summary p {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.site-contact-summary ul {
  margin: 0;
  padding: 0 0 0 1.15em;
}

.site-contact-summary li {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
}

.site-contact-form-message {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: #8a1f1f;
}

.site-contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.site-contact-field > label,
.site-contact-reasons > legend {
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
}

.site-contact-input {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #c9c9c9;
  border-radius: 2px;
  background: #ffffff;
  color: #0a0a0a;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.site-contact-textarea {
  min-height: 160px;
  resize: vertical;
}

.site-contact-input:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 2px;
}

.site-contact-input:disabled {
  opacity: 0.65;
}

.site-contact-error {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #b42318;
}

.site-contact-reason-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.site-contact-reason {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #555555;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  text-underline-offset: 5px;
}

.site-contact-reason.is-on {
  color: #0a0a0a;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.site-contact-reason:focus-within {
  outline: 2px solid #0a0a0a;
  outline-offset: 3px;
}

.site-contact-reason input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0a0a0a;
}

.site-contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-contact-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 4px 0 0;
  padding: 0 28px;
  border: 0;
  border-radius: 2px;
  background: #0a0a0a;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.site-contact-send:hover:not(:disabled) {
  background: #222222;
}

.site-contact-send:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 3px;
}

.site-contact-send:disabled {
  opacity: 0.55;
  cursor: wait;
}

.site-contact-privacy {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  color: #888888;
}

.site-contact-privacy a {
  color: #555555;
  font-weight: 600;
  text-underline-offset: 3px;
}

.site-contact-privacy a:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .site-contact {
    padding: 8px 16px 64px;
  }

  .site-contact h1 {
    font-size: 34px;
  }
}

/* Privacy (CON-31): single column prose, same width as contact. */
.site-privacy {
  width: 100%;
  max-width: 640px;
  min-width: 0;
  margin: 0 auto;
  padding: 16px 24px 80px;
  box-sizing: border-box;
}

.site-privacy h1 {
  margin: 0 0 20px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #0a0a0a;
}

.site-privacy h2 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #0a0a0a;
}

.site-privacy p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: #222222;
}

.site-privacy a {
  color: #0a0a0a;
  font-weight: 600;
  text-underline-offset: 3px;
}

.site-privacy a:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .site-privacy {
    padding: 8px 16px 64px;
  }

  .site-privacy h1 {
    font-size: 34px;
  }
}

.masonry-grid {
  /* Column count set inline from layoutClassForWidth (PUB-05). */
  display: grid;
  align-items: start;
  padding-bottom: 40px;
}

.masonry-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  /* No layout containment: polaroid z-index must stack over adjacent columns (A-02). */
}

.masonry-tile {
  position: relative;
  /* z-index baseline matches Site.dc.html; .is-polaroid raises to 30. */
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  /* Transform only: layout box stays put so neighbours do not move (A-02). */
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* CSS aspect-ratio from cover w/h reserves the box before decode (A-01 / no CLS). */
}

/* PUB-74: keyboard focus ring on grid tiles (2 px black). */
.masonry-tile:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 2px;
}

.masonry-frame {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    inset 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.32s ease;
  pointer-events: none;
}

.masonry-sk {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: #f3f3f3;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease;
}

.masonry-sk svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #0a0a0a;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.masonry-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0;
  /* Grayscale(100%) from first paint; colour only when polaroid + loaded (A-02). */
  filter: grayscale(100%) contrast(1.04);
  /* PUB-15: fade after flash; --reveal-delay staggers a column (~85 ms). */
  transition:
    opacity 0.45s ease var(--reveal-delay, 0ms),
    filter 0.32s ease;
}

.masonry-tile.is-loaded .masonry-photo {
  opacity: 1;
}

.masonry-tile.is-loaded .masonry-sk {
  opacity: 0;
  pointer-events: none;
}

/* PUB-15: white flash when the camera "takes" the photograph. */
.masonry-flash {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.masonry-tile.is-loaded .masonry-flash {
  animation: masonry-flash 0.6s ease-out both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes masonry-flash {
  0% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}

.masonry-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  height: 34px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0a0a0a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.3s ease;
  pointer-events: none;
}

.masonry-cap svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: #0a0a0a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.masonry-cap span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PUB-18 / A-02: polaroid chrome from mouse enter/leave (gated in JS). */
.masonry-tile.is-polaroid {
  z-index: 30;
  transform: translateY(-6px) scale(1.035) rotate(var(--tilt, -1deg));
}

.masonry-tile.is-polaroid .masonry-frame {
  inset: -10px -10px -46px -10px;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.16);
}

.masonry-tile.is-polaroid .masonry-cap {
  opacity: 1;
  transform: none;
  transition-delay: 0.06s;
}

/* Colour only after decode; pre-load hover keeps grayscale(100%). */
.masonry-tile.is-polaroid.is-loaded .masonry-photo {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .masonry-tile,
  .masonry-frame,
  .masonry-photo,
  .masonry-sk,
  .masonry-cap {
    transition: none;
  }

  /* PUB-16 / A-11: no flash, stagger, or tilt. */
  .masonry-tile.is-loaded .masonry-flash {
    animation: none;
  }

  .masonry-tile.is-polaroid {
    transform: translateY(-6px) scale(1.035);
  }
}

.masonry-gicon {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.masonry-gicon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Photo modal over grid (PUB-50–56 / A-03–A-05). Colour here; grid stays B&W. */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(51, 51, 51, 0.5);
  overscroll-behavior: none;
  touch-action: none;
  animation: photo-modal-fade 0.22s ease both;
}

@keyframes photo-modal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Flash only the opened photograph, not the dimmed grid behind. */
.photo-modal-flash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #ffffff;
  animation: photo-modal-flash 0.32s ease-out both;
}

@keyframes photo-modal-flash {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
  }
}

.photo-modal-slides {
  position: absolute;
  inset: 0;
  display: flex;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  overscroll-behavior: contain;
}

.photo-modal-slides::-webkit-scrollbar {
  display: none;
}

.photo-modal-slides.is-v {
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
}

.photo-modal-slides.is-h {
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}

.photo-modal-slide {
  flex: 0 0 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
}

.photo-modal-frame {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Counter + close sit above the frame, not over the photograph. */
.photo-modal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  min-height: 48px;
}

.photo-modal-chrome-start {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.photo-modal-shot {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  border-style: solid;
  border-color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  /* Cover fills the box; no letterbox fill colour behind the photo. */
  background: #ffffff;
  overflow: hidden;
  /* Keep camera-flash + pop paint inside this frame only (not the grid). */
  contain: paint;
  animation: photo-modal-pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes photo-modal-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Picture fills the shot. Cover crops a hair so we never pad with white
   bands (contain letterboxing). The white frame is the CSS border only. */
.photo-modal-shot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-modal-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Modal shows colour (PUB-07); grayscale stays on the grid only. */
  filter: none;
  opacity: 1;
  background: transparent;
}

.photo-modal-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.photo-modal-nav {
  position: absolute;
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.photo-modal-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-modal-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.photo-modal-nav:focus-visible {
  outline: 3px solid #0a0a0a;
  outline-offset: 3px;
}

.photo-modal-nav.is-prev-v {
  top: 50%;
  right: 72px;
  transform: translateY(calc(-50% - 32px));
}

.photo-modal-nav.is-next-v {
  top: 50%;
  right: 72px;
  transform: translateY(calc(-50% + 32px));
}

.photo-modal-nav.is-prev-h {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.photo-modal-nav.is-next-h {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 639px) {
  .photo-modal-nav.is-prev-h {
    left: 12px;
  }

  .photo-modal-nav.is-next-h {
    right: 12px;
  }
}

.photo-modal-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: #e8e8e8;
}

.photo-modal-close {
  position: relative;
  flex: 0 0 auto;
  z-index: 5;
  width: 48px;
  height: 48px;
  margin: 0;
  margin-left: auto;
  border-radius: 50%;
  border: 0;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  color: inherit;
}

.photo-modal-close--viewport {
  position: absolute;
  top: 20px;
  right: 20px;
  margin: 0;
}

.photo-modal-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #0a0a0a;
  stroke-width: 2;
  stroke-linecap: round;
}

.photo-modal-close:focus-visible {
  outline: 3px solid #0a0a0a;
  outline-offset: 3px;
}

.photo-modal-counter {
  position: relative;
  z-index: 5;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.65);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
  white-space: nowrap;
}

.photo-modal-cap--footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.photo-modal-cap--footer span {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.65);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Desktop: location stays at the bottom. Mobile uses the chrome copy. */
.photo-modal-cap--chrome {
  display: none;
  max-width: 11rem;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.photo-modal-dots {
  position: absolute;
  z-index: 5;
  display: flex;
  gap: 2px;
}

.photo-modal-dots.is-v {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
}

.photo-modal-dots.is-h {
  left: 0;
  right: 0;
  bottom: 72px;
  justify-content: center;
  pointer-events: none;
}

.photo-modal-dot {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
}

.photo-modal-dot span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.photo-modal-dot.is-on span {
  opacity: 1;
  transform: scale(1.25);
}

.photo-modal-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.photo-modal-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: #fff;
}

.photo-modal-empty p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.photo-modal-home {
  justify-self: center;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: #0a0a0a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.photo-modal-home:focus-visible {
  outline: 3px solid #0a0a0a;
  outline-offset: 3px;
}

@media (max-width: 639px) {
  /* Keep chrome inset toward center so edges are not clipped. */
  .photo-modal-chrome {
    align-self: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    max-width: calc(100vw - 48px);
    margin-bottom: 8px;
    min-height: 44px;
    padding: 0 4px;
  }

  .photo-modal-chrome-start {
    gap: 6px;
  }

  .photo-modal-close {
    width: 44px;
    height: 44px;
    margin-left: 0;
  }

  .photo-modal-close--viewport {
    top: 12px;
    right: 12px;
  }

  .photo-modal-counter {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Location above the photo (before counter), not over the bottom dots. */
  .photo-modal-cap--footer {
    display: none;
  }

  .photo-modal-cap--chrome {
    display: block;
  }

  /* Light plate so white/dark dots stay readable over bright photos. */
  .photo-modal-dots.is-h {
    left: 50%;
    right: auto;
    bottom: 20px;
    width: max-content;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8e8e8;
    gap: 0;
  }

  .photo-modal-dots.is-h .photo-modal-dot span {
    background: #0a0a0a;
    opacity: 0.35;
  }

  .photo-modal-dots.is-h .photo-modal-dot.is-on span {
    opacity: 1;
  }

  .photo-modal-dots.is-h .photo-modal-dot:focus-visible {
    outline-color: #0a0a0a;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-modal,
  .photo-modal-shot,
  .photo-modal-dot span {
    animation: none;
    transition: none;
  }

  .photo-modal-flash {
    display: none;
    animation: none;
  }
}

