.gridwrapper {
    display: grid;
    grid-template-columns: 15% 70% 15%;
    background-color: var(--bg-body);
}

.gridwrapper img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.galleryBody {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    justify-content: center;
    margin: 20px;
}

.galleryCard {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease;
}

.galleryCard:hover {
    transform: translateY(-4px);
}

.galleryCard img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.galleryCaption {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    font-family: 'Karla', 'Manjari', sans-serif;
}

@media screen and (max-width: 1000px) {
    .gridwrapper {
        grid-template-columns: 5% 90% 5%;
    }
    .galleryBody {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 680px) {
    .galleryBody {
        grid-template-columns: repeat(2, 1fr);
        margin: 12px;
    }
}

@media screen and (max-width: 440px) {
    .galleryBody {
        grid-template-columns: repeat(1, 1fr);
    }
}