.res-img {
    position: relative;
    cursor: pointer;
    display: flex;
    width: 70vw;
    margin: 1rem auto;
    justify-content: center;
    align-items: center;
}

.res-img img {
    width: 30vw;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    border: 4px solid greenyellow;
}

.res-img.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    /* Slightly darker background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.res-img.fullscreen img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Ensure image fits without cropping */
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
    /* Override any zoom transforms */
    margin: 0;
    /* Remove any inherited margins */
}

.res-img.fullscreen:focus-within,
.res-img:focus {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

/* Reset any zoom-related styles in fullscreen */
.res-img.fullscreen img.zoom-in,
.res-img.fullscreen img.zoom-out {
    transform: none !important;
}

@media (max-width: 768px) {
    .res-img {
        width: 80vw;
    }

    .res-img img {
        width: 80vw;
    }

    .res-img.fullscreen img {
        max-width: 100vw;
        max-height: 100vh;
        width: auto;
        height: auto;
    }
}

@media (max-width: 480px) {
    .res-img {
        width: 90vw;
    }

    .res-img img {
        width: 90vw;
    }

    .res-img.fullscreen img {
        max-width: 100vw;
        max-height: 100vh;
        width: auto;
        height: auto;
    }
}

.heading2 {
    margin: 1rem auto;
    font-size: 1rem;
    text-align: center;
}