@media (min-width: 992px) and (max-width: 1199.98px) {
    footer>button {
        width:0;
        height: 4rem;
    }

    footer>button>svg {
        /* height: 5rem; */
        /* margin-top: -4.25rem; */

        /* height: 60px; */
        top:15px;
    }

    
    #next {
        /* padding-right: 40px; */
        padding-left: 5px;
        margin-right: 12px;
        width: 15%;
    }
    #prev {
        padding-right: 5px;
        /* padding-left: 40px; */
        margin-left: 12px;
        width: 15%;
    }
    #next::before, #prev::before {
        width: 20px;
        height: 20px;
    }
    #prev::before {
        /* margin-left: -25px; */
        left: 5px;
    }
    #next::before {
        /* margin-right: -25px;  */
        right: 5px;
    }

    .nav-btn {
        /* font-size: 14px; */
    }

    /* #list_view {
        padding-right: 12px;
        height: max-content
    }

    .ct-side-bar-wrapper {
        display: flex;
        flex-direction: column;
        overflow: scroll;
        height: 100dvh;
        justify-content: space-between;
    } */
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* .ct-heading-text {
        width: calc(100% - 75px);
        margin-left: 75px;
        width: 90%;
        margin-left: 10%;
    } */

    /* #modal> .ct-heading-area > .ct-close-btn {
        width: 75px;
    } */

    #modal> .ct-heading-area > .ct-close-btn > button {
        width: 40px;
        height: 40px;
    }

    footer>button {
        height: 4rem;
    }

    footer>button>svg {
        /* height: 5rem; */
        /* margin-top: -4.25rem; */

        /* height: 60px; */
        top:15px;
    }

    .test {
        overflow-y: scroll;
    }

    #next {
        /* padding-right: 40px; */
        padding-left: 5px;
        margin-right: 12px;
        width: 20%;
    }
    #prev {
        padding-right: 5px;
        /* padding-left: 40px; */
        margin-left: 12px;
        width: 20%;
    }
    #next::before, #prev::before {
        width: 20px;
        height: 20px;
    }
    #prev::before {
        /* margin-left: -25px; */
        left: 5px;
    }
    #next::before {
        /* margin-right: -25px;  */
        right: 5px;
    }

    /* #list_view {
        padding-right: 12px;
        height: max-content
    }

    .ct-side-bar-wrapper {
        display: flex;
        flex-direction: column;
        overflow: scroll;
        height: 100dvh;
        justify-content: space-between;
    } */
}

@media (min-width: 576px) and (max-width: 767.98px) {
    /* .ct-heading-text{
        padding-left: 70px;
        padding-right: 70px;
    } */

    /* .ct-heading-text {
        width: calc(100% - 75px);
        margin-left: 75px;
        width: 90%;
        margin-left: 10%;
    } */

    /* #modal> .ct-heading-area > .ct-close-btn {
        width: 75px;
    } */

    #modal> .ct-heading-area > .ct-close-btn > button {
        width: 35px;
        height: 35px;
    }

    #next {
        /* padding-right: 40px; */
        padding-left: 5px;
        margin-right: 12px;
        width: 25%;
    }
    #prev {
        padding-right: 5px;
        /* padding-left: 40px; */
        margin-left: 12px;
        width: 25%;
    }
    #prev::before {
        /* margin-left: 15px;  */
        left: 5px;
    }
    #next::before {
        /* margin-right: 15px;  */
        right: 5px;
    }
    #next::before, #prev::before {
        width: 20px;
        height: 20px;

    }

    footer>button {
        height: 4rem;
    }

    footer>button>svg {
        /* height: 5rem; */
        /* margin-top: -4.25rem; */

        /* height: 60px; */
        top:15px;
    }

    .custom-img-caption {
        padding: 12px;
    }

    /* #list_view {
        padding-right: 12px;
        height: max-content
    }

    .ct-side-bar-wrapper {
        display: flex;
        flex-direction: column;
        overflow: scroll;
        height: 100dvh;
        justify-content: space-between;
    } */

}

@media (max-width: 575.98px) {
    #modal>h1 {
        font-size: 20px;
    }

    #modal>nav h3 {
        font-size: 18px;
    }

    /* .ct-heading-text {
        width: calc(100% - 50px);
        margin-left: 50px;
        width: 90%;
        margin-left: 10%;
    } */

    /* #modal> .ct-heading-area > .ct-close-btn {
        width: 50px;
    } */

    #modal> .ct-heading-area > .ct-close-btn > button {
        width: 30px;
        height: 30px;
    }

    #modal>nav {
        width: 100%;
        padding: 0px 0px 12px 0px;
    }

    .story-nav {
        padding: 0px;
    }

    .ct-display-mob {
    display: flex;
    flex-direction: column;
    }

    .ct-display-desk {
    display: none;
    }
   /* footer>button {
        height: 4rem;
    } */
    #next, #prev {
        margin: 0px;
    }
    #next {
        /* padding-right: 40px; */
        padding-left: 5px;
        width: 100%;
        margin-right: 12px;
    }
    #prev {
        padding-right: 5px;
        /* padding-left: 40px; */
        width: 100%;
        margin-left: 12px;
    }
    #prev::before {
        /* margin-left: -25px; */
        left: 5px;

    }
    #next::before {
        /* margin-right: -25px;  */
        right: 5px;
    }

    #next::before, #prev::before {
        width: 20px;
        height: 20px;

    }

    #modal h3 {
        margin-bottom: 0px;
    }

    .custom-img-caption {
        padding: 12px;

    }

    figure.image {
        margin: 0px;    
    }

    /* footer>button {
        height: 4rem;
    } */

    footer>button>svg {
        /* height: 5rem; */
        /* margin-top: -4.25rem; */

        /* height: 60px; */
        top: 30px;
    }

    #modal > .ct-heading-area > .ct-close-btn {
        width: 15%;

        order: 1;
    }

    .ct-heading-text {
        width: 85%;
        margin-right: 15%;
        margin-left: 0%;

        order: 2;
    }

    #list_view {
        overflow: auto;
        padding-right: 12px;
        height: calc(100dvh - 265px);
    }

    aside>button.home-button {
        /* top:165px; */
        top: 20px;
    }


}