.gallery-slideshow {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-slide {
  display: none;
}

.gallery-slide.active {
  display: block;
}

.gallery-slide img {
  width:70%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  cursor: pointer;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f5f5f5;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 36, 99, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: white;
  transition: background 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 36, 99, 0.95) 100%);
}

.gallery-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
}

.gallery-info p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.gallery-prev, .gallery-next {
  cursor: pointer;
  position: absolute;
  top: 45%;
  padding: 6px 12px;
  background: rgba(0,0,0,0.45);
  color: white;
  font-weight: bold;
  border-radius: 4px;
  user-select: none;
  transition: background 0.3s;
  font-size: 18px;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(0,0,0,0.7);
}

.gallery-prev {
  left: 8px;
}
.gallery-next {
  right: 8px;
}

/* Mobile / small screens */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .gallery-image {
    height: 200px;
  }

  .gallery-info h3 {
    font-size: 1.1rem;
  }

  .gallery-info p {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-image {
    height: 180px;
  }

  .gallery-overlay {
    padding: 1rem;
  }

  .gallery-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .gallery-info p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .gallery-slide img {
    width: 92%;
    max-width: none;
    margin: 0 auto;
  }

  .gallery-prev, .gallery-next {
    top: 42%;
    font-size: 15px;
    padding: 8px 10px;
  }

  .gallery-slideshow {
    border-radius: 8px;
  }
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2001;
}

.lightbox-close:hover {
  color: #d4af37;
}

.lightbox-image {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(212, 175, 55, 0.8);
  color: #0a2463;
  border: none;
  font-size: 28px;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 2001;
  font-weight: bold;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: #d4af37;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Mobile Lightbox */
@media (max-width: 768px) {
  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 32px;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 10px 15px;
    font-size: 20px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-image {
    max-height: 70vh;
  }
}

