

.photo-gallery ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.photo-gallery ul li {
    display: block;
}

.photo-gallery ul li a {
    display: block;
    position: relative;
    overflow: hidden;
}

.photo-gallery ul li a img {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.9);
    transition: 200ms linear transform;
}
.photo-gallery ul li a img:hover {
    transform: translate(-50%, -50%) scale(1);
}

.photo-gallery .thumbnail-color {
    display: inline-block;
    background-color: var(--thumbnail-color);
}

.photo-gallery .photo-gallery-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 5px;
    background: RGBA(0, 0, 0, .4);
    color: #FFFFFF;
    text-align: center;
}

.photo-gallery-preview {
    position: relative;
    width: 100%;
    max-width: 600px;
}
.photo-gallery-preview img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}
.photo-gallery-preview img.current {
    position: static;
}

.photo-gallery-category-one-page .photo-gallery-category-container {
    display: flex;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}
.photo-gallery-category-one-page .photo-gallery-category-container li {
    margin-right: 20px;
}
.photo-gallery-category-one-page .photo-gallery-category-container li:last-child {
    margin-right: inherit;
}
.photo-gallery-photos li.hide {
    display: none;
}
