.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.gallery a:hover {
    filter: brightness(120%);
}

.lightbox {
    background: rgba(0, 0, 0, 0.9);
    color:#fff;
    display: none;
    position: fixed;
    z-index: 1000;
}

.lightbox:target {
    align-items: center;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    right: 0;
    top: 0;
}

.lightbox img {
    display: block;
    margin: auto;
    width: 90%;
    pointer-events: none;
}

.lightbox .close {
    color: #fff;
    font-size: 4em;
    font-weight: bold;
    height: 1em;
    position: fixed;
    right: 0;
    top: 0;
    width: 1em;
    z-index: 1001;
}

.lightbox h2 {
    text-align: center;
    background-color: gray;
}

.lightbox a {
    text-decoration: none;
}