/* One event album, with captions supplied by the user for each exact photo. */
.day-section { padding-block: 42px !important; scroll-margin-top: 100px; }
.day-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.day-heading h2 { margin: 10px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem,3.2vw,3rem); line-height: 1.08; letter-spacing: -.025em; }
.day-meta { color: var(--ink-soft); font-size: .78rem; line-height: 1.6; text-align: right; }
.day-meta p { margin: 0; }
.day-album { --day-height: clamp(380px,35vw,500px); display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 16px 22px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper,#fffdf9); }
.day-stage { min-width: 0; height: calc(var(--day-height) + 50px); }
.day-slide { margin: 0; width: 100%; }
.day-slide[hidden] { display: none !important; }
.day-open { display: block; position: relative; width: 100%; height: var(--day-height); margin: 0; padding: 0; border: 0; border-radius: 4px; background: #171d19; color: #fffdf9; cursor: zoom-in; overflow: hidden; }
.day-open[data-video-src] { cursor: pointer; }
.day-open > img { display: block; position: static; width: 100%; height: 100%; object-fit: contain; }
.day-open-icon { position: absolute; bottom: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #171d19cc; color: #fff; font: 22px/1 Arial,sans-serif; }
.day-open[data-video-src] .day-open-icon { left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%,-50%); width: 54px; height: 54px; border: 1px solid #ffffffa0; font-size: 22px; }
.day-photo-names { margin: 0; padding: 12px 0 0; color: var(--ink); font-size: .86rem; line-height: 1.4; font-weight: 500; }
.day-thumbnails { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(6,minmax(0,1fr)); gap: 10px; height: var(--day-height); min-width: 0; }
.day-thumb { display: grid; grid-template-rows: minmax(0,1fr) 18px; gap: 3px; width: 100%; min-width: 0; padding: 3px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.day-thumb > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #e7e4dc; border-radius: 2px; }
.day-thumb > span { font-family: var(--font-mono); font-size: .6rem; line-height: 18px; }
.day-thumb[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #ff43100a; }
.day-thumb:hover { border-color: var(--moss); }
.day-open:focus-visible,.day-thumb:focus-visible,.day-arrows button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.day-controls { grid-column: 1/-1; display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.day-position { margin: 0; min-width: 110px; font-family: var(--font-mono); font-size: .72rem; line-height: 1.5; color: var(--moss); }
.day-hint { margin: 0; color: var(--ink-soft); font-size: .76rem; line-height: 1.4; }
.day-arrows { display: flex; gap: 8px; margin-left: auto; }
.day-arrows button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 20px; }
.day-arrows button:hover { color: var(--paper); background: var(--ink); }
#cultureLightbox .lightbox__figure { max-height: 78vh; }
#cultureLightbox .lightbox__img { max-height: 78vh; }
#cultureLightbox .lightbox__footer { position: absolute; bottom: 16px; left: 70px; right: 70px; z-index: 2; text-align: center; color: #fffdf9; }
#cultureLightbox .day-lightbox-caption { margin: 0 0 8px; font-size: .9rem; line-height: 1.4; }
#cultureLightbox .lightbox__counter { position: static; margin: 0; }
@media(max-width:1000px) {
 .day-album { grid-template-columns: minmax(0,1fr) 240px; --day-height: 400px; }
 .day-thumbnails { gap: 6px; }
}
@media(max-width:700px) {
 .day-section { padding-block: 28px !important; }
 .day-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 18px; }
 .day-heading h2 { font-size: 2rem; }
 .day-meta { text-align: left; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .7rem; }
 .day-album { display: flex; flex-direction: column; padding: 10px; gap: 12px; --day-height: clamp(220px,70vw,400px); }
 .day-stage { height: calc(var(--day-height) + 66px); }
 .day-photo-names { font-size: .82rem; }
 .day-thumbnails { order: 3; display: flex; height: 76px; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 3px; }
 .day-thumb { flex: 0 0 82px; height: 68px; scroll-snap-align: center; }
 .day-controls { order: 2; gap: 10px; padding-top: 10px; }
 .day-position { font-size: .67rem; }
 .day-hint { display: none; }
 .day-arrows button { width: 36px; height: 36px; }
 #cultureLightbox .lightbox__footer { left: 20px; right: 20px; bottom: 18px; }
 #cultureLightbox .day-lightbox-caption { font-size: .8rem; }
}
