/* ==========================================================================
   MEDIA CAROUSEL & LIGHTBOX STYLE
   ========================================================================== */

/* Carousel Container */
.media-carousel-container {
    position: relative;
    width: 100%;
}

.media-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Slide Styles */
.media-carousel-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-carousel-slide-inner {
    position: relative;
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Dark hover overlay */
.media-carousel-slide-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.3);
    opacity: 1;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.media-carousel-slide-inner:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.media-carousel-slide-inner:hover::after {
    background-color: rgba(15, 23, 42, 0.45);
}

/* Play Button Overlay */
.media-carousel-play-button {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: transparent;
    border: 3px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    outline: none;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.media-carousel-play-button svg {
    width: 35%;
    height: 35%;
    fill: #ffffff;
    margin-left: 3px; /* visual alignment tweak for triangle */
    transition: fill 0.3s ease;
}

.media-carousel-play-button:hover, 
.media-carousel-play-button:focus {
	background: transparent;
	border-color: #fff;
}

/* Swiper Navigation inside page */
.media-carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0f172a;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    padding: 0;
}

.media-carousel-nav-btn:hover {
    background-color: transparent;
    color: #ffffff;
}

.media-carousel-nav-btn.btn-prev {
    left: 0;
}

.media-carousel-nav-btn.btn-next {
    right: 0;
}

.media-carousel-pagination {
    position: relative;
    text-align: center;
    margin-top: 25px;
}
.media-carousel-nav-btn svg {
	fill: #fff;
	width: 20px;
	height: 20px;
}

.media-carousel-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: #cbd5e1;
    opacity: 1;
    margin: 0 6px !important;
    transition: width 0.3s ease, border-radius 0.3s ease, background-color 0.3s;
    cursor: pointer;
}

.media-carousel-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 5px;
    background-color: #0284c7;
}

/* ==========================================================================
   LIGHTBOX MODAL POPUP STYLE
   ========================================================================== */

body.media-carousel-lightbox-open {
    overflow: hidden !important;
}

.media-carousel-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.98);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
}

.media-carousel-lightbox-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Lightbox Header Bar */
.media-carousel-lightbox-modal .lightbox-header-bar {
    width: 100%;
    height: 80px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0) 100%);
    box-sizing: border-box;
    z-index: 1000001;
}

/* Left Group (Counter, Logo, Titles) */
.media-carousel-lightbox-modal .lightbox-header-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.media-carousel-lightbox-modal .lightbox-header-counter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.media-carousel-lightbox-modal .lightbox-header-counter {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    font-weight: 500;
}

.media-carousel-lightbox-modal .lightbox-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.media-carousel-lightbox-modal .lightbox-header-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 2px;
    box-sizing: border-box;
}

.media-carousel-lightbox-modal .lightbox-header-text-group {
    display: flex;
    flex-direction: column;
}

.media-carousel-lightbox-modal .lightbox-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.media-carousel-lightbox-modal .lightbox-header-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 2px 0 0 0;
    line-height: 1.2;
}

/* Right Group (Controls) */
.media-carousel-lightbox-modal .lightbox-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.media-carousel-lightbox-modal .lightbox-btn-icon {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s, transform 0.2s;
    outline: none;
}

.media-carousel-lightbox-modal .lightbox-btn-icon:hover {
    color: #0284c7;
    transform: scale(1.05);
}

.media-carousel-lightbox-modal .lightbox-close-btn {
    font-size: 24px;
    font-weight: 300;
}

/* Lightbox Content Area */
.media-carousel-lightbox-modal .lightbox-content-area {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 80px;
    box-sizing: border-box;
    position: relative;
}

.media-carousel-lightbox-modal .lightbox-media-container {
    max-width: 90%;
    max-height: 80vh;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background-color: #000000;
}

/* responsive media sizing classes */
.media-carousel-lightbox-modal .lightbox-media-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.media-carousel-lightbox-modal .lightbox-media-container video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    outline: none;
}

.media-carousel-lightbox-modal .lightbox-media-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Navigation inside Lightbox */
.media-carousel-lightbox-modal .lightbox-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    z-index: 1000002;
    transition: color 0.3s, transform 0.3s;
    outline: none;
    user-select: none;
}

.media-carousel-lightbox-modal .lightbox-nav-arrow:hover {
    color: #0284c7;
}

.media-carousel-lightbox-modal .lightbox-nav-prev {
    left: 10px;
}

.media-carousel-lightbox-modal .lightbox-nav-next {
    right: 10px;
}

.media-carousel-lightbox-modal .lightbox-nav-prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.media-carousel-lightbox-modal .lightbox-nav-next:hover {
    transform: translateY(-50%) translateX(4px);
}

/* Responsive adjustment for Mobile viewports */
@media (max-width: 767px) {
    .media-carousel-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .media-carousel-nav-btn.btn-prev {
        left: -10px;
    }
    .media-carousel-nav-btn.btn-next {
        right: -10px;
    }
    .media-carousel-lightbox-modal .lightbox-header-bar {
        padding: 0 12px;
        height: 70px;
    }
    .media-carousel-lightbox-modal .lightbox-header-left {
        gap: 8px;
    }
    .media-carousel-lightbox-modal .lightbox-header-logo {
        max-height: 30px;
    }
    .media-carousel-lightbox-modal .lightbox-header-title {
        font-size: 13px;
    }
    .media-carousel-lightbox-modal .lightbox-header-subtitle {
        font-size: 11px;
    }
    .media-carousel-lightbox-modal .lightbox-content-area {
        padding: 10px 40px;
    }
    .media-carousel-lightbox-modal .lightbox-nav-arrow {
        font-size: 30px;
        padding: 10px;
    }
    .media-carousel-lightbox-modal .lightbox-nav-prev {
        left: 0px;
    }
    .media-carousel-lightbox-modal .lightbox-nav-next {
        right: 0px;
    }
}
