/* =========================================
   GALLERY PAGE STYLES (gallery.css)
========================================= */

/* --- Hero Section --- */
.gallery-hero {
  margin-top: 80px;
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.gallery-hero h1 {
  font-size: 3rem;
  color: var(--color-primary);
  text-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.gallery-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.gallery-container {
  padding: var(--spacing-xl) 5%;
  min-height: 70vh;
}

/* --- Album Hub Grid --- */
.album-grid {
  display: grid;
  /* Forces them into a single column on mobile, and up to 3 columns on PC */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.album-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.album-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-color: var(--color-accent); /* Glows gold on hover */
}

.album-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  transition: transform 0.6s ease;
}

.durga-puja-25-bg {
  /* background: linear-gradient(135deg, #e63946 0%, #0b0f19 100%); */
  background: url("/assets/durga_puja_2025_preview/IMG20250929182326_01~2.webp");
  background-size: contain;
  display: flex;
  align-items: center;
  justify-items: center;
}

.saraswati-puja-26-bg {
  /* background: linear-gradient(135deg, #e63946 0%, #0b0f19 100%); */
  background: url("/assets/saraswati_puja_2026_preview/Saraswati-Maa.webp");
  background-size: contain;
  display: flex;
  align-items: center;
  justify-items: center;
}

.holi-milan-26-bg {
  /* background: linear-gradient(135deg, #e63946 0%, #0b0f19 100%); */
  background: url("/assets/holi_2026_preview/IMG20260304131118.webp");
  background-size: contain;
  display: flex;
  align-items: center;
  justify-items: center;
}

.album-card:hover .album-bg {
  transform: scale(1.1); /* Slow zoom effect on hover */
}

/* Dark gradient so text is always readable */
.album-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(
    to top,
    rgba(11, 15, 25, 0.95) 0%,
    rgba(11, 15, 25, 0) 100%
  );
  z-index: 1;
}

/* The Text inside the Album */
.album-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-xl);
  z-index: 2;
  text-align: center;
}

.album-content h3 {
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.album-content p {
  color: white;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

.album-content .btn {
  opacity: 0.8;
  transition:
    opacity var(--transition-fast),
    background var(--transition-fast);
}

.album-card:hover .album-content .btn {
  opacity: 1;
  background: var(--color-accent);
  color: #111;
}

/* Simulated Image Placeholder */
.photo-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #151b2b 0%, #0b0f19 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  font-style: italic;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.5s ease;
}

.photo-card:hover .photo-placeholder {
  transform: scale(1.05);
}

/* Photo Information Bar */
.photo-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-md);
  background: linear-gradient(
    to top,
    rgba(11, 15, 25, 0.95) 0%,
    rgba(11, 15, 25, 0) 100%
  );
  transform: translateY(100%); /* Hidden by default */
  transition: transform 0.3s ease;
}

.photo-card:hover .photo-info {
  transform: translateY(0); /* Slides up on hover */
}

.photo-info h4 {
  color: var(--color-accent);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.photo-info p {
  color: var(--text-main);
  font-size: 0.85rem;
  margin: 0;
}

/* Filtering classes managed by JS */
.photo-card.hide {
  display: none;
}

.form-wrapper {
  background: linear-gradient(
    145deg,
    var(--bg-card) 0%,
    rgba(11, 15, 25, 1) 100%
  );
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 57, 70, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  height: 100%;
}

.form-wrapper h2 {
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
}

.form-wrapper p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--text-main);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.2);
}

@media (max-width: 768px) {
  /* -----------------------------------
       GALLERY ALBUM MOBILE
       ----------------------------------- */

  .album-content {
    padding: var(--spacing-md);
  }

  .album-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .album-overlay {
    height: 85%;
  }

  /* Form */
  .form-wrapper {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}
