@font-face {
  font-family: "PF DIN Text Pro";
  src: url("../../assets/fonts/PFDINTextPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root { font-family: "PF DIN Text Pro", Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #fff; }
button, a { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.slideshow-page { overflow: hidden; color-scheme: light; }
.slideshow { position: fixed; inset: 0; display: grid; place-items: center; background: #fff; touch-action: pan-y; }
.slideshow[hidden], .slide-overview[hidden], .slide-controls [hidden] { display: none; }
.slideshow-page.is-overview { overflow: auto; }
.slide-overview { max-width: 1600px; margin: auto; padding: clamp(24px, 5vw, 72px); color: #111; }
.overview-header { margin-bottom: 36px; }
.overview-header a { color: inherit; text-decoration: none; }
.overview-header h1 { margin: 28px 0 12px; font-size: clamp(28px, 4vw, 48px); font-weight: 400; }
.overview-header p { color: #666; font-size: 18px; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.overview-tile { display: block; color: inherit; text-decoration: none; }
.overview-tile img { display: block; width: 100%; aspect-ratio: 1040 / 720; object-fit: contain; background: #fff; border: 1px solid #ddd; }
.overview-tile span { display: block; padding-top: 10px; }
.overview-tile:hover img { border-color: #111; }
.overview-tile:focus-visible { outline: 2px solid #111; outline-offset: 6px; }
.slide-overview-button { top: max(18px,env(safe-area-inset-top)); right: calc(max(18px,env(safe-area-inset-right)) + 66px); }
.slide-stage { width: 100vw; height: 100dvh; margin: 0; display: grid; place-items: center; }
.slide-stage img, .slide-stage video { display: block; width: 100vw; height: auto; max-height: 100dvh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.slide-stage video { background: #fff; }
.slide-stage [hidden] { display: none; }
.slide-stage img.is-changing { opacity: .15; }

.slide-controls { position: fixed; z-index: 2; inset: 0; pointer-events: none; }
.slide-controls button, .slide-controls a, .slide-count {
  position: absolute; display: grid; place-items: center; width: 54px; height: 54px;
  padding: 0; border: 0; border-radius: 0; color: #fff; background: rgba(55,55,55,.62);
  text-decoration: none; filter: drop-shadow(0 2px 9px rgba(0,0,0,.28));
  pointer-events: auto;
}
.slide-controls button, .slide-controls a { cursor: pointer; }
.slide-controls svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; stroke-linejoin: miter; }
.slide-controls button:hover, .slide-controls a:hover,
.slide-controls button:focus-visible, .slide-controls a:focus-visible { color: #111; background: rgba(255,255,125,.96); outline: 2px solid #fff; outline-offset: 2px; }
.slide-count {
  top: max(18px,env(safe-area-inset-top)); left: max(18px,env(safe-area-inset-left));
  width: auto; min-width: 72px; padding-inline: 13px; font-size: 17px;
}
.slide-close { top: max(18px,env(safe-area-inset-top)); right: max(18px,env(safe-area-inset-right)); }
.slide-arrow { top: 50%; translate: 0 -50%; }
.slide-arrow-prev { left: max(18px,env(safe-area-inset-left)); }
.slide-arrow-next { right: max(18px,env(safe-area-inset-right)); }

.gallery-index { color: #111; background: #fff; }
.gallery-content { min-height: calc(100svh - var(--header-h)); padding: var(--content-top) var(--pad-x) 90px; }
.gallery-content h1 { margin: 0 0 clamp(28px,4vw,58px); font-size: 24px; line-height: 1.25; font-weight: 400; letter-spacing: .06em; }
.gallery-index .section-panel li + li { margin-top: 11px; }
.gallery-index .section-panel a { display: block; overflow: hidden; font-size: 19px; white-space: nowrap; text-overflow: ellipsis; }
.gallery-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(22px,3vw,46px); }
.gallery-card { color: inherit; text-decoration: none; }
.gallery-media { width: 100%; aspect-ratio: 1040 / 720; overflow: hidden; background: #777; }
.gallery-card img, .gallery-card video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity .2s ease; }
.gallery-card:hover img, .gallery-card:hover video { opacity: .82; }
.gallery-card span { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 18px; }
.gallery-card strong { font-weight: 400; }
.gallery-card small { color: #777; font-size: inherit; white-space: nowrap; }

.retired-slideshow-page { color: #111; background: #fff; }
.retired-slideshow-main { min-height: 100svh; padding: clamp(70px,12vh,150px) var(--pad-x); background: #fff; }
.retired-slideshow-main section { max-width: 720px; margin: 0 0 64px; }
.retired-slideshow-main h1, .retired-slideshow-main h2 { margin: 0 0 20px; font-size: clamp(28px,4vw,48px); line-height: 1.1; font-weight: 400; }
.retired-slideshow-main p { max-width: 620px; margin: 0 0 18px; font-size: 20px; line-height: 1.45; }

@media (max-width: 680px) {
  .slide-controls button, .slide-controls a { width: 46px; height: 46px; }
  .slide-controls svg { width: 28px; height: 28px; }
  .slide-count { width: auto; min-width: 62px; height: 46px; padding-inline: 10px; font-size: 15px; }
  .slide-count, .slide-arrow-prev { left: max(10px,env(safe-area-inset-left)); }
  .slide-close, .slide-arrow-next { right: max(10px,env(safe-area-inset-right)); }
  .slide-count, .slide-close { top: max(10px,env(safe-area-inset-top)); }
  .gallery-content { padding: 34px 22px 64px; }
  .gallery-content h1 { margin-bottom: 28px; font-size: 20px; }
  .gallery-list { grid-template-columns: 1fr; }
  .gallery-card span { font-size: 16px; }
}

@media (max-width: 1100px) and (min-width: 681px) {
  .gallery-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  .slide-stage img { transition: opacity .12s ease; }
}
