.gallery {
    padding: 120px 8%;
    background: linear-gradient(135deg, #fffaf3, #fdf6ec);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    transition: 0.4s ease;
}

.gallery-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: 0.6s ease;
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(139,0,0,0.85), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: 0.4s ease;
}

.gallery-overlay h4 {
    color: white;
    font-size: 18px;
}

/* Hover Effects */
.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(193,154,107,0.3);
}

/*  DARK MODE GALLERY FIX */

body.dark .gallery {
    background: linear-gradient(135deg, #1f1813, #14100d);
}

body.dark .gallery-overlay {
    background: linear-gradient(to top, rgba(193,154,107,0.9), transparent);
}

body.dark .gallery-card {
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}