.gallery .images { 
    border-radius: 5px;
    padding: 8px;
    position: relative;
    width: 80%;
    padding-bottom: 60%;
    float: left;
}


.gallery .images > div,
.gallery .images > span {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
}
.gallery .images > div {
    width: 98%;
    height: 97%;
    margin-bottom: 5px;
    opacity: 0;
    background: center no-repeat;
    background-size: cover;
    border-radius: 3px;
    -webkit-transition: all 0.88s ease;
    transition: all 0.88s ease;
}
.gallery .images > div.active {
    opacity: 1;
}
.gallery .images > span {
    cursor: pointer;
    width: 50px;
    color: white;
    text-shadow: 0 0 5px black;
    font-size: 50px;
    height: 70%;
    line-height: 44px;
}
.gallery .images > span.right {
    left: 100%;
    margin-left: -38px;
}
.gallery .images > span.left {
    padding-left: 10px;
}
.gallery .images > span:before {
    margin-top: -25px;
    top: 50%;
    position: absolute;
    bottom: 0;
}
.gallery .images > span.left:before {
    /*content: "\f060";*/
}
.gallery .images > span.right:before {
    /*content: "\f061";*/
}
#mygallery .left i, #mygallery .right i {
    font-size: 17px;
    color: #333;
    text-shadow: none !important;
}
#mygallery .thumbs > div > div {
    border-radius: 5px;
    padding: 4px;
    border: 3px solid #ccc;
}
.gallery .thumbs {
    margin-top: 0px;
    display: inline-block;
    width: 20%;
    text-align: center;
    cursor: pointer;
    float: left;
}
.gallery .thumbs > div > img {
    box-sizing: border-box;
    background: center no-repeat;
    background-size: cover;
    display: inline-block;
    position: relative;
    margin: 0px;
    border: 3px solid transparent;
    width: 145px;
    height: 110px;
    cursor: pointer;
    -webkit-transition: all 0.88s ease;
    transition: all 0.88s ease;
}
@media (max-width: 768px) {
    .gallery .thumbs > div > img {
        width: 65px;
        height: 65px;
    }
}
.gallery .thumbs > div > img:before {
    content: '';
    width: 0;
    height: 0;
    border: solid transparent;
    border-width: 8px 0px 8px 8px;
    position: absolute;
    top: 45%;
    left: -4px;
    -webkit-transform: rotate(136deg);
    -moz-transform: rotate(136deg);
    -ms-transform: rotate(136deg);
    -o-transform: rotate(136deg);
    transform: rotate(136deg);
    -webkit-transition: all 0.88s ease;
    transition: all 0.88s ease;
}
@media (max-width: 768px) {
    .gallery .thumbs > div > img:before {
        left: 25px;
    }
}
.gallery .thumbs > img.active {
    border-color: silver;
}
.gallery .thumbs > img.active:before {
    border-bottom-color: silver;
}