* {
  box-sizing: border-box;
}

body {
  font-family: dejavu sans;
  background-color: lightgrey;
  background-image: url("bg-gradient-bruin2.png");
  background-repeat:no-repeat;
  background-size:cover;
  background-position: center;
margin: 0;
}

/* margin: 0.8em 0.2em 0.5em = ruimte bovenkant, links en rechts, onderkant */
h1 {
  margin: 1em 0.2em 0.2em; color: brown; text-align: center; text-shadow: 1px 1px 2px #000000;
font-family: dejavu sans;
}

.hor-img {
  filter: drop-shadow(3px 4px 1px rgba(100, 100, 100));
}

.ver-img {
  filter: drop-shadow(3px 4px 1px rgba(100, 100, 100));
}

.gallery-image {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2vw 5vw 2vw 5vw;  /* Top, right, bottom, left */
}

.gallery-image img {
  height: 100%;
  width: 100%;
  transform: scale(1.0);
  transition: transform 0.4s ease;
  object-fit: contain;
}

.img-box {
  margin: 10px;
  height: 10rem;
  width: 11rem;
  display: inline-block;
  position: relative;
}

.afb-box {
  display: inline-block;
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.caption {
  text-align: center;
  position: absolute;
  width: 11rem;
  bottom: 0.1rem;
  opacity: 0.0;
  color: white;
  text-shadow: 2px 2px 3px #000000, -2px -2px 3px #000000, 2px -2px 3px #000000, -2px 2px 3px #000000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.caption-h {
  position: absolute;
  width: 11rem;
  bottom: 0.1rem;
  opacity: 0.0;
  color: white;
  text-shadow: 2px 2px 3px #000000, -2px -2px 3px #000000, 2px -2px 3px #000000, -2px 2px 3px #000000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.img-box:hover img { 
  transform: scale(1.1);
}

.img-box:hover .transparent-box {
  background-color:rgba(0, 0, 0, 0.5);
}

.img-box:hover .caption {
  transform: translateY(-20px);
  opacity: 1.0;
}

.img-box:hover .caption-h {
  transform: translateY(-20px);
  opacity: 1.0;
}

.caption > p:nth-child(2) {
  font-size: 0.8em;
}

