.gallery-section {
    padding: 160px 0 50px;
    background: #f8fafc;
}

.gallery-heading {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-heading h2 {
    font-size: 40px;
    font-weight: 700;
    color: #0b2c8a;
    margin-bottom: 15px;
}

.gallery-heading p {
    max-width: 700px;
    margin: auto;
    color: #64748b;
    line-height: 1.8;
}

.gallery-filter {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.gallery-btn {
    border: none;
    background: #f8fafc;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.gallery-btn.active {
    background: #0b2c8a;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: .3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-card-content {
    padding: 12px;
    text-align: center;
}

.gallery-card-content h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* POPUP */

.gallery-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gallery-popup.active {
    display: flex;
}

.popup-box {
    width: 550px;
    max-width: 95%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.popup-box img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 24px;
}

.popup-prev,
.popup-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.popup-prev {
    left: 15px;
}

.popup-next {
    right: 15px;
}

.popup-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-category {
    background: #dcfce7;
    color: #15803d;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* RESPONSIVE */

@media(max-width:1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(max-width:992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-heading h2 {
        font-size: 38px;
    }
}

@media(max-width:768px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img {
        height: 180px;
    }

    .popup-box img {
        height: 260px;
    }

    .gallery-heading h2 {
        font-size: 30px;
    }
}

@media(max-width:576px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-filter {
        flex-direction: column;
    }

    .gallery-btn {
        width: 100%;
    }

    .gallery-heading h2 {
        font-size: 26px;
    }
}