﻿
/*
============================================================
GALLERY GRID
============================================================
*/
#event-gallery {
    width: 100%;
}


.event-gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}


.event-gallery-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f4f4;
}


.event-gallery-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}


.event-gallery-item:hover .event-gallery-image {
    transform: scale(1.05);
}


/*
        ============================================================
        LIGHTBOX
        ============================================================
        */

.event-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    touch-action: none;
}


    .event-lightbox.active {
        opacity: 1;
        visibility: visible;
    }


/*
        ============================================================
        LIGHTBOX CONTENT
        ============================================================
        */

.event-lightbox-content {
    position: relative;
    width: calc(100% - 140px);
    height: calc(100% - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}


.event-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
}


/*
        ============================================================
        CLOSE BUTTON
        ============================================================
        */

.event-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    z-index: 10;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}


    .event-lightbox-close:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.05);
    }


/*
        ============================================================
        NAVIGATION BUTTONS
        ============================================================
        */

.event-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}


    .event-lightbox-nav:hover {
        background: rgba(255, 255, 255, 0.25);
    }


.event-lightbox-prev {
    left: 25px;
}


.event-lightbox-next {
    right: 25px;
}


/*
        ============================================================
        COUNTER
        ============================================================
        */

.event-lightbox-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
}


/*
        ============================================================
        DISABLE BODY SCROLL
        ============================================================
        */

body.event-lightbox-open {
    overflow: hidden;
}


/*
        ============================================================
        TABLET
        ============================================================
        */

@@media (max-width: 991.98px) {

    .event-lightbox-content {
        width: calc(100% - 100px);
        height: calc(100% - 90px);
    }

    .event-lightbox-prev {
        left: 15px;
    }

    .event-lightbox-next {
        right: 15px;
    }
}


/*
        ============================================================
        MOBILE
        ============================================================
        */

@@media (max-width: 575.98px) {

    .event-gallery-image-wrapper {
        aspect-ratio: 4 / 3;
    }


    .event-lightbox-content {
        width: 100%;
        height: calc(100% - 80px);
    }


    .event-lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }


    .event-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 22px;
        background: rgba(255, 255, 255, 0.15);
    }


    .event-lightbox-prev {
        left: 10px;
    }


    .event-lightbox-next {
        right: 10px;
    }


    .event-lightbox-counter {
        bottom: 10px;
        font-size: 13px;
    }
}