
#galleryModal .modal-dialog {
    top: 50%;
    transform: translateY(-50%);
    margin: auto !important;
}

.gallery-box {
    overflow-y: auto !important;
    overflow-x: hidden;
    align-content: flex-start;
    scrollbar-color: #959595 #d7d7d7;
    scrollbar-width: thin;
}



.gallerymodal-right {
    width: 60%;
    background-color: #ddd;
    border-radius: var(--border-sm) !important;
}

.gallerymodal-left {
    width: 40%;
}

.gallerymodal-left .content-details #content-like {
    position: absolute;
    top: -20px;
}

.gallerymodal-left .media-dsc {
    background-color: #ddd;
}

#galleryModal {
    background-color: #fffa;
}

.next-btn,
.prev-btn {
    position: absolute;
    top: 50%;
    bottom: 50%;
    font-size: 31px;
}

.next-btn {
    right: 1rem;
}

.prev-btn {
    left: 1rem;
}

/*.footer i {*/
/*    display: inherit;*/
/*}*/

.content-comment input {
    flex: 1;
    height: 4rem;
    background-color: #ededed;
    padding: .5rem 1.5rem;
    outline: none;
    border: none;
}

.content-comment button {
    width: 4.5rem;
    border-radius: 50%;
    height: 4.5rem;
    padding: 0;
    background-color: #ededed;
}

.main-img-box .like {
    background-color: #ddd;
    color: red;
    font-size: 2.3rem;
    border-radius: 5rem;
    padding: 1.5rem;

}

/*.main-img-box.gallery-main-img{*/
/*    aspect-ratio: 55 / 59 ;*/
/*}*/

.gallery-img-box {
    height: 360px;
}

.main-img-box.gallery-main-img img {
    object-fit: contain;
}

.content-details {
    background-color: #ededed;
    border-radius: 4rem;
    font-size: 2rem;
}

.content-details .like {
    background-color: #fff;
    color: red;
    font-size: 2.3rem;
    border-radius: 5rem;
    padding: 1.5rem;
    border: 1px solid #e8e8e8;

}

main-img-box .main-img {
    border-radius: var(--border-sm) !important;
}

.main-img-like {
    right: 50%;
    transform: translateX(50%);
    bottom: -29px;
}


@media (min-width: 0px) {
    .main-img-box.gallery-main-img img {
        max-height: 45vh;
    }

}

@media only screen and (min-width: 300px) {

    .content-dsc {
        margin-bottom: 2rem;
    }

    .gallery-nav {
        font-size: 1.15rem;
    }

    .modal-content {
        height: 100%;
        overflow: auto;
    }

    /*.modal-dialog {*/
    /*    margin: 0 !important;*/
    /*}*/
    .gallerymodal-right,
    .gallerymodal-left {
        width: 100%;
    }

    .middle-caption p,
    .middle-caption .tags {
        display: none;
    }


}

@media only screen and (min-width: 380px) {

    .gallery-nav {
        font-size: 14px;
    }

    .gallerymodal-right,
    .gallerymodal-left {
        width: 100%;
    }

    .middle-caption p,
    .middle-caption .tags {
        display: none;
    }

}

@media only screen and (min-width: 480px) {
    .gallery-filter span {
        font-size: 1.5rem;
    }

    .gallery-filter {
        gap: 4rem;
    }

    .galleryModal .modal-dialog {
        width: 40rem !important;
    }

    .modal-content {
        height: auto;
    }

    .gallerymodal-right,
    .gallerymodal-left {
        width: 100%;
    }

    .middle-caption p,
    .middle-caption .tags {
        display: none;
    }

}

@media only screen and (min-width: 576px) {

    .gallery-filter span {
        opacity: 0;
    }

    .gallery-filter button:hover ~ span {
        opacity: 1;
        color: #fff;
        bottom: -5rem;
    }

    .gallery-filter {
        padding: 2rem 6rem;
    }

    .gallery-filter button {
        width: 7rem;
        height: 7rem;
    }

    .galleryModal .modal-dialog {
        width: 45rem !important;
        height: auto;
    }

    .gallerymodal-right,
    .gallerymodal-left {
        width: 100%;
    }

    .middle-caption p,
    .middle-caption .tags {
        display: none;
    }

}

@media only screen and (min-width: 768px) {

    .galleryModal .modal-dialog {
        width: 65rem !important;

    }

    .gallerymodal-right,
    .gallerymodal-left {
        width: 100%;
    }

    .middle-caption p,
    .middle-caption .tags {
        display: block;
    }


}

@media only screen and (min-width: 992px) {
    .galleryModal .modal-dialog {
        width: 80rem !important;

    }

    .gallerymodal-right {
        width: 60%;
    }

    .gallerymodal-left {
        width: 40%;
    }

    .middle-caption p,
    .middle-caption .tags {
        display: block;
    }

}

@media only screen and (min-width: 1200px) {
    .main-img-box.gallery-main-img img {
        max-height: 80vh;
    }

    .galleryModal .modal-dialog {
        width: 90rem !important;

    }

    .gallerymodal-right {
        width: 60%;
    }

    .gallerymodal-left {
        width: 40%;
    }

    .middle-caption p,
    .middle-caption .tags {
        display: block;
    }


}

@media only screen and (min-width: 1400px) {
    .galleryModal .modal-dialog {
        width: 150rem !important;

    }

    .gallerymodal-right {
        width: 60%;
    }

    .gallerymodal-left {
        width: 40%;
    }

    .middle-caption p,
    .middle-caption .tags {
        display: block;
    }

}

@media only screen and (max-width: 480px) {
    #galleryModal .modal-dialog {
        width: 100% !important;
        height: 100% !important;
    }
}