#hemis-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition-property: opacity, visibility, background-color;
    transition-duration: .5s;
    transition-timing-function: ease-in-out;
}
#hemis-lightbox.fade-away {
    opacity: 0;
    visibility: hidden;
    background-color: transparent;
}
.hemis-lightbox-shadow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    cursor: pointer;
}
.hemis-lightbox-container {
    width: calc( 100% - 50px );
    background-color: #fff;
    max-width: 900px;
    max-height: calc( 100% - 50px );
    position: relative;
    text-align: center;
    padding: 50px;
}
.hemis-lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    background-color: transparent;
    color: #000;
    line-height: 0;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    
    transition-property: color, background-color;
    transition-duration: .25s;
    transition-timing-function: ease-in-out;
}
.hemis-lightbox-close::before,
.hemis-lightbox-close::after {
    content: "";
    position: absolute;
    height: 4px;
    background-color: #000;
    width: 30px;
    transform: rotate(45deg);
    top: 23px;
    left: 9px;
    transition: background-color .3s ease-in-out;
}
.hemis-lightbox-close::after {
    transform: rotate(-45deg);
}
.hemis-lightbox-close:hover::before,
.hemis-lightbox-close:hover::after {
    background-color: #666;
}
.hemis-lightbox-content-container {
    text-align: left;
    font-size: 1.2rem;
}



@media screen and ( max-width: 760px ) {
    .hemis-lightbox-container {
        padding: 30px 30px 15px 15px;
        width: calc( 100% - 25px );
        max-height: calc( 100% - 25px );
    }
    .hemis-lightbox-content-container {
        font-size: 1rem;
    }
    .hemis-lightbox-close {
        width: 30px;
        height: 30px;
    }
    .hemis-lightbox-close::before,
    .hemis-lightbox-close::after {
        height: 2px;
        width: 24px;
        top: 14px;
        left: 3px;
    }
}