.webstories {
    background-color: #f5f5f5;
    grid-column: span 9;
    grid-row: span 3;
    padding: 30px 70px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.webstories-wrapper {
    max-width: 1070px;
}

.webstories *{
    box-sizing: border-box;
}
.webstories header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
    align-items: center;
}

.webstories span {
    color: #2f2f2f;
    font-family: "GiorgioSans-Regular";
    font-size: 60px;
}

.webstories-menu-mobile .webstories-menu-list li {
    padding: 5px 0;
    border-bottom: 1px solid #B1AAAA;
}

.webstories-container {
    width: 100%;
    display: flex;
    margin-top: 20px;
    flex-direction: row;
    justify-content: space-between;
}

.webstories-slide-box > h2 {
    font-size: 20px;
    line-height: 24px;
}


/* SPLIDE */
.webstories-splide{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
.webstories-slide-box{
    width: 250px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}
.webstories-slide-box .webstories-img{
    position: relative;
    margin: 0px 0px 0px 0px;
    border-radius: 5px;
    width: 250px;
    height: 400px;
    object-fit: cover;
    transition: all .5s;
}

.webstories-slide-box .webstories-img:hover {
    transform: scale(1.05);
}
.webstories-slide-box h2 {
    font-family: "GuardianSans-Semibold";
    font-size: 20px;
    color: white;
    position: absolute;
    bottom: 0;
    padding: 20px;
    border-radius: 5px;
    background: linear-gradient(0deg, #000000 15%, rgba(151, 157, 171, 0) 90%);
    max-width: 282px;
    height: 190px;
    padding-top: 77px;    
}
.webstories-splide .splide__slide {
    max-width: 250px;
    min-width: 250px;
    max-height: 400px;
    min-height: 400px;
}
.webstories-splide .splide__list {
    display: flex;
    column-gap: 23px;
}

.webstories-splide .splide__pagination {
    display: none !important;
}
.webstories-splide .splide__arrow{
    top: 50%;
    background:none;
    width: 3em;
}
.webstories-splide .splide__arrow--prev {
    left: -4em;
}
.webstories-splide .splide__arrow--next {
    right: -4em;
}
.webstories-splide .splide__arrow svg {
    fill: #2f2f2f;
    height: 6.2em;
    width: 6.2em;
}

#lightbox {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: #000000c7;
    top: 0;
    left: 0;
}

@media (max-width:900px){
    .webstories-category a, .webstories-category button {
        cursor: pointer;
        color: white;
        padding: 5px 10px;
        white-space: nowrap;
    }
    .webstories-category {
        display: none;
    }

    #webstories-button-mobile {
        display: block;
        height: 36px;
    }

    .webstories header > h2 {
        color: yellow;
        font-family: "GiorgioSans-Regular";
        font-size: 50px;
        padding-right: 5px;
    }
    #lightbox iframe, #lightbox video {
        width: 100vw !important;
        height: calc(100vw - 100px) !important;
    }
}
@media (max-width:700px){
    .webstories {
        background-color: #f5f5f5;
        grid-column: span 2;
        grid-row: span 3;
        padding: 20px 0;
    }
        .webstories-wrapper {
        max-width: 100%;
    }
    .webstories header {
        display: flex;
        flex-direction: row;
        overflow: hidden;
        width: 100%;
        justify-content: flex-start;
        padding-left: 19px;
    }
    .webstories-category a, .webstories-category button {
        cursor: pointer;
        color: white;
        padding: 5px;
        font-size: 10px;
    }
    .webstories-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .webstories {
        width: 100%;
    }
    .webstories header > h2{
        margin-left: 0px;
    }
    .webstories-splide .splide__list {
        gap: 0;
    }

    .webstories-splide .splide__arrow--next {
        right: 0;
    }
    .webstories-splide .splide__arrow--prev {
        left: 0;
    }
    .webstories-splide .splide__arrow svg {
        fill: #ffffff;
        height: 2.2em;
        width: 2.2em;
    }
    .webstories-splide .splide__arrow{
        top: 43%;
    }
    .webstories-slide-box {
        width: 100%;
    }
    .webstories-splide .splide__slide {
        max-width: unset;
        min-width: unset;
        justify-content: center;
        display: flex;
        max-height: 415px;
    }
    .webstories-slide-box .webstories-img {
        height: 100%;
        width: 100%;
        border-radius: 5px;
    }
    .webstories-category a, .webstories-category button {
        cursor: pointer;
        font-size: 11px;
    }
    .webstories header > h3{
        border-left: 1px solid;
        margin: 14px 0px 0px 0px;
        padding: 0px 0px 0px 10px;
        font-size: 30px;
    }
    .webstories-splide .splide__slide img{
        margin: auto;
    }

    .webstories-slide-box h2 {
        max-width: unset;
        width: -webkit-fill-available;
        font-size: 26px;
        line-height: 27px;
    }

    .webstories-splide .splide__list a {
        width: -webkit-fill-available;
    }
}