/**
 * Gallery Lightbox Styles
 */

.rssc-lightbox {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.rssc-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.rssc-lightbox-container {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rssc-lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.rssc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.rssc-lightbox-close:hover {
    color: #ccc;
}

.rssc-lightbox-prev,
.rssc-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rssc-lightbox-prev:hover,
.rssc-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ccc;
}

.rssc-lightbox-prev {
    left: 20px;
}

.rssc-lightbox-next {
    right: 20px;
}

.rssc-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10001;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rssc-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .rssc-lightbox-prev,
    .rssc-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .rssc-lightbox-prev {
        left: 10px;
    }

    .rssc-lightbox-next {
        right: 10px;
    }

    .rssc-lightbox-image {
        max-width: 95vw;
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .rssc-lightbox-close {
        font-size: 24px;
        width: 35px;
        height: 35px;
    }

    .rssc-lightbox-prev,
    .rssc-lightbox-next {
        display: none;
    }

    .rssc-lightbox-counter {
        font-size: 12px;
        padding: 8px 15px;
    }
}

/* Ensure gallery images have proper styling */
.rssc-gallery {
    gap: 1rem;
}

.rssc-gallery figure {
    margin: 0;
}

.rssc-gallery img {
    width: 100%;
    height: auto;
    display: block;
}
