.modern-card-body .container-fluid {
  padding: 0;
}

.image-container {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.image-container img {
  padding: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: all 250ms ease-out;
}

.modern-card-body .container-fluid .row div {
  padding: 0.2rem;
}

.modern-card-body .container-fluid .row div:hover div img {
  /*position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  width: auto;
  max-height: 90vh;
  max-width: 90vw;
  z-index: 4;*/
  transform: scale(1.2);
  overflow: hidden;
}

.album {
  margin: 5rem 0;
}

.album .row {
  width: 100%;
  margin: auto;
}

.image-modal {
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 250ms ease-out;
}

.image-modal.open {
  opacity: 1;
  pointer-events: all;
}

.image-modal button.prev {
  position: absolute;
  top: 50%;
  left: 10%;
  display: block;

  transform: translate(-50%, -50%);
}

.image-modal button.next {
  position: absolute;
  top: 50%;
  display: block;
  left: 90%;
  transform: translate(-50%, -50%);
}

.full-img {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.5);
  max-height: 90vh;
  max-width: 90vw;
  top: 50%;
  left: 50%;
  transition: all 250ms ease-out;
}

.modern-card .modern-card-header {
  margin: 0;
}

.modern-card .modern-card-body {
  margin: 0;
  padding: 0;
}

.full-img.open {
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 1200px) {
  .modern-card-body .container-fluid .row div {
    padding: 0.2rem;
    margin: 0;
  }
}
