.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-item {
    margin: 2px;
}

.gallery-item img {
    width: 200px;
    height: 200px;
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
}

.detalhe-item {
    width: 1080px;
}