@import "index.css";

/* Gallery Page Specific Styles */
.gallery-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
}

@media (min-width: 48rem) {
  .gallery-hero-title {
    font-size: 3rem;
  }
}

.gallery-hero-desc {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 48rem;
}

.header-section {
  padding-top: 8rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  aspect-ratio: 1/1;
  width: 100%;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.gallery-card:hover .gallery-card-img {
  transform: scale(1.05);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: transparent;
  padding: 1.25rem;
  color: hsl(var(--primary-foreground));
  text-align: left;
  transition: background-color 0.3s;
}

.gallery-card:hover .gallery-card-overlay {
  background-color: hsl(var(--primary) / 0.6);
}

.overlay-info {
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.3s;
}

.gallery-card:hover .overlay-info {
  transform: translateY(0);
  opacity: 1;
}

.block {
  display: block;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: hsl(var(--foreground) / 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.lightbox-content {
  width: 100%;
  max-width: 56rem;
  background-color: hsl(var(--popover));
  border-radius: 0.8rem;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.lightbox-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.lightbox-close {
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s;
}

.lightbox-close:hover {
  background-color: hsl(var(--accent));
}

.lightbox-img {
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 0.75rem;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
