/* =====================
   PREMIUM MEDIA SLIDER
   ===================== */
.media-slider-wrapper {
    margin-top: 2.5rem;
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.media-slider-container {
    display: flex;
    gap: 16px;
    overflow-x: auto !important;
    padding-bottom: 30px;
    scroll-snap-type: x mandatory;
    cursor: grab;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.media-slider-container:active {
    cursor: grabbing;
}

.media-slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.media-slide {
    scroll-snap-align: start;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.4s ease;
    flex: 0 0 auto;
    width: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    position: relative;
}

@media (min-width: 768px) {
    .media-slide {
        width: 450px;
    }
}

.media-slide:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

/* Dash Pagination */
.media-pagination-dash {
    width: 20px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-pagination-dash.active {
    background: #fff;
    width: 35px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

html.light-mode .media-pagination-dash {
    background: rgba(0, 0, 0, 0.1);
}

html.light-mode .media-pagination-dash.active {
    background: #000;
}

/* Scrollbar hide utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Video Overlay Controls */
.media-slide .fa-play {
    pointer-events: none;
}

/* Light mode adjustments for slider */
html.light-mode .media-slide {
    border-color: rgba(0,0,0,0.1);
    background: #f0f0f0;
}

html.light-mode .js-media-prev,
html.light-mode .js-media-next {
    background: rgba(255,255,255,0.9);
    color: #000;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

html.light-mode .js-media-prev:hover,
html.light-mode .js-media-next:hover {
    background: #000;
    color: #fff;
}

/* Lightbox / Zoom Styles */
.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px;
}

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

.media-lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-lightbox.active .media-lightbox-content {
    transform: scale(1);
}

.media-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    display: block;
}

.media-lightbox-close {
    position: absolute;
    top: -50px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-lightbox-close:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .media-lightbox {
        padding: 20px;
    }
    .media-lightbox-close {
        top: -45px;
        right: 0;
    }
}
