/* Стили для корневого элемента слайдера */
.itcss {
    position: relative;
    max-width: 100vw;
    margin-right: auto;
    margin-left: auto;
}

.itcss *,
.itcss *:before,
.itcss *:after {
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

/* Стили для wrapper */
.itcss__wrapper {
    position: relative;
    overflow: hidden;
    background-color: #eee;
}

/* Стили для элемента, в котором непосредственно расположены слайды */
.itcss__items {
    display: flex;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 1s ease;
    will-change: transform;
    counter-reset: slide;
}

/* Стили для слайдов */
.itcss__item {
    position: relative;
    flex: 0 0 100%;
    max-width: 100%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    counter-increment: slide;
}

/* Высота слайдера */
.itcss__image {
    aspect-ratio: 2.5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.000rem;
    font-weight: bold;
    color: white;
    transition: transform 1s ease;
    transition-delay: 0s;
    transform: scale(1);
}

.itcss__item_active .itcss__image {
    transition-delay: 1s;
    transform: scale(1.1);
}

.itcss__image picture {
    display: contents;
}

.itcss__image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Кнопки Prev и Next */
.itcss__btn {
    position: absolute;
    top: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 4rem;
    color: #fff;
    background: rgb(0 0 0 / 10%);
    border: none;
    outline: none;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.5;
    user-select: none;
}

.itcss__btn_hide {
    display: none;
}

.itcss__btn:hover,
.itcss__btn:focus {
    color: #fff;
    text-decoration: none;
    border: none;
    opacity: 0.7;
}

.itcss__btn_prev {
    left: 0;
}

.itcss__btn_next {
    right: 0;
}

.itcss__btn::before {
    content: "";
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
}

.itcss__btn_prev::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.itcss__btn_next::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Индикаторы */
.itcss__indicators {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 5%;
    margin: 0 44%;
    padding: 0 10px;
    list-style: none;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 15px;
}

.itcss__indicator {
    flex: 0 1 auto;
    width: 30px;
    height: 2px;
    background-color: rgb(255 255 255 / 50%);
    background-clip: padding-box;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    cursor: pointer;
}

.itcss__indicator_active {
    background-color: #fff;
}

/* Класс для отключения transition */
.transition-none {
    transition: none;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

.itcss__item_active .itcss__text {
    animation-name: fadeIn;
    animation-duration: 2s;
}

@media screen and (max-width: 1024px) {
    .itcss__indicators {
        margin: 0 40%;
    }
}

@media screen and (max-width: 768px) {
    .itcss__indicators {
        display: none;
    }
}