.history-gallery{margin-top:clamp(2rem,5vw,4rem)}.history-gallery h3{font-size:clamp(1.25rem,2vw,1.75rem);margin:0 0 1rem;color:var(--ink)}.history-gallery-stage{background:#101c25;border-radius:14px;overflow:hidden}.history-gallery-slide{margin:0}.history-gallery-slide[hidden]{display:none!important}.history-gallery-slide img{display:block;width:100%;height:clamp(230px,54vw,620px);object-fit:contain}.history-gallery-slide figcaption{color:#fff;padding:0 16px 12px}.history-gallery-slide figcaption:empty{display:none}.history-gallery-controls{display:flex;justify-content:center;align-items:center;gap:12px;padding:14px}.history-gallery-controls button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);cursor:pointer}.history-gallery-controls button:focus-visible,.history-gallery-admin button:focus-visible{outline:3px solid #168369;outline-offset:3px}.history-gallery-admin input[type=file]{display:block;margin:12px 0}.history-admin-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.history-admin-row img{width:120px;height:90px;object-fit:cover;border-radius:8px}.history-admin-row label{display:grid;gap:5px}.history-admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.history-admin-actions button{min-height:40px}html[data-theme=dark] .history-gallery h3{color:#eef5f5}@media(max-width:600px){.history-admin-row{grid-template-columns:80px minmax(0,1fr)}.history-admin-row img{width:80px;height:72px}.history-gallery-stage{border-radius:10px}}
.history-gallery-controls[hidden]{display:none!important}
.history-gallery-slide{position:relative;aspect-ratio:16/9;overflow:hidden}.history-gallery-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;animation:history-photo-zoom 6s linear both}.history-gallery-slide figcaption{position:absolute;inset:auto 0 0;margin:0;padding:24px 16px 12px;background:linear-gradient(transparent,#000a);z-index:1}.history-gallery-slide[hidden] img{animation:none}@keyframes history-photo-zoom{from{transform:scale(1)}to{transform:scale(1.1)}}@media(prefers-reduced-motion:reduce){.history-gallery-slide img{animation:none}}
.history-gallery .history-gallery-slide{position:relative;aspect-ratio:16/9;overflow:hidden}.history-gallery .history-gallery-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;animation:history-photo-zoom 6s linear both}.history-gallery .history-gallery-slide figcaption{position:absolute;inset:auto 0 0;margin:0;padding:24px 16px 12px;background:linear-gradient(transparent,#000a);z-index:1}.history-gallery .history-gallery-slide[hidden] img{animation:none}@media(prefers-reduced-motion:reduce){.history-gallery .history-gallery-slide img{animation:none}}

.history-gallery .history-gallery-slide:nth-of-type(8) img{object-position:center 30%}.history-gallery .history-gallery-slide:nth-of-type(17) img,.history-gallery .history-gallery-slide:nth-of-type(18) img{object-position:center 30%}
@media(max-width:600px){.history-gallery .history-gallery-slide:nth-of-type(8) img,.history-gallery .history-gallery-slide:nth-of-type(17) img,.history-gallery .history-gallery-slide:nth-of-type(18) img{object-position:center 22%}}

.history-logo-video-admin video{display:block;width:min(100%,960px);max-height:70vh;aspect-ratio:16/9;margin:16px 0;background:#101c25;border-radius:12px;object-fit:contain}.history-logo-video-admin progress{display:block;width:min(100%,960px);height:12px;margin:12px 0}.history-logo-video-admin button{margin:10px 10px 0 0}
/* Captions belong to the slideshow frame, below the untouched photograph. */
.history-gallery .history-gallery-slide{display:grid;grid-template-columns:minmax(0,1fr);aspect-ratio:auto;background:#101c25}
.history-gallery .history-gallery-slide img{position:relative;inset:auto;display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;grid-column:1;grid-row:1}
.history-gallery .history-gallery-slide figcaption{position:relative;inset:auto;grid-column:1;grid-row:2;display:block;margin:0;padding:clamp(16px,2.5vw,28px) clamp(18px,3vw,36px);background:#101c25;color:#fff!important;font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-size:clamp(1.35rem,3.4vw,2.8rem);font-weight:600;font-stretch:condensed;letter-spacing:-.02em;line-height:1.06;text-wrap:balance;overflow-wrap:anywhere;border-top:3px solid #d61936;animation:history-caption-reveal .55s cubic-bezier(.16,1,.3,1) both}
.history-gallery .history-gallery-slide figcaption:empty{display:none}
@keyframes history-caption-reveal{from{opacity:0;transform:translateY(14px);clip-path:inset(0 0 100% 0)}to{opacity:1;transform:translateY(0);clip-path:inset(0)}}
@media(prefers-reduced-motion:reduce){.history-gallery .history-gallery-slide figcaption{animation:none}}
/* Animated overlay aligned to the lower left; captions are not baked into photos. */
.history-gallery .history-gallery-slide{display:block;aspect-ratio:16/9}
.history-gallery .history-gallery-slide img{position:absolute;inset:0;height:100%;aspect-ratio:auto}
.history-gallery .history-gallery-slide figcaption{position:absolute;inset:auto 0 0;grid-area:auto;padding:clamp(36px,7vw,90px) clamp(18px,3vw,36px) clamp(16px,2.5vw,28px);background:linear-gradient(180deg,transparent 0%,rgba(5,12,20,.5) 45%,rgba(5,12,20,.9) 100%);border:0;text-align:left;text-shadow:0 2px 12px #0009;z-index:2}
