* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-overflow-scrolling: touch;
}

.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.mobile-only {
    display: none;
}

.slide.desktop-only {
    display: block;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

.content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.headline {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    color: #ffffff;
    padding: 0 2rem;
    opacity: 0;
    animation: fadeIn 2s ease-out 0.5s forwards;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .slide video {
        object-position: 35% center;
    }
}

@media (max-width: 900px) {
    .slide video {
        object-position: 25% center;
    }
}

@media (max-width: 768px) {
    .headline {
        font-size: clamp(3rem, 12vw, 6rem);
        padding: 0 1.5rem;
    }

    .slide video {
        object-position: 15% center;
    }

    .slide.mobile-only {
        display: block;
    }

    .slide.mobile-only video {
        object-position: 15% center;
    }

    .slide.desktop-only {
        display: none;
    }
}

@media (max-width: 480px) {
    .slide video {
        object-position: 0% center;
    }

    .slide.mobile-only video {
        object-position: 0% center;
    }
}
