/**
 * Lightbox gallery styles
 */

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

/* Контейнер для изображения — центрируется */
.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

/* Кнопки управления */
.lightbox-btn {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10002;
    cursor: pointer;
    padding: 0;
    /* Сброс стилей кнопки */
    font-size: 0;
    line-height: 0;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-btn svg {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.lightbox-close {
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
}

.lightbox-nav {
    top: calc(50vh - 25px);
    width: 50px;
    height: 50px;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-caption {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    padding: 8px 20px;
    z-index: 10002;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}
