.gallery-container{
  width: 100%;
  height: 90%;
  background-color: rgb(254, 254, 254);
  margin-bottom: 100px;
}
.gallery-heading{
  width: 100%;
  height: 100%;
  margin-top: 8%;
  padding-bottom: 40px;
  margin-bottom: 70px;
  background-image: url('/images/gallery-background-photo.jpg');
  background-size: cover;
}
.gallery-title{
  width: 50%;
  height: 100%;
  margin-left: 7%;
  display: inline-block;
  vertical-align: top;
  padding-top: 40px;
}
.gallery-text{
  width: 45%;
  height: 100%;
  display: inline-block;
  margin-left: 5%;
}
.gallery-categories{
  width: 85%;
  margin-left: 7%;
  margin-right: 7%;
  height:100%;
  padding-bottom: 30px;
}

.tab-titles{
  display: flex;
  margin: 3% 7%;
}
.tab-links{
  margin-right: 50px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}
.tab-links::after{
  content: '';
  width: 0;
  height: 3px;
  background: red;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}
.tab-links.active-link::after{
  width: 50%;
}
.tab-contents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 25px;
  padding-bottom: 50px;
  width: 87%;
  height: 100%;
  margin-left: 10%;
  margin-right: 10%;
  background-color: white;
}
.tab-image{
  width: 100%;
  height: 320px;
  background-color: rgb(241, 14, 14);
  padding-bottom: 12px;
}
.tab-image p{
  color: white;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.tab-image img{
  object-fit: cover;
  width: 100%;
  height: 95%;
}
.tab-contents{
  display: none;
}
.tab-contents.active-tab{
  display: grid;
  margin: 0% 7%;
}
 .gallery-container-2{
   width: 100%;
   height: 90%;
   transition: box-shadow 0.5s, transform 0.5s;
}
.gallery-container-2 img{
  width: 100%;
  height: 90%;
  object-fit: cover;
}

@media only screen and (max-width: 600px){
  .gallery-title{
    margin-top: 35%;
    width: 70%;
  }
  .gallery-title h1{
    font-size: 28px;
    line-height: 35px;
  }
  .tab-links{
    margin-right: 20px;
  }
  .tab-titles{
    margin-bottom: 40px;
  }
  .tab-contents {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 30px;
    width: 86%;
  }
  .gallery-container{
    margin-bottom: 20px;
  }

}

@media only screen and (min-width: 768px) and (max-width: 979px){
  .gallery-title h1{
    font-size: 33px;
    line-height: 38px;
  }
  .gallery-heading{
    margin-top: 12%;
  }

}