/* Professional Full-Screen Lightbox */
.rj-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.rj-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.rj-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.rj-lightbox-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.rj-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rj-lightbox-content img,
.rj-lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.rj-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.rj-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.rj-lightbox-prev,
.rj-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.rj-lightbox-prev:hover,
.rj-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.rj-lightbox-prev {
    left: 30px;
}

.rj-lightbox-next {
    right: 30px;
}

.rj-lightbox-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 3;
}

/* Gallery item styles */
.rj-gallery-item {
    position: relative;
    cursor: pointer;
}

.rj-gallery-item .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0.8;
    transition: all 0.3s;
}

.rj-gallery-item:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.rj-gallery-item video {
    pointer-events: none;
}

/* Slider Play Button */
.slider-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    opacity: 0.9;
    transition: all 0.3s;
    z-index: 2;
}

.rj-slide:hover .slider-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Polaroid Play Button */
.rj-polaroid-video-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.polaroid-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0.9;
    transition: all 0.3s;
    z-index: 2;
}

.rj-polaroid-item:hover .polaroid-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Professional Slider Design */
.rj-gallery-slider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: unset !important;
    overflow: hidden;
    box-shadow: 0 0 0 1px #ddd;
    border: 5px solid #fff;
    background: #fff;
}

.rj-slider-container {
    width: 100%;
    height: var(--slider-height, 400px);
    position: relative;
    overflow: hidden;
}

.rj-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.rj-slide.active {
    opacity: 1;
    transform: scale(1);
}

.rj-slide img,
.rj-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rj-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slider Navigation */
.rj-slider-prev,
.rj-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rj-slider-prev:hover,
.rj-slider-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.rj-slider-prev {
    left: 20px;
}

.rj-slider-next {
    right: 20px;
}

/* Slider Counter */
.rj-slider-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.rj-current {
    font-weight: 700;
}

/* Responsive Slider */
@media (max-width: 768px) {
    .rj-slider-container {
        height: 300px;
    }
    
    .rj-slider-prev,
    .rj-slider-next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .rj-slider-prev {
        left: 10px;
    }
    
    .rj-slider-next {
        right: 10px;
    }
}

/* Video Controls */
video {
    outline: none;
}

video::-webkit-media-controls-download-button {
    display: none;
}

video::-webkit-media-controls-fullscreen-button {
    display: none;
}

video::-webkit-media-controls-picture-in-picture-button {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .rj-lightbox-prev,
    .rj-lightbox-next {
        position: fixed;
        top: 50%;
        font-size: 24px;
        padding: 8px 12px;
    }
    
    .rj-lightbox-prev {
        left: 10px;
    }
    
    .rj-lightbox-next {
        right: 10px;
    }
    
    .rj-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }
    
    .rj-lightbox-counter {
        bottom: 10px;
    }
}