/* ============================================================
   Gallery Page Styles — Premium Masonry Grid
   ============================================================ */

/* ===== GALLERY SECTION ===== */
.gallery-content-section {
    padding: 100px 0 180px;
    background: #fff;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.gallery-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-section-title {
    font-size: 46px;
    font-family: 'Playfair Display', serif;
    color: #111;
    font-weight: 700;
    margin-bottom: 22px;
}

.elegant-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 22px;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: #C5A15B;
    display: block;
}

.divider-icon {
    color: #C5A15B;
    font-size: 22px;
}

.gallery-section-subtitle {
    color: #666;
    font-size: 17px;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Filter Tabs */
.gallery-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 28px;
    border: 2px solid #e0e0e0;
    background: transparent;
    color: #555;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter Tight', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: #C5A15B;
    border-color: #C5A15B;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 161, 91, 0.35);
}

/* Gallery Grid */
.gallery-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (min-width: 992px) {

    .gallery-item:nth-child(6n+1),
    .gallery-item:nth-child(6n+6) {
        grid-row: span 2;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    display: block;
    background: #f0f0f0;
    animation: galleryFadeIn 0.6s ease forwards;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.overlay-icon {
    color: #fff;
    font-size: 22px;
    background: #C5A15B;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px) scale(0.85);
    transition: transform 0.4s ease-out;
    box-shadow: 0 6px 20px rgba(197, 161, 91, 0.5);
}

.gallery-item:hover .overlay-icon {
    transform: translateY(0) scale(1);
}

.overlay-caption {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 0 16px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.gallery-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(197, 161, 91, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* ===== Animation ===== */
@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .gallery-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
        padding: 0 10px;
    }

    .gallery-item:nth-child(n) {
        grid-row: span 1;
        grid-column: span 1;
    }

    .gallery-item:nth-child(odd) {
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid-premium {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
        padding: 0 10px;
    }

    .gallery-item {
        grid-row: span 1 !important;
        grid-column: span 1 !important;
    }
}