/* Button styling (optional - if you keep the button) */
.open-slider-btn {
    padding: 12px 24px;
    font-size: 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px;
}

.open-slider-btn:hover {
    background: #45a049;
}

/* Popup - COMPLETELY TRANSPARENT BACKGROUND */
.slider-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Fully transparent */
    justify-content: center;
    align-items: center;
}

/* Popup content - FREE FLOATING BOX with NO background */
.slider-popup-content {
    position: relative;
    background: transparent; /* No background */
    padding: 0; /* Remove padding */
    border-radius: 0; /* No border radius */
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    box-shadow: none; /* Remove shadow */
}

/* Close button - positioned relative to image */
.close-popup {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.close-popup:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Slider container - NO BACKGROUND */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: transparent; /* No background */
}

/* Image styling - with subtle shadow for visibility */
.slider-image {
    max-width: 70vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    background: transparent;
}

/* Navigation buttons - with semi-transparent background for visibility */
.prev-slide, .next-slide {
    background-color: rgba(0,0,0,0.5); /* Semi-transparent for visibility */
    color: white;
    font-size: 36px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 50%;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.prev-slide:hover, .next-slide:hover {
    background-color: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.prev-slide:active, .next-slide:active {
    transform: scale(0.95);
}

/* Image counter - floating with semi-transparent background */
.image-counter {
    margin-top: 20px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    background: rgba(0,0,0,0.6);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* No images message */
.no-images {
    color: white;
    text-align: center;
    padding: 40px;
    background: rgba(0,0,0,0.7);
    border-radius: 10px;
    font-family: monospace;
}

.no-images p {
    margin: 10px 0;
}

.no-images strong {
    color: #ff6b6b;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

/* Responsive design */
@media (max-width: 768px) {
    .slider-image {
        max-width: 85vw;
        max-height: 60vh;
    }
    
    .prev-slide, .next-slide {
        font-size: 24px;
        padding: 10px 15px;
    }
    
    .close-popup {
        top: -30px;
        right: -30px;
        font-size: 30px;
    }
}

/* Animation for popup appearance */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slider-image {
    animation: fadeInScale 0.3s ease;
}