﻿/* =========================================================
   YEAR WRAPPER
========================================================= */

.year-wrapper {
    width: 100%;
    margin-bottom: 15px;
}


/* =========================================================
   YEAR HEADER
========================================================= */

.year-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;
    background-color:#6f6f6f;
}

    .year-header:hover {
        background: #eeeeee;
    }

    .year-header.active {
        background: #777;
    }


/* =========================================================
   YEAR TITLE
========================================================= */

.year-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}


/* =========================================================
   YEAR PLUS
========================================================= */

.year-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;
}

.year-header.active .year-plus {
    transform: rotate(45deg);
}


/* =========================================================
   YEAR EVENTS
========================================================= */

.year-events {
    display: none;
    width: 100%;
    margin-top: 10px;
}

    .year-events.active {
        display: block;
    }


/* =========================================================
   EVENT WRAPPER
========================================================= */

.event-wrapper {
    width: 100%;
    margin-bottom: 12px;
}


/* =========================================================
   EVENT HEADER
========================================================= */

.event-header {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    background: #777;
}

    .event-header:hover {
        background: #777;
    }

    .event-header.active {
        background: #777;
    }


/* =========================================================
   EVENT TITLE
========================================================= */

.event-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}


/* =========================================================
   EVENT PLUS
========================================================= */

.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;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

    .event-gallery.active {
        display: grid;
    }





/* =========================================================
   GALLERY DESCRIPTION
========================================================= */

.event-gallery-description {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
}

    .event-gallery-description p {
        font-size: 15px;
        line-height: 1.6;
        color: #444;
        margin: 0 20px 12px;
        text-align: justify;
    }






/* =========================================================
   GALLERY ITEM
========================================================= */

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #eeeeee;
}



    .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);
    }


@media (max-width: 767px) {
    .gallery-item img {
        height: auto;
        max-height: 495px;
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }
}



.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    pointer-events: none;
}


/* =========================================================
   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) );
}


/* =========================================================
   MOBILE
========================================================= */



@media (max-width: 991px) {

    .event-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
}



@media (max-width: 575px) {

    .event-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }

    .event-gallery-description {
        grid-column: 1;
    }

        .event-gallery-description p {
            margin-left: 5px;
            margin-right: 5px;
            text-align: left;
        }

    .gallery-item {
        aspect-ratio: 16 / 10;
    }

        .gallery-item img,
        .gallery-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .gallery-item:hover img {
            transform: none;
        }

    .gallery-caption {
        font-size: 13px;
        padding: 8px;
    }
}

@media (max-width: 380px) {

    .event-gallery {
        gap: 12px;
    }

    .gallery-item {
        aspect-ratio: 4 / 3;
    }
}



/* =========================================================
   LIGHTBOX STYLES (RESPONSIVE)
========================================================= */

.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

    .gallery-lightbox.active {
        display: flex;
    }

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    transition: color 0.2s;
}

    .lightbox-close:hover {
        color: #cccccc;
    }

.lightbox-counter {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.lightbox-caption {
    color: #e0e0e0;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    max-width: 800px;
    line-height: 1.4;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    user-select: none;
    z-index: 2;
}

    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: rgba(255, 255, 255, 0.4);
    }

.lightbox-prev {
    left: -65px;
}

.lightbox-next {
    right: -65px;
}

/* =========================================================
   LIGHTBOX MOBILE RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
        background: rgba(0, 0, 0, 0.6);
    }

    .lightbox-next {
        right: 10px;
        background: rgba(0, 0, 0, 0.6);
    }

    .lightbox-close {
        top: -35px;
        right: 5px;
    }

    .lightbox-image {
        max-height: 60vh;
    }

    .lightbox-caption {
        font-size: 12px;
    }
}



.event-gallery > .row,
.event-gallery > p {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 10px;
}

.event-gallery p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 12px;
    margin-left: 20px;
    margin-right: 20px;
    text-align:justify;
}

/*.imgfront_event {
 width:100px;height:100px; display: block; margin-left: auto;
}
*/

.imgfront_event {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    transition: transform 0.3s ease;
}

.imgfront_event img{
    width:100px;
    height:100px;
}
