/* Gallery Page Styles */

        /* Hero */
        .gallery-hero {
            background-color: #8B4513;
            background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
            padding: 180px 0 100px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .gallery-hero h5 {
            text-transform: uppercase;
            color: #ffffff;
            letter-spacing: 3.1px;
            margin-bottom: 0;
        }
        .gallery-hero h1 {
            color: #ffffff;
            margin-bottom: 18px;
        }
        .gallery-hero p {
            color: #ffffff;
            max-width: 750px;
            margin: 0 auto 0;
            font-size: 20px;
            line-height: 30px;
        }

        /* Gallery Section */
        .gallery-section {
            padding: 80px 0 160px;
            position: relative;
        }

        /* Filter Buttons */
        .gallery-filters {
            text-align: center;
            margin-bottom: 50px;
        }
        .filter-btn {
            font-family: 'Playfair Display', serif;
            font-size: 16px;
            font-weight: 600;
            padding: 12px 28px;
            margin: 5px 6px;
            border: 2px solid var(--e-global-color-secondary);
            background: transparent;
            color: var(--e-global-color-secondary);
            border-radius: 35px 0 35px 0;
            cursor: pointer;
            transition: all 0.3s ease-in-out;
        }
        .filter-btn:hover,
        .filter-btn.active {
            background-color: var(--e-global-color-secondary);
            color: #ffffff;
            transform: translateY(-3px);
        }

        /* Masonry Grid */
        .masonry-grid {
            column-count: 3;
            column-gap: 20px;
        }
        @media (max-width: 991px) {
            .masonry-grid {
                column-count: 2;
            }
        }
        @media (max-width: 575px) {
            .masonry-grid {
                column-count: 1;
            }
        }

        /* Gallery Item */
        .gallery-item {
            break-inside: avoid;
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
            border-radius: 20px 0 20px 0;
            cursor: pointer;
            transition: all 0.4s ease;
        }
        .gallery-item:hover {
            transform: translateY(-6px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        }
        .gallery-item img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
        }
        .gallery-item:hover img {
            transform: scale(1.05);
        }

        /* Overlay */
        .gallery-item .overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(transparent, rgba(0,0,0,0.7));
            color: #ffffff;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .gallery-item:hover .overlay {
            opacity: 1;
        }
        .gallery-item .overlay .caption-title {
            font-family: 'Playfair Display', serif;
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 2px;
        }
        .gallery-item .overlay .caption-category {
            font-size: 13px;
            opacity: 0.8;
        }
        .gallery-item .overlay .zoom-icon {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            font-size: 16px;
        }

        /* Fade animation for filtering */
        .gallery-item.hide {
            display: none;
        }
        .gallery-item.show {
            animation: fadeIn 0.5s ease forwards;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Counter */
        .photo-count {
            text-align: center;
            margin-top: 10px;
            margin-bottom: 0;
            color: var(--e-global-color-text);
            font-size: 16px;
        }

        /* GLightbox custom overrides */
        .goverlay {
            background: rgba(0, 0, 0, 0.9) !important;
        }
