/* 1. Головний контейнер */
#zoomer {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #fff !important;
    z-index: 999999 !important;
    overflow: hidden !important;

    /* Анімація появи */
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
}

#zoomer.opened {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
}

/* 2. Обгортка для великих фото */
#zoomerImageContainer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 140px) !important; /* Місце для мініатюр */
    overflow: hidden !important;
}

/* 3. Стрічка слайдера */
#imageContainerSlider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0;
    transition: left 0.3s ease-out !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 4. Слайд (один екран) */
#imageContainerSlider .item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    min-width: 100vw !important;
    flex-shrink: 0 !important;
    height: 100% !important;
}

#imageContainerSlider .item img {
    max-width: 95% !important;
    max-height: 90% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* 5. Кнопки навігації (Стрілки) */
#zoomerBigPrevMore,
#zoomerBigNextMore {
    display: block !important;
    position: fixed !important;
    top: 50% !important;
    width: 60px !important;
    height: 80px !important;
    margin-top: -40px !important;
    z-index: 1000005 !important;
    cursor: pointer !important;
    background: url(../images/carouselArrowsBig.png) no-repeat transparent;
    opacity: 0.6;
    transition: opacity 0.2s;
}

#zoomerBigPrevMore {
    left: 20px !important;
    background-position: 0 0 !important;
}

#zoomerBigNextMore {
    right: 20px !important;
    background-position: -57px 0 !important;
}

#zoomerBigPrevMore:hover,
#zoomerBigNextMore:hover {
    opacity: 1 !important;
}

/* 6. Кнопка закриття */
#zoomerExitLink {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 1000006 !important;
    cursor: pointer !important;
    background: url(../images/exitBig.png) center no-repeat rgba(0, 0, 0, 0.05) !important;
    border-radius: 50% !important;
    text-indent: -9999px; /* Ховаємо символ &times; якщо він є в HTML */
    opacity: 0.7;
}

#zoomerExitLink:hover {
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* 7. Контейнер мініатюр */
#zoomerMoreImagesContainer {
    display: flex !important;
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    height: 80px !important;
    z-index: 1000005 !important;
    gap: 10px !important;
    padding: 10px !important;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

#zoomerMoreImagesContainer .item {
    width: 60px !important;
    height: 60px !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    transition: all 0.2s;
    overflow: hidden;
}

#zoomerMoreImagesContainer .item.selected {
    border-color: #000 !important;
    transform: scale(1.1);
}

#zoomerMoreImagesContainer img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}