*{
    box-sizing: border-box;
}

body{
    background: rgb(255,255,255);
    padding: 0;
    margin: 0;
}

.search-bar{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #DCE2E8;  
}

.textStyle{
  font-size: 40px;
  font-weight: 400;
  padding-left: 40px;
  width: 100%;
  background-color: #DCE2E8;
  color: rgb(27, 27, 27);

}

.input-icon{

  display: none;
  /* position: absolute;
  top: 26%;
  left: 13%;
  font-size: 20px; */
}

.bar{
  width: 80%;
  margin-top: 150px;
  margin-bottom: 70px;
  height: 60px;
  border-radius: 15px;
  font-size: 20px;
  padding:5px 5px 5px 50px;
  position: relative; 
}

.gallery-container{
  padding: 0;
  margin: 0;
  background:linear-gradient(
    #DCE2E8 0%,
    #DCE2E8 9.5%,
    white 9.5%,
    white 100%
  )
}

.img-container, .img-container2{
    display: grid;
    margin: 50px;
    grid-template-columns: auto;
    gap: 30px;    
}
.grid-item-cont{
  min-height: 300px;
  padding:10px;
  cursor: default;
  position: relative;

}
img{
  max-width: 635px;
  min-height: 300px;
  
}

.imageBio{
  position: absolute;
  bottom: 0;
  top: 70%;
  padding-left: 25px;
  color: white;
  z-index: 250;
  
}

.overlay::before {
  content: "";
  height: 30%;
  padding: 0;
  margin: 0 0 0 0;
  width: 92.5%;
  position: absolute;
  bottom: 10px;
  color: #FFFFFF;
  font-weight: bolder;
  background: linear-gradient(rgba(15, 15, 15, 0), rgba(15, 15, 15, 0.3), rgba(15, 15, 15, 0.6), rgba(15, 15, 15, 0.8));
  border-radius: 0px 0px 20px 20px;  
  z-index: 200; 
  cursor: pointer;
}

.imageAuthor{
  font-size: 20px;
  padding-bottom: 0;
  margin-bottom: 0;
  z-index: 3
}

.authorLocation{
  padding-top: 5px;
  margin-top: 0;
  z-index: 3

}
.grid-item{
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  cursor: pointer;
}


.grid-item:hover{
  animation: bounceOut 0.5s linear;
  cursor: pointer;   
}


@keyframes bounceOut {

  0% {
    opacity: 1;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }

}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 300; /* Sit on top */
  padding-top: 50px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto;
  /* overflow: auto; Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  padding-top: 0;
  margin: 15px auto;
  display: block;
  max-width: 300px;
  max-height: 400px;
  object-fit: cover;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  margin: 10px;
  top: 10px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.homeBtn{
  width: 120px;
  height: 60px;
  text-align: center;
  font-size: 20px;
  padding-top: 18px;
  cursor: pointer;
  border-radius: 15px;
  background-color: #4e4d4d;
  color: white;
  float: right;
  margin: 0 25px 25px 0;
}

.homeBtnAnch{
  width: 120px;
  height: 60px;
  padding-top: 18px;
  text-decoration: none;
  color: white;
  cursor: pointer;
}

  
/* Two columns Image Width on tablets */
  @media only screen and (min-width: 640px){
    .img-container, .img-container2{
      display: grid;
      grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
      gap: 30px;  
      
  }

  .gallery-container{
    background:linear-gradient(
      #DCE2E8 0%,
      #DCE2E8 20%,
      white 20%,
      white 100%
    )
  }

  .tworows{
    grid-column: 2/3;
    grid-row: 1/3;
  }

  .tworows2{
    grid-column: 1/2;
    grid-row: 3/5;
  
  }
  .tworows3{
    grid-column: 2/3;
    grid-row: 3/5;

  
  }
  .tworows4{
    grid-column: 1/2;
    grid-row: 5/7;
  
  }

  .grid-item-cont{
    min-height: 250px;
    padding:10px;
  
  }
  .grid-item-cont img{
    height: 100%;
    width: 100%;
    object-fit: cover;
  }


  .textStyle{
    font-size: 50px;
    font-weight: 400;
    width: 100%;
    background-color: #DCE2E8;
    color: rgb(27, 27, 27);
  
  }

  .input-icon{
    display: none;
  }
  
    
  }

/* 100% Image Width on large screens */
  @media only screen and (min-width: 1100px){
    .img-container, .img-container2{
      display: grid;
      grid-template-columns: auto auto auto;
      margin-top: 0;
      margin-left: 150px;
      margin-right: 150px;
      gap: 30px;  
      
    }

    .gallery-container{
      background:linear-gradient(
        #DCE2E8 0%,
        #DCE2E8 20%,
        white 20%,
        white 100%
      )
    }
    
    
  .tworows{
    grid-column: 2/3;
    grid-row: 1/3;
    
  }

  .tworowsImg{
    object-fit: cover;

  }
  .tworows2{
    grid-column: 1/2;
    grid-row: 3/5;

  }
  .tworows3{
    grid-column: 3/4;
    grid-row: 3/5;

  }
  .tworows4{
    grid-column: 2/3;
    grid-row: 5/7;

  }

  .grid-item-cont img{
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .grid-item-cont{
    position: relative;
  }

  .imageBio{
    position: absolute;
    bottom: 15%;
    top: 72%;
    padding-left: 25px;
    color: white;
  }


  .textStyle{
    font-size: 80px;
    font-weight: 500;
    width: 100%;
    background-color: #DCE2E8;
    color: rgb(27, 27, 27);

  }


  /* Modal Content (Image) */
.modal-content {
  padding-top: 0;
  margin: 2px auto;
  display: block;
  max-width: 500px;
  max-height: 600px;
  object-fit: cover;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

.overlay::before {
  content: "";
  height: 30%;
  padding: 0;
  margin: 0 0 0 0;
  width: 94.5%;
}
    
}

