.image-zoom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.image-zoom-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.image-zoom-close {
    position: fixed;
    top: 15px;
    right: 50%;
    transform: translateX(250px);
    color: #ffffff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.image-zoom-close:hover,
.image-zoom-close:focus {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(250px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Swiper Container */
.zoom-swiper-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: auto;
    max-height: 80vh;
    z-index: 10000;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.zoom-swiper-container .swiper-wrapper {
    align-items: center;
}

.zoom-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.zoom-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 20px 20px;
}

.zoomed-image {
    width: 460px;
    height: 460px;
    max-width: calc(100% - 40px);
    max-height: calc(100% - 60px);
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: zoom-in;
    border-radius: 4px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    will-change: transform;
    padding: 10px;
}

.zoomed-image.zoomed {
    cursor: grab;
}

.zoomed-image.zoomed:active {
    cursor: grabbing;
}

/* Swiper Navigation Buttons - Hidden */
.zoom-swiper-button-next,
.zoom-swiper-button-prev {
    display: none !important;
}

/* Swiper Pagination */
.zoom-swiper-pagination {
    bottom: 15px !important;
    position: relative !important;
    padding: 15px 0;
}

.zoom-swiper-pagination .swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 4px !important;
}

.zoom-swiper-pagination .swiper-pagination-bullet-active {
    background: #00a445;
    box-shadow: 0 0 8px rgba(0, 164, 69, 0.5);
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-zoom-modal.active .zoomed-image {
    animation: fadeIn 0.3s ease;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .image-zoom-close {
        right: 10px;
        transform: none;
        font-size: 40px;
        width: 45px;
        height: 45px;
    }

    .image-zoom-close:hover,
    .image-zoom-close:focus {
        transform: scale(1.1);
    }

    .zoom-swiper-container {
        width: 95%;
        max-width: 500px;
        margin: 0 auto;
    }

    .zoom-image-container {
        padding: 35px 15px 15px 15px;
    }

    .zoomed-image {
        width: 90vw;
        height: 90vw;
        max-width: 420px;
        max-height: 420px;
    }

    .zoom-swiper-pagination {
        bottom: 10px !important;
        padding: 10px 0;
    }
}

/* Hide navigation on single image */
.zoom-swiper-container .swiper-button-next:only-of-type,
.zoom-swiper-container .swiper-button-prev:only-of-type {
    display: none;
}

/* Prevent text selection during zoom/pan */
.image-zoom-modal * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
