/* ============================= */
/* LIGHTBOXES */
/* ============================= */
.lightbox {
  display: none;              /* stays hidden until activated */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9); /* darker backdrop */
  backdrop-filter: blur(5px);      /* subtle blur effect */
  justify-content: center;
  align-items: center;
}

/* Content wrapper scales responsively */
.lightbox-content {
  position: relative;
  max-width: 1400px;
  width: 90%;
  max-height: 95vh;
  text-align: center;
}

/* Responsive Video */
.lightbox video {
  width: 100%;
  height: auto;
  max-height: 85vh; /* keeps video inside screen vertically */
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 1100;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ----------------------------- */
/*     RESPONSIVE BREAKPOINTS    */
/* ----------------------------- */

/* Tablets */
@media (max-width: 992px) {
  .close {
    font-size: 32px;
    top: 5px;
    right: 10px;
  }

  .lightbox video {
    max-height: 80vh;
  }
}

/* Phones */
@media (max-width: 600px) {
  .lightbox-content {
    width: 95%;
  }

  .lightbox video {
    border-radius: 8px;
    max-height: 75vh;
  }

  .close {
    font-size: 30px;
    padding: 8px 12px;
    right: 8px;
  }
}





/* ============================= */
/* MUSIC PLAYER BAR */
/* ============================= */
#playerBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.4);
  z-index: 1000;
}

/* Song title */
#playerTitle {
  font-family: "Baskerville", serif;
  font-size: 1rem;
  font-weight: bold;
  color: #000000;
  white-space: nowrap;
}

/* Audio player */
#audioPlayer {
  width: 100%;
  max-width: 600px;   /* Desktop size */
}

/* Close button */
#closePlayer {
  background: none;
  border: none;
  color: #000000;
  font-size: 1.8rem;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
}

/* ============================= */
/* MOBILE OPTIMIZATION */
/* ============================= */
@media (max-width: 768px) {
  #playerBar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem;
  }

  #playerTitle {
    font-size: 0.95rem;
  }

  #audioPlayer {
    max-width: 100%;
  }

  #closePlayer {
    position: absolute;
    right: 10px;
    top: 5px;
  }
}




/* === Lightbox overlay === */
#bookLightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

/* === Lightbox content wrapper === */
.book-lightbox-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 85vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* === Book iframe === */
#bookFrame {
  width: 100%;
  height: 100%;
  border: none;
}

/* === Close button === */
.close-book {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s ease;
}

.close-book:hover {
  background: rgba(0,0,0,0.95);
}

/* ===========================
   📱 Mobile adjustments
=========================== */
@media (max-width: 768px) {
  .book-lightbox-content {
    height: 90vh;
    border-radius: 8px;
  }

  .close-book {
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 36px;
  }
}

/* ===========================
   📱 Small phones
=========================== */
@media (max-width: 480px) {
  .book-lightbox-content {
    height: 95vh;
  }

  .close-book {
    top: 8px;
    right: 8px;
  }
}



/* ===== Artwork Modal ===== */
.artwork-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 500;
  opacity: 0;
  pointer-events: none;     /* modal ignores clicks */
  transition: opacity 0.3s ease;
}

.artwork-modal.show {
  opacity: 1;
}

/* This allows clicks inside the box */
.artwork-box {
  position: relative;
  pointer-events: auto;     /* 🔥 clickable */
}

.artwork-modal img {
  width: 360px;
  max-width: 80vw;
  border-radius: 14px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

/* ✕ button */
.close-artwork {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #000;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}


@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}