.photo-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    width: 100%;
    padding: 10px;
}

.photo {
    list-style-type: none;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.2s, transform 0.35s;
}

.photo.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.4s, transform 0.35s;
}

.photo .inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.photo .inner i{
    position: absolute;
    left: 8px;
    bottom: 8px;
    font-size: 16px;
    color: #fff;
}

.photo a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.photo img {
    width: 100%;
    transition: opacity 0.35s, transform 0.35s;
    transform: translate3d(0, 0, 0);
}

.photo video {
    width: 100%;
    object-fit: fill;
    transition: opacity 0.35s, transform 0.35s;
    transform: translate3d(0, 0, 0);
}

.photo a::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    z-index: 99;
    opacity: 0;
    transition: opacity 0.4s;
}

.three-cols .photo {
    width: 100%;
}

.four-cols .photo {
    width: 23.1%;
}

.four-cols .photo:nth-child(4n+0) {
    margin-right: 0;
}

.four-cols .photo:nth-child(4n+1) {
    clear: both;
    margin-left: 0;
}

.three-cols .photo {
    width: 32%;
    height: 120px;
    margin-left: 2%;
    margin-bottom: 2%;
    border-radius: 5px;
}

.three-cols .photo:nth-child(3n-2){
    margin-left: 0;
}
.three-cols .photo img{
    height: 100%;
    border-radius: 5px;
}
.three-cols .photo video{
    height: 100%;
    border-radius: 5px;
}

@media (min-width: 390px) {
    .three-cols .photo {
        width: 32%;
        height: 120px;
        margin-left: 2%;
        margin-bottom: 2%;
        border-radius: 5px;
    }
    .three-cols .photo:nth-child(3n-2){
        margin-left: 0;
    }
    .three-cols .photo img{
        height: 100%;
        border-radius: 5px;
    }
    .three-cols .photo video{
        height: 100%;
        border-radius: 5px;
    }
}


@media (min-width: 576px) {
    .three-cols .photo {
        width: 33.3%;
    }

    .three-cols .photo:nth-child(3n+0) {
        margin-right: 0;
    }

    .three-cols .photo:nth-child(3n+1) {
        margin-left: 0;
    }
}


@media (min-width: 992px) {
    .photo:hover img {
        transform: translate3d(0, 0, 0);
        transition: opacity 0.35s, transform 0.35s;
    }

    .photo:hover a::before {
        opacity: 0.3;
        transition: opacity 0.5s;
    }
}

.gslide-image img{
    width: 100%;
    height: auto;
}
.gvideo-local{
    object-fit: fill;
    width: 100%;
    height: auto;
}