/* ================================
   Галерея по мероприятиям
   ================================ */

.gallery-section {
    margin-top: 70px;
    padding: 20px;
     background-color: var(--light-bg);
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.gallery-section:first-of-type {
    margin-top: 15px;
}

#gallery {
    padding: 50px 0;
}

#gallery .section-title {
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

#gallery .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

#our-gallery {
    padding: 0;
}

.gallery-section:first-of-type {
    margin-top: 40px;
}

.gallery-section-header {
    margin-bottom: 20px;
}

.gallery-section-header h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.gallery-date {
    color: #888;
    font-size: 0.9rem;
}

/* Курсор-подсказка, что фото кликабельно */
.gallery-item img {
    cursor: pointer;
}

/* ================================
   Полноэкранный просмотр (лайтбокс)
   ================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
}


@media (max-width: 600px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .lightbox-close {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
}