/* ########################### */
/* ####  ETHER SLIDESHOW #### */

.ether-slideshow {
    position: fixed;
    top: 0;  /* Position below lessence section */
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.ether-background-video {
    max-height: 912px;
    max-width: 1450px;
    width: auto;
    height: 85%;
    position: absolute;
    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    object-fit: contain;
    z-index: 0;
    /* opacity: 0; */
    transition: opacity 1s ease;
}

.ether-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    visibility: hidden;
}

.ether-slide-video-wrapper {
    position: absolute;
    /* top: 50%;
    left: 50%; */
    /* transform: translate(-50%, -50%); */
    width: auto;
    height: 100%;
    aspect-ratio: 1.59; /* Match background video ratio (1450/912) */
    display: flex;
    align-items: center;
    justify-content: center;
    /* z-index removed to prevent stacking context */
    visibility: hidden;
    pointer-events: none;
}

.ether-slide-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full video inside wrapper */
    position: relative;
    z-index: 2; /* Z-index on video itself, not wrapper */
    mix-blend-mode: multiply;
}

/* Individual video configurations for each slide */
.ether-slide-video-1 {
    max-height: auto;
    max-width: 80%;
    margin-top: 40vh;
    margin-right: 2vw;
    object-fit: contain; /* Show full video inside wrapper */
    mix-blend-mode: multiply;
}

.ether-slide-video-2 {
    max-height: auto;
    max-width: 60%;
    margin-top: 25vh;
    margin-right: 3vw;
    object-fit: contain; /* Show full video inside wrapper */
    mix-blend-mode: multiply;
}

.ether-slide-video-3 {
    max-height: auto;
    max-width: 50%;
    margin-top: 7%;
    margin-right: -20%;
}

.ether-slide-video-4 {
    max-height: auto;
    max-width: 70%;
    margin-top: 35vh;
    margin-right: 2%;
}

.ether-slide-video-5 {
    max-height: auto;
    max-width: 70%;
    margin-top: 30vh;
    margin-right: 3%;
}

.ether-slide.active {
    visibility: visible;
}

.ether-container {
    max-width: 1100px;
    margin-top: 22vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(10px, 2vh, 30px);
    position: relative;
    z-index: 1;
}

/* Slide 1 - center all text */
.ether-slide[data-slide="1"] .ether-container {
    align-items: center;
}

.ether-slide[data-slide="1"] .ether-text {
    text-align: center;
}

/* Slide 2 - centered text with left margin */

.ether-slide[data-slide="2"] .ether-header {
    text-align: center;
}

.ether-slideshow .ether-slide[data-slide="2"] .ether-text {
    text-align: center !important;
    margin-left: 30%;
    margin-top: 2%;
}

.ether-slide[data-slide="2"] .ether-content-wrapper {
    position: relative;
}

.ether-slide[data-slide="2"] .ether-text-column {
    width: 100%;
    max-width: 100%;
}

.ether-slide[data-slide="2"] .ether-photo-column {
    position: absolute;
    right: -5vw;
    top: 0;
    pointer-events: none;
}

/* Slide 3 - left-aligned text */
.ether-slide[data-slide="3"] .ether-container {
    /* align-items: flex-start; */
    max-width: clamp(600px, 70vw, 950px);
}

.ether-slide[data-slide="3"] .ether-text {
    text-align: left;
    width: 100%;
    margin-left: 10%;
    /* left: 45%; */
}

/* Slide 4 - slide specific styles */
.ether-slide[data-slide="4"] .ether-container {
    align-items: center;
    /* max-width: clamp(600px, 70vw, 900px); */
    margin-left: auto;
    margin-right: auto;
}

.ether-slide[data-slide="4"] .ether-text {
    text-align: center;
}

/* Slide 5 - slide specific styles */
.ether-slide[data-slide="5"] .ether-container {
    align-items: center;
    /* max-width: clamp(600px, 70vw, 900px); */
    margin-left: auto;
    margin-right: auto;
}

.ether-slide[data-slide="5"] .ether-text {
    text-align: center;
}

.ether-header {
    width: 100%;
    margin-top: -4vh;
}

.ether-title {
    font-family: 'DancingScript-Bold', cursive;
    font-size: clamp(40px, 8vh, 85px);
    font-weight: 700;
    color: #1f2f4a;
    line-height: 100%;
    visibility: hidden;
}

.ether-subtitle {
    font-family: 'DancingScript-Regular', cursive;
    font-weight: 500;
    font-size: clamp(24px, 4.5vh, 50px);
    color: #1f2f4a;
    margin: 0;
    visibility: hidden;
}

.ether-slideshow .ether-text {
    font-family: 'PatrickHand-Regular', cursive;
    font-size: clamp(18px, 3vh, 32px);
    color: #1f2f4a;
    margin-top: 1vh;
    line-height: 1.5;
    visibility: hidden;
    text-align: left;
}

/* Two-column layout for slide 1 */
.ether-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(30px, 5vw, 80px);
    width: 100%;
    max-width: clamp(800px, 80vw, 1200px);
    margin-top: 4vh;
}

.ether-text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2vh;
    text-align: left;
}

.ether-photo-column {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ether-green-text {
    color: #31875a;
}

.ether-heart-line-decoration {
    display: flex;
    width: 199px;
    height: 28px;
    margin-left: 11vw;
    margin-top: -3vh;
    visibility: hidden;
}

/* ########################### */
/* #### ETHER NAVIGATION DOTS #### */

.ether-slide-navigation {
    margin-bottom: 7%;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.ether-slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(31, 47, 74, 0.3);
    border: 2px solid rgba(31, 47, 74, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ether-slide-dot:hover {
    background-color: rgba(31, 47, 74, 0.6);
    transform: scale(1.2);
}

.ether-slide-dot.active {
    background-color: #1f2f4a;
    border-color: #1f2f4a;
    transform: scale(1.3);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .ether-container {
        gap: 15px;
    }

    .ether-title {
        margin-bottom: 15px;
    }

    .ether-subtitle {
        margin-bottom: 25px;
    }
}
