
#imageViewerModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}
section.gallery img{
    /* transform: scale(1.05); */
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    /* class="w-full h-32 md:h-40 object-cover rounded-md shadow-md cursor-pointer" */
    width: 100%;
    height: 100%;
    max-height: 25vh;
    object-fit: cover;
    border-radius: 0.375rem;
    box-shadow: 4px 8px 6px rgba(0, 0, 0, 0.733);
    cursor: pointer;
    aspect-ratio: 1;
    object-position: 50% 10%;
}
section.gallery img:hover{
    transform: scale(1.2);
    overflow: hidden;
    /* height: 11rem; */
    /* width: 80%; */
    transition: all 0.3s 100ms ease-out;
    object-position: 50% 60%;
    /* object-fit: contain; */
}

.image-viewer-prev {
    left: 0;
}
.image-viewer-next {
    right: 0;
}
.image-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 16px;
    transition: 0.3s;
}

.image-viewer-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

@media (min-width: 640px) {
    .span-2-col {
        grid-column: span 2;
    }
}
section.gallery img.span-2-row {
    grid-row: span 2;
    max-height: 100%;
    
}