.gallery {
    margin-left: 2vw;
    margin-right: 2vw;
    margin-bottom: 4vw;
    position:relative;
    width: 96vw;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2vw;
}

.gallery-head {
    display:inline;
    width: 96vw;
    margin-left:2vw;
}

.gallery-item {
    display: grid;
    justify-content: center;
    align-items: start;
    gap: 0;
    width: 22vw;
    height: 22vw;
    padding-left: 1vw;
    padding-right: 1vw;
    padding-top: 1vw;
    padding-bottom: 4vw;
    background: rgba(100,100,100,0.1);
}

.gallery-item img {
    justify-self:center;
    max-height: 20vw;
    max-width: 20vw;
    object-fit: contain;
}

.gallery-info {
	position: absolute;
	display: none;
	color: var(--white);
	top: 0;
	left: 0;
	width: auto;
}

.gallery-infoact {
    justify-self:center;
    position: relative;
    bottom: 20px;
	width: auto;
    padding-left: 1vw;
    padding-right: 1vw;
	display: inline;
	background: var(--white);
	height: 20px;
    font-size: 12px;
}

/* Responsive layout - makes a two gallerycolumn-layout instead of four gallerycolumns */
@media screen and (max-width: 800px) {
  .gallery-item {
      width: 46vw;
      height: 46vw;
  }
    .gallery-item img {
        max-height: 44vw;
        max-width: 44vw;
        object-fit: contain;
    }
}

/* Responsive layout - makes the two gallerycolumns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .gallery-item {
      max-width: 96vw;
      max-height: 96vw;
      width: 96vw;
      height: 96vw;
  }
    .gallery-item img {
        max-height: 94vw;
        max-width: 94vw;
        object-fit: contain;
    }
}
