.image-container {
    margin-top: 20px;
    margin-bottom: 20px;
    grid-column: content-start / content-end;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
  }
  
  .image-gallery > li {
    flex-basis: 30%;
    position: relative;
    cursor: pointer;
  }
  
  .image-gallery li img {
    object-fit: cover;
    max-width: 100%;
    height: 12em;
    background-position: cover cover;
    vertical-align: middle;
    border-radius: 5px;
    @include media-tablet {
      height: 15em;
    }
  }

  .image-gallery::after {
    content: "";
    flex-basis: 30%;
  }

  .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(57, 57, 57, 0.502);
    top: 0;
    left: 0;
    transform: scale(0);
    transition: all 0.2s 0.1s ease-in-out;
    color: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .overlay-text {
    text-align: center;
  }
  
  /* hover */
  .image-gallery li:hover .overlay {
    transform: scale(1);
  }

  .expanded-img-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
  }

  .expanded-img-container img {
    max-width: 100%;
    max-height: 100%;
  }

  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    color: #000;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
}

.expanded-img-title {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 24px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 5px;
}