body,
header,
main,
.container {
    margin: 0;
    padding: 0;
}

.container {
    padding-top: 225px;
    position: relative;
    width: 100%;
    height: 594px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    bottom: 50px;
}

.carousel {
    border-left: 20px solid #fff;
  border-right: 20px solid #fff;
    position: relative;
    width: 100%;
    height: 594px;
    white-space: nowrap;
    overflow: hidden;
}

.series {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

.series-item-0,
.series-item-1,
.series-item-2 {
    flex: 0 0 100%;
    display: none;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.series-item-0.active,
.series-item-1.active,
.series-item-2.active {
    display: flex;
}

.series-item-0 img,
.series-item-1 img,
.series-item-2 img {
    flex: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    max-width: 100%;
}

.series-item-0.active img,
.series-item-1.active img,
.series-item-2.active img {
    flex: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    max-width: 100%;
    animation: slide-out-fwd-center 1s ease-in-out;
}

.carousel-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-20%);
    text-align: center;
}

.carousel-controls button {
    display: inline-block;
    background: #ddd;
    border: none;
    padding: 10px;
    margin: 0 10px;
    cursor: pointer;
}

.carousel-controls #prev {
    font-size: 20px;
    position: absolute;
    left: 0;
    transform: translateX(-50%);
}

.carousel-controls #next {
    font-size: 14px;
    position: absolute;
    right: 0;
    transform: translateX(50%);
}

.carousel-indicators {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 20px;
    left: 0;
}

.carousel-indicators li {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #bbb;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-indicators li.active {
    background-color: #333;
}

@media only screen and (max-width: 768px) {
    .container {
        padding-top: 165px;
        position: relative;
        width: 100%;
        height: 594px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .series {
        flex-wrap: wrap;
    }

    .series-item {
        flex-basis: 50%;
    }

    .series-item-mobile {
        flex-basis: 100%;
    }

}

@media screen and (min-width: 768px) and (max-width: 1024px) {

    .container {
        padding-top: 165px;
        position: relative;
        width: 100%;
        height: 594px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
}
@media screen and (max-width: 499px) {
    .container {
        position: relative;
        width: 100%;
        height: 433px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .carousel {
        position: relative;
        width: 100%;
        height: 594px;
        white-space: nowrap;
        overflow: hidden;
    }
  }
