﻿/* =========================================================
   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;
}

    .year-header:hover {
        background: #eeeeee;
    }

    .year-header.active {
        background: #eeeeee;
    }


/* =========================================================
   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%;
    background: #ffffff;
    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;
}

    .event-header:hover {
        background: #f5f5f5;
    }

    .event-header.active {
        background: #eeeeee;
    }


/* =========================================================
   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;
    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) );
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .event-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 575px) {

    .year-title {
        font-size: 19px;
    }

    .year-plus {
        width: 30px;
        height: 30px;
        font-size: 25px;
    }

    .event-title {
        font-size: 16px;
    }

    .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 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;
}