/* =====================================================
   GALLERY MODERN - ENGAGEMENT FUNNEL 2026
   ONE THING AT A TIME - Contextual Discovery
   ===================================================== */

/* =====================================================
   BASE STYLES
   ===================================================== */

.gallery-hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

/* Titoli gestiti da base.css (.page-title, .page-claim) */

.gallery-stats-compact {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.stat-compact {
  font-size: 0.9rem;
  color: #a0a0a0;
}

.stat-compact strong {
  font-size: 1.5rem;
  color: #d4af37;
  margin-right: 0.3rem;
  font-weight: 600;
}

/* =====================================================
   MAIN GALLERY CARDS (3 sections)
   ===================================================== */

.gallery-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gallery-card {
  display: block;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.4);
}

.gallery-card__media {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.gallery-card__previews {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.3rem;
}

.gallery-card__previews img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.gallery-card__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.7);
}

.gallery-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(26, 26, 26, 0.8));
  font-size: 4rem;
  color: #d4af37;
}

.gallery-card__count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(212, 175, 55, 0.95);
  color: #000;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery-card__content {
  padding: 1.5rem;
}

.gallery-card__content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.gallery-card__content p {
  font-size: 0.9rem;
  color: #a0a0a0;
  line-height: 1.5;
}

/* =====================================================
   WHAT'S NEXT CARD (Overview Page)
   ===================================================== */

.whatsnext-wrapper {
  margin: 3rem 0 2rem;
}

.whatsnext-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Grid for showing primary + secondary cards side-by-side */
.whatsnext-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .whatsnext-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 768px) {
  .whatsnext-grid {
    grid-template-columns: 1fr;
  }
}

.whatsnext-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: #1a1a1a;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.whatsnext-card:hover {
  transform: translateY(-3px);
  border-color: #d4af37;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.whatsnext-card__media {
  width: 200px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
}

.whatsnext-card__media--small {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.whatsnext-card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.whatsnext-card__content {
  flex: 1;
}

.whatsnext-card__content--full {
  grid-column: 1 / -2;
}

.whatsnext-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d4af37;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.whatsnext-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.whatsnext-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #a0a0a0;
}

.whatsnext-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.whatsnext-card__excerpt {
  font-size: 0.95rem;
  color: #a0a0a0;
  line-height: 1.6;
  margin: 0;
}

.whatsnext-card__quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #fff;
  margin: 0.5rem 0 1rem;
  line-height: 1.6;
}

.whatsnext-card__source {
  display: block;
  font-size: 0.9rem;
  color: #a0a0a0;
  font-style: normal;
}

.whatsnext-card__arrow {
  font-size: 1.5rem;
  color: #d4af37;
  transition: transform 0.3s ease;
}

.whatsnext-card:hover .whatsnext-card__arrow {
  transform: translateX(5px);
}

/* =====================================================
   COLLECTIONS PAGE
   ===================================================== */

.gallery-header {
  margin-bottom: 2rem;
}

.gallery-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.gallery-back-link:hover {
  color: #d4af37;
}

/* Titoli gestiti da base.css (.page-title, .page-claim) */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.collection-card {
  position: relative;
}

.collection-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.collection-card__link:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.4);
}

.collection-card__image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-card__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.collection-card__link:hover .collection-card__image img {
  transform: scale(1.03);
}

.collection-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(212, 175, 55, 0.95);
  color: #000;
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.collection-card__count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.collection-card__content {
  padding: 1.2rem;
}

.collection-card__content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.collection-card__content p {
  font-size: 0.85rem;
  color: #a0a0a0;
  line-height: 1.4;
}

/* =====================================================
   DISCOVERY CARD INLINE (Collections - Every 4)
   Full-width banner style for better readability
   ===================================================== */

.discovery-card-inline {
  grid-column: 1 / -1; /* Span full width */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(26, 26, 26, 0.95) 100%);
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-left: 4px solid #d4af37;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.discovery-card-inline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #d4af37 0%, rgba(212, 175, 55, 0.3) 100%);
}

.discovery-card-inline:hover {
  transform: translateX(5px);
  border-color: #d4af37;
  box-shadow: -5px 5px 20px rgba(212, 175, 55, 0.15);
}

/* Header row: label + media (if present) */
.discovery-card-inline__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.discovery-card-inline__media {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(212, 175, 55, 0.2);
}

.discovery-card-inline__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.discovery-card-inline__content {
  flex: 1;
  min-width: 250px;
}

.discovery-card-inline__content--full {
  width: 100%;
}

.discovery-card-inline__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d4af37;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.discovery-card-inline__label i {
  font-size: 1rem;
}

.discovery-card-inline h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.8rem 0;
  line-height: 1.3;
}

.discovery-card-inline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: #b0b0b0;
  margin-top: 0.5rem;
}

.discovery-card-inline__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.discovery-card-inline__excerpt {
  font-size: 1rem;
  color: #b0b0b0;
  line-height: 1.7;
  margin: 0.5rem 0 0 0;
  max-width: 800px;
}

.discovery-card-inline__count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #d4af37;
  font-weight: 600;
  margin-top: 0.5rem;
}

.discovery-card-inline__quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #fff;
  margin: 0.8rem 0;
  line-height: 1.6;
  max-width: 700px;
}

.discovery-card-inline cite {
  display: block;
  font-size: 0.9rem;
  color: #a0a0a0;
  font-style: normal;
  margin-top: 0.5rem;
}

.discovery-card-inline__arrow {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

.discovery-card-inline:hover .discovery-card-inline__arrow {
  transform: translateY(-50%) translateX(5px);
  color: #d4af37;
}

/* =====================================================
   DETAIL PAGE - NEXT STEP CTA
   ===================================================== */

.nextstep-wrapper {
  margin: 4rem 0 2rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nextstep-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
}

.nextstep-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: #1a1a1a;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.nextstep-card:hover {
  transform: translateY(-3px);
  border-color: #d4af37;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nextstep-card__media {
  width: 180px;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
}

.nextstep-card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nextstep-card__content {
  flex: 1;
}

.nextstep-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d4af37;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.nextstep-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.nextstep-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #a0a0a0;
}

.nextstep-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nextstep-card__count {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin: 0;
}

.nextstep-card__arrow {
  font-size: 1.5rem;
  color: #d4af37;
  transition: transform 0.3s ease;
}

.nextstep-card:hover .nextstep-card__arrow {
  transform: translateX(5px);
}

.nextstep-explore {
  text-align: center;
  margin-top: 1.5rem;
}

.nextstep-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nextstep-explore-link:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  color: #d4af37;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */

@media (max-width: 900px) {
  .whatsnext-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .whatsnext-card__media {
    margin: 0 auto;
  }

  .whatsnext-card__arrow {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }

  .discovery-card-inline {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .discovery-card-inline__media {
    margin: 0 auto;
  }

  .discovery-card-inline__arrow {
    grid-column: 1;
    margin-top: -2rem;
    justify-self: end;
  }

  .nextstep-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nextstep-card__media {
    margin: 0 auto;
  }

  .nextstep-card__arrow {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 768px) {
  .gallery-sections-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .collections-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .gallery-hero {
    padding: 1.5rem 0 2rem;
  }

  .gallery-stats-compact {
    flex-direction: column;
    gap: 0.8rem;
  }

  .whatsnext-card,
  .discovery-card-inline,
  .nextstep-card {
    padding: 1.2rem;
  }

  .whatsnext-card__media,
  .discovery-card-inline__media,
  .nextstep-card__media {
    width: 100%;
    height: 140px;
  }

  .whatsnext-card__media--small {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .collections-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   AUDIO ITEMS - Optimized for Bandcamp Embeds (300x420)
   ===================================================== */

.gallery-items--audio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.gallery-item--audio {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 340px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item--audio:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.audio-embed {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.8) 0%, #0a0a0a 100%);
}

/* Bandcamp iframe container - RESPONSIVE */
.audio-embed iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 420px;
  aspect-ratio: 350 / 470; /* aspect ratio tipico album con tracklist */
  border: none !important;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Adatta aspect ratio in base all'altezza originale dell'embed */
@supports (aspect-ratio: 1) {
  .audio-embed iframe[style*="height:470"] {
    aspect-ratio: 350 / 470;
  }
  .audio-embed iframe[style*="height:588"] {
    aspect-ratio: 350 / 588;
  }
  .audio-embed iframe[style*="height:786"] {
    aspect-ratio: 350 / 786;
  }
  .audio-embed iframe[style*="height:42"] {
    aspect-ratio: 350 / 42;
    min-height: 42px;
  }
}

/* Fallback link style when no embed */
.audio-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%);
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  min-height: 420px;
  transition: all 0.3s ease;
}

.audio-link:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(26, 26, 26, 0.95) 100%);
}

.audio-link i {
  font-size: 3rem;
  transition: transform 0.3s ease;
}

.audio-link:hover i {
  transform: scale(1.1);
}

/* Audio item info section */
.gallery-item--audio .gallery-item__info {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item--audio .gallery-item__info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.gallery-item--audio .gallery-item__info p {
  font-size: 0.9rem;
  color: #a0a0a0;
  line-height: 1.5;
}

/* =====================================================
   VIDEO ITEMS
   ===================================================== */

.gallery-items--videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.gallery-item--video {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-item--video:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.4);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

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

/* Video badge for upcoming/scheduled */
.video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(135deg, #d4af37 0%, #c9a135 100%);
  color: #1a1a1a;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

.gallery-item--video .gallery-item__info {
  padding: 1.5rem;
}

.gallery-item--video .gallery-item__info h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.gallery-item--video .gallery-item__info p {
  font-size: 0.95rem;
  color: #a0a0a0;
  line-height: 1.5;
}

/* =====================================================
   RESPONSIVE - Audio & Video
   ===================================================== */

@media (max-width: 768px) {
  .gallery-items--photos {
    grid-template-columns: 1fr;
  }

  .gallery-item--photo {
    aspect-ratio: unset;
    min-height: 200px;
  }

  .gallery-item--photo img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox__prev {
    left: 1rem;
  }

  .lightbox__next {
    right: 1rem;
  }

  .lightbox__close {
    top: 1rem;
    right: 1rem;
  }

  .gallery-items--audio {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-item--audio {
    max-width: 100%;
  }

  .audio-embed {
    min-height: auto;
    padding: 0.75rem;
  }

  .audio-link {
    min-height: 200px;
    padding: 1.5rem 1rem;
  }

  .gallery-items--videos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .gallery-items--audio {
    padding: 0 0.5rem;
  }

  .audio-embed iframe {
    min-height: 350px;
    aspect-ratio: 1 / 1.4; /* proporzione più compatta su mobile */
  }
}

/* =====================================================
   PHOTO ITEMS
   ===================================================== */

.gallery-items--photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item--photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item--photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

.gallery-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.gallery-item__overlay h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.gallery-item__credits {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* =====================================================
   LIGHTBOX
   ===================================================== */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: #d4af37;
  border-color: #d4af37;
  color: #000;
  transform: scale(1.1);
}

.lightbox__close {
  top: 2rem;
  right: 2rem;
}

.lightbox__prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox__next:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox__content {
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__info {
  text-align: center;
  color: white;
  padding: 1rem;
}

.lightbox__info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.lightbox__info p {
  font-size: 1rem;
  opacity: 0.8;
}

.lightbox__counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* =====================================================
   MIXED COLLECTION LAYOUT
   ===================================================== */

.gallery-mixed {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery-mixed__section {
  position: relative;
}

.gallery-mixed__badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Media card for video/audio in mixed collections */
.gallery-mixed__media-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  max-width: 800px;
}

.gallery-mixed__media-card .video-embed {
  border-radius: 12px 12px 0 0;
}

.gallery-mixed__media-card .audio-embed {
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.gallery-mixed__media-card .audio-embed iframe {
  max-width: 100% !important;
  border-radius: 8px;
}

.gallery-mixed__media-info {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-mixed__media-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 0.4rem;
}

.gallery-mixed__media-info p {
  font-size: 0.9rem;
  color: #a0a0a0;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .gallery-mixed {
    gap: 1.5rem;
  }

  .gallery-mixed__media-card {
    max-width: 100%;
  }
}

/* =====================================================
   EMPTY STATE
   ===================================================== */

.gallery-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #a0a0a0;
}

.gallery-empty p {
  font-size: 1rem;
}

/* =====================================================
   GALLERY PAGE - ALL COLLECTIONS GRID
   ===================================================== */

.gallery-page {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

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

/* Titolo unificato - eredita da .page-title in base.css */
.gallery-title {
  /* Stili aggiuntivi specifici per gallery se necessari */
}

/* Sottotitolo unificato - eredita da .page-claim in base.css */
.gallery-description {
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Filter Pills ===== */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill i {
  font-size: 0.85rem;
}

.filter-pill__count {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.25rem;
  color: #e0e0e0;
}

.filter-pill:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
  color: #fff;
}

.filter-pill--active {
  background: rgba(212, 175, 55, 0.25);
  border-color: #d4af37;
  color: #f0d77a;
}

.filter-pill--active i {
  color: #f0d77a;
}

.filter-pill--active .filter-pill__count {
  background: rgba(212, 175, 55, 0.35);
  color: #f0d77a;
}

/* Card filtering states */
.collection-card[data-hidden="true"] {
  display: none;
}

/* Collections Grid */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Collection Card - NEVER crop images */
.collection-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Cover image - CONTAIN, never crop */
.collection-card__cover {
  position: relative;
  width: 100%;
  height: 160px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.collection-card__cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

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

.collection-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    transparent 50%
  );
  pointer-events: none;
}

/* Placeholder for collections without covers */
.collection-card__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  height: 160px;
}

.collection-card__cover--placeholder i {
  font-size: 4rem;
  color: #d4af37;
  opacity: 0.4;
}

/* Info block - below image */
.collection-card__info {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.collection-card__type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4af37;
}

.collection-card__type i {
  font-size: 0.7rem;
}

.collection-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

.collection-card__desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  margin: 0.25rem 0;
  /* Truncate to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-card__count {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: auto;
}

/* Featured badge */
.collection-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  padding: 0.35rem 0.75rem;
  background: rgba(212, 175, 55, 0.9);
  color: #0a0a0a;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

/* Type-specific accents */
.collection-card--video .collection-card__cover--placeholder i {
  color: #ef4444;
}

.collection-card--audio .collection-card__cover--placeholder i {
  color: #8b5cf6;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-page {
    padding: 1.5rem 0 3rem;
  }

  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 0.75rem;
  }

  .collection-card__cover,
  .collection-card__cover--placeholder {
    height: 120px;
  }

  .collection-card__info {
    padding: 0.75rem 1rem 1rem;
  }

  .collection-card__title {
    font-size: 1.1rem;
  }

  .collection-card__desc {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .collection-card__count {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .collections-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .collection-card__cover,
  .collection-card__cover--placeholder {
    height: 140px;
  }
}

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