﻿/* wwwroot/css/gallery-lightbox.css */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.85);
}

    .gallery-lightbox.is-open {
        display: flex;
    }

.gallery-lightbox__content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    user-select: none;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    border: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 999px;
    line-height: 1;
    font-size: 20px;
}

.gallery-lightbox__close {
    top: 10px;
    right: 10px;
    font-size: 22px;
}

.gallery-lightbox__nav--prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox__nav--next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-item {
    cursor: zoom-in;
}

    .gallery-lightbox__close:focus,
    .gallery-lightbox__nav:focus,
    .gallery-item:focus {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

body.lb-open {
    overflow: hidden;
}
