.gallery-section {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #FAF3E0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 90%; /* makes it feel bigger */
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}


.gallery-slider {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  height: 800px;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.gallery-slide {
  min-width: 100%;
  height: 800px;
  object-fit: cover;
}

/* Arrows */
.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-prev:hover, .gallery-next:hover {
  background: rgba(0,0,0,0.8);
}

.caption-block {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 1rem;
  border-radius: 8px;

  /* Semi-transparent grey */
  background-color: rgba(255, 255, 255, 0.2); 
  
  /* This blurs the part of the image behind the block */
  backdrop-filter: blur(8px); 
  
  border: 1px solid rgba(255, 255, 255, 0.3);
}