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

.gallery-item {
    overflow: hidden;
    border-radius: 18px;
    background: #1b2d23;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.gallery-item img {
    width: auto;
    height: 280px;
    margin: 0 auto;
    object-fit: cover;
    display: block;
    transition: .4s;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
}

.gallery-pagination button {
    padding: 10px 22px;
    border: none;
    border-radius: 30px;
    background: #2d7d46;
    color: white;
    cursor: pointer;
    transition: .3s;
    font-size: .95rem;
}

.gallery-pagination button:hover:not(:disabled) {
    background: #236738;
}

.gallery-pagination button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

#pageInfo {
    color: #d5d5d5;
    font-weight: 600;
}

@media (max-width:900px) {
    .gallery-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:600px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery-pagination {
        flex-wrap: wrap;
        gap: 12px;
    }
}

#galleryModal .modal-content {
    background: transparent;
    box-shadow: none;
}

#galleryPreviewImage {
    max-height: 75vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
}

#galleryModal .btn-close {
    font-size: 1rem;
    opacity: 1;
}