.title {
  padding: 2rem 5% 1rem;
  text-align: center;
}
h2 {
    text-align: center;
    color: #0056b3;
    font-size: 3.5em;
    margin-bottom: 20px;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 90px;
    height: 5px;
    background: linear-gradient(to right, #fbd118, #097b3e);
    margin: 1px auto 3px auto;
    border-radius: 3px;
}
.subtitle {
  font-size: 1.3rem;
  color: #a0a0a0;
  max-width: 600px;
  margin: 0 auto;
}
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 5% 6rem;
  max-width: 2560px;
  margin: 0 auto;
}
.album {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  aspect-ratio: 1 / 1;
  background: #1a1a1a;
}
.album:hover {
  transform: translateY(-16px) scale(1.04);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}
.album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.album:hover img {
  transform: scale(1.12);
}
.album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: all 0.4s ease;
}
.album h3 {
  color: #fff !important;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}
.album p {
  font-size: 1rem;
  opacity: 0.9;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.album-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  overflow-y: auto;
  padding: 4rem 5% 6rem;
}
.album-modal.active {
  display: block;
}
.modal-content {
  max-width: 2560px;
  margin: 0 auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}
.modal-header h2 {
  font-size: 2.8rem;
  background: linear-gradient(90deg, #c084fc, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.close-modal {
  font-size: 3rem;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s;
}
.close-modal:hover {
  color: white;
}
.modal-gallery {
  columns: 340px 4;
  column-gap: 1.5rem;
}
.modal-gallery .gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 35px rgba(0,0,0,0.5);
  transition: transform 0.35s ease;
  cursor: pointer;
  background: #1a1a1a;
}
.modal-gallery .gallery-item:hover {
  transform: scale(1.04);
}
.modal-gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.modal-gallery .gallery-item:hover img {
  transform: scale(1.08);
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.98);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 100px rgba(0,0,0,0.9);
}
.close-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 3.5rem;
  color: white;
  cursor: pointer;
  opacity: 0.85;
}
.close-btn:hover {
  opacity: 1;
}
@media (max-width: 1100px) {
  .albums-grid { gap: 1.5rem; }
  .modal-gallery { columns: 300px 3; }
}
@media (max-width: 700px) {
  .albums-grid { grid-template-columns: 1fr; padding: 1.5rem 4%; }
  .album { aspect-ratio: 4/3; }
  .modal-gallery { columns: 100%; padding: 0 2%; }
  header { padding: 4rem 5% 2.5rem; }
  h1 { font-size: 4rem; }
}