/* =========================================
   ENHANCED GALLERY SECTION - BEAUTIFUL & AESTHETIC
========================================= */

/* Gallery Section Container */
.gallery-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #faf9f6 0%, #ffffff 50%, #faf9f6 100%);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

/* Gallery Header */
.gallery-head {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-head h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    color: #b8860b;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.gallery-head p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

/* Gold Decorative Line */
.gold-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    margin: 0 auto;
    position: relative;
}

.gold-line::before,
.gold-line::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 8px;
}

.gold-line::before {
    left: -20px;
}

.gold-line::after {
    right: -20px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    background: white;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.25),
        0 0 0 3px rgba(197, 160, 89, 0.3);
    border-color: var(--accent);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.12);
}

/* Enhanced Overlay with Icon */
.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 48px;
    z-index: 2;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Gallery Info Section */
.gallery-info {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.05) 0%, transparent 100%);
    border-radius: 16px;
    margin: 40px 0;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.gi-title {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.gi-desc {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Center Button */
.center-btn {
    text-align: center;
    margin-top: 40px;
}

.center-btn .btn.primary {
    padding: 16px 40px;
    font-size: 15px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.center-btn .btn.primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.center-btn .btn.primary:hover::before {
    width: 300px;
    height: 300px;
}

.center-btn .btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(197, 160, 89, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-head h2 {
        font-size: 36px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .gallery-item {
        height: 320px;
    }

    .gi-title {
        font-size: 28px;
    }

    .gi-desc {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-head h2 {
        font-size: 32px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-item {
        height: 280px;
    }
}

/* Animation for fade-up elements */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item.fade-up.visible {
    animation: fadeUp 0.8s ease-out forwards;
}