/* Baúl de Fotos: cabecera propia. La galería y el visor reutilizan el CSS de FanART. */

.baul-hero h1 {
    font-size: clamp(68px, 8.2vw, 116px);
}

.baul-hero .hero-copy {
    min-width: 0;
}

.baul-hero .hero-copy p {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.photo-stack {
    position: relative;
    width: min(100%, 510px);
    height: 390px;
    margin-bottom: 26px;
}

.snapshot {
    position: absolute;
    width: 245px;
    margin: 0;
    padding: 9px 9px 34px;
    background: #fff4dc;
    border: 1px solid #d8c09c;
    box-shadow: 3px 8px 18px #4e311e40;
}

.snapshot:after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px dashed #b99c7166;
    pointer-events: none;
}

.snapshot img {
    display: block;
    width: 100%;
    height: 275px;
    object-fit: cover;
}

.snapshot-1 { left: 0; bottom: 16px; transform: rotate(-8deg); }
.snapshot-2 { right: 0; top: 18px; transform: rotate(7deg); }
.snapshot-3 { left: 27%; bottom: 0; z-index: 2; transform: rotate(-1deg); }

/* Evita pintar las tarjetas que todavÃ­a estÃ¡n lejos del viewport. */
.baul-gallery .artcard {
    content-visibility: auto;
    contain-intrinsic-size: auto 350px;
}

/* Descarga de la fotografía abierta en el visor. */
.lb-download {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 17px;
    border: 5px solid #fff4dc;
    background: var(--teal);
    color: #fff;
    font-family: var(--font-nav);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 5px 16px #0007;
    transform: translateX(-50%) rotate(-1deg);
    transition: background .2s, transform .2s;
}

.lb-download:before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px dashed #fff8;
    pointer-events: none;
}

.lb-download:hover,
.lb-download:focus-visible {
    background: var(--deep);
    color: #fff;
    transform: translateX(-50%) translateY(-2px) rotate(0);
}

.lb-download:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lb-download svg { width: 20px; height: 20px; flex: 0 0 auto; }

@media (max-width: 790px) {
    .baul-hero h1 { font-size: clamp(63px, 15vw, 86px); }
    .photo-stack { height: 320px; width: min(100%, 440px); margin: 0 auto 20px; }
    .snapshot { width: 205px; padding: 7px 7px 28px; }
    .snapshot img { height: 220px; }
}

@media (max-width: 460px) {
    .baul-hero h1 { font-size: clamp(55px, 15vw, 70px); }
    .baul-hero .hero-copy { width: 100%; }
    .photo-stack { height: 245px; width: 330px; max-width: 100%; }
    .snapshot { width: 150px; padding: 5px 5px 22px; }
    .snapshot img { height: 165px; }
    .snapshot-3 { left: 26%; }
    .lb-download { bottom: 10px; padding: 10px 13px; font-size: 15px; }
}
