* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
}

.gallery img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    flex: 1 1 calc(33.33% - 10px);
	position: relative;
	top: 50%;
}

@media (max-width: 768px) {
    .gallery img {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .gallery img {
        flex: 1 1 100%;
    }
}

.mail-link {
  text-align: center;
  text-decoration: none;
}