.gallery-section {
    padding: 80px 20px;
    background: #f8f9fb;
}

.container {
    max-width: 90%;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    gap: 1em;
}

.gallery-item {
    overflow: hidden;
    border-radius: 14px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::after {
    opacity: 1;
}


/* ---------- FILTER ANIMATIONS ---------- */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 30px;
    border: none;
    background: #eaeaea;
    cursor: pointer;
    font-weight: 500;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.filter-btn.active {
    background: #111;
    color: #fff;
}

.img-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.6em;
    background: rgb(0 0 0 / 50%);
    color: #fff;
    transform: translateY(10px);
    transition: ease-in-out 350ms;
    opacity: 0;
}

.img-caption h4 {
    font-size: 1.1em;
    margin-bottom: 0.2em;
}

.img-caption span {
    font-size: 1em;
}

.gallery-item:hover .img-caption {
    opacity: 1;
    transform: translateY(0);
}


/* ---------- GALLERY ITEM ---------- */
.gallery-item {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
    display: inline-block;
    border-radius: 0;
}

/* Masonry columns */
@media (min-width: 576px) {
    .gallery-item {
        width: 48%;
    }
}

@media (min-width: 992px) {
    .gallery-item {
        width: 31%;
    }
}

/* ---------- IMAGE + SKELETON ---------- */
.img-wrapper {
    position: relative;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Skeleton shimmer */
.skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
            #e0e0e0 30%,
            #f5f5f5 50%,
            #e0e0e0 70%);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
    to {
        background-position-x: -200%;
    }
}

/* Loaded state */
.img-wrapper.loaded img {
    opacity: 1;
}

.img-wrapper.loaded .skeleton {
    display: none;
}

.gslide-description.description-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(80 80 80 / 60%);
}

.glightbox-clean .gdesc-inner {
    padding: 1em;
    color: #fff;
}

.glightbox-container .gslide.current {
    height: 100%;
}

.glightbox-container .gslide-inner-content {
    height: 100%;
}

.gslide-image img.zoomable {
    min-height: 100vh;
}

.glightbox-clean .gslide-title {
    margin-bottom: 0.2em;
    font-size: 1.3em;
    color: #fff;
}

.glightbox-clean .gslide-desc {
    font-size: 1em;
}