@import url("./components/header.css");
@import url("./components/footer.css");

/* ================= GALLERY HERO ================= */
.gallery-page{
        margin-top: -170px;
}
.gallery-hero {
    position: relative;
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.gallery-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* dark overlay */
.gallery-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.gallery-hero .container {
    position: relative;
    z-index: 3;
}

.gallery-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 150px;
}

.gallery-hero p {
    font-size: 16px;
    opacity: 0.9;
}


/* ================= MASONRY GRID (GRID-BASED) ================= */
/* ❌ NO column-count anywhere */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: 10px;
    gap: 18px;
}

/* ================= MASONRY ITEM ================= */
.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: zoom-in;
    background: #f5f5f5;
}

/* JS will set this variable */
.masonry-item {
    grid-row-end: span var(--row-span);
}

.masonry-item img {
    width: 100%;
    display: block;
    border-radius: 14px;
    transition: transform 0.4s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

/* ================= OVERLAY ================= */
.masonry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-overlay i {
    color: #fff;
    font-size: 28px;
}

/* ================= LIGHTBOX ================= */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.gallery-lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* ================= RESPONSIVE TWEAKS ================= */
@media (max-width: 992px) {
    .gallery-hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        padding: 60px 0;
    }

    .gallery-title {
        font-size: 22px;
    }
}

.masonry-overlay {
    pointer-events: none;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 28px;
    padding: 14px 18px;
    cursor: pointer;
    z-index: 10001;
    border-radius: 50%;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10002;
} 

/* Responsive */
@media (max-width: 768px) {
    .gallery-hero {
        height: 240px;
    }

    .gallery-hero h1 {
        font-size: 30px;
    }
}
/* HERO → CONTENT SPACING */
.gallery-hero {
    margin-bottom: 40px; /* adjust 24–48px */
}

/* GALLERY SECTION */
.gallery-page .container {
    padding-top: 0;
}

/* GALLERY TITLE */
.gallery-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 600;
}

.gallery-section {
    width: 100%;
    clear: both;
    margin-bottom: 56px; /* space between galleries */
}

.gallery-title {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 600;
}
