.resizable-img {
    width: 20%;
    height: 20%;
    object-fit: cover; /* Keeps the aspect ratio from looking squished */
    cursor: zoom-in;
    transition: all 0.3s ease-in-out;
}

/* Expanded state: Full size */
.resizable-img.full-size {
    /*width: 100%;  !* Or auto if you want original dimensions *!*/
    /*height: auto;*/
    /*object-fit: contain;*/
    /*cursor: zoom-out;*/


    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfect mathematical center */
    width: 90vw;   /* 90% of viewport width */
    max-width: 90vw !important;
    height: 90vh;  /* 90% of viewport height */
    object-fit: contain;
    z-index: 1000; /* Sits on top of everything else */
    cursor: zoom-out;
}


#img-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
    display: none;
    z-index: 999; /* Just below the expanded image */
}

#img-overlay.active {
    display: block;
}

