/* Recorrido continuo: cada composición conserva su propio lienzo. */
html { height: auto; scroll-behavior: auto; }
body.archive { display: block; height: auto; overflow-x: clip; overflow-y: auto; }
.archive > main { width: 100%; margin: 0; }
.archive .canvas { flex-shrink: 0; isolation: isolate; }
.archive h2 { margin: 0; font-weight: 400; }
.archive .story { overscroll-behavior-y: auto; }
.archive .photos { position: relative; background: #000; color: #fff; overflow: hidden; }
.archive .photos {
* { box-sizing: border-box; }
& { background: #000; color: #fff; }
& { margin: 0; font-family: 'Times New Roman', Times, serif; }
header { padding: 2.7vw 3.55vw 0; }
h2 { display: flex; align-items: flex-end; margin: 0; font-size: clamp(24px,1.6667vw,36px); line-height: 1.15; font-weight: 400; }
h2 span { width: 6.6667vw; min-width: 70px; border-bottom: 1px solid white; margin: 0 0 -2px 4px; }
.photo-gallery { width: 88%; max-width: 1800px; margin: 4.2vw auto 0; }
.spread { display: grid; gap: 2.1vw; margin-bottom: 7.5vw; align-items: center; }
figure { margin: 0; min-width: 0; }
figure img { display: block; width: 100%; height: auto; }
.opening { grid-template-columns: 1.9fr 1fr; align-items: center; }
.companions { display: grid; gap: 2.1vw; }
.geometry { grid-template-columns: 1.45fr 1fr; align-items: center; column-gap: 6vw; }
.geometry .portrait { width: 85%; justify-self: end; }
.night { width: 76%; margin-left: auto; margin-right: auto; }
.closing { grid-template-columns: .8fr .8fr 1.4fr; align-items: center; gap: 3vw; }
footer { display: flex; flex-direction: column; align-items: flex-end; padding: 0 2.1vw 2vw; gap: 4px; }
.back { position: relative; color: white; width: 64px; height: 28px; text-align: center; text-decoration: none; font-size: 20px; }
.back svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: white; stroke-width: 1; }
.back span { position: relative; top: 2px; }
.back:focus-visible { outline: 1px solid white; outline-offset: 4px; }
.character { width: 55px; height: 76px; object-fit: contain; }
@media (max-width: 650px) {
 header { padding: 28px 6% 0; }
 .photo-gallery { margin-top: 36px; }
 .spread { gap: 20px; margin-bottom: 48px; }
 .opening { grid-template-columns: 1fr; }
 .companions { grid-template-columns: 1fr 1fr; gap: 16px; }
 .geometry { grid-template-columns: 1fr 1fr; gap: 20px; }
 .geometry .portrait { width: 100%; }
 .night { width: 100%; }
 .closing { grid-template-columns: 1fr 1fr; gap: 20px; }
 .building { grid-column: 1 / -1; }
 footer { padding: 0 6% 24px; }
}

@media (max-width:700px) { .back { min-height:44px; line-height:36px; } .back svg { top:8px; height:28px; } footer { padding-bottom:max(24px,env(safe-area-inset-bottom)); } }

}
.archive .photos h2 span { position: static; }
.archive .photos footer .back, .archive .photos footer .character { position: relative; inset: auto; }
@media (max-width:700px) {
 .archive .motivo-photo, .archive .music-background { position: absolute; height: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
