/* ======================================
Responsive Image gallery Style rules
======================================*/


.container {
  width: 100%;
  padding: 100px 5%;
}

.heading-text {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  text-align: center;
}

.heading-text span {
  font-weight: 100;
}

ul {
  list-style: none;
}

/* Responsive image gallery rules begin*/

.image-gallery-port {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: center; */
  gap: 10px;
}

.image-gallery-port > li {
  flex-basis: auto;
  height: 300px;
  position: relative;

  /* cursor: pointer; */
}

.image-gallery-port::after {
  content: "";
  /* flex-basis: 350px; */
  flex-grow: 999;
}

.image-gallery-port li img {
  object-fit: cover;
  /* width: 100%; */
  height: 100%;
  vertical-align: middle;
  border-radius: 5px;
}

.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;
  /* center overlay text */
  display: none;
  align-items: center;
  justify-content: center;
}

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

@media(max-width: 425px) {
  .image-gallery-port > li {
    height: 220px;
  }
}

@media(max-width: 380px) {
  .image-gallery-port > li {
    height: 200px;
  }
}

@media(max-width: 350px) {
  .image-gallery-port > li {
    height: 175px;
  }
}