.story-list {
    display: flex;
    align-items: center;
    gap: 55px;
    width: min(96%, 1500px);
}

.story-list-title {
    justify-self: center;
    align-self: center;
    font-size: 28px;
    text-align: center;
    font-family: 'SimplePro-H-Bold';
}

.story-list-content .scroll-arrow-up{
    position: absolute;
    top: 30px;
    background: url(/img/arrow.png) no-repeat;
    left: 50%;
    transform-origin: left;
    transform: rotate(180deg) translateX(-50%);
    width: 27px;
    height: 20px;
    margin: 0;
    align-self: start;
    background-size: contain;
    cursor: pointer;
    animation: fadeIn 2s ease-out infinite;
}

.story-list-content {
    height: 100%;
    display: grid;
    justify-content: center;
    width: 50%;
}

.story-list-content .content-wrap {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-height: 90%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.story-list-content-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    border-bottom: solid 2px rgba(255,255,255, 0.4);
    text-align: center;
    width: 450px;
}

.story-list-content-box h3 {
    font-size: 25px;
    margin: 0;
}

.story-list-content-box span {
    font-size: 20px;
    max-width: 324px;
    line-height: 33px;
}

.story-list-media{
    width: 50%;
    display: flex;
    flex-direction: column;
    /*align-items: flex-end;*/
}

.story-list-media-btns {
    display: flex;
    gap: 20px;
    margin: 10px 0 30px 0;
}

.story-list-media-btn {
    cursor: pointer;
    height: 31px;
}

.story-list-media-btn img, .story-list-media-btn svg {
    display: none;
    width: auto;
    max-width: 100%;
    max-height: 100%;
}

.story-list-media-btn.active img:first-child, .story-list-media-btn.active svg:first-child {
    display: none;
}

.story-list-media-btn.active img:last-child, .story-list-media-btn.active svg:last-child  {
    display: block;
}

.story-list-media-btn img:first-child, .story-list-media-btn svg:first-child {
    display: block;
}

.story-list-media-btn img:last-child, .story-list-media-btn svg:last-child {
    display: none;
}

.story-list-media-wrap {
    position: relative;
    display: flex;
    /*justify-content: start;*/
    align-items: start;
    background: #242424;
    height: auto;
    width: auto;
}

.story-list-media-box {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    top: 0;
    right: 0;
    max-height: 100%;
    max-width: 100%;
    padding: 10px;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.story-list-media-box.active {
    position: relative;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.story-list-media-content {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
}

.story-list-media-text {
    font-size: 18px;
    line-height: 33px;
    margin: 0;
}

.story-list-media-content ,
.story-list-media-content video {
    max-width: 100%;
    max-height: 100%;
    /*width: 600px;*/
    /*height: 350px;*/



}

.story-list-media-box{
    object-fit: contain;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.story-list-media-box .circle-media__image{
    max-height: 556px;
    max-width: 639px;
    object-fit: contain;
    width: 100%;
    height: auto;
}

.story-list-media-box.vertical .circle-media__image{
    aspect-ratio: 9 / 16;
}
.story-list-media-box.horizontal .circle-media__image{
    aspect-ratio: 16 / 9;
}

@media all and (display-mode: fullscreen) {
    .story-list-media-content video {
        width: 100%;
        height: 100%;
    }
}

.story-list-media-gallery {
    position: relative;
    width: 590px;
}

.audio-widget.story-list-media-audio {
    width: 600px;
    height: 312px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-list-media-audio span {
    font-size: 18px;
    line-height: 33px;
    margin: 0;
}

.story-list-media-caption {
    display: block;
    font-size: 16px;
    margin: 6px 4px 0 0;
}

.story-list-media-credit {
    display: block;
    font-size: 12px;
    margin: 6px 4px 0 0;
}

.story-list-media:has(.vertical.active) {
    align-items: center;
}

.media-box-bg-mobile {
    display: none;
}

.story-list-ext-btn {
    display: none;
}

.story-list-ext-btn img {
    max-height: 100%;
    max-width: 100%;
}

.story-list-media-box[data-type="video"].vertical{
    width: 100%;
    height: 100%;
}

.story-list-media-box[data-type="video"].vertical .circle-media__video{
    width: auto;
    height: auto;
    align-self: center;
}

.story-list-media-box[data-type="video"].vertical .story-list-media-content video{
    width: 313px;
    height: 556px;
}

.story-list-media-box[data-type="video"].vertical .circle-media__caption{
    width: 313px;
}

.story-list-media-box[data-type="video"]{
    width: 660px;
    height: 390px;
    display: flex;
    justify-content: center;
}

.story-list-media-box[data-type="video"] .circle-media__video{
    width: 600px;
    height: 317px;
}

.story-list-media-box.active[data-type="general-description"]{
    width: 660px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.story-list-media-box[data-type="chat"]{
    width: 393px;
}

.story-list-media-chat {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: 0 30%;
    width: 600px;
}


.blueimp-gallery {
    overflow: unset;
    overflow-x: clip;
}

.blueimp-gallery > .next, .blueimp-gallery > .prev {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.blueimp-gallery > .indicator {
    bottom: -60px !important;
}

.blueimp-gallery > .title {
    top: unset !important;
    bottom: -40px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
    white-space: nowrap;
    display: none;
}

.gallery-caption {
    text-align: right;
    font-family: sans-serif;
    margin-right: 13px;
}

.gallery-caption .credits {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}


/* Laptop  */
@media screen and (min-device-width: 1200px) and (max-device-width: 1600px) and (-webkit-min-device-pixel-ratio: 1){
    .story-list{
        width: 1400px;
    }
}
/* Mobile */
@media (max-width: 768px) {
    .story-list {
        flex-direction: column;
        height: 90%;
    }
    .story-list-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        height: 100%;
    }
    .story-list-content .content-wrap {
        max-height: 65%;
    }
    .story-list-content-box {
        width: 330px;
    }
    .story-list-title {
        font-size: 25px;
        align-self: center;
    }
    .story-list-content-box h3 {
        font-size: 22px;
    }
    .story-list-content-box span {
        font-size: 18px;
        max-width: 250px;
        line-height: 30px;
    }
    .story-list-media {
        
        display: none;
        position: fixed;
        top: 0;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
        z-index: -1;
    }
    .story-list-media.active {
        display: flex;
        z-index: 1;
    }
    .story-list-media-wrap {
        height: auto;
        width: 100%;
        margin: 20px;
    }
    .story-list-media-content {
        overflow-y: auto;
        max-height: 376px;
    }

    .story-list-media-box .circle-media__image{
        max-height: 376px;
    }


    .story-list-media-box {
        padding: 36px 15px;
    }
    .audio-widget.story-list-media-audio {
        width: auto;
        height: 250px;
    }
    .story-list-ext-btn {
        display: block;
        position: relative;
        top: -16px;
        width: 16px;
        height: 16px;
        z-index: 1;
        cursor: pointer;
    }
    .story-list-media-gallery {
        width: 340px !important;
    }
    .story-list-media-gallery .blueimp-gallery {
        width: 100%;
        height: 350px;
        margin: 0;
        padding-bottom: 0;
    }
    .story-list-media-box[data-type="video"]{
        height: auto;
        flex-direction: column;
    }
    .story-list-media-box[data-type="video"] .circle-media__video{
        width: 100%;
        height: 200px;
    }

    .story-list-media-box[data-type="video"].vertical .story-list-media-content video{
        width: 340px;
        height: 370px;
    }
}

