.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.gallery-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: 24px;
}

.gallery-hero__item {
    overflow: hidden;
    border-radius: 10px;
    min-height: 240px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        #f8f3fb 100%
    );
    border: 1px solid rgba(117, 69, 155, 0.08);
    box-shadow: 0 20px 50px rgba(117, 69, 155, 0.08);
}

.gallery-hero__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-hero__item--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

/* IMAGE */
.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* HOVER ZOOM */
.gallery-item:hover img {
    transform: scale(1.08);
}

/* OVERLAY BASE */
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;

    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 60%);
}

/* TEXT hidden by default */
.gallery-overlay h3,
.gallery-overlay p {
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

/* HOVER ANIMATION */
.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.05s;
}

.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
    opacity: 0.85;
    transition-delay: 0.12s;
}

/* =========================
   LIGHTBOX (PREVIEWER)
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

/* content box */
.lightbox-content {
    position: relative;
    max-width: 850px;
    width: 90%;
    transform: scale(0.85);
    transition: 0.35s ease;
    z-index: 2;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

/* image */
.lightbox-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
}

/* caption */
#lightboxCaption {
    color: #fff;
    text-align: center;
    margin-top: 12px;
    font-size: 15px;
    opacity: 0.9;
}

/* close button */
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: #fff;
    border: none;
    font-size: 26px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
}

/* =========================
   RESPONSIVE ONLY (NO DESKTOP CHANGE)
========================= */

/* Tablet (2 columns only) */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .gallery-item img {
        height: 230px;
    }
}

/* Mobile (1 column only) */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-item img {
        height: 200px;
    }

    .gallery-overlay {
        padding: 14px;
    }

    .gallery-overlay p {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .lightbox-content {
        width: 92%;
    }

    #lightboxCaption {
        font-size: 13px;
    }

    .lightbox-close {
        width: 34px;
        height: 34px;
        font-size: 22px;
        top: -35px;
    }
}
/* FILTER BUTTONS */
.project-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.project-filter button {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.project-filter button.active,
.project-filter button:hover {
    background: #0f5c86;
    color: #fff;
    border-color: transparent;
}

/* GRID */
.project-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 30px;
}

/* CARD */
.project-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* IMAGE */
.project-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: auto;
}

/* TITLE */
.project-card h3 {
    margin-top: 18px;
    font-size: 16px;
    font-weight: 600;
}

/* BADGE */
.project-card .badge {
    position: static; /* remove absolute */
    display: inline-block;
    margin-top: 10px;

    background: #0f5c86;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 10px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}
