/* ============================= */
/* STOP WHITE SPACE ON ROTATION */
/* ============================= */

/* 1) Lock the page to the viewport and prevent horizontal overflow */
html,
body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: "Baskerville", serif;
  background-color: #ffffff;

}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ============================= */
/* FULL-WIDTH SECTIONS */
/* ============================= */
section {
  width: 100%;
  margin: 0;
}



/* ============================= */
/* NAVBAR */
/* ============================= */
.navbar {
  background-color: #000;
  padding: 0.75rem 1rem;
}

/* Brand container */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  /* CRITICAL: allow shrinking on Android */
  min-width: 0;
}

/* Logo */
.navbar-logo {
  width: 48px;
  height: auto;
}

/* Brand text must be allowed to shrink */
.brand-text {
  font-family: "Baskerville", serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;

  /* PREVENT OVERLAP */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  /* THIS IS THE ANDROID FIX */
  min-width: 0;
  max-width: 100%;
}

/* Nav links */
.navbar-nav .nav-link {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #ffffff !important;
}


/* ============================= */
/* HAMBURGER TOGGLE (FORCED WHITE) */
/* ============================= */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-left: 1rem;
  
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Replace Bootstrap SVG with white stroke */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================= */
/* MOBILE MENU */
/* ============================= */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #000;
    padding: 1rem 0;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    font-size: 16px;
  }
}

/* ============================= */
/* TABLET */
/* ============================= */
@media (min-width: 768px) {
  .brand-text {
    font-size: 22px;
  }

  .navbar-logo {
    width: 56px;
  }
}

/* ============================= */
/* DESKTOP */
/* ============================= */
@media (min-width: 992px) {
  .brand-text {
    font-size: 26px;
    letter-spacing: 1.5px;
  }

  .navbar-logo {
    width: 70px;
  }

  .navbar-nav .nav-link {
    font-size: 18px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================= */
/* SMALL IPHONES */
/* ============================= */
@media (max-width: 375px) {
  .brand-text {
    font-size: 18px;
  }

  .navbar-logo {
    width: 42px;
  }
}





/* ============================= */
/* HERO SECTION */
/* ============================= */
.hero-section {
  position: relative;
  background: url("../Photos/hero-bg.jpg") center / cover no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

/* Overlay */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 25, 0.648);
}

/* Content container */
.hero-section .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* ============================= */
/* HERO HEADING */
/* ============================= */
.hero-heading {
  font-family: "Baskerville", serif;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.25rem;

  /* Responsive font sizing */
  font-size: clamp(5rem, 9vw, 7rem);
}


/* ============================= */
/* SMALL IPHONES */
/* ============================= */
@media (max-width: 375px) {
  .hero-section {
    min-height: 60vh;
    padding: 2.5rem 1rem;
  }
}




/* ============================= */
/* MUSIC SECTION */
/* ============================= */
.music-container {
  background-color: #000;
  padding: 3rem 1.5rem;
}

/* ===== Mobile / Tablet Layout ===== */
.content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1600px;
  margin: 0 auto;
  justify-items: center;
}

/* ===== Desktop Layout ===== */
@media (min-width: 768px) {
  .content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;     /* centers incomplete last row */
    gap: 2.5rem;
    align-items: stretch;        /* equal height cards per row */
  }

  .contents {
    width: 260px;                /* fixed card width */
    display: flex;
    flex-direction: column;
  }
}

/* ===== Individual Card ===== */
.contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ===== Cover Images ===== */
.photo img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
  border-radius: 4px;
}

/* ===== Title ===== */
.contents-headings {
  font-family: "Baskerville", serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;

  /* 🔑 Locks title row height for alignment */
  height: 2.0em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  margin-bottom: 0.75rem;
}

/* ===== Text ===== */
.content-text {
  font-family: "Baskerville", serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ===== Button Group ===== */
.buttons-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 0.8rem;
}

/* Push buttons to same vertical level */
.buttons-heading .openvideo {
  margin-top: auto;
}

/* ===== Buttons ===== */
.button {
  font-family: "Baskerville", serif;
  font-size: 1rem;
  color: #000;
  background-color: #ffffff;
  border-radius: 6px;
  border: none;
  padding: 0.65rem;
  width: 100%;
  max-width: 260px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
  background-color: #e5e5e5;
  transform: translateY(-2px);
}

/* ===== Expired Text ===== */
.expired-text {
  color: #ffffff;
}

/* ===== Force single column on small phones ===== */
@media (max-width: 768px) {
  .content {
    grid-template-columns: 1fr;
  }
}






/* ============================= */
/* FOOTER */
/* ============================= */
footer {
  background-color: #000;
  color: #fff;
}

/* ============================= */
/* FOOTER MAIN BAR */
/* ============================= */
.footer {
  padding: 2rem 1rem;
}

/* Layout */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================= */
/* FOOTER LOGO / ADDRESS */
/* ============================= */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: "Baskerville", serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1.4;
}

.footer-logo img {
  width: 60px;
  height: auto;
}

/* ============================= */
/* FOOTER NAV LINKS */
/* ============================= */
.footer-foot {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-item {
  list-style: none;
}

.footer-link {
  text-decoration: none;
  font-family: "Baskerville", serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #ffffff;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ============================= */
/* POLICIES */
/* ============================= */
.policies {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  background-color: #ffffff;
  margin: 0;
}

.policy_text {
  text-decoration: none;
  font-family: "Baskerville", serif;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #000;
}

.policy_text:hover {
  text-decoration: underline;
}

/* ============================= */
/* MOBILE */
/* ============================= */
@media (max-width: 767px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-foot {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-logo {
    justify-content: center;
    text-align: center;
  }
}






/* ============================= */
/* 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;
  }
}



/* === 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;
  }
}





/* ============================= */
/* 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;
  }
}


/* ===== 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; }
}






/* ============================= */
/* FLIPBOOK CONTENT PAGE */
/* ============================= */
.music-container {
  background-color: #000;
  padding: 3rem 1.5rem;
}

/* ===== Mobile / Tablet Layout ===== */
.flipbook_content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

/* ===== Desktop Layout ===== */
@media (min-width: 768px) {
  .flipbook_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;     /* centers incomplete last row */
    gap: 3rem;
    align-items: stretch;        /* equal height cards per row */
  }

  .flipbook_contents {
    width: 400px;                /* fixed card width */
    display: flex;
    flex-direction: column;
  }
}

/* ===== Cover Images ===== */
.flipbook_photo img{
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.flipbook_photo{
  max-width: 600px; /* or whatever size you want */
}

/* ===== Title ===== */
.flipbook_headings {
  font-family: "Baskerville", serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;

  /* 🔑 Locks title row height for alignment */
  height: 2.0em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  margin-bottom: 0.75rem;
}

/* ===== Text ===== */
.flipbook_text {
  font-family: "Baskerville", serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ===== Button Group ===== */
.buttons-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 0.8rem;
}

/* Push buttons to same vertical level */
.buttons-heading .openvideo {
  margin-top: auto;
}

/* ===== Buttons ===== */
.flipbook_button {
  font-family: "Baskerville", serif;
  font-size: 1rem;
  color: #000;
  background-color: #ffffff;
  border-radius: 6px;
  border: none;
  padding: 0.65rem;
  width: 100%;
  max-width: 400px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
}

.flipbook_button:hover {
  background-color: #e5e5e5;
  transform: translateY(-2px);
}

/* ===== Expired Text ===== */
.expired-text {
  color: #ffffff;
}

/* ===== Force single column on small phones ===== */
@media (max-width: 768px) {
  .flipbook_content {
    grid-template-columns: 1fr;
  }
}