 

.media-filters {
  padding: 2rem 0;
  background: #f8f9fa;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #2c5530;
  background: white;
  color: #2c5530;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: #2c5530;
  color: white;
}

.media-gallery {
  padding: 3rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.media-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.media-thumbnail {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.media-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-item:hover .media-thumbnail img {
  transform: scale(1.05);
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-item:hover .media-overlay {
  opacity: 1;
}

.media-info h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: "Playfair Display", serif;
}

.media-info p {
  color: #e0e0e0;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.media-category {
  display: inline-block;
  background: #2c5530;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  opacity: 0.8;
  pointer-events: none;
}

.view-btn {
  background: #2c5530;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.view-btn:hover {
  background: #1e3a21;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 2rem;
  width: 90%;
  max-width: 800px;
  background: white;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: #000;
}

.modal-media {
  margin-bottom: 1.5rem;
}

.modal-media img,
.modal-media video {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 5px;
}

.modal-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: "Playfair Display", serif;
  color: #2c5530;
}

.modal-info p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.modal-category {
  background: #2c5530;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 1rem;
  }
}

/* Filter Animation */
.media-item.hidden {
  display: none;
}

.media-item.show {
  display: block;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
