.celebrity-album {
    position: relative;
    margin-top: 70px;
    background: radial-gradient(ellipse at center, #4e214144, transparent 65%), #140e1b;
    border-top: 1px solid #ffffff18;
    border-bottom: 1px solid #ffffff18;
}

.album-sticky {
    position: sticky;
    top: 105px;
    height: calc(100svh - 105px);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 28px 0 24px;
}

.album-heading {
    text-align: center;
}

.album-heading .eyebrow {
    color: var(--gold);
    font-size: 12px;
}

.album-heading h2 {
    font-size: clamp(25px, 3.2vw, 42px);
    line-height: 1.15;
    margin: 15px 0 10px;
    letter-spacing: -1px;
}

.album-heading p {
    font-size: 12px;
    color: var(--muted);
}

.album-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    margin: 22px 0;
    perspective: 1400px;
}

.album-page {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: min(480px, 58vw);
    margin-left: max(-240px, -29vw);
    padding: 10px;
    border: 1px solid #e5b93c55;
    border-radius: 10px;
    background: #281a31;
    box-shadow: 0 15px 45px #0008;
    transform-origin: 15% center;
    will-change: transform;
    backface-visibility: hidden;
    cursor: zoom-in;
}

.album-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
    background: #100b16;
}

.album-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: var(--muted);
}

#album-count,
.album-footer a {
    color: var(--gold);
}

.album-static .album-sticky {
    position: relative;
    height: auto;
    min-height: 0;
}

.album-static .album-stage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    width: 90%;
    margin: 30px auto;
}

.album-static .album-page {
    position: relative;
    inset: auto;
    width: 100%;
    height: 320px;
    margin: 0;
}

@media (max-width: 600px) {
    .album-sticky {
        top: 94px;
        height: calc(100svh - 94px);
        padding: 22px 0;
    }

    .album-page {
        width: 76vw;
        margin-left: -38vw;
    }

    .album-heading h2 {
        font-size: 28px;
    }

    .album-footer {
        flex-wrap: wrap;
        font-size: 12px;
        gap: 12px;
    }
}

/* Open album: two paper pages share a fixed center binding. */
.album-book {
    position: relative;
    width: min(900px, 88vw);
    height: 100%;
    margin: auto;
    background: #d4c5a9;
    border: 9px solid #56314a;
    border-radius: 10px;
    box-shadow:
        0 22px 55px #0009,
        0 4px 0 #a78763;
    perspective: 1800px;
}
.album-book::after {
    content: "";
    position: absolute;
    left: calc(50% - 8px);
    top: 0;
    bottom: 0;
    width: 16px;
    background: linear-gradient(90deg, #0000, #3e251b55, #fff5, #0000);
    z-index: 100;
    pointer-events: none;
}
.book-sheet {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 50%;
    transform-origin: left center;
    transform-style: preserve-3d;
}
.book-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 18px 18px 34px;
    background: linear-gradient(90deg, #ddd0b8, #f5ecdb 8%, #fff8ea 85%, #e4d5ba);
    backface-visibility: hidden;
    cursor: zoom-in;
}
.book-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #21162d;
    box-shadow: 0 2px 7px #0003;
}
.book-face span {
    right: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    bottom: 12px;
    left: 18px;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #634a46;
}
.book-first {
    width: 50%;
}
.book-empty-right {
    left: 50%;
    width: 50%;
}
.book-back {
    transform: rotateY(180deg);
}
.book-end {
    display: grid;
    place-items: center;
    color: #56314a;
    font:
        italic 28px Georgia,
        serif;
}
.album-static .album-book {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    width: 100%;
    border: 0;
    background: none;
}
.album-static .book-sheet {
    display: contents;
}
.album-static .book-face {
    position: relative;
    width: 100%;
    height: 300px;
    transform: none;
}
.album-static .album-book::after {
    display: none;
}
@media (max-width: 600px) {
    .album-book {
        width: 94vw;
        max-height: 350px;
        margin-top: 20px;
        border-width: 5px;
    }
    .book-face {
        padding: 8px 8px 27px;
    }
    .book-face span {
        font-size: 12px;
        left: 8px;
        letter-spacing: 0.5px;
    }
}

.book-face:not(.book-end) {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 12px;
}
.book-face:not(.book-end) img {
    flex: 1;
    min-height: 0;
    height: 0;
}
.book-face .book-photo-caption {
    position: static;
    display: block;
    flex-shrink: 0;
    text-align: left;
    white-space: normal;
    letter-spacing: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.book-photo-caption strong,
.book-photo-caption small {
    display: block;
}
.book-photo-caption strong {
    font-size: 12px;
    font-weight: 600;
    color: #352632;
}
.book-photo-caption small {
    font-size: 12px;
    color: #634a46;
    margin-top: 2px;
}
@media (max-width: 600px) {
    .book-photo-caption strong { font-size: 12px; }
    .book-photo-caption small { font-size: 12px; }
}
