:root {
    --slidegap: 0.5rem;
    --main-color: #ec9d27;
}

@media screen and (max-width: 768px) {
    :root {
        --slidegap: 0.5rem;
    }
}

.transition {
    transition: 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.my_carousel {
    position: relative;
    overflow: hidden;
    margin: 1rem 0;
}

.my_carousel .item-parent {
    position: relative;
    margin: 0 calc(var(--slidegap) * (-1))
}

.my_carousel .item-list {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    padding: 0;
    margin: 0;
    left: 0;
    overflow: initial;

}

.my_carousel .item-list > div {
    display: block;
    position: relative;
    flex-shrink: 0;
    padding: 0 var(--slidegap)
}

.my_carousel .item-list .item > div {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    padding: 1rem;
    height: 100%;
}

.my_carousel .item-list img {
    display: block;
    width: 100%;
    height: auto;
}

.my_carousel .item-list .item figure {
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
}

.my_carousel .item-list .item figcaption {
    margin: 0;
    display: block;
    position: absolute;
    bottom: 2rem;
    left: 0;
    background: #fff;
    padding: 0.5rem 1rem;
}

.my_carousel.fading .item-list {
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    overflow: hidden;
}

.my_carousel.fading .item-list .item {
    margin: 0;
    padding: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    -webkit-transition: opacity 0.8s ease-in-out;
}

.my_carousel.fading .item-list .item.active {
    position: relative;
    z-index: 1;
    opacity: 1;
}

.my_carousel .nav {
    bottom: 0;
    left: 0;
    text-align: center;
    padding: 0.5rem 0;
    width: 100%;
    z-index: 2;
}

.my_carousel .nav div {
    background: rgba(102, 102, 102, 0.3);
    width: 12px;
    height: 12px;
    border-radius: 12px;
    margin: 0 1vw;
    display: inline-block;
    cursor: pointer;
    transition: width 0.3s ease-in-out;
    -webkit-transition: width 0.3s ease-in-out;
    -moz-transition: width 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out;
}

.my_carousel .nav div:hover {
    background: var(--main-color);
}

.my_carousel .nav .active {
    background: var(--main-color);
}

.my_carousel .prev,
.my_carousel .next {
    position: absolute;
    display: flex;
    justify-content: center;
    cursor: pointer;
    top: 50%;
    margin-top: -15px;
    width: 2rem;
    height: 2rem;
    
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    z-index: 2;
}

.my_carousel .next {
    right: 5px;
}

.my_carousel .prev {
    left: 5px;
}

.my_carousel .prev svg,
.my_carousel .next svg {
    width: 1rem;
    height: auto;
}

.my_carousel .prev svg path,
.my_carousel .next svg path {
    fill: #333;
    width: 3rem;
    height: auto;
}

.my_carousel .prev:hover:before,
.my_carousel .next:hover:before,
.my_carousel .prev:hover:after,
.my_carousel .next:hover:after {
    border-color: var(--main-color);
}

.my_carousel.single {
    margin: 0;
    padding: 0;
}

.my_carousel.single .item-parent {
    margin: 0;
    padding-bottom: 40px;
}

.my_carousel.single .item-list > div {
    padding: 0;
    width: 100%;
}