﻿

.carousel-container {
    width: 100%;
    margin-top: 32px;
}

.main-image {
    width: 100%;
    height: 655px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}


.thumbnails {

    gap: 10px;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

    .thumbnails img {
        width: 100%;
        max-width: 182px;
        height: 120px;
        object-fit: cover;
        cursor: pointer;
        transition: border 0.3s ease;
    }


.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    position: relative;
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup img {
    width: 690px;
    height: 390px;
    object-fit: cover;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 40px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.arrow {
    position: absolute;
    top: 200px;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    font-size: 20px;
    background: rgba(213, 38, 24, 1);
    color: #fff;
    border-radius: 75px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-left {
    left: 306px;
}

.arrow-right {
    right: 306px;
}


.popup-thumbnails-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
    max-width: 100%;
    padding: 10px 0;
    position: relative;
    scroll-padding: 10px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}

    .popup-thumbnails-wrapper::-webkit-scrollbar {
        display: none;
    }

.popup-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    transition: transform 0.3s ease-in-out;
}

    .popup-thumbnails img {
        width: 200px;
        height: 134px;
        object-fit: cover;
        cursor: pointer;
        transition: transform 0.3s ease, border 0.3s ease;
        flex: 0 0 auto;
        scroll-snap-align: center;
    }

        .popup-thumbnails img.active {
            transform: scale(1.2);
            margin-right: 20px;
            margin-left: 20px;
        }

@media (max-width: 1040px) {
  

    .close-btn {
        top: -100px;
        right: 40px;
    }
}

@media (min-width: 769px) and (max-width: 1040px) {
    .thumbnails {
         flex-wrap: wrap;
    }

    .main-image{
        height:auto;
    }

    .arrow-left {
        left: 35px;
    }
    .arrow-right {
        right: 35px;
    }
}

    @media (max-width: 768px) {

        .popup-thumbnails img {
            width: 140px;
            height: 80px;
        }

        .main-image {
            display: none;
        }

        .thumbnails {
            flex-wrap: wrap;
        }

            .thumbnails img {
                width: 48%;
            }

        .arrow {
            display: none;
        }

        .close-btn {
            top: -100px;
            right: 20px;
        }

        .popup-image {
            width: 390px !important;
            height: 100% !important;
        }
    }