body {
    background-color: #f1f1f5;
}

main.main {
    margin-top: 15.5rem;
}

.overlay a div h5 span {
    font-size: 16px !important;
}

.gallery-nav {
    top: 81px;
    right: 50%;
    transform: translateX(50%);
    z-index: 11;
    border: none;
}

.gallery-selector.img-special:before{
    content: "\f005";
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1111;
    font-size: 2rem;
    font-family: 'FA';
    color: #f0ad4e;
}
.thumb-active{
    border: 3px solid var(--blue) !important;

}

.content .container {
    position: relative;
    border-radius: var(--border-sm);
    border: 2px solid #fff;
    padding: 1rem !important;
}

.gallery-filter {
    position: absolute;
    top: -49px;
    right: 50%;
    transform: translateX(50%);
    background-color: #f1f1f5a3;
    border-radius: var(--border-lg);
    z-index: 111;
    box-shadow: var(--mainshadow);
    backdrop-filter: saturate(180%) blur(20px);
}

.gallery-nav > li > a {
    background-color: #0000000a !important;
    transition: all .7s;
    border: 0 none transparent !important;
    color: #373a3caa;
}

.gallery-nav > li:first-child > a {
    border-radius: 0 0 7px 0 !important;
}

.gallery-nav > li:last-child > a {
    border-radius: 0 0 0 7px !important;
}

.gallery-nav > li.active > a {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    transition: all .2s;
    border: 0 none transparent !important;
    box-shadow: 0 1px 2px #0002;
    color: #373a3cff;
}

.nav-tabs > li > a {
    margin: 0;
}

.gallery-filter button {
    background-color: #fff4;
    border-radius: 100%;
    outline: none;
    border: none;
    font-size: 2.5rem;
    padding: 0;
    text-align: center;
    margin: auto;
    box-shadow: var(--mainshadow);
    transition: .25s ease-in-out;
}

.gallery-filter span {
    transition: .25s ease-in-out;
    bottom: -2rem;
    position: absolute;
    white-space: nowrap;
    right: 50%;
    transform: translateX(50%);
    text-align: center;
}

.gallery-filter button:hover {
    background-color: #fff8;
}

.gallery-filter .active ~ span {
    bottom: -5rem;
    opacity: 1;
    color: #fff;
    background-color: var(--blackgray);
    padding: 1rem;
    border-radius: 1rem;
    font-weight: 600;
}

.gallery-filter .active {
    background-color: #fff;
}

.gallery-filter i {
    padding: 2rem;
}


.gallery-filter div {
    display: flex;
    flex-direction: column;
}

.heartbeat {
    animation: heartbeat 1s ease-in-out;
}

@keyframes heartbeat {
    0% {
        transform: scale(1.25);
    }

    20% {
        transform: scale(1.5);
    }

    40% {
        transform: scale(1.25);
    }

    60% {
        transform: scale(1.5);
    }

    80% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

.staranim {
    animation: staranim 2.5s ease-in-out;
}

@keyframes staranim {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale() rotate(0);
    }

    50% {
        transform: scale(1.5) rotate(360deg);
    }

    75% {
        transform: rotate(360deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

.clockalert {
    animation: clockalert 1s;
}

@keyframes clockalert {
    0% {
        transform: scale(1) rotate(10deg);
    }

    10% {
        transform: scale(1.1) rotate(-10deg);
    }

    20% {
        transform: scale(1.2) rotate(10deg);
    }

    30% {
        transform: scale(1.3) rotate(-10deg);
    }

    40% {
        transform: scale(1.4) rotate(10deg);
    }

    50% {
        transform: scale(1.5) rotate(-10deg);
    }

    60% {
        transform: scale(1.4) rotate(10deg);
    }

    70% {
        transform: scale(1.3) rotate(-10deg);
    }

    80% {
        transform: scale(1.2) rotate(10deg);
    }

    90% {
        transform: scale(1.1) rotate(-10deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }

}

.eyeanim {
    animation: eyeanim 1s ease-in-out;
}

@keyframes eyeanim {
    0% {
        transform: scaleY(1) scaleX(1);
    }

    25% {
        transform: scaleY(0.3) scaleX(1.2);
    }

    50% {
        transform: scaleY(1.1) scaleX(1.1);
    }

    75% {
        transform: scaleY(0.3) scaleX(1.2);
    }

    100% {
        transform: scaleY(1) scaleX(1);
    }
}

.navcoverpage {
    background-color: #33333369 !important;
}

.navfake {
    z-index: 11111111111 !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 60% !important;
    margin-top: 12rem;
    height: auto;
    display: flex;
    justify-content: space-between;
}

.inner {
    margin: 0;
    width: auto;
    padding: 2rem !important;
}

.img-detalis {
    width: 100%;
    background-color: tomato;
}

.img-caption {
    height: 2rem;
    color: black;
}

#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;
}

.wating-img {
    display: grid;
    gap: 1rem;
}

.wating-img .wating-img-item {
    aspect-ratio: 1 / 1;
    cursor: pointer;
    position: relative;

}

.wating-img .wating-img-item:hover:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
    transition: 0.25s ease-in-out;
    background-color: #43597173;
    z-index: 1111;
    transition: .25s ease-in;

}


.gallerymodal-right {
    background-color: #ddd;
    border-radius: var(--border-sm) !important;
}

.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;
}

.content-next,
.content-prev {
    font-size: 6rem;
    bottom: 50%;
    transform: translateY(50%);
    color: rgba(153, 153, 153, 0.82);
}

.content-prev {
    left: -11rem;
}

.content-next {
    right: -11rem;

}

.footer {
    margin-bottom: 0 !important;
}

@media (min-width: 0px) {
    .main-img-box.gallery-main-img img {
        max-height: 45vh;
    }

    .gallery-filter span {
        color: #fff;
        bottom: -4rem;
    }

    .gallery-filter button {
        width: 5rem;
        height: 5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .gallery-filter {
        padding: 2rem 3.5rem;
    }

    .gallery-filter span {
        font-size: 1.2rem;
    }

    .wating-img {
        grid-template-columns: repeat(4, minmax(50px, 1fr));
    }
    .next-gallery-pg,.prev-gallery-pg{
        top: 3rem;
        font-size: 2rem;
    }

    .next-gallery-pg{
        right: -7px;
    }

    .prev-gallery-pg{
        left: -7px;
    }


}

@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;
    }

    .content-next,
    .content-prev {
        font-size: 3rem;
    }

    .content-next {
        right: -3rem;
        z-index: 11111111111;
    }

    .content-prev {
        left: -3rem;
        z-index: 11111111111;
    }

    .footer-caption,
    .content-comment {
        display: none;
    }

    .content-dsc .close {
        display: none;
    }

    .gallery-filter i {
        padding: 1rem;
    }


}

@media only screen and (min-width: 380px) {
    /* .galleryModal .modal-dialog {
        width: 29rem !important;

    } */
    .gallery-nav {
        font-size: 14px;
    }

    .middle-caption p,
    .middle-caption .tags {
        display: none;
    }

    .content-next,
    .content-prev {
        font-size: 3rem;
    }

    .content-next {
        right: -3rem;
        z-index: 11111111111;
    }

    .content-prev {
        left: -3rem;
        z-index: 11111111111;
    }

    .footer-caption,
    .content-comment {
        display: none;
    }

    .content-dsc .close {
        display: none;
    }

    .gallery-filter i {
        padding: 1rem;
    }
    .wating-img {
        grid-template-columns: repeat(5, minmax(50px, 1fr));
    }

}

@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;
    }


    .middle-caption p,
    .middle-caption .tags {
        display: none;
    }

    .content-next,
    .content-prev {
        font-size: 3rem;
    }

    .content-next {
        right: -4rem;
        z-index: 11111111111;
    }

    .content-prev {
        left: -4rem;
        z-index: 11111111111;
    }
}

@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;
    }

    .middle-caption p,
    .middle-caption .tags {
        display: none;
    }

    .content-next,
    .content-prev {
        font-size: 3rem;
    }

    .content-next {
        right: -4rem;
        z-index: 11111111111;
    }

    .content-prev {
        left: -4rem;
        z-index: 11111111111;
    }

    .next-gallery-pg,.prev-gallery-pg{
        top: 3.5rem;
        font-size: 2rem;
    }

    .next-gallery-pg{
        right: 0px;
    }

    .prev-gallery-pg{
        left: 0px;
    }

    .wating-img {
        grid-template-columns: repeat(6, minmax(50px, 1fr));
    }

}

@media only screen and (min-width: 768px) {
    .content-dsc {
        margin: 0;
    }

    .galleryModal .modal-dialog {
        width: 65rem !important;

    }


    .middle-caption p,
    .middle-caption .tags {
        display: block;
    }

    .content-next,
    .content-prev {
        font-size: 3rem;
    }

    .content-next {
        right: -4rem;
        z-index: 11111111111;
    }

    .content-prev {
        left: -4rem;
        z-index: 11111111111;
    }

    .footer-caption,
    .content-comment {
        display: block;
    }

    .content-dsc .close {
        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;
    }

    .content-next,
    .content-prev {
        font-size: 3rem;
    }

    .content-next {
        right: -4rem;
        z-index: 11111111111;
    }

    .content-prev {
        left: -4rem;
        z-index: 11111111111;
    }

    .wating-img {
        grid-template-columns: repeat(7, minmax(50px, 1fr));
    }
}

@media only screen and (min-width: 1200px) {
    .main-img-box.gallery-main-img img {
        max-height: 80vh;
    }

    .galleryModal .modal-dialog {
        width: 90rem !important;

    }

    .middle-caption p,
    .middle-caption .tags {
        display: block;
    }

    .content-next,
    .content-prev {
        font-size: 3rem;
    }

    .content-next {
        right: -4rem;
        z-index: 11111111111;
    }

    .content-prev {
        left: -4rem;
        z-index: 11111111111;
    }

}

@media only screen and (min-width: 1400px) {
    .galleryModal .modal-dialog {
        width: 150rem !important;

    }

    .middle-caption p,
    .middle-caption .tags {
        display: block;
    }

    .content-next,
    .content-prev {
        font-size: 3rem;
    }

    .content-next {
        right: -7rem;
        z-index: 11111111111;
    }

    .content-prev {
        left: -7rem;
        z-index: 11111111111;
    }
}

@media only screen and (max-width: 480px) {
    #galleryModal .modal-dialog {
        width: 100% !important;
        height: 100% !important;
    }
}