/* Sekcja: slider - pełny CSS sekcji (zapis zagnieżdżony). */

.slider-wrapper {
    display: flex;
    max-width: 100%;
    min-width: 100%;
    margin-bottom: 10px;
    height: 1000px;
    max-height: calc(100vh - 190px);

    .slide {
        width: 100%;
        min-width: 100%;

        &.animation-element.active {
            z-index: 2;
        }

        &.animation-element:not(.active):not(.next-slide) {
            display: none;
        }
    }

    .slide-wrapper {
        position: relative;
        height: 100%;
        display: flex;
        align-content: center;
        justify-content: center;
        overflow-x: hidden;
    }

    .slide-bg {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: -1;
        background-color: var(--light-bg);

        .image {
            height: 100%;
            margin: 0;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .slide-inner {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .photo {
        margin-left: auto;
        max-width: 50%;
        max-height: 100%;
        overflow-y: hidden;
        padding-left: 20px;
        padding-right: 20px;

        img {
            max-width: 100%;
            height: auto;
        }
    }

    .text {
        width: 100%;
        background-color: rgba(201, 201, 201, 0.7);
        padding: 85px 195px 130px 64px;
        max-height: 100%;
        overflow-y: hidden;

        .slide-content {
            p,
            li,
            ul,
            ol {
                color: var(--element1-text);
            }
        }

        .buttons {
            justify-content: flex-start;

            .btn-primary {
                color: var(--element1-btn1-text);
                background-color: var(--element1-btn1-bg);
                border-color: var(--element1-btn1-border);

                &:hover {
                    color: var(--element1-btn1-text-hover) !important;
                    background-color: var(--element1-btn1-bg-hover) !important;
                    border-color: var(--element1-btn1-border-hover) !important;
                }
            }

            .btn-secondary {
                color: var(--element1-btn2-text);
                background-color: var(--element1-btn2-bg);
                border-color: var(--element1-btn2-border);

                &:hover {
                    color: var(--element1-btn2-text-hover) !important;
                    background-color: var(--element1-btn2-bg-hover) !important;
                    border-color: var(--element1-btn2-border-hover) !important;
                }
            }
        }

        a,
        button {
            margin-left: 0;
            background-color: var(--text-hover);
            border: none;

            &:hover {
                border: none !important;
            }
        }

        * {
            color: var(--light);
        }

        .slide-title,
        .slide-subtitle {
            margin: 0;
        }

        .slide-title {
            font-size: 1.75rem;
        }

        .slide-subtitle {
            font-size: 1.5625rem;
            font-weight: 400;
        }

        .title {
            margin-bottom: 20px;

            h1,
            h2 {
                color: var(--element1-title);

                span {
                    color: var(--element1-highlighted-title);
                }
            }
        }
    }
}

@media (max-width: 575.5px) {
    .slider-wrapper {
        height: 450px;

        &.resolution-desktop {
            display: none;
        }

        .text {
            margin-right: auto;
            margin-left: auto;
            width: 100%;
            max-width: 95%;
            padding: 25px 10px;

            .title {
                margin-bottom: 10px;
            }

            .buttons {
                margin-top: 10px;
            }
        }
    }
}

@media (min-width: 576px) and (max-width: 767.5px) {
    .slider-wrapper {
        height: 400px;

        &.resolution-desktop {
            display: none;
        }

        .text {
            padding: 25px;
            margin-right: auto;
            margin-left: auto;
            width: 100%;
            max-width: 95%;

            .title {
                margin-bottom: 10px;
            }

            .buttons {
                margin-top: 10px;
            }
        }
    }
}

@media (min-width: 768px) and (max-width: 991.5px) {
    .slider-wrapper {
        height: 600px;

        .animation-buttons .btn-animate {
            width: 35px;
            height: 35px;

            .line1 {
                width: 11px;
                height: 3px;
            }

            .line2 {
                width: 17px;
                height: 3px;
            }

            .line3 {
                width: 11px;
                height: 3px;
            }
        }

        &.resolution-mobile {
            display: none;
        }

        .photo {
            max-width: 40%;
        }

        .text {
            padding: 25px 70px 25px 30px;
            margin-left: auto;
            width: 100%;
            max-width: 60%;

            .title {
                margin-bottom: 15px;
            }

            .buttons {
                margin-top: 10px;
            }
        }
    }
}

@media (min-width: 992px) and (max-width: 1199.5px) {
    .slider-wrapper {
        height: 800px;

        .animation-buttons .btn-animate {
            width: 35px;
            height: 35px;

            .line1 {
                width: 11px;
                height: 3px;
            }

            .line2 {
                width: 17px;
                height: 3px;
            }

            .line3 {
                width: 11px;
                height: 3px;
            }
        }

        &.resolution-mobile {
            display: none;
        }

        .photo {
            max-width: 40%;
        }

        .text {
            padding: 35px 85px 35px 45px;
            margin-left: auto;
            width: 100%;
            max-width: 60%;
        }
    }
}

@media (min-width: 1200px) and (max-width: 1579.5px) {
    .slider-wrapper {
        height: 900px;

        &.resolution-mobile {
            display: none;
        }

        .text {
            padding: 50px 85px 50px 45px;
            margin-left: auto;
            width: 100%;
            max-width: 50%;
        }
    }
}

@media (min-width: 1580px) {
    .slider-wrapper {
        &.resolution-mobile {
            display: none;
        }

        .text {
            margin-left: auto;
            width: 100%;
            max-width: 50%;
        }
    }
}
