/* Gallery Section */
.gallery {
  background-color: var(--primary);
}

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

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

.gallery-overlay h3 {
  color: var(--white);
  font-size: 1.3rem;
}

.text-center {
  text-align: center;
  margin-top: 40px;
}

.gallery-divider {
  width: 80%;
  max-width: 800px;
  height: 1px;
  background: rgba(212, 175, 55, 0.3); /* Gold color with transparency */
  margin: 3rem auto 0; /* 3rem top, centered, 0 bottom */
  position: relative;
}

.gallery-divider::before,
.gallery-divider::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 8px;
  height: 8px;
  background: #D4AF37; /* Solid gold */
  border-radius: 50%;
}

.gallery-divider::before {
  left: 0;
}

.gallery-divider::after {
  right: 0;
}
