.content {
  position: relative;
  width: 90%;
  max-width: 400px;
  margin: auto;
  overflow: hidden;
}

.content a {
  text-decoration: none;
}

.content .content-overlay {
  background: var(--bs-danger);
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  -webkit-transition: all 0.4s ease-in-out 0s;
  -moz-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

.lightbox-image {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.content-image {
  width: 100%;
  object-fit: cover;
  object-position: right top;
}

@media (max-width: 1199px) {
  .content-details {
    background: var(--bs-danger);
    color: white;
    text-align: center;
    padding-top: .5rem;
    padding-bottom: .2rem;
  }
}

@media (max-width: 1199px) {
  .content-details h3 {
    color: #fff;
    font-weight: 500;
    letter-spacing: 0em;
    margin-bottom: 0.1em;
    font-size: .6rem;
  }
}

@media (min-width: 1200px) {
  .content:hover .content-overlay {
    opacity: 1;
  }
}

@media (min-width: 1200px) {
  .content-details {
    position: absolute;
    text-align: center;
    padding-left: 1em;
    padding-right: 1em;
    width: 100%;
    top: 50%;
    left: 50%;
    opacity: 0;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
  }
}

.content:hover .content-details {
  top: 50%;
  left: 50%;
  opacity: 1;
}

.content-details h3 {
  color: #fff;
  font-weight: 400;
  margin-bottom: 0.5em;
  font-size: 1.5rem;
}

.content-details p {
  color: #fff;
  font-size: 0.8em;
}

.fadeIn-top {
  top: 20%;
}

