﻿/* ================= EVENT GALLERY ================= */

.event-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.event-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    transition: .35s ease;
}

.event-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.event-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.8),
        rgba(0,0,0,.15)
    );
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.event-overlay h4 {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
}

/* MODAL */

.event-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 40px;
}

.event-modal.active {
    display: flex;
}

.modal-box {
    max-width: 1100px;
    width: 100%;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 75% 25%;
    box-shadow: 0 30px 60px rgba(0,0,0,.25);
    animation: popIn .35s ease;
}

.modal-box img {
    width: 100%;
    max-height: 80vh;
    object-fit: cover;
}

.modal-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 2rem;
}

.modal-content p {
    line-height: 1.8;
    color: #444;
    font-size: 1rem;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



.nav-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(255,255,255,.9);
    border:none;
    width:60px;
    height:60px;
    border-radius:50%;
    font-size:2rem;
    cursor:pointer;
    z-index:10000;
    transition:.25s ease;
}

.nav-btn:hover{
    transform:translateY(-50%) scale(1.1);
}

.prev{
    left:30px;
}

.next{
    right:30px;
}

/* TABLET */

@media(max-width:1200px){
    .event-gallery{
        grid-template-columns:repeat(4,1fr);
    }
}

/* MOBILE */

@media(max-width:768px){

    .event-gallery{
        grid-template-columns:repeat(2,1fr);
    }

    .modal-box{
        grid-template-columns:1fr;
        max-height:90vh;
        overflow:auto;
    }

    .modal-box img{
        height:350px;
    }

    .modal-content{
        padding:25px;
    }
}

    .nav-btn{
        width:45px;
        height:45px;
        font-size:1.4rem;
    }

    .prev{
        left:10px;
    }

    .next{
        right:10px;
    }
}


@media(max-width:480px){
    .event-gallery{
        grid-template-columns:1fr;
    }
}