/* Gallery Page Styles - Editable CSS File */
/* Access via: http://localhost:3000/css/gallery.css */

/* Container */
.gallery-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gallery-main {
  flex-grow: 1;
  padding: 3rem 0;
}

.gallery-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.gallery-title-icon {
  color: #475569;
}

.gallery-description {
  color: #64748b;
  font-size: 1.125rem;
}

.gallery-subtitle {
  color: #64748b;
  font-size: 1.125rem;
}

/* Loading State */
.loading-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .loading-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .loading-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .loading-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.loading-card {
  background: #e5e7eb;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  height: 16rem;
  border-radius: 0.5rem;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

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

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

@media (min-width: 1280px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Gallery Item - EDIT THIS TO CHANGE GALLERY ITEM STYLE */
.gallery-item {
  position: relative !important;
  aspect-ratio: 4/3 !important;
  overflow: hidden !important;
  border-radius: 0.75rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  /* ⭐ Add your custom styles here */
}

.gallery-item:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
}

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

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

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.gallery-overlay h3 {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.gallery-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 9999px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Image Modal */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
}

.image-modal-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin-top: 2rem;
}

.image-modal-image-container {
  position: relative;
  width: 100%;
  min-height: 400px;
  max-height: 85vh;
  margin-bottom: 1.5rem;
}

.image-modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.image-modal-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
}

.image-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.image-modal-info {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-modal-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.image-modal-description {
  color: #64748b;
  line-height: 1.6;
  white-space: pre-wrap;
}

.image-modal-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #1e293b;
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Empty State */
.gallery-empty-state {
  text-align: center;
  padding: 5rem 0;
}

.gallery-empty-icon {
  font-size: 4rem;
  color: #d1d5db;
  margin: 0 auto 1rem;
  display: block;
}

.gallery-empty-text {
  color: #6b7280;
  font-size: 1.25rem;
}

.empty-state {
  text-align: center;
  padding: 5rem 0;
}

.empty-icon {
  font-size: 4rem;
  color: #d1d5db;
  margin: 0 auto 1rem;
  display: block;
}

.empty-text {
  color: #6b7280;
  font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .image-modal {
    padding: 1rem;
  }
  
  .image-modal-content {
    margin-top: 1rem;
  }
}

