#gallery-list {
    width: 96%;
    margin: 0 auto;
    padding: 50px 2%;
    max-width: 1200px;
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1fr 1fr;
}

#gallery-list a {
    text-align: center;
    transition: all 0.3s;
}
#gallery-list a:hover {
    opacity: 0.5;
}
#gallery-list a:focus {
    opacity: 0.5;
}

#gallery-list img {
    object-fit: cover;
    height: 200px;
    width: 100%;
    object-position: top;
    padding-bottom: 10px;
}


#gallery-content {
    width: 96%;
    margin: 0 auto;
    padding: 50px 2%;
    max-width: 1200px;
}

.gallery-container {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 150px;
    grid-auto-flow: dense;
    margin-bottom: 50px;
}

.gallery-container div {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: #ffeead;
}
.gallery-container div a {
    width: 100%;
    height: 100%;
}
.gallery-container div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#goto-all-gallery {
    font-weight: bold;
}

.horizontal {
    grid-column: span 2;
}

.vertical {
    grid-row: span 2;
}

.big {
    grid-column: span 2;
    grid-row: span 2;
}


.back_to_news {
    padding-top: 30px;
}




@media screen and (max-width: 980px) {
    #gallery-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    #gallery-list {
        grid-template-columns: 1fr;
    }
    .gallery-container div {
        grid-column: span 2;
    }
}