﻿.gallery-page {
    padding: 70px 0;
    background: #f8f9fa;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

    .gallery-header .subtitle {
        display: inline-block;
        color: #b8860b;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .gallery-header h1 {
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 15px;
        color: #222;
    }

    .gallery-header p {
        max-width: 700px;
        margin: 0 auto;
        color: #777;
        font-size: 16px;
        line-height: 1.7;
    }


/* =========================================
           FILTER BUTTONS
        ========================================= */

.gallery-filter {
    text-align: center;
    margin-bottom: 35px;
}

    .gallery-filter button {
        border: 1px solid #ddd;
        background: #fff;
        padding: 10px 22px;
        margin: 5px;
        border-radius: 30px;
        cursor: pointer;
        transition: all .3s ease;
    }

        .gallery-filter button:hover,
        .gallery-filter button.active {
            background: #b8860b;
            color: #fff;
            border-color: #b8860b;
        }


/* =========================================
           GALLERY GRID
        ========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    cursor: pointer;
}


.gallery-media {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #111;
}


    .gallery-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s ease;
    }


    .gallery-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        background: #000;
    }


.gallery-item:hover img {
    transform: scale(1.08);
}


/* =========================================
           OVERLAY
        ========================================= */

.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 20px 20px;
    background: linear-gradient( transparent, rgba(0,0,0,.85) );
    color: #fff;
}


    .gallery-overlay h4 {
        margin: 0 0 5px;
        font-size: 18px;
        font-weight: 600;
    }


    .gallery-overlay span {
        font-size: 12px;
        opacity: .8;
        text-transform: uppercase;
        letter-spacing: 1px;
    }


.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    z-index: 2;
}


/* =========================================
           EMPTY GALLERY
        ========================================= */

.empty-gallery {
    text-align: center;
    padding: 80px 20px;
    color: #777;
}

    .empty-gallery i {
        font-size: 60px;
        margin-bottom: 20px;
        color: #ccc;
    }


/* =========================================
           RESPONSIVE
        ========================================= */

@media (max-width: 991px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 575px) {

    .gallery-page {
        padding: 45px 15px;
    }

    .gallery-header h1 {
        font-size: 32px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-media {
        height: 250px;
    }
}


/* =========================================
           LIGHTBOX
        ========================================= */

.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
    padding: 30px;
}


    .gallery-lightbox.show {
        display: flex;
    }


.lightbox-content {
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    text-align: center;
}


    .lightbox-content img,
    .lightbox-content video {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 8px;
    }


.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
}


.lightbox-title {
    color: #fff;
    margin-top: 15px;
    font-size: 18px;
}
