﻿body {
}
/* =========================
   GALLERY HERO / BREADCRUMB
========================= */

.gallery-hero {
    position: relative;
    width: 100%;
    height: 380px;
    background: url("/images/breadcrumb/gallery-badminton.jpg") center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    /* Dark overlay */
    .gallery-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4) );
    }

/* Content */
.gallery-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeSlide 1.2s ease forwards;
    opacity: 0;
}

    .gallery-hero-content h1 {
        font-size: 48px;
        font-weight: 700;
        color: #ffffff;
        padding: 14px 40px;
        background: rgba(0, 0, 0, 0.55);
        border-radius: 6px;
        letter-spacing: 1px;
    }

/* Animation */
@keyframes fadeSlide {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-hero {
        height: 260px;
    }

    .gallery-hero-content h1 {
        font-size: 32px;
        padding: 10px 24px;
    }
}


/* =========================
   GALLERY SECTION
========================= */

.gallery-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.gallery-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
}

/* =========================
   GRID LAYOUT
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* =========================
   GALLERY ITEM
========================= */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

    .gallery-item img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    /* Hover Zoom */
    .gallery-item:hover img {
        transform: scale(1.1);
    }

/* =========================
   OVERLAY EFFECT
========================= */

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s ease;
}

    .overlay span {
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 1px;
    }

.gallery-item:hover .overlay {
    opacity: 1;
}

/* =========================
   LIGHTBOX
========================= */

/* Lightbox */

#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

    #lightbox img {
        max-width: 95%;
        max-height: 95%;
        object-fit: contain;
    }

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}
