/* 
 * Luxury Hero Slider CSS
 */

.lhv-hero-slider-wrapper,
.tns-outer,
.tns-inner,
.lhv-slider-container {
    height: 100vh !important;
    height: 100dvh !important; /* Modern mobile compatibility */
    width: 100% !important;
}

.lhv-slide-item {
    position: relative;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
}

.lhv-slide-item[data-clickable="true"] {
    cursor: pointer;
}

/* Hide controls if only one slide */
.lhv-single-slide .lhv-nav,
.lhv-single-slide .lhv-counter,
.lhv-single-slide .tns-nav {
    display: none !important;
}

.lhv-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000; 
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.lhv-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Back to Full Width as requested */
    object-position: center bottom; /* Priority to show the bottom part clearly */
    image-rendering: -webkit-optimize-contrast; 
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: transform;
    transform: translateZ(0); /* Hardware acceleration */
    -webkit-transform: translateZ(0);
}

.lhv-bg-video.lhv-video-loaded {
    opacity: 1;
}

/* YouTube iframe — Optimized for Full-Width (Cover) */
.lhv-yt-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 ratio of 100vh */
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.lhv-yt-iframe.lhv-video-ready {
    opacity: 1;
}

/* Force YouTube to cover perfectly based on aspect ratio */
@media (max-aspect-ratio: 16/9) {
    .lhv-yt-iframe {
        width: 177.77vh; 
        height: 100vh;
    }
}
@media (min-aspect-ratio: 16/9) {
    .lhv-yt-iframe {
        width: 100vw;
        height: 56.25vw;
    }
}


.lhv-slide-content {
    position: relative;
    z-index: 10;
    text-align: center !important;
    color: #ffffff !important;
    pointer-events: none;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.lhv-slide-content h1, 
.lhv-slide-content h6, 
.lhv-slide-content p,
.lhv-slide-content a {
    color: #ffffff !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Better readability */
}

.lhv-category {
    font-size: clamp(10px, 1vw, 12px);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0.8;
}

.lhv-title {
    font-size: clamp(24px, 4vw, 60px); /* Responsive sizing */
    font-weight: 300;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.lhv-location {
    font-size: clamp(12px, 1.2vw, 14px);
    letter-spacing: 2px;
    margin-top: 20px;
    font-weight: 300;
}

.lhv-title a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Nav Controls */
.lhv-nav {
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.lhv-nav-prev {
    left: 0;
}

.lhv-nav-next {
    right: 0;
}

/* Counter */
.lhv-counter {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 300;
    cursor: pointer;
    transition: opacity 0.3s;
}

.lhv-counter:hover {
    opacity: 0.7;
}

.lhv-current {
    font-weight: 500;
}

/* Adjustments for mobile */
@media (max-width: 768px) {
    .lhv-title {
        font-size: 32px;
    }
    .lhv-nav {
        width: 10%;
    }
    .lhv-counter {
        bottom: 20px;
        right: 20px;
    }
}
