*{
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

/* Styling the heading in gallery.html */
.gallery{
  color:hotpink;
  font-family: lora;
  text-align: center;
  font-size: 36px;
  margin-top: 10px;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgb(255, 192, 203);
}

.row{
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px; /* space between items */
  padding: 0 50px 100px 50px;
  justify-content: center; 
}

.column{
  width: 100%;
}

/*Styling the Photo Grid*/
.photogrid{
  display: grid;
  grid-template-rows: 200px 200px 1fr;
  grid-template-columns: 200px 200px  1fr;
}

/* Image hovering and styling*/
.img-hover{
  height:auto;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.3);
  transition: transform 0.3s ease;
}

.img-hover img{
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.3);
  transition: transform .5s ease;
}

.img-hover:hover img {
  transform: scale(1.5);
}
/* --------- Responsive for Mobile ----------- */
@media screen and (max-width: 600px){
  .row{
   grid-template-columns: 1fr 1fr;
   padding: 0 20px;
  }

}

/* --------- Responsive for Tablets ----------- */
@media screen and (max-width: 800px){
  .row{
   grid-template-columns: repeat(2, 1fr); 
  
  }
   .column {
    align-items: center;
  }
  
}