.gallery {
  display: flex;  
  flex-direction: row;
  justify-content: center;}

.container {
    width: 90%;
}
.container h2 {
	text-align: center;
}
.container h3 {
	text-align: center;
}
.container h4 {
	text-align: center;
}
.gallery .box-gallery {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    
}

.gallery .box-gallery .box {
  border: 1px solid #ccc;
  border-radius: 8px;
  align-items: center;
  text-align: center;
  /*width: calc((100% - 20px)/4);
  */
  width: 30%;
  height: 400px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.gallery .box-gallery .box1 {
  border: 1px solid #ccc;
  border-radius: 8px;
  align-items: center;
  text-align: center;
  /*width: calc((100% - 20px)/4);
  */
  width: 30%;
  height: 600px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.gallery .box-gallery .box:hover,
.gallery .box-gallery .box1:hover {
  border: 1px solid lightgray;
  box-shadow: 0 0 32px 0  gray;
}
.gallery .box-gallery .box h3,
.gallery .box-gallery .box1 h3 {
  margin-bottom: 20px;
}
.gallery .box-gallery .box h4,
.gallery .box-gallery .box1 h4  {
  margin-top: -10px;
  margin-bottom: 20px;
}
.gallery .box-gallery .box a,
.gallery .box-gallery .box1 a  {
    margin-top: 20px;
    text-decoration: none;
    color: white;
    background-color: darkred;
    padding: 10px 20px;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.gallery .box-gallery .box img {

  width: 100%;
  height: auto;
  border-radius: 4px 4px 0 0;
  -webkit-border-radius: 4px 4px 0 0;
  -moz-border-radius: 4px 4px 0 0;
  -ms-border-radius: 4px 4px 0 0;
  -o-border-radius: 4px 4px 0 0;
}


.gallery .box-gallery .box1 img { 
  width: 100%;
  height: 400px;
  border-radius: 4px 4px 0 0;
  -webkit-border-radius: 4px 4px 0 0;
  -moz-border-radius: 4px 4px 0 0;
  -ms-border-radius: 4px 4px 0 0;
  -o-border-radius: 4px 4px 0 0;
}

.gallery .box-gallery .box h3,
.gallery .box-gallery .box1 h3 {
    font-size: 20px;
    color: white;
    background-color: rgba(92, 7, 7, 0.823);
    margin-bottom: 10px;
    text-align: center;
}
.gallery .box-gallery .box p,
.gallery .box-gallery .box1 p { 
  padding: 0 10px 0 10px;
  text-align: center;
  color:rgba(7, 1, 1, 0.5);
  font-size: 12px;
  font-weight: 100;
  text-align: center;
}




@media only screen and (max-width: 920px) {
  .gallery .box-gallery .box,
  .gallery .box-gallery .box1  {
    width: 48%;
  }
}

@media only screen and (max-width: 768px) {
    .gallery .container {
        row-gap: 12px;
    }
    .container h2{
        font-size: 1.5rem;
    }
    .container h3{
        font-size: 1rem;
    }

  .gallery .box-gallery .box{
    width: 100%;
    height: 500px;

  }
  
  .gallery .box-gallery .box1  {
    width: 100%;
    height: 550px;

  }
  .gallery .box-gallery .box h6,
  .gallery .box-gallery .box1 h6 {
    margin-bottom: 14px;
  }
  .gallery .box-gallery .box p,
  .gallery .box-gallery .box1 p  {
    font-size: 16px;
    color: black;
  }
  .gallery .container{
    margin-top: 120px;
  }
}
