/* Editorial album rhythm and immersive photo viewer. */
.album-media-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;align-items:start}
.album-media-feature{grid-column:span 2;grid-row:span 2}
.album-media-feature .album-photo-button img{aspect-ratio:4/5}
.album-media{border-color:#51442f;background:#191919;transition:border-color .25s}
.album-media:hover{border-color:var(--yellow)}
.album-photo-button{overflow:hidden}
.album-photo-button img{transition:transform .5s ease}
.album-photo-button:hover img{transform:scale(1.035)}
.album-media figcaption{padding:15px 18px}.album-media figcaption strong{font-size:15px;font-weight:500}.album-media figcaption time{font-size:12px;color:#b7ac96}
.gallery-album-actions{display:flex;gap:15px;margin:24px 0 30px}
#album-lightbox{box-sizing:border-box;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));border:0;border-radius:0;background:#0b0b0bf7;color:#f5f3ed;overflow:auto}
#album-lightbox[open]{display:flex;flex-direction:column;gap:12px}
#album-lightbox::backdrop{background:#000}
.gallery-modal-open{overflow:hidden}
.gallery-bar{display:flex;align-items:center;gap:12px;flex-shrink:0}
.gallery-wordmark{margin-right:auto;font-size:12px;letter-spacing:.17em;color:#dbb967}
.gallery-bar .button{padding:11px 17px;font-size:14px;min-height:44px}
.gallery-stage{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:160px;overflow:hidden;touch-action:pan-y pinch-zoom}
#album-photo{width:100%;height:100%;max-height:calc(100dvh - 240px);object-fit:contain;user-select:none}
#album-photo.is-revealed{animation:gallery-reveal .5s ease both}
.is-playing #album-photo.is-revealed{animation:gallery-reveal .6s ease both,gallery-drift 5s linear both}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border:1px solid #aa9064;border-radius:50%;background:#111b;color:#f5f3ed;font-size:24px;cursor:pointer}
.gallery-prev{left:8px}.gallery-next{right:8px}.gallery-arrow:disabled{opacity:.35;cursor:default}
#album-caption{margin:0;text-align:center;font-size:14px;line-height:1.4;flex-shrink:0}
.gallery-hint{text-align:center;color:#b7ac96;font-size:12px;margin:0}
.gallery-thumbnails{display:flex;gap:8px;overflow-x:auto;flex-shrink:0;padding:5px 0 8px;scrollbar-width:thin;scrollbar-color:#655238 #111}
.gallery-thumb{padding:2px;border:1px solid transparent;background:transparent;border-radius:4px;flex:0 0 56px;height:62px;cursor:pointer;opacity:.5}
.gallery-thumb[aria-current=true]{border-color:#dbb967;opacity:1}.gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:2px}
#album-lightbox button:focus-visible{outline:2px solid #dbb967;outline-offset:3px}
@keyframes gallery-reveal{from{opacity:0}to{opacity:1}}
@keyframes gallery-drift{from{transform:scale(1)}to{transform:scale(1.035)}}
@media(max-width:900px){.album-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.album-media-feature{grid-column:span 2;grid-row:auto}.album-media-feature .album-photo-button img{aspect-ratio:3/2}.album-media figcaption{padding:12px}.album-media figcaption strong{font-size:13px}}
@media(max-width:600px){.gallery-wordmark{flex-basis:100%;font-size:11px}.gallery-bar{flex-wrap:wrap}.gallery-bar .button{flex:1}.gallery-arrow{width:42px;height:42px}.gallery-prev{left:0}.gallery-next{right:0}#album-lightbox{padding-left:12px;padding-right:12px}#album-photo{max-height:calc(100dvh - 280px)}.gallery-caption{font-size:13px}.album-media-grid{gap:12px}.album-media-feature .album-photo-button img{aspect-ratio:4/3}}
@media(prefers-reduced-motion:reduce){#album-photo.is-revealed,.is-playing #album-photo.is-revealed{animation:none}.album-photo-button img,.album-media{transition:none}.album-photo-button:hover img{transform:none}}
