#quad1 img, #quad2 img, #quad3 img, #quad4 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-in-out, opacity 1.4s;
  opacity: 0;
}

#quad1 img.active, #quad2 img.active, #quad3 img.active, #quad4 img.active {
  opacity: 1;
}

.quad-wrapper {
  position: relative;
  display: inline-block;
  margin: inherit;
}

.quad-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  color: white;
  font-family: 'Monoton';
  font-size: 2.5rem;
  font-weight: lighter;
  text-align: center;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 1025;
}

.quad-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 600px;
  height: 600px;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  z-index: 1020;
  margin: 20px;
}

.quad {
  position: relative;
  overflow: hidden;
  /*width: auto;*/
  /*height: auto;*/
}

.quad img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
  transition: transform 0.7s ease-in-out;
  border: solid;
  border-color: rgba(0,0,0,0.01);
  background: rgba(0,0,0,0.7);
}

