/* Photo Lightbox - shared component for enlarging photo thumbnails */

img.photo-enlargeable {
    cursor: zoom-in;
}

.photo-lightbox-dialog::part(surface) {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    background-color: var(--forge-theme-surface, #1a1a1a);
}

.photo-lightbox-scaffold {
    min-width: min(95vw, 480px);
}

.photo-lightbox-caption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80vw;
}

.photo-lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #000;
}

#photo-lightbox-image {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
