/*** Slider ***/

.wp-stories-container.loading {
    position: relative;
    opacity: 0.5;
}

.wp-stories-container.loading:after {
    content: '';
    border-radius: 50%;
    width: 6em;
    height: 6em;
    font-size: 10px;
    position: absolute;
    border-top: 1em solid #4caf50;
    border-right: 1em solid #4caf50;
    border-bottom: 1em solid rgba(255, 255, 255, 0.2);
    border-left: 1em solid #ffffff;
    transform: translateZ(0);
    animation: loading 1.1s infinite linear;
    top: 50%;
    left: 50%;
    margin-left: -40px;
    margin-top: -40px;
    z-index: 9;
}

.wp-stories-container.loaded:after {
    display: none;
}

.wp-stories-container.favorites {
    margin: 20px 0;
}

.wp-stories-container__title {
    margin-bottom: 10px;
    font-size: 1.17em;
    line-height: 1.1;
    font-weight: bold;
}

.wp-stories-slider {
    position: relative;
    height: 130px;
    clear: both;
    margin: 0 0 0 -15px;
    transition: visibility 0.2s ease-out, height 0.2s ease-out;
}

.wp-stories-slider__items {
    display: flex;
    align-items: center;
    padding: 15px 30px 15px 15px;
    overflow-x: hidden;
    scrollbar-width: none;
    transition-duration: 0s !important;
}

.wp-stories-slider__items::-webkit-scrollbar {
    display: none;
}

.wp-stories-container.loaded .wp-stories-slider__items {
    transition-duration: 0.3s !important;
}

.wp-stories-slider-item {
    padding-right: 15px;
}

.wp-stories-slider .tns-controls button {
    display: none;
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    text-indent: -9999px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.wp-stories-slider .tns-controls button:before {
    display: none;
}

.wp-stories-slider .tns-controls button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.wp-stories-slider .tns-controls button[data-controls="prev"] {
    left: -10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14' fill='none'%3E%3Cpath fill='%23fff' d='M3.167 7 9 1.094 8.167.25 1.5 7l6.667 6.75.833-.844L3.167 7Z'/%3E%3C/svg%3E");
}

.wp-stories-slider .tns-controls button[data-controls="next"] {
    right: -10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14' fill='none'%3E%3Cpath fill='%23fff' d='M8.833 7 3 1.094 3.833.25 10.5 7l-6.667 6.75L3 12.906 8.833 7Z'/%3E%3C/svg%3E");
}

.wp-stories-slider .tns-controls button[disabled] {
    display: none;
}

.wp-stories-slider .tns-liveregion.tns-visually-hidden {
    display: none;
}

.wp-stories-slider-item__inside {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    padding: 8px;
    text-align: center;
    background: var(--background);
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.wp-stories-slider-item__inside:before,
.wp-stories-slider-item__inside:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 15px;
}

.wp-stories-slider-item__inside:before {
    width: 100%;
    height: 100%;
    box-shadow: var(--box-shadow);
    opacity: 0.2;
    transition: opacity 0.3s ease-in-out;
}

.wp-stories-slider-item__inside:hover:before {
    opacity: 0.7;
}

.wp-stories-slider-item__inside:after {
    width: calc(100%);
    height: calc(100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.wp-stories-slider-item:hover .wp-stories-slider-item__inside {
    transform: translateY(-15px);
}

.wp-stories-slider-item--has-image .wp-stories-slider-item__inside {
    align-items: flex-start;
}

.wp-stories-slider-item__text {
    width: calc(100% - 4px);
    max-height: calc(100% - 4px);
    font-size: 14px;
    line-height: 16px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgb(0 0 0 / 55%);
    color: #ffffff;
    overflow: hidden;
}

.wp-stories-slider-item--has-image .wp-stories-slider-item__text {
    display: flex;
    align-items: flex-end;
    position: absolute;
    bottom: 2px;
    left: 2px;
    height: calc(100% - 4px);
    padding: 10px;
    font-weight: 500;
    text-align: left;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 80%);
    border-radius: 0 0 14px 14px;
}

.wp-stories-slider-item img {
    display: block;
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 14px;
    object-fit: cover;
    object-position: top;
}

.wp-stories-slider--full {
    height: 180px !important;
}

.wp-stories-slider--full .wp-stories-slider-item__inside {
    width: 140px !important;
    height: 150px !important;
}

.wp-stories-slider--full .wp-stories-slider-item {
    position: relative;
}

.wp-stories-slider--full .wp-stories-slider-item:before {
    content: "";
    display: block;
    position: absolute;
    top: 6px;
    right: 21px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.50);
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none'%3E%3Cg fill='%23fff' clip-path='url(%23a)'%3E%3Cpath d='M3 1V0H0v3h1V1.7l1.9 1.9.7-.7L1.7 1H3ZM9 8.3 7.1 6.4l-.7.7L8.3 9H7v1h3V7H9v1.3ZM7 0v1h1.3L6.4 2.9l.7.7L9 1.7V3h1V0H7ZM2.9 6.4 1 8.3V7H0v3h3V9H1.7l1.9-1.9-.7-.7Z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h10v10H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    border-radius: 50%;
    overflow: hidden;
    transition: top 0.3s ease-in-out;
    z-index: 1;
    cursor: pointer;
}

.wp-stories-slider--full .wp-stories-slider-item:hover:before {
    top: -11px;
}

.wp-stories-slider--full .wp-stories-slider-item__text {
    font-size: 14px !important;
    line-height: 16px !important;
}

.wp-stories-slider--default-90 {
    height: 120px;
}

.wp-stories-slider--default-90 .wp-stories-slider-item__inside {
    width: 90px;
    height: 90px;
}

.wp-stories-slider--default-90 .wp-stories-slider-item__text {
    font-size: 12px;
    line-height: 14px;
}

.wp-stories-slider--expand-64 {
    height: 94px;
}

.wp-stories-slider--expand-64 .wp-stories-slider-item__inside {
    width: 64px;
    height: 64px;
    padding: 4px;
}

.wp-stories-slider--expand-64 .wp-stories-slider-item__text {
    font-size: 10px;
    line-height: 14px;
}

.wp-stories-slider--expand-64 .wp-stories-slider-item--has-image .wp-stories-slider-item__text {
    display: none;
}

.wp-stories-slider--expand-100 {
    height: 130px;
}

.wp-stories-slider--expand-100 .wp-stories-slider-item__inside {
    width: 100px;
    height: 100px;
}

@-webkit-keyframes loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {

    .wp-stories-slider .tns-controls button {
        display: block;
        z-index: 1;
    }
}