/* ======================================
Responsive Image gallery Style rules
======================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #ccc;
}

.container {
  padding: 5px 5%;
}

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

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

.social {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.social label 
{
  margin-right: 10px;
  font-size: 1.5rem;
  /* Set text color to grey */
  color: #7c7979;
}

/* Responsive image gallery rules begin*/

.image-gallery {
  /* Mobile first */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;

}

.image-gallery .column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 0;
  width: 100%; 
}

.image-item img {
  width: 99%;
  border-radius: 5px;
  object-fit: cover;
}

@media only screen and (min-width: 480px) {
  .container {
    padding: 10px;
  }
  .image-gallery .column{
    width: 100%;
  }
}

@media only screen and (min-width: 768px) {
  .container {
    padding: 20px;
  }
  .image-gallery .column{
    width: 100%;
  }
}

@media only screen and (min-width: 1200px) {
  .image-gallery {
    flex-direction: row;
  }
  .image-gallery .column {
    flex: 1 1 0;
  width: 0;    
  }
  
}

/* overlay styles */

.image-item {
  position: relative;
  cursor: pointer;
}

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

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