.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.gallery-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,.10);
    transition: .3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
}

.gallery-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .5s;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.08);
}


/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    opacity: 0;
    transition: .3s;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-view {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #d71920;
    font-size: 20px;
}

.gallery-title {
    padding: 14px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* =========================
   MODAL
========================= */

.gallery-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.gallery-modal .modal-body {
    padding: 0;
    text-align: center;
}

.gallery-modal .modal-body img {
    display: block;
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    margin: auto;
}

.modal-gallery-title {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #eee;
    color: #222;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.gallery-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 999;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.gallery-close:hover {
    background: #d71920;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {

    .gallery-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 767px) {

    .gallery-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-image {
        height: 170px;
    }

}

@media (max-width: 480px) {

    .gallery-image {
        height: 140px;
    }
}