/* Multimedia Page Specific Styles */

body {
  background-color: #fafafa;
  color: #333;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #5d4037 0%, #3e2723 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(230,200,48,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(230,200,48,0.1)"/><circle cx="40" cy="70" r="2" fill="rgba(230,200,48,0.1)"/></svg>')
    repeat;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background-color: #e6c830;
  color: #3e2723;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

/* Filter Section */
.filter-section {
  background: #fff;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 60px;
  z-index: 999;
}

.filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

.filter-btn:hover {
  border-color: #e6c830;
  background: #fffef5;
}

.filter-btn.active {
  background: linear-gradient(135deg, #e6c830 0%, #d4a017 100%);
  border-color: #d4a017;
  color: #3e2723;
  box-shadow: 0 4px 15px rgba(230, 200, 48, 0.3);
}

/* Gallery Section */
.gallery-section {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.loading {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
  font-size: 1.1rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state p {
  color: #666;
  font-size: 1.1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 250px;
  gap: 1rem;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  color: #e6c830;
  font-size: 0.85rem;
}

/* Gallery item hidden state for filtering */
.gallery-item.hidden {
  display: none;
}

/* Placeholder for images */
.gallery-item img[src*="placeholder"] {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  position: relative;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 1.5rem;
  color: #fff;
}

.lightbox-caption h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.lightbox-caption p {
  color: #e6c830;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2001;
}

.lightbox-close:hover {
  color: #e6c830;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(230, 200, 48, 0.3);
  color: #e6c830;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-content h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #e6c830;
  letter-spacing: 1px;
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-contact p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #e6c830;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-item.wide {
    grid-column: span 1;
  }
}

/* Responsive - Page specific styles */
@media (max-width: 768px) {
  .filter-section {
    top: 85px;
    padding: 1rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .gallery-section {
    padding: 1.5rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 0.75rem;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-overlay {
    transform: translateY(0);
    padding: 1rem;
    background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.8));
  }

  .gallery-overlay h3 {
    font-size: 0.9rem;
  }

  .gallery-overlay p {
    font-size: 0.75rem;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
}
