﻿.custom-image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* max-width: 800px; */
    margin: 0px auto 64px auto;
}

.custom-main-image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 1s ease-in-out;
}

    .custom-main-image-container img {
        max-width: inherit;
        height: auto;
        object-fit: contain;
        transition: opacity 0.5s ease-in-out, height 1s ease-in-out;
        opacity: 1;
        background: linear-gradient(45deg, #b9b9b969, #00000008);
    }

        .custom-main-image-container img.fade-out {
            opacity: 0;
        }

.custom-zoom-lens {
    position: absolute;
    border: 2px solid rgba(255, 165, 0, 0.5);
    width: 100px;
    height: 100px;
    display: none;
    pointer-events: none;
    z-index: 10;
}

.custom-zoom-result {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid #ddd;
    background-color: #fff;
    overflow: hidden;
    display: none;
    z-index: 11;
    right: -471px;
    top: 0;
}

    .custom-zoom-result img {
        position: absolute;
        width: 300%;
        height: auto;
    }

.custom-thumb-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    max-width: 600px;
    overflow: hidden;
    width: 100%;
}

.custom-thumbnails {
    display: flex;
    transition: transform 0.3s ease;
}

    .custom-thumbnails img {
        width: 100px;
        height: 100px;
        object-fit: contain;
        margin: 0 5px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border 0.3s ease;
    }

        .custom-thumbnails img:hover,
        .custom-thumbnails img.active {
            border-color: #f60;
        }

.custom-arrow {
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    width: 40px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    border-radius: 4px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}

.custom-arrow-left {
    left: 0px;
}

.custom-arrow-right {
    right: 0;
}
/* General styles for zoom lens */
.custom-zoom-lens {
    position: absolute;
    border: 2px solid rgba(255, 165, 0, 0.5);
    width: 100px;
    height: 100px;
    display: none; /* Default state */
    pointer-events: none;
    z-index: 10;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .custom-zoom-lens {
        display: none; /* Hide zoom lens on mobile */
    }
}
