#news-detail #gallery {
    background: none;
    padding: 0;
    clear: both;
}

#news-detail #gallery #gallery-thumb.fi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

#news-detail #gallery #gallery-thumb a {
    position: relative;
}

#news-detail #gallery img {
    display: block;
    width: 100%;
    border-radius: 0 !important;
}

#news-detail #gallery #gallery-amount {
    background: rgba(255, 255, 203, 0.4);
    position: absolute;
    left: 1px;
    top: 1px;
    right: 1px;
    bottom: 1px;
}

#news-detail #gallery #gallery-amount em {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #377D44;
    font-size: 24px;
}

#news-detail #gallery .img-over {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0%;
    opacity: 0;
}

#news-detail #gallery .gallery-img {
    height: 0;
    overflow: hidden;
}

#news-detail #gallery #gallery-thumb img{
    object-fit: cover;
    width: 117px;
    height: 78px;
}

#news-detail #gallery #gallery-thumb.fi a + a + a + a + a + a + a + a + a {
    display: none;
}


@media (max-width: 475px) {
    #news-detail #gallery #gallery-thumb.fi {
        grid-template-columns: repeat(3, 1fr);
    }
}
