﻿
/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
    color: #007bff;
    background-color: transparent;
}

    .filter-btn:hover {
        background-color: rgba(0, 123, 255, 0.1);
        transform: translateY(-2px);
    }

    .filter-btn.active {
        background-color: #007bff;
        color: white;
    }

    .filter-btn i {
        font-size: 14px;
    }

/* Responsive Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 6px 14px rgba(0,0,0,0.15);
    transition: 0.3s ease-in-out;
    cursor: pointer;
    background: #000;
}

    .gallery-item:hover {
        transform: translateY(-6px);
    }

    /* Images */
    .gallery-item img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: 0.3s;
    }

/* Videos */
.video-container {
    width: 100%;
    height: 260px;
    position: relative;
}

    .video-container video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Play Button Overlay */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 45px;
    opacity: 0.85;
    pointer-events: none;
}

/* Overlay details */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    color: #fff;
    transform: translateY(100%);
    transition: 0.4s ease-in-out;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Badge */
.media-type-badge {
    background: rgba(255,255,255,0.18);
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ----------------------- */
/* Lightbox (POPUP STYLE) */
/* ----------------------- */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .lightbox.active {
        display: flex;
    }

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
}

#lightbox-media img,
#lightbox-media video {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-info {
    text-align: center;
    color: #fff;
    margin-top: 10px;
}

/* Lightbox Buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close {
    top: -50px;
    right: 0;
}

.lightbox-prev {
    top: 50%;
    left: -60px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
}

    .lightbox-prev:hover,
    .lightbox-next:hover,
    .lightbox-close:hover {
        background: rgba(255,255,255,0.4);
    }

/* ----------- */
/* RESPONSIVE */
/* ----------- */

@media (max-width: 768px) {
    .gallery-item img,
    .video-container {
        height: 200px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: -40px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-item img,
    .video-container {
        height: 180px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

        .filter-btn i {
            font-size: 12px;
        }
}


