body {
  background-color: #1b1b1b;
  color: #DDD;
  font-family: "Lucida Console", "Courier New", monospace;
  background-image: var(--bg-image-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 200ms ease-in-out;
  
  /* Lightbox thumbnail configuration */
  --lightbox-thumbnail-width: 150px;
  --lightbox-columns: 4;
  --lightbox-thumbnail-height: 125px;
  --sidebar-outer-width: 250px;
  --body-outer-width: 740px;
  --content-row-width: calc(var(--sidebar-outer-width) + var(--body-outer-width));
}

.page_body {
  margin: 0;
  padding: 20px;
  flex: 1;
  max-width: 700px;
  color: #333;
  background: #FFF;
  border-radius: 12px;
/*  box-shadow: 0 2px 8px rgba(210, 12, 12, 20); */
}

.main_content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: min(100%, var(--content-row-width));
  margin: 0 auto;
}  

.page_header {
  width: min(100%, var(--content-row-width));
  margin: 20px auto;
  padding: 25px;
  box-sizing: border-box;
  background: #000;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page_header a {
  display: inline-flex;
}

.page_header img {
  display: block;
  max-width: 100%;
  height: 50px;
  width: auto;
}

body.token-page {
  margin: 0;
  padding: 20px;
}

.token-layout {
  margin: 0 auto;
}

.token-layout--narrow {
  width: min(100%, 900px);
}

.token-layout--default {
  width: min(100%, 1000px);
}

.token-layout--wide {
  width: min(100%, 1200px);
}

.token-banner {
  margin: 20px auto 20px;
  padding: 50px;
  background: #000;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.token-banner img {
  display: block;
  height: 50px;
  width: auto;
  max-width: 100%;
}

.token-form-card {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  color: #333;
}

.token-form-card h1 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  line-height: 1.25;
}

.token-form-card h2 {
  margin: 1.1rem 0 0.7rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.token-form-card p {
  margin: 0.6rem 0;
  line-height: 1.45;
}

.token-form-card label {
  display: block;
  margin: 0 0 0.5rem;
  font-weight: bold;
}

.token-form-card textarea {
  width: 100%;
  min-height: 12rem;
  box-sizing: border-box;
}

.token-form-card .checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 1rem;
  font-weight: normal;
}

.token-form-card .checkbox input {
  margin-top: 0.2rem;
}

.token-form-card button {
  margin-top: 1rem;
}

.token-form-card .token-link-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #007bff;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.token-form-card .token-link-button:hover {
  background: transparent;
  color: #0056b3;
}

.token-form-card .token-link-button:disabled {
  color: #666;
  cursor: wait;
}

.token-form-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.token-form-card th,
.token-form-card td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem;
  border-bottom: 1px solid #ddd;
}

.token-form-card select {
  width: 100%;
  max-width: 16rem;
}

.token-form-card ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
}

.token-backup-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.summary {
  padding: 0.75rem 1rem;
  background: #f3f3f3;
  border: 1px solid #ddd;
  margin: 1rem 0;
}

.summary.notice-success {
  background: #edf7ed;
  border-color: #c4e3c4;
}

.lock-banner {
  background: #fff4d8;
  border-color: #efc96a;
  color: #4d3600;
  font-size: 1rem;
  font-weight: 600;
}

.token-response-card {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  color: #333;
}

.token-response-card h1 {
  margin: 0 0 0.8rem;
  font-size: 1.6rem;
  line-height: 1.25;
}

.token-response-card p {
  margin: 0;
  line-height: 1.5;
}

.token-response-card.success {
  border: 2px solid #c4e3c4;
}

.token-response-card.error {
  border: 2px solid #efc3c3;
}

.page_sidebar {
  width: 220px;
  margin: 0 10px 10px 0;
  padding: 10px 10px;
  background: #CCC;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}  

.page_sidebar nav {
  width: 100%;
  display: flex;
  flex-direction: column;
}  

.page_sidebar a {
  color: #222;
  text-decoration: none;
  font-weight: bold;
  margin: 6px 0;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}  
.page_sidebar a:hover {
  background: #EEE;
  text-decoration: underline;
}  

.page_footer {
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  text-align: center;
}

body.newsletter-confirm-page {
  padding: 20px;
}

.newsletter-confirm-layout {
  width: min(100%, var(--content-row-width));
  margin: 0 auto;
}

.newsletter-confirm-card {
  margin: 0;
  padding: 20px;
  color: #333;
  background: #FFF;
  border-radius: 12px;
}

.newsletter-confirm-card h1 {
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

.newsletter-confirm-card p {
  margin: 0 0 0.8rem;
  line-height: 1.45;
}

.galleryList {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
  padding-left: 0;
}

ul {
  list-style: none;
  padding-left: 1.2rem;
}

ul li {
  position: relative;
}

ul li::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  width: 8px;
  height: 8px;
  background: url('/assets/img/icons/li-bullet.png') no-repeat center / contain;

  /* center on first line */
  top: calc(0.5lh - 4px);   /* 4px = half of 8px bullet */
}

.galleryList li::before {
  content: none;
}

.event-video {
  margin: 1.5rem 0 2rem;
}

.event-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.event-video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

form label {
  display: block;
  margin-bottom: 10px;
}
  
form input,
form select,
form textarea {
  width: calc(100% - 20px); /* Account for padding */
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc; 
  border-radius: 4px;
  background: #fff;
}
  
form button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}
 
form button:hover {
  background-color: #0069d9;
}

.toast-stack {
  position: fixed;
  right: 1rem;
  top: calc(1rem + env(safe-area-inset-top));
  width: min(420px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #444;
  background: #202020;
  color: #f2f2f2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast--closing {
  opacity: 0;
  transform: translateY(8px);
}

.toast--success {
  background: #0f2b18;
  border-color: #2f7d4a;
}

.toast--error {
  background: #351616;
  border-color: #b34b4b;
}

.toast--info {
  background: #1f2531;
  border-color: #4d6996;
}

.toast__message {
  line-height: 1.4;
  font-size: 0.95rem;
}

.toast__close {
  width: 1.8rem;
  min-width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid #777;
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.toast__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .toast-stack {
    left: 1rem;
    right: 1rem;
    width: auto;
    top: calc(0.9rem + env(safe-area-inset-top));
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}

.performer-registration-panel {
  margin-bottom: 2rem;
}

.performer-registration-alert {
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #f5f5f5;
  color: #222;
  line-height: 1.45;
}

.performer-registration-alert--error {
  border-color: #b34b4b;
  background: #fff1f1;
  color: #351616;
}

.performer-registration-alert--success {
  border-color: #2f7d4a;
  background: #edf7ed;
  color: #0f2b18;
}

.performer-registration-note {
  margin-top: -0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
}

.performer-registration-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.performer-registration-checkbox input {
  width: auto;
  margin: 0;
}

.performer-registration-checkbox span {
  display: inline-block;
}

.performer-registration-fieldset {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.performer-social-link-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.performer-social-link-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1 1 24rem;
}

.performer-social-link-fields label {
  flex: 1 1 auto;
}

.performer-social-platform-label {
  flex: 0 0 auto;
}

.performer-social-profile-label {
  flex: 1 1 16rem;
}

.performer-social-platform-select {
  width: auto;
  max-width: 100%;
  min-width: 12ch;
}

.performer-social-profile-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.performer-social-profile-input input {
  flex: 1 1 12rem;
  min-width: 10ch;
  margin-bottom: 0;
}

.performer-social-profile-prefix,
.performer-social-profile-suffix {
  font-size: 0.92rem;
  color: #444;
  white-space: nowrap;
}

.performer-social-profile-help {
  width: 100%;
  margin-top: 0.35rem;
}

.performer-event-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.performer-event-option input {
  width: auto;
  margin: 0;
}

.performer-event-backup-note {
  font-style: italic;
}

.volunteer-role-event {
  margin-bottom: 1.25rem;
}

.volunteer-event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.volunteer-event-tab {
  display: inline-block;
  border: 1px solid #999;
  border-radius: 999px;
  background: #f4f4f4;
  color: #222;
  padding: 0.35rem 0.75rem;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
}

.volunteer-event-tab:hover {
  background: #ececec;
}

.volunteer-event-tab.is-active {
  background: #222;
  color: #fff;
  border-color: #222;
}

.volunteer-role-event h3 {
  margin-bottom: 0.5rem;
}

.volunteer-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.7rem;
}

.volunteer-role-card {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.6rem;
}

.volunteer-role-card input {
  width: auto;
  margin: 0.1rem 0 0;
}

.volunteer-role-card span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.volunteer-role-card small {
  color: #555;
}

.volunteer-claims-list {
  display: grid;
  gap: 0.9rem;
}

.volunteer-claim-item {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.85rem;
}

.AINotice p {
  font-size: 0.5em;
  color: #666;
  margin-top: 10px;
  width: 50%;
  margin-left: 25%;
  text-align: justify;
}

.footnote {
  font-size: 0.8em;
  text-align: right;
}

.artist-thumb {
  float: right;
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0px;
}


.sp-lightbox-caption-container {
  background-color: #FFF;
  color: #333;
  margin: 0;
  padding: 15px 0;
  font-weight: bold;
}

.sp-lightbox-thumbnail-caption {
  font-size: 0.75em;
}

.sp-lightbox-close {
  background-color: black;
  border: none;
  border-radius: 3px;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.sp-lightbox-close:hover,
.sp-lightbox-close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.sp-lightbox-column {
  background-color: #FFF;  
  display: flex;
  flex-direction: column;
  height: var(--lightbox-thumbnail-height);
  justify-content: space-evenly;
  margin: 0 0.5vw 2vw 0.5vw;
  width: var(--lightbox-thumbnail-width);
  text-align: center;
}
.sp-lightbox-container {
   box-sizing: border-box;
   height: 100%;
   max-width: 100%;
}

.sp-lightbox-hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.sp-lightbox-modal {
  display: none;
  position: absolute;
  z-index: 1;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,1);
}

.sp-lightbox-modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  max-width: 800px;
}

.sp-lightbox-numbertext {
  background-color: black;
  color: white;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  left:0;
}

.sp-lightbox-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.sp-lightbox-slide-img {
  margin-bottom: -4px;
  max-height: 600px;
  max-width:100%; 
  object-fit: cover;
}

.sp-lightbox-slides {
  background-color: black;
  display: none;
  text-align: center;
}

.sp-lightbox-thumbnail {
  cursor: pointer;
  margin-bottom: -4px;
  max-height: 85%;
  max-width: 100%;
  object-fit: cover;
}

#sp-lightbox-prev,
#sp-lightbox-next {
  background-color: black;
  border:none;
  border-radius: 0 3px 3px 0;
  color: white;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  margin-top: -50px;
  padding: 16px;
  position: absolute;
  top: 50%;
  transition: 0.6s ease;
  user-select: none;
  -webkit-user-select: none;
  width: auto;
 }

 #sp-lightbox-next {
   right: 0;
   border-radius: 3px 0 0 3px;
 }

 #sp-lightbox-prev:hover,
 #sp-lightbox-next:hover {
   background-color: rgba(0, 0, 0, 0.8);
}

/* Merch product image lightbox */
.merch-lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.merch-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.merch-lightbox-image-container {
  position: relative;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.merch-lightbox-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.merch-lightbox-slide img {
  max-height: 70vh;
  max-width: 90%;
  object-fit: contain;
}

.merch-lightbox-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ddd;
  text-align: center;
}

.merch-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.merch-lightbox-counter {
  color: #ddd;
  font-size: 0.9rem;
  min-width: 60px;
  text-align: center;
}

.merch-lightbox-nav {
  background-color: transparent;
  border: 2px solid #ddd;
  color: #ddd;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.merch-lightbox-nav:hover {
  background-color: #ddd;
  color: #000;
}

.merch-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  font-weight: bold;
  color: #ddd;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.3s ease;
  z-index: 1001;
}

.merch-lightbox-close:hover {
  color: #fff;
}

/* ============================================================
   MOBILE OPTIMISATION
   ============================================================ */

/* Hamburger button - hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle-bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile full-screen menu overlay */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .page_header {
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 15px 20px;
  }

  html, body {
    margin: 0;
    padding: 0;
  }

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  .main_content {
    flex-direction: column;
    align-items: stretch;
    margin-top: 15px;
  }

  /* Hide grey sidebar on mobile */
  .page_sidebar {
    display: none;
  }

  /* Full-screen black overlay menu */
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 100;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 150px;
    padding-bottom: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu.nav-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    max-width: 600px;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .mobile-menu-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-menu-column:first-child {
    margin-left: 5px;
  }

  .mobile-menu-heading {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    padding-left: 0.75rem;
  }

  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .mobile-menu-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: background 0.2s;
    min-height: 36px;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .mobile-menu-nav a:hover {
    background: #222;
    text-decoration: underline;
  }

  .mobile-menu-nav img {
    filter: brightness(0) invert(1);
  }

  .mobile-menu-social {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    z-index: 101;
    pointer-events: none;
  }

  .mobile-menu.nav-open .mobile-menu-social {
    pointer-events: auto;
  }

  .mobile-menu-social a {
    opacity: 0.8;
    transition: opacity 0.2s;
  }

  .mobile-menu-social a:hover {
    opacity: 1;
  }

  /* Animate hamburger to X when open */
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .page_body {
    max-width: calc(100% - 20px);
    box-sizing: border-box;
    padding: 15px;
    margin: 0 auto;
  }

  /* Artist thumbnails: drop float, go full-width */
  .artist-thumb {
    float: none;
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto 1rem;
  }

  /* Responsive typography */
  html {
    font-size: 15px;
  }

  /* Gallery lightbox: 2 columns */
  body {
    --lightbox-thumbnail-width: calc(50vw - 20px);
    --lightbox-thumbnail-height: auto;
    --lightbox-columns: 2;
  }

  /* Lightbox modal improvements */
  .sp-lightbox-modal {
    position: fixed;
  }

  .sp-lightbox-slide-img {
    max-height: 80vh;
  }

  #sp-lightbox-prev,
  #sp-lightbox-next {
    padding: 20px;
  }

  /* Forms: full-width inputs, prevent iOS zoom */
  form input,
  form textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 12px;
  }

  form button {
    min-height: 44px;
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
  }

  .AINotice p {
    width: 100%;
    margin-left: 0;
  }
}

/* Extra-small screens: single column gallery */
@media (max-width: 480px) {
  body {
    --lightbox-columns: 1;
    --lightbox-thumbnail-width: 100%;
  }
}
