.img_thumbline {
    display: inline-block;
    position: absolute;
    right: 50%;
    transform: translate(-50%, 0);
}

.img_thumbline_overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgba(0, 0, 0, 0.71);
    top: 0;
    left: 0;
    transform: scale(0);
    transition: all linear .3s;
}

.img_thumbline:hover .img_thumbline_img, .img_thumbline:hover .img_thumbline_overlay {
    transform: scale(1);
    transition: all linear .5s;
}

.img_thumbline_overlay span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    transition: all linear .5s;
}

.img_thumbline_overlay span:hover {
    background: #0162e8;
    border-color: #0162e8;
    transition: all linear .4s;
}

.img_thumbline_overlay span i {
    line-height: 39px;
    color: #fff;
    font-size: 16px;
}

.img_viewer_overlay {
    display: none;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 1040;
    -webkit-transform: translateZ(1000px);
    transform: translateZ(1000px);
    transform-style: preserve-3d;
    background: rgba(0, 0, 0, 0.5);
    transition : opacity linear .4s;
    opacity: 0;
}

.img_viewer_overlay.show{
    transition : opacity linear .4s;
    display: -webkit-flex;
    display: flex;
    opacity: 1;
}

.img_viewer_container {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    overflow-scrolling: touch;
    -webkit-overflow-scrolling: touch;
    z-index: 20;
    max-height: 100%;
    display: flex;
}

.img_viewer_content {
    text-align: center;
    float: left;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 20px 10px;
    opacity: 1;
    margin: auto;
    transition : all linear .4s;
}

.img_viewer_container img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 12px rgb(0 0 0 / 19%), 0 6px 6px rgb(0 0 0 / 23%);
    max-width: 100%;
    text-align: initial;
    transition : all linear .4s;
}

.img_viewer_close {
    cursor: pointer;
    position: fixed;
    top: -1px;
    right: 0;
    width: 50px;
    height: 40px;
    padding: 6px;
    display: block;
    background-position: 10px center;
    overflow: hidden;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    z-index: 1050;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.3);
}
