:root {
    --plus-icon-square-size: 50px;
    --box-height-default: 20vh;
    --box-height: var(--box-height-default);
    --nextBtnInCarouselRight: 0;
}

.modal-title {
    width: 100%;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-size: 20px !important;
}

.modal-content {
    background-color: #2877B3;
}

.modal-content .modal-header .btn-close-2 {
    /* border-radius: 50%; */
    width: 40px;
    height: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-width: 3px;
    position: absolute;
    right: 15px;
    border-color: transparent;
    border-radius: 50%;
    opacity: 0.5;


}

.modal-content .modal-header .btn-close-2 img {
    margin: auto;
    width: 100%;
    height: 100%;
    /* filter: invert(100%) brightness(100%) contrast(100%); */
}

.modal-content .modal-header {
    max-height: 60px;
    border-bottom: none;
}

.box .footer {
    /* display: none !important; */
}

.box .footer .post-card-button {
    height: 2.0rem
}

.modal-content .modal-footer {
    display: none;
}

.modal-content .modal-body {
    padding-top: 0px;
}

/* // `lg` applies to medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .modal-content .modal-header {
        max-height: 50px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .modal-content .modal-header .btn-close-2 {

        right: 0px;
        top: -42px;
        /* right: 30px; */
        /* top: 10px;
        position: fixed; */
    }

    .modal-title {
        /* max-width: calc(100% - 25px); */
        margin: 0 auto;
        line-height: 1.1;
        font-size: 15px !important;
        /* background: red; */

    }

    .modal-body {
        --bs-modal-padding: 0.5rem;
    }

    .modal-content .modal-body .box {
        height: 100%;
        max-height: calc(0.8*var(--window-height));
    }

    .modal-content .modal-body .box .card .thumbs>.row {
        flex-wrap: wrap;
        overflow-y: hidden;
        overflow-x: auto;
        /* border: 2px solid red; */
        width: auto !important;
        justify-content: center;
        align-items: center !important;
    }

    .box .p-box {
        display: flex;
        flex-direction: column;
    }

    .box .p-box .imgshow {
        height: calc(0.4*var(--window-height));

    }

    .box .p-box .row-right {
        /* max-height: calc(0.4*var(--window-height) - 5px); */
        /* max-height: calc( 0.2*var(--window-height)  ); */
        overflow-x: hidden;
        overflow-y: auto;
        margin-top: 5px;
        /* font-size: 30px;
        border: 3px solid red; */
    }

    .p-box .row-right .text {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 1px !important;
        /* font-size: 20px; */
        /* background: tan; */
    }

    .p-box .imgshow img {
        height: 100%;
    }

    .box .footer {
        background: #fff;
        opacity: 0;
    }

    div[popup_type="post_card"] .modal-content .modal-body .box .footer.card-footer {
        opacity: 1 !important;
    }

    .box .footer .post-card-button {
        height: 1.5rem;
    }

    .box .card .content {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .box .card .thumbs {}

    .box .card .thumbs {
        /* flex-basis: 100%; */
        /* border: 2px solid green; */

    }

    .box .card .thumbs .item {
        padding: 0;
        /* border: 1px solid; */
        max-height: 100%;
        height: 100%;
    }

    .box .card .thumbs .item label {
        font-size: 0.75rem;
    }

    .box .card-form textarea {
        font-size: 0.52rem;
        margin-top: -6px;
    }

    .box .card-form {
        right: unset !important;
        left: calc(50% + 30px);
    }

    .box {
        --text-decoration-under-line-div: 10px;
        /* height: calc( var(--window-height) - 150px ); */
    }

    .modal-fullscreen .modal-content {
        height: calc(100% - 50px);
        position: absolute;
        bottom: 0;
    }

    .modal-fullscreen .modal-content .modal-body .box {
        max-height: calc(1*var(--window-height) - 100px - 5px);
    }

    /* // Small devices (landscape phones, 576px and up) */
    @media (min-width: 375px) {
        .box .card-form textarea {
            font-size: 0.65rem;
        }

        .box .card-form {
            right: unset;
            left: calc(50% + 30px);
        }

        .box {
            --text-decoration-under-line-div: 15px;
        }

        .box .footer .post-card-button {
            height: 1.8rem;
        }
    }

    @media screen and (max-width: 576px) and (min-width: 500px) {
        .box .card-form {
            width: max(150px, 30%) !important
        }
    }



}