/* Sugar photo page specific styling */
body.sugar-photo #photos.section {
    height: 100vh;
    display: block;
    padding: 0;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: unset;
}

/* Sugar photo page specific photo grid */
body.sugar-photo .photo-grid {
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

.gallery-rail {
    height: auto;
    /* Remove scroll-snap from here - moved to parent container */
    -webkit-overflow-scrolling: touch;
}

.artwork {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    scroll-snap-align: start;
    padding: 40px 20px;
    background: transparent;
}

.artwork .frame {
    background: var(--glass-strong);
    padding: var(--gap-md);
    box-shadow: 0 22px 50px rgba(41, 47, 85, 0.14);
    border-radius: var(--radius-lg);
    max-width: 84%;
    max-height: 74vh;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36vh;
}

.artwork img {
    max-width: 100%;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 8px;
    min-height: 26vh;
}

.artwork img {
    opacity: 0;
    transition: opacity 400ms ease, transform 400ms ease;
    transform: translateY(6px);
}

.artwork img.is-loaded {
    opacity: 1;
    transform: translateY(0);
}

.current-indicator {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: #33324a;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(26, 30, 60, 0.12);
    font-weight: 700;
    z-index: 1600;
}

.artwork .caption {
    margin-top: 18px;
    color: #51526a;
    font-size: 0.95rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(26, 30, 60, 0.06);
}

@media (max-width: 600px) {
    .artwork {
        padding: 24px 12px;
    }

    .artwork .frame {
        padding: 12px;
        max-width: 94%;
    }

    .artwork .caption {
        font-size: 0.95rem;
    }
}