.gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    grid-gap: 24px;
    margin: 0 auto;
    max-width: 1180px;
}
.gallery-section .gallery-grid .image-left {
    grid-column: 1 / span 5;
    grid-row: 1 / span 2;
    width: 100%;
}
.gallery-section .gallery-grid .image-top-center {
    grid-column: 6 / span 4;
    width: 100%;
}
.gallery-section .gallery-grid .image-top-right {
    grid-column: 10 / span 3;
    width: 100%;
}
.gallery-section .gallery-grid .image-bottom {
    grid-column: span 7;
    grid-row: 2 / span 1;
}
.gallery-section .gallery-grid [class*="image-"] {
    border-radius: 24px;
}
.gallery-section .gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.gallery-grid .image-left {
    height: 780px;
}
.gallery-grid .image-top-center {
    height: 377px;
}
.gallery-grid .image-top-right {
    height: 377px;
}
.gallery-grid .image-bottom {
    height: 377px;
}

/* Media Queries */
@media (max-width: 1230px) {
    .gallery-grid .image-left img, .gallery-grid .image-top-center img, .gallery-grid .image-top-right img, .gallery-grid .image-bottom img {
        height: 100%;
    }
}

@media (max-width: 767px) {
    .gallery-grid .image-left, .gallery-grid .image-top-center, .gallery-grid .image-top-right, .gallery-grid .image-bottom {
        height: auto;
    }
    .gallery-section .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .gallery-section .gallery-grid .image-left,
    .gallery-section .gallery-grid .image-top-center,
    .gallery-section .gallery-grid .image-top-right,
    .gallery-section .gallery-grid .image-bottom {
       grid-column: span 1;
       grid-row: span 1;
    }
    

    .gallery-section .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-section .gallery-grid .image-left,
    .gallery-section .gallery-grid .image-top-center,
    .gallery-section .gallery-grid .image-top-right,
    .gallery-section .gallery-grid .image-bottom {
        grid-row: span 1;
        text-align: center;
    }
    .gallery-section .gallery-grid .image-bottom {
        grid-column: span 1;
    }
    .gallery-section .gallery-grid img {
        width: 100%;
        height: auto;
        max-width: 400px;
        max-height: 300px;
    }
    .gallery-section .gallery-grid .image-left {
        order: 4;
    }
    .gallery-section .gallery-grid .image-top-center {
        order: 1;
    }
    .gallery-section .gallery-grid .image-top-right {
        order: 2;
    }
    .gallery-section .gallery-grid .image-bottom {
        order: 3;
    }
}