/* Gallery Page Styles */

/* Header Section */
.gallery-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.gallery-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.gallery-header .lead {
  font-size: 1.25rem;
  color: #555;
}

/* Category Filter */
.category-filter {
  margin: 2rem 0;
}

.filter-btn {
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  color: #495057;
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

.filter-btn.active {
  background-color: #4a148c;
  border-color: #4a148c;
  color: white;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Gallery Item */
.gallery-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video Placeholder */
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.placeholder-content {
  text-align: center;
  padding: 2rem;
}

.placeholder-content svg {
  opacity: 0.8;
  margin-bottom: 1rem;
}

.placeholder-content p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.placeholder-content small {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Image Container */
.image-container {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
  background: #f8f9fa;
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Image Overlay */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

/* Gallery Item Info */
.gallery-item-info {
  padding: 1.5rem;
}

.gallery-item-info h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.gallery-item-info p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.gallery-item-info small {
  font-size: 0.85rem;
  color: #999;
}

/* Info Section */
.info-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
}

.info-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.info-section p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* Modal Customization */
.modal-xl {
  max-width: 90%;
}

.modal-body img {
  max-width: 100%;
  height: auto;
}

/* Section Headings */
.row h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-header h1 {
    font-size: 2rem;
  }
  
  .gallery-header .lead {
    font-size: 1.1rem;
  }
  
  .filter-btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }
  
  .row h2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Smooth transitions */
.gallery-item {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
