.collections-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 2rem;
  color: white;
}
.collections-btn svg rect {
  transition: all 0.3s ease;
}

/* UNIVERSAL CSS for collections overlay transition */
.collections-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.97);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.collections-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.collections-menu {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.collections-menu {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.year-switch {
  display: flex;
  justify-content: center;
  gap: 0;                  /* gap fallback, Safari usa margin sugli <a> */
  margin-top: 20px;
}

.year-switch a {
  display: inline-block;
  opacity: 0.4;
  transition: opacity 0.3s;
  margin: 0 20px;
  min-width: 30px;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  padding-top: 3px;
}

.collections-menu a {
  color: white;
  font-size: 2rem;
  text-decoration: none;
  transition: 0.3s;
}

.collections-menu a:hover {
  color: #aaa;
}

.close-collections {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

.collections-social {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 50px;
}
.collections-social a img {
  display: block;
  width: 40px;
  height: 40px;
}

:root {
  --bg-color: #f0f0f0;
  --header-color: #222222;
  --text-color: white;
}

body {
  font-family: 'Special Elite', monospace;
  margin: 0;
  background-color: var(--bg-color);
}

header, footer, .collections-menu a, .header-title {
  font-family: 'Special Elite', monospace;
}

header {
  text-align: center;
  padding: 2rem;
  background-color: var(--header-color);
  color: var(--text-color);
}

.gallery {
  column-count: 4;
  column-gap: 15px;
  padding: 20px;
  overflow: visible;
}

.img-wrapper {
  overflow: hidden;
  margin-bottom: 15px;
}

.img-wrapper img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
  transform-origin: center;
}

.img-wrapper img:hover {
  transform: scale(1.02);
}

@media (max-width: 820px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 500px) {
  .gallery {
    column-count: 2;
    column-gap: 13px;
    padding: 13px;
  }
  .header-flex {
    padding: 1rem;
    gap: 10px;
  }
  .header-title {
    font-size: 1.4rem;
  }
  .spotify-container iframe {
    max-width: 320px;
    height: 155px;
  }
}

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

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
}

.close, .prev, .next {
  cursor: pointer;
  position: absolute;
  color: white;
  user-select: none;
  font-size: 40px;
}

.close {
  top: 20px; 
  right: 30px; 
  color: rgba(255,255,255,0.5); 
  transition: opacity 0.3s; 
}

.prev, .next {
  top: 50%; 
  padding: 16px; 
  font-size: 50px; 
  margin-top: -25px; 
}

.prev { left: 20px; }
.next { right: 20px; }

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background-color: #222222;
  color: white;
}

.header-title {
  margin:0; 
  font-size:1.8rem;
  font-weight: 500;
}

.recommendations-container {
  display:flex; 
  justify-content:center; 
  align-items:flex-start; 
  gap:20px; 
  flex-wrap:wrap; 
  margin:20px;
}

footer {
  background-color:#222222; 
  color:white; 
  text-align:center; 
  padding:25px 0; 
  display:flex; 
  justify-content:center; 
  align-items:center; 
  gap:10px; 
  flex-wrap:wrap; 
  font-size: 1.1rem;
  font-weight: 300;
}

footer a {
  display:inline-flex; 
  align-items:center;
}

.footer-subtext {
  font-size: 0.7rem;
  opacity: 0.8;
}

.side-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 3rem;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s;
  user-select: none;
  z-index: 1010;
}

.lightbox:hover .side-arrow {
  opacity: 1;
}

.side-arrow.left { left: 20px; }
.side-arrow.right { right: 20px; }

.lightbox-zone {
  position: absolute;
  top: 20%;
  width: 50%;
  height: 60%;
  cursor: pointer;
}

.left-zone { left: 0; }
.right-zone { right: 0; }

.spotify-container {
  display: flex;
  justify-content: center;
  margin: 40px 0 10px 0;
}

.spotify-container iframe {
  width: 100%;
  max-width: 370px;
  height: 165px;
  border-radius: 12px;
}

@media (max-width: 500px) {
  .spotify-container iframe {
    max-width: 320px;
    height: 155px;
  }
}