div.photobook-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.5rem;
}

div.photobook-list span {
    white-space: nowrap;
}

div.photobook-list span a {
    color: #444;
}

div.photobook-list span:not(:last-child)::after {
    content: "/";
    margin-left: 0.45rem;
    color: rgba(68, 68, 68, 0.55);
}

.photobook-entry {
    margin-bottom: 2.8rem;
}

.photobook-grid {
    column-width: 150px;
    column-gap: 12px;
}

.photobook-month-view-exploded .photobook-grid {
    column-width: 190px;
    column-gap: 10px;
}

.photobook-tile {
    position: relative;
    display: block;
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    break-inside: avoid;
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(244, 235, 221, 0.92));
    box-shadow: 0 10px 24px rgba(70, 53, 35, 0.12);
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.photobook-thumb {
    display: block;
    width: 100%;
    height: auto;
}

.photobook-tile:hover {
    transform: translateY(-3px) scale(1.18);
    z-index: 2;
    box-shadow: 0 18px 30px rgba(70, 53, 35, 0.18);
    filter: saturate(1.05);
}

.photobook-download {
    margin: -0.5rem 0 1.5rem;
    text-align: center;
}

.photobook-carousel-shell {
    width: min(100%, 980px);
    margin: 0 auto;
}

.photobook-carousel {
    display: flex;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
}

@supports ((anchor-name: --photobook-carousel) and (position-anchor: --photobook-carousel)) {
    .photobook-carousel {
        anchor-name: --photobook-carousel;
    }

    .photobook-carousel::scroll-button(left) {
        content: "\25C0";
        left: calc(anchor(left));
    }

    .photobook-carousel::scroll-button(right) {
        content: "\25BA";
        right: calc(anchor(right));
    }

    .photobook-carousel::scroll-button(*) {
        position: fixed;
        position-anchor: --photobook-carousel;
        align-self: anchor-center;
        padding: 0.25rem 0.5rem;
        border: 1px solid rgba(57, 43, 30, 0.12);
        border-radius: 999px;
        background: rgba(255, 251, 247, 0.92);
        color: black;
        box-shadow: 0 8px 18px rgba(57, 43, 30, 0.08);
        font-size: 1.35rem;
        line-height: 1;
        opacity: 0.82;
    }

    .photobook-carousel::scroll-button(*):disabled {
        opacity: 0;
    }

    .photobook-carousel::scroll-button(*):active {
        translate: 1px 1px;
    }
}

.photobook-carousel::-webkit-scrollbar {
    height: 14px;
}

.photobook-carousel::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(70, 98, 112, 0.65);
}

.photobook-carousel::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.photobook-slide {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    scroll-snap-align: start;
}

.photobook-slide-index {
    display: inline-block;
    max-width: calc(min(100%, 980px) - 3.2rem);
    text-align: right;
}

.photobook-carousel-nav {
    margin-top: 0.35rem;
    text-align: center;
}

.photobook-slide-index a,
.photobook-slide-index a:visited {
    color: #0000ee;
}

.photobook-slide-index a.current {
    font-weight: 700;
}

.photobook-frame {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 22px;
    background: #efe4d3;
}

.photobook-frame img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(75vh, 980px);
    border-radius: 16px;
}

@media (max-width: 700px) {
    .photobook-grid {
        column-width: 6.5rem;
        column-gap: 0.375rem;
    }

    .photobook-month-view-exploded .photobook-grid {
        column-width: 7.75rem;
    }

    .photobook-frame img {
        max-height: 52vh;
    }
}
