section {
  padding: 10px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100vw;
}


/* Button Styles */

.button-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  justify-items: center;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 10%;
  background: var(--primary-bg);
  color: var(--text-color);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: all 0.5s ease;
  cursor: pointer;
}

.btn-primary {
  display: flex;
  flex-direction: row;
}


#hero-section {
  background-image: linear-gradient(to left,
      rgba(0, 0, 0, 0.769),
      rgba(0, 0, 0, 0.61)),
    url("../img/gallery/IMG_6852.png");
}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.gallery {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 30px 4% 30px;
  scroll-snap-align: start;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;

}

.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.gallery-visuals {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background-color: transparent;
}

.gallery-img {
  width: 100%;
  height: 250px;
  overflow: hidden;
  box-shadow: 0 20px 30px rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  object-fit: cover;
  transition: scale 2s ease-in-out;
  gap: 1rem;
}


.gallery-text-card {
  margin: 16px 0%;
}

.gallery-title {
  font-size: 1.65rem;
  line-height: 1.9rem;
  align-items: start;
  text-align: start;
  font-weight: 700;
}

.gallery-caption {
  font-size: 1.12rem;
  line-height: 1.5;
  align-items: start;
  text-align: start;
}

/* Media Queries */

@media (min-width: 1024px) {
  .gallery-container {
    padding: 27px 5%;
  }
  .gallery-text-card {
    margin: 16px 0%;
    padding: 8px 2%;
    
  }

  .gallery-title {
   font-size: 1rem;
  }


  .gallery-visuals {
    display: flex;
    flex-direction: row;
  }


  .gallery-img {
    width: calc(33.333% - 10px);
    height: 45vh;
    margin: 8px;
  }

  .gallery-img:hover {
    flex: 1 1 100%;
    width: 50vw;
  }
  
  .gallery-img:hover  img { 
    object-fit:cover;
    width: 100%;
    height: 100%;
   } 

}

@media (min-width: 768px) {

  .gallery {
    padding: 8px 9%;
  }

  .gallery-visuals {
  
    flex-direction: row;
    /* flex-wrap: wrap; */
    justify-content: flex-start;
  }
  
  .gallery-img {
    width: calc(50% - 10px);
    height: 45vh;
    padding: 8px;
  }


  .gallery-title {
    font-size: 2.2rem;
    line-height: 2.5rem;
  }
  
  .gallery-caption {
    font-size: 1.7rem;
    line-height: 1.5;
  }
  
}