/*
    Dream Gallery - Prototype
*/

.gallery {
    border: 0;
}

.gallery > .load-more {
    text-align: center;
    padding-top: 60px !important;
}

.gallery > .row {
    justify-content: center !important;
    margin-left: -0.3125rem;
    margin-right: -0.3125rem;
}

.gallery > .row > * {
    padding-left: 0.3125rem;
    padding-right: 0.3125rem;
}

.gallery > .row > *:nth-child(n+3){
    padding-top: 0.625rem;
}

.gallery .gallery-item {
    position: relative;
    cursor: pointer !important;
}

.gallery .gallery-item::after {
    content: "";
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 0.2rem;
}

.gallery .gallery-item:hover::after {
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}

.gallery .gallery-item .gallery-item-image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.2rem;
}

.gallery .gallery-item .gallery-item-image video { 
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}    

.gallery .gallery-item .gallery-item-image {
    opacity: 1;
}

.gallery .gallery-item .gallery-item-image .gallery-item-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
    opacity: 1;
    transition: all 600ms ease-out;
    transform: translateY(100%);
}

.gallery .gallery-item .gallery-item-image .gallery-item-content .gallery-item-title {
    color: var(--dark);
    font-size: 0.875rem !important;
    font-family: var(--bs-p-family) !important;
    display: block;
    text-align: left;
    margin: 0;
    padding: 0.625rem 0.9375rem;
    font-weight: bold;
    color: white !important;
    background: var(--primary) !important;
    opacity: 0.9 !important;
}

.gallery .gallery-item:hover .gallery-item-image .gallery-item-content {
    transform: translateY(0%);
    transition: all 600ms ease-out;
}   

.gallery .gallery-item .gallery-item-image .play-button {
    content: "";
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px !important;
    color: white;
    border: 0px solid white;
    border-radius: 40px;
    opacity: 0.7;
}

.gallery .gallery-item:hover .gallery-item-image .play-button {
    opacity: 1;
}



/*modal*/

.temp-hide {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 300ms ease-out !important;
}

.blur-html .modal-body {
    filter: blur(0.25rem) !important;
    opacity: 1 !important;
    transition: all 600ms ease-out !important;
}

body.gallery-popup-open #podium-website-widget {
    position: relative !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -999 !important;
}

.gallery-popup .btn-close {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    z-index: 100;
    filter: invert(0.5);
}

.gallery-popup .btn-close {
    filter: invert(0.25);
}

.gallery-popup .modal-body .modal-image-block {
    overflow: hidden;  
    flex: 1 1 auto !important;
}

.gallery-popup .modal-body .modal-image-block img,
.gallery-popup .modal-body .modal-image-block video {
    border-radius: 0.2rem 0.2rem 0 0;
    width: 100%;
}

.gallery-popup .modal-body .modal-image-block video {
    margin-bottom: -6px;
}    

.gallery-popup .modal-body .modal-text-block {
    display: block !important;
    width: auto !important;   
    padding: 0.9375rem !important;
}

.gallery-popup .modal-body .modal-text-block .modal-text-block-inner {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: space-between !important;
    justify-content: space-between !important;
    width: auto !important;
    height: 100% !important;
}

.gallery-popup .modal-body .modal-text-block .gallery-item-title {
    font-family: var(--bs-h3-family);
    font-size: 1.2rem !important;
    text-align: left;
    line-height: 1.1 !important;
    margin-bottom: 0.25rem;
}

.gallery-popup .modal-body .modal-text-block .gallery-item-description {
    font-family: var(--bs-p-family);
    font-size: 0.9rem !important;
    line-height: 1.3125 !important;
    padding: 1.25rem 0 0.25rem 0 !important;
    text-align: left !important;
    max-width: 100% !important;
    position: relative !important;
}

.gallery-popup .modal-body .modal-text-block .gallery-item-tags {
    text-align: left;
}

.gallery-popup .modal-body .modal-text-block .gallery-item-tags .tag {
    display: inline-block;
    font-family: var(--bs-p-family);
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    background: var(--primary) !important;
    padding: 0.15rem 0.625rem 0.25rem 0.625rem !important;
    border-radius: 1.25rem !important;
    text-transform: capitalize !important;
    color: white !important;
}

.gallery-popup .modal-body .modal-text-block .gallery-item-tags .tag + .tag {
    margin-left: 0.15rem !important;
}

.gallery-popup .modal-body .modal-text-block .gallery-item-created {
    font-family: var(--bs-p-family);
    font-size: 0.8rem !important;
    font-weight: normal !important;
    color: var(--dark) !important;
    opacity: 0.6 !important;
    text-align: left;
    display: block;
    margin-bottom: 0.3125rem;
}

.gallery-popup .modal-body .modal-text-block .inquire-container {
    padding: 0 0 0.625rem 0 !important;
}

.gallery-popup .modal-body .modal-text-block .social-networks {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
}

.gallery-popup .modal-body .modal-text-block .social-networks .network.share {
    width: auto !important;
    height: 24px !important;
    border: 0 !important;  
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.4rem !important;
    margin: 0 !important;
    float: none !important;
    flex: 1 1 auto !important;
}

.gallery-popup .modal-body .modal-text-block .social-networks .network.share + .network.share {
    margin-left: 2px !important;
}

.gallery-popup .modal-body .modal-text-block .social-networks .network.share > i {
    font-size: 16px !important;
    color: white !important;
    margin: 0px 5px 0px 0px !important;
    padding: 0px !important;    
    height: 24px !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gallery-popup .modal-body .modal-text-block .social-networks .network.share > span {
    color: white !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    padding-right: 0 !important;
    white-space: nowrap !important;
}



/*modal pager*/

.gallery-popup-pager {
    position: fixed !important;
    bottom: 50% !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 0.625rem !important;
    font-weight: normal !important;
    text-align: left !important;
    z-index: 6000 !important;
    display: none !important;
    overflow: visible !important;
    height: 0px !important;
}

.gallery-popup-pager button {
    border: 0 !important;
    background: var(--primary) !important;
    color: white !important;
    font-size: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    border-radius: 40px !important;
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: inherit;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 0 25px rgba(0,0,0,0.1) !important;
}

.gallery-popup-pager button:hover,
.gallery-popup-pager button:focus {
    opacity: 1 !important;
    color: var(--primary) !important;
    background: white !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 0 25px rgba(0,0,0,0.15) !important;
}

body.gallery-popup-open .gallery-popup-pager {
    display: block !important;
}

.gallery-popup-pager .gallery-item-prev {
    float: left;
    padding-right: 2px !important;
}

.gallery-popup-pager .gallery-item-next {
    float: right;
    padding-left: 2px !important;
}

@media(min-width:575px){
    .gallery-popup .modal-body .modal-text-block .gallery-item-tags,
    .gallery-popup .modal-body .modal-text-block .gallery-item-title,
    .gallery-popup .modal-body .modal-text-block .gallery-item-created,
    .gallery-popup .modal-body .modal-text-block .gallery-item-description {
        text-align: left !important;
    }
}

@media(min-width:768px){
    .gallery > .row > *:nth-child(n+3){
        padding-top: 0;
    }
    .gallery > .row > *:nth-child(n+4){
        padding-top: 0.625rem;
    }
    .gallery-popup .modal-dialog {
        max-width: calc(100% - 5rem);
    }
    .gallery-popup .modal-body .modal-image-block img,
    .gallery-popup .modal-body .modal-image-block video {
        border-radius: 0.2rem 0 0 0.2rem !important;
    }
    .gallery-popup .modal-body .modal-text-block {
        flex: 1 1 auto !important;
        min-width: 375px !important;
        max-width: calc(400px + 2.5rem) !important;
        margin: 0 auto !important;
        padding: 1.25rem !important;
    }
    .gallery-popup .modal-body .modal-text-block .gallery-item-description {
        flex: 1 1 auto !important;
        padding: 0 !important;
        margin: 1.25rem 0 0 0 !important;
    }
    .gallery-popup .modal-body .modal-text-block .gallery-item-description > div {
        width: 375px;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        margin: 0 !important;
        padding: 0 !important;
        overflow-y: hidden !important;
        overflow-x: hidden !important;
        max-height: 100% !important;
        max-width: 100% !important;
    }
    .gallery-popup .modal-body .modal-text-block .gallery-item-description > div > div {
        padding: 0 40px 0 0 !important;
        overflow-y: scroll;
        overflow-x: hidden;
        height: 100% !important;
        width: calc(100% + 40px) !important;
    }
    .gallery-popup .modal-body .modal-text-block .gallery-item-tags,
    .gallery-popup .modal-body .modal-text-block .gallery-item-title,
    .gallery-popup .modal-body .modal-text-block .gallery-item-created,
    .gallery-popup .modal-body .modal-text-block .gallery-item-description {
        text-align: left !important;
    }
    .gallery-popup .modal-body .modal-text-block .gallery-item-title {
        padding-right: 3rem !important;
    }
    .gallery-popup .modal-body .modal-text-block .inquire-container {
        padding: 0 0 1.25rem 0 !important;
    }
}

@media(max-width:574px){
    .gallery-popup-pager {
        bottom: calc(40px + 0.625rem) !important;
    }
    .gallery-popup .modal-dialog-centered {
        margin: 0.5rem 0.5rem calc(40px + 1.25rem) 0.5rem !important;
    }
}    

@media(min-width:575px) and (max-width:991px){
    .gallery-popup .modal-dialog {
        max-width: calc(100% - calc(60px + 2.5rem)) !important;
    }
    .gallery-popup-pager button { 
        width: 30px !important;
        height: 30px !important;
    }
}    

@media(min-width:768px) and (max-width:991px){
    .gallery-popup .modal-body .modal-text-block {
        min-width: 275px !important;
    }
    .gallery-popup .modal-body .modal-text-block .social-networks {
        flex-wrap: wrap !important;
    }
    .gallery-popup .modal-body .modal-text-block .social-networks .network.share {
        width: 100% !important;
        margin-left: 0 !important;
    }
    .gallery-popup .modal-body .modal-text-block .social-networks .network.share + .network.share {
        margin-top: 2px !important;
        margin-left: 0 !important;
    }
}

@media(min-width:992px){
    .gallery-popup .modal-dialog {
        max-width: calc(100% - calc(80px + 2.5rem)) !important;
    }
}

@media(min-width:1200px){
    .gallery-popup .modal-dialog {
        max-width: calc(1200px - calc(80px + 2.5rem)) !important;
    }
    .gallery-popup .modal-body .modal-text-block {
        width: 375px !important;
        min-width: 375px !important;
        max-width: calc(400px + 2.5rem) !important;
    }
}