/* gallery.css - Optimized for Cross-Browser Image Display */

/* Hero Section */
.gallery-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('https://raw.githubusercontent.com/Neodynix/Hope-Mystica-Cakes/refs/heads/main/images/background3.jpg?token=GHSAT0AAAAAADRIXZBO3YUVT4325X7SNUJY2KGYSUA') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-hero .hero-overlay {
    text-align: center;
    color: white;
}

.gallery-hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    color: #00C4B4;
    text-shadow: 0 3px 15px rgba(0,0,0,0.8);
    margin: 0;
}

.gallery-hero p {
    font-size: 1.8rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin-top: 1rem;
}

/* Gallery Content */
.gallery-content {
    padding: 8rem 5% 6rem;
    background: #f9f9f9;
}

.gallery-content .container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #ff69b4;
    text-align: center;
    margin: 4rem 0 3rem;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    height: 400px;
    cursor: pointer;
    background: #fff;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
    display: block;
    position: relative;
    z-index: 1;
}

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

/* Overlay Text */
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,196,180,0.9));
    color: white;
    padding: 2rem 1rem 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

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

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-hero {
        height: 60vh;
        min-height: 400px;
    }

    .gallery-hero h1 {
        font-size: 3.5rem;
    }

    .gallery-hero p {
        font-size: 1.4rem;
    }

    .gallery-content {
        padding: 6rem 5% 4rem;
    }

    .gallery-content h2 {
        font-size: 2.8rem;
    }

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

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

@media (max-width: 480px) {
    .gallery-hero h1 {
        font-size: 3rem;
    }

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