/* Release Gallery Accordion Styles */

.release-accordion {
  margin: 1.5rem 0;
}

.accordion-item {
  margin-bottom: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.accordion-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accordion-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  gap: 12px;
}

.accordion-header:hover {
  background: #f8f9fa;
}

.accordion-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.accordion-date {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
}

.accordion-groups {
  font-size: 0.85rem;
  color: #6c757d;
}

.accordion-arrow {
  font-size: 0.8rem;
  color: #adb5bd;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-count {
  font-size: 0.8rem;
  color: #6c757d;
  background: #e9ecef;
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.accordion-item.active .accordion-body {
  max-height: 15000px;
}

.accordion-content {
  padding:1.25rem;
  border-top: 1px solid #e0e0e0;
}

.accordion-subtitle {
  font-size: 1rem;
  color: #495057;
  margin: 1rem 0;
  font-weight: 500;
}

/* Photos - single row layout */
.gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Animation for lazy-loaded photos */
@keyframes photoFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gallery-row .gallery-photo {
  width: calc(33.333% - 6px);
  height: auto;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: block;
  object-fit: cover;
  opacity: 0;
  animation: photoFadeIn 0.4s ease forwards;
}

/* Staggered delay for each photo */
.gallery-row .gallery-photo:nth-child(1) { animation-delay: 0.0s; }
.gallery-row .gallery-photo:nth-child(2) { animation-delay: 0.05s; }
.gallery-row .gallery-photo:nth-child(3) { animation-delay: 0.1s; }
.gallery-row .gallery-photo:nth-child(4) { animation-delay: 0.15s; }
.gallery-row .gallery-photo:nth-child(5) { animation-delay: 0.2s; }
.gallery-row .gallery-photo:nth-child(6) { animation-delay: 0.25s; }
.gallery-row .gallery-photo:nth-child(7) { animation-delay: 0.3s; }
.gallery-row .gallery-photo:nth-child(8) { animation-delay: 0.35s; }
.gallery-row .gallery-photo:nth-child(9) { animation-delay: 0.4s; }
.gallery-row .gallery-photo:nth-child(10) { animation-delay: 0.45s; }
.gallery-row .gallery-photo:nth-child(11) { animation-delay: 0.5s; }
.gallery-row .gallery-photo:nth-child(12) { animation-delay: 0.55s; }
.gallery-row .gallery-photo:nth-child(13) { animation-delay: 0.6s; }
.gallery-row .gallery-photo:nth-child(14) { animation-delay: 0.65s; }
.gallery-row .gallery-photo:nth-child(15) { animation-delay: 0.7s; }
.gallery-row .gallery-photo:nth-child(16) { animation-delay: 0.75s; }
.gallery-row .gallery-photo:nth-child(17) { animation-delay: 0.8s; }
.gallery-row .gallery-photo:nth-child(18) { animation-delay: 0.85s; }
.gallery-row .gallery-photo:nth-child(19) { animation-delay: 0.9s; }
.gallery-row .gallery-photo:nth-child(20) { animation-delay: 0.95s; }
.gallery-row .gallery-photo:nth-child(n+21) { animation-delay: 1.0s; }

.gallery-row .gallery-photo:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Mobile: 2 photos per row */
@media (max-width: 768px) {
  .gallery-row .gallery-photo {
    width: calc(50% - 4px);
  }

  .accordion-header {
    padding: 0.75rem 1rem;
  }

  .accordion-date {
    font-size: 0.95rem;
  }

  .accordion-content {
    padding: 0 1rem 1rem;
  }
}

/* Small mobile: 1 photo per row */
@media (max-width: 480px) {
  .gallery-row .gallery-photo {
    width: 100%;
  }
}
