.photo-toolbar, .photo-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; margin-block-end: 1rem; }
.archive-control { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem .9rem; border-radius: .8rem; background: #eee8da; color: var(--ink); font-weight: 700; }
.archive-control:hover { background: #e3c98d; }
.archive-control:disabled { opacity: .55; cursor: default; }
.photo-thumb { display: block; width: 100%; background: #eae4d9; border-radius: .9rem; overflow: hidden; }
.photo-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.photo-thumb:hover img { transform: scale(1.045); }
#photo-modal { margin: auto; width: min(64rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: clamp(.75rem, 3vw, 1.5rem); border: 0; border-radius: 1.25rem; background: #f7f4ee; color: var(--ink); }
#photo-modal::backdrop { background: #071521dc; }
#photo-title { overflow-wrap: anywhere; font-weight: 700; }
.photo-stage { display: grid; place-items: center; min-height: 9rem; background: #0b2033; border-radius: .8rem; overflow: hidden; touch-action: pan-y; }
.photo-stage img { display: block; max-height: 64dvh; max-width: 100%; object-fit: contain; }
#photo-caption { margin-block: .5rem; }
.photo-navigation { margin-block: .75rem 0; }
.archive-header > div { gap: .75rem; }
.archive-header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; flex-shrink: 0; white-space: nowrap; }
.archive-brand > span:first-child { flex-shrink: 0; }
.archive-brand-short { display: none; }
.batch-modal-toolbar { position: sticky; inset-block-start: 0; z-index: 2; display: flex; justify-content: flex-end; padding-block: .25rem .75rem; background: #f7f4ee; }
#modal-close { display: grid; place-items: center; width: 44px; height: 44px; }
@keyframes archive-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-intro { animation: archive-enter .75s cubic-bezier(.2,.7,.25,1) both; }
  .hero-collage { animation: archive-enter .85s .08s cubic-bezier(.2,.7,.25,1) both; }
  #batch-modal[open], #photo-modal[open] { animation: archive-enter .24s ease-out both; }
}
@media (max-width: 420px) {
  .archive-header > div { gap: .65rem; padding-block: .65rem; }
  .archive-header-cta { padding-inline: .75rem; }
  .archive-brand { gap: .55rem; }
  .archive-brand-full { display: none; }
  .archive-brand-short { display: block; color: #d3dbe2; font-size: .75rem; }
  .hero-collage { height: 22rem; }
  .hero-collage > div:nth-child(2) { width: 9rem; height: 12rem; }
  .hero-collage > div:nth-child(3) { width: 11rem; height: 14rem; }
}

.archive-progress { position: fixed; inset: 0 0 auto; height: 3px; background: #e3c98d; z-index: 45; transform: scaleX(0); transform-origin: right; pointer-events: none; }
.album-tile[aria-expanded="true"] { outline: 2px solid #a67c36; outline-offset: 3px; }
#album-images > figure { min-width: 0; }
#album-viewer { scroll-margin-top: 3rem; }
#filters .filter-btn { flex: 1 1 0; min-height: 44px; white-space: nowrap; color: #475569; }
#filters .filter-btn[aria-pressed="true"] { background: var(--ink); color: white; }
#album-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; }
@media (hover: hover) {
  #filters .filter-btn[aria-pressed="false"]:hover, #album-close:hover { background: #e2e8f0; }
}
@media (max-width: 420px) {
  #filters .filter-btn { padding-inline: .5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .archive-reveal { animation: archive-enter .55s cubic-bezier(.2,.7,.25,1) backwards; }
  .year-card.archive-reveal:nth-child(even) { animation-delay: .07s; }
  #album-viewer:not(.hidden) { animation: archive-enter .26s ease-out both; }
  .hero-collage > div > img { animation: archive-photo-in .85s cubic-bezier(.2,.7,.25,1) both; }
  .hero-collage > div:nth-child(2) > img { animation-delay: .12s; }
  .hero-collage > div:nth-child(3) > img { animation-delay: .24s; }
  .hero-collage > div:nth-child(4) > img { animation-delay: .36s; }
}
@keyframes archive-photo-in {
  from { opacity: .35; transform: scale(1.07); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photo { transition: translate .26s ease, scale .26s ease, box-shadow .26s ease; }
  .hero-photo.is-touched { translate: 0 -8px; scale: 1.04; z-index: 11; box-shadow: 0 24px 46px #07152170; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-photo:hover { translate: 0 -8px; scale: 1.04; z-index: 11; box-shadow: 0 24px 46px #07152170; }
}
