﻿
.img-zoom-container {
    position: relative;
}



.img-zoom-result {
    border: 1px solid #d4d4d4;
    width: 500px; /* zoom window width */
    height: 500px; /* zoom window height */
    position: absolute;
    top: 0;
    left: 105%; /* show right side of main image */
    background-repeat: no-repeat;
    display: none; /* hidden until hover */
    z-index: 2147483647; /* above forms & text */
}

/* Zoom result window */
/*.img-zoom-result {
    position: absolute;
    right: -110%;
    top: 0;
    width: 400px;
    height: 400px;
    border: 1px solid #ddd;
    background-repeat: no-repeat;
    background-size: 200%;
    display: none;
    z-index: 10;
}*/


.img-zoom {
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.img-zoom-container:hover .img-zoom {
    transform: scale(2); /* zoom level */
}


.main-image {
    width: 100%;
    height: 380px;
    object-fit: contain;
    background: #fff;
}


#modalImage {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain; /* ?? KEY */
    image-rendering: auto;
}


/* Thumbnails */
.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
}

    .thumbnail:hover,
    .active-thumb {
        border-color: #198754;
    }

.gallery-img {
    height: 180px;
    object-fit: cover;
    cursor: pointer;
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

    .image-modal img {
        max-width: 90%;
        max-height: 90%;
    }

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Zoom Lens */
#zoomLens {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255,255,255,0.8);
    display: none;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 200%;
    z-index: 10;
    border-radius: 8px;
}