/* Important: Override theme lazy loading and other image hiding styles */
.webwest-popup-overlay img,
.webwest-popup-overlay img[data-tgpli-image-inited],
.webwest-popup-container img,
.webwest-slider-slide img,
.webwest-popup-single img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Popup Overlay */
.webwest-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.webwest-popup-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

/* Popup Container */
.webwest-popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.webwest-popup-overlay.show .webwest-popup-container {
    transform: scale(1);
}

/* Close Button */
.webwest-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webwest-popup-close:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* Popup Content */
.webwest-popup-content {
    width: 100%;
    height: 100%;
}

/* Single Flyer */
.webwest-popup-single img {
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    height: auto;
    display: block;
}

/* Slider */
.webwest-popup-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
}

.webwest-slider-track {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.webwest-slider-slide {
    display: none;
}

.webwest-slider-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.webwest-slider-slide img {
    max-width: 800px;
    max-height: 80vh;
    width: 100%;
    height: auto;
    display: block;
}

/* Slider Navigation Buttons */
.webwest-slider-prev,
.webwest-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webwest-slider-prev:hover,
.webwest-slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.webwest-slider-prev {
    left: 10px;
}

.webwest-slider-next {
    right: 10px;
}

/* Slider Dots */
.webwest-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.webwest-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.webwest-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.webwest-slider-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .webwest-popup-container {
        max-width: 95%;
    }

    .webwest-popup-single img,
    .webwest-slider-slide img {
        max-width: 100%;
    }

    .webwest-slider-prev,
    .webwest-slider-next {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .webwest-popup-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}
