/* slider-component.css */

/* Popup Wrapper - Logic Container */
.popup-wrapper {
    display: none;
    /* Hidden by default */
    z-index: 1000;
}

    /* Show class for click interaction */
    .popup-wrapper.show {
        display: block;
        animation: fadeIn 0.3s ease-out;
    }

/* NEW: Backdrop Div */
.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(225, 225, 225, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    opacity: 0;
}

/* Animate backdrop when wrapper has .show */
.popup-wrapper.show .popup-backdrop {
    animation: backdropFadeIn 0.5s ease-out forwards;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup-content {
    position: relative;
    /* Box Dimensions */
    width: 900px;
    max-width: 95vw;
    max-height: 95vh;
    overflow-y: auto;
    /* Visuals */
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    /* Content Animation */
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 20;
}

    .popup-close:hover {
        color: #333;
    }

.popup-header h3 {
    margin-top: 0;
    font-weight: 600;
    color: #333;
    font-size: 2em;
}

.popup-header p {
    margin-bottom: 20px;
}

/* Slider Container */
.slider-container {
    position: relative;
    margin-bottom: 20px;
}

.main-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #333;
    height: 450px;
    background-color: #fff;
}

/* Slides Track for Animation */
.slides-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide-image {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full image is visible */
    display: block;
}

/* Custom Arrows */
.slider-control-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-size: 20px;
    z-index: 10;
    transition: all 0.2s;
    opacity: 0;
}

.slider-container:hover .slider-control-custom {
    opacity: 1;
}

.slider-control-custom:focus {
    text-decoration: none;
}

.slider-control-custom:hover {
    background-color: #f0f0f0;
    color: #000;
    transform: translateY(-50%) scale(1.1);
    text-decoration: none;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

/* Thumbnails */
.thumbnail-container {
    margin-top: 20px;
    padding: 0 20px;
}

.thumbnail-wrapper {
    padding: 0 10px;
}

.thumbnail-item {
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}

    .thumbnail-item img {
        width: 100%;
        height: 100px;
        object-fit: cover;
        display: block;
    }

    .thumbnail-item:hover {
        opacity: 0.8;
    }

    .thumbnail-item.active {
        opacity: 1;
        border-color: #333;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

.flex-center {
    display: flex;
    justify-content: center;
}

.popup-footer {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
