﻿.news-events-title {
    text-align: center;
    margin-bottom: 25px;
}


/* =========================================================
               EVENT WRAPPER
            ========================================================= */

.event-wrapper {
    width: 100%;
    margin-bottom: 15px;
}


/* =========================================================
               EVENT HEADER
            ========================================================= */

.event-header {
    width: 100%;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}


    .event-header:hover {
        background: #eeeeee;
    }


    .event-header.active {
        background: #eeeeee;
    }


/* =========================================================
               EVENT TITLE
            ========================================================= */

.event-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}


/* =========================================================
               PLUS BUTTON
            ========================================================= */

.event-plus {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    transition: transform 0.3s ease;
}


.event-header.active .event-plus {
    transform: rotate(45deg);
}


/* =========================================================
               EVENT GALLERY
            ========================================================= */

.event-gallery {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}


    .event-gallery.active {
        display: grid;
    }


/* =========================================================
               GALLERY ITEM
            ========================================================= */

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #eeeeee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s ease;
}


    .gallery-item:hover {
        box-shadow: 0 5px 18px rgba(0,0,0,0.20);
    }


    /* =========================================================
               GALLERY IMAGE
            ========================================================= */

    .gallery-item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.4s ease;
    }


    .gallery-item:hover img {
        transform: scale(1.08);
    }


/* =========================================================
               IMAGE CAPTION
            ========================================================= */

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 10px;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    background: linear-gradient( transparent, rgba(0,0,0,0.85) );
}


/* =========================================================
               LIGHTBOX
            ========================================================= */

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}


    .gallery-lightbox.active {
        display: flex;
    }


/* =========================================================
               LIGHTBOX CONTENT
            ========================================================= */

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
               LIGHTBOX IMAGE
            ========================================================= */

.lightbox-image {
    max-width: 85%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}


/* =========================================================
               LIGHTBOX CAPTION
            ========================================================= */

.lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 70%;
    text-align: center;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 12px 20px;
    background: rgba(0,0,0,0.65);
    border-radius: 5px;
}


/* =========================================================
               CLOSE BUTTON
            ========================================================= */

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    z-index: 50;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}


    .lightbox-close:hover {
        background: rgba(255,255,255,0.15);
    }


/* =========================================================
               PREVIOUS / NEXT BUTTONS
            ========================================================= */

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 55px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: rgba(0,0,0,0.50);
    font-size: 45px;
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
    transition: all 0.2s ease;
}


.lightbox-prev {
    left: 20px;
}


.lightbox-next {
    right: 20px;
}


    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: rgba(255,255,255,0.25);
    }


/* =========================================================
               IMAGE COUNTER
            ========================================================= */

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    color: #fff;
    background: rgba(0,0,0,0.55);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
}


/* =========================================================
               TABLET
            ========================================================= */

@media (max-width: 991px) {

    .event-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
               MOBILE
            ========================================================= */

@media (max-width: 575px) {

    .event-title {
        font-size: 17px;
    }


    .event-plus {
        width: 30px;
        height: 30px;
        font-size: 25px;
    }


    .event-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    .gallery-item {
        aspect-ratio: 16 / 10;
    }


    .gallery-caption {
        font-size: 13px;
        padding: 8px;
    }


    .lightbox-image {
        max-width: 92%;
        max-height: 70vh;
    }


    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 55px;
        font-size: 32px;
    }


    .lightbox-prev {
        left: 5px;
    }


    .lightbox-next {
        right: 5px;
    }


    .lightbox-caption {
        width: 85%;
        bottom: 15px;
        font-size: 15px;
        padding: 8px 10px;
    }


    .lightbox-close {
        right: 10px;
        top: 10px;
        width: 35px;
        height: 35px;
        font-size: 32px;
    }


    .lightbox-counter {
        top: 15px;
        font-size: 13px;
    }
}


