/* =========================
   PAGE
========================= */

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f7fa;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
}

/* =========================
   GALLERY TABS
========================= */

/* =========================
   GALLERY TABS
========================= */

.gallery-tabs-wrapper {
    position: sticky;
    top: 80px;
    z-index: 100;

    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.gallery-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;

    overflow-x: auto;
    overflow-y: hidden;

    white-space: nowrap;
    scroll-behavior: smooth;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-tabs::-webkit-scrollbar {
    display: none;
}

.gallery-tab {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 18px 0;

    color: #6b7280;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;

    flex-shrink: 0;

    transition: color 0.3s ease;
}

.gallery-tab:hover {
    color: #111827;
}

.gallery-tab::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -1px;

    width: 0;
    height: 3px;

    background: #2563eb;
    border-radius: 3px;

    transition: width 0.3s ease;
}

.gallery-tab.active {
    color: #2563eb;
}

.gallery-tab.active::after {
    width: 100%;
}
/* =========================
   GALLERY SECTION
========================= */

.gallery-section {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;

    padding: 20px;
    margin: 20px auto;

    max-width: 1200px;

    scroll-margin-top: 170px;
}

.gallery-title {
    margin: 0 0 18px;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
}

/* =========================
   GALLERY GRID
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
}

.gallery-image,
.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;

    display: block;
    border-radius: 16px;

    cursor: pointer;
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* =========================
   HIDDEN PHOTOS
========================= */

.hidden-photo {
    display: none;
}

.hidden-photo.show {
    display: block;
}

/* =========================
   OVERLAY
========================= */

.more-card {
    cursor: pointer;
}

.overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.45);
    border-radius: 16px;

    transition: background 0.3s ease;
}

.overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

.overlay span {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;

    z-index: 9999;

    background: rgba(0, 0, 0, 0.92);

    justify-content: center;
    align-items: center;

    padding: 20px;
}

.lightbox.active {
    display: flex;
}

#lightboxImage {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 16px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;

    color: #ffffff;
    font-size: 36px;

    cursor: pointer;
    z-index: 10000;
}

body.lightbox-open {
    overflow: hidden;
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-section {
        margin: 16px 12px;
        padding: 18px;
    }

    .gallery-tabs {
        justify-content: flex-start;
        padding: 0 16px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .gallery-tabs-wrapper {
        top: 65px;
        padding: 10px 0;
    }

.gallery-tabs {
    gap: 10px;
    padding: 0 12px;
    justify-content: flex-start;
}

.gallery-tab {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
}
    .gallery-section {
        scroll-margin-top: 140px;
    }
}

@media (max-width: 576px) {

    .gallery-section {
        padding: 14px;
        margin: 12px 8px;
        border-radius: 16px;
    }

    .gallery-grid {
        gap: 8px;
    }

    .gallery-title {
        font-size: 20px;
    }

    .gallery-item,
    .gallery-image,
    .gallery-item img,
    .overlay {
        border-radius: 12px;
    }

    .overlay span {
        font-size: 18px;
    }

    #lightboxImage {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 14px;
        right: 16px;
        font-size: 30px;
    }
}
