html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-text);
  background-color: #0d1117;
  background-image:
    radial-gradient(1200px circle at 14% -12%, rgba(56,139,253,0.16), transparent 58%),
    radial-gradient(900px circle at 86% -8%, rgba(0,255,204,0.10), transparent 56%),
    linear-gradient(to bottom, rgba(13,17,23,0.82), #0d1117),
    url('/images/banner.webp'),
    radial-gradient(#333 1px, transparent 1px);
  background-size: auto, auto, 100% auto, 100% auto, 20px 20px;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-position: top left, top right, top center, top center, top left;
  color: #fff;
  overflow-x: hidden;
}
/* Phones get a 1280px copy of the banner: the full 2660px one is ~12MB once decoded. */
@media (max-width: 767px) {
  body {
    background-image:
      radial-gradient(1200px circle at 14% -12%, rgba(56,139,253,0.16), transparent 58%),
      radial-gradient(900px circle at 86% -8%, rgba(0,255,204,0.10), transparent 56%),
      linear-gradient(to bottom, rgba(13,17,23,0.82), #0d1117),
      url('/images/banner-1280.webp'),
      radial-gradient(#333 1px, transparent 1px);
  }
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.7);
  position: relative;
  flex-wrap: wrap;
}

.overlay-img {
  width: 200px;
  height: auto;
  margin-right: 2rem;
}

.header-text {
  flex-grow: 1;
}

h1 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 3rem;
  color: #00ffcc;
  margin: 0;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons a {
  color: #00ffcc;
  font-size: 2rem;
  text-decoration: none;
  transition: transform 0.2s;
}

.social-icons a:hover {
  transform: scale(1.3);
  color: #00ccaa;
}

.description {
  max-width: 800px;
  margin: 2rem auto;
  font-size: 1.2rem;
  text-align: center;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  padding: 0.8rem 1.5rem;
  background-color: #00ffcc;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s;
}

.button:hover {
  background-color: #00ccaa;
}

.email-highlight {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  background-color: #ff0066;
  padding: 1rem 2rem;
  border-radius: 10px;
  display: inline-block;
  margin: 1rem auto;
  box-shadow: 0 0 15px #ff0066;
}

.contact-section {
  background:
    radial-gradient(620px circle at 15% -18%, rgba(56,139,253,0.12), transparent 56%),
    radial-gradient(520px circle at 85% -12%, rgba(0,255,204,0.09), transparent 52%),
    linear-gradient(to bottom, rgba(17,17,17,0.86), rgba(12,12,12,0.9)),
    radial-gradient(rgba(125,140,158,0.2) 1px, transparent 1px);
  background-size: auto, auto, 100% 100%, 20px 20px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  border: 1px solid #2a3340;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(3px);
  padding: 2.2rem 1.2rem;
  margin: 3rem 1.5rem 0;
  text-align: center;
}

.contact-section h2 {
  color: #00ffcc;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border-radius: 9px;
  border: 1px solid #2d3845;
  background: rgba(20,24,30,0.82);
  color: #e6edf3;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7a8490;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3f7fca;
  box-shadow: 0 0 0 3px rgba(56,139,253,0.22);
}

.contact-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.15rem;
  border-radius: 11px;
  border: 1px solid rgba(115, 248, 224, 0.58);
  background: #00ffcc;
  color: #071015;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 255, 204, 0.2), inset 0 1px 0 rgba(255,255,255,0.45);
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.contact-submit-btn .material-icons {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.contact-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 255, 204, 0.28), 0 0 24px rgba(66, 230, 255, 0.28);
  filter: saturate(1.08);
}

.contact-submit-btn:hover .material-icons {
  transform: translateX(2px);
}

.contact-submit-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(66, 230, 255, 0.28), 0 14px 28px rgba(0, 255, 204, 0.24);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn:disabled {
  cursor: wait;
  opacity: 0.88;
  filter: saturate(0.95);
}

.contact-submit-btn.is-loading .material-icons {
  animation: submit-spin 0.9s linear infinite;
}

@keyframes submit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.music-section {
  max-width: 900px;
  margin: 3rem auto;
  text-align: center;
}

.music-section h2 {
  font-family: var(--font-heading); font-weight: 800;
  color: #00ffcc;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.spotify-embed {
  margin: 1.5rem 0 3rem 0;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.spotify-embed:hover {
  transform: scale(1.02);
}

/* ── App layout ──────────────────────────────────────────────────────────────── */
.app-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  min-height: 0;
  background: #0b0b0b;
  border-right: 1px solid #181818;
  padding: 1.75rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: #222 transparent;
  flex-shrink: 0;
}

.sidebar-top {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  text-align: left;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #181818;
  order: 1;
}

.sidebar-brand-text {
  width: fit-content;
}

/* The logo's glow pulse. Animating `filter: drop-shadow` re-rasterises the image and its blur
   every frame, forever; instead the glow is a static drop-shadow on a copy of the image behind
   it (.sidebar-img-wrap::before), rasterised once, and only its opacity pulses — which runs on
   the compositor. Opacities are the old per-step shadow alphas relative to the 0.26 peak. */
@keyframes glow-pulse-mobile {
  0%   { opacity: 0.31; }
  4%   { opacity: 0.42; }
  9%   { opacity: 0.31; }
  14%  { opacity: 0.50; }
  20%  { opacity: 0.35; }
  26%  { opacity: 0.58; }
  31%  { opacity: 0.38; }
  37%  { opacity: 0.31; }
  43%  { opacity: 0.65; }
  49%  { opacity: 0.46; }
  55%  { opacity: 0.73; }
  60%  { opacity: 0.50; }
  65%  { opacity: 0.35; }
  70%  { opacity: 0.81; }
  74%  { opacity: 0.58; }
  79%  { opacity: 0.88; }
  83%  { opacity: 0.73; }
  86%  { opacity: 1.00; }
  91%  { opacity: 0.38; }
  95%  { opacity: 0.31; }
  100% { opacity: 0.31; }
}

.sidebar-img-wrap {
  position: relative;
  width: calc(100% + 1.25rem);
  margin-left: 0;
  margin-right: -1.25rem;
  margin-bottom: 2rem;
  display: block;
  order: 0;
  --glow-duration: 12s;
}
.sidebar-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(/images/overlay-600.webp) center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 13px rgba(0,255,204,0.26));
  opacity: 0.31;
  will-change: opacity;
  pointer-events: none;
  animation: glow-pulse-mobile var(--glow-duration) ease-in-out infinite;
}
.sidebar-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.sidebar-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 3.05rem;
  color: #00ffcc;
  margin: 0;
  margin-left: 0.625rem;
  line-height: 1;
}

@media (min-width: 701px) {
  .sidebar-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin: 0 auto;
    transform: translateX(-0.5rem);
  }

  .sidebar-title {
    margin-left: 0;
    text-align: left;
  }

  .sidebar-email {
    margin-left: 0;
  }
}

.sidebar-subtitle {
  font-size: 0.68rem;
  color: #3a3a3a;
  letter-spacing: 0.05em;
  margin: 0.3rem 0 0;
  line-height: 1.5;
}

.sidebar-email {
  display: inline-block;
  margin-top: 0.45rem;
  margin-left: 0;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  letter-spacing: 0.06em;
  margin-right: -0.06em; /* cancel the trailing letter-spacing so the text ends flush with the title */
  white-space: nowrap;
  transition: color 0.2s;
}
.sidebar-email:hover { color: #00ffcc; }

.sidebar-social {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.55rem;
  column-gap: 0.9rem;
  justify-content: center;
  margin-top: 2px;
  padding: 1.2rem 0;
  border-bottom: 1px solid #181818;
  order: 2;
}

.sidebar-social a {
  color: #2e2e2e;
  font-size: 1.45rem;
  text-decoration: none;
  display: flex;
  transition: color 0.15s, transform 0.15s;
}
.sidebar-social a:hover { color: #00ffcc; transform: scale(1.2); }

/* ── Main content ────────────────────────────────────────────────────────────── */
.main-content {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

/* ── Description section ─────────────────────────────────────────────────────── */
.desc-section {
  padding: 2rem 2.5rem;
  margin: 2rem 1.5rem 2rem;
  background: rgba(10, 10, 10, 0.88);
  border-radius: 12px;
}

/* ── Rakuel Is Back ad (components/isback-ad.js), between the description and the gig ── */
.home-isback-ad { margin: 2rem 1.5rem; }

/* ── Mobile nav toggle (hidden on desktop) ───────────────────────────────────── */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #2e2e2e;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.15s;
  line-height: 0;
  flex-shrink: 0;
}
.mobile-nav-toggle:hover { color: #00ffcc; }
.mobile-nav-toggle .material-icons { font-size: 1.6rem; display: block; }

@media (max-width: 700px) {
  .app-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  /* Sidebar disappears as a layout box; children slot directly into the page grid */
  .sidebar { display: contents; }
  /* Top bar: 3-col grid — brand left | image center | hamburger right */
  .sidebar-top {
    order: 0;
    background: #0b0b0b;
    border-bottom: 1px solid #181818;
    padding: 0.7rem 1rem 0.6rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand img toggle";
    align-items: center;
    gap: 0.5rem 0;
  }
  .sidebar-brand {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    border-bottom: none;
    order: 0;
  }
  .sidebar-img-wrap {
    display: block;
    grid-area: img;
    width: 92px;
    margin: 0 0 0 1rem;
    order: 0;
    justify-self: center;
    --glow-duration: 36s;
  }
  .sidebar-title { font-size: 2.4rem; margin-left: 0; line-height: 1; order: 0; }
  .sidebar-email { margin-left: 0; margin-top: 0.15rem; order: 0; }
  .mobile-nav-toggle { grid-area: toggle; display: flex; align-items: center; justify-self: end; }
  /* Social icons: moved into the burger menu (index.html script), a row above the links */
  .sidebar-social {
    padding: 0 0 1rem;
    margin: 0 0 0.7rem;
    row-gap: 0.55rem;
    column-gap: 1.4rem;
    border-bottom: 1px solid #1c1c1c;
    justify-content: center;
    align-items: center;
  }
  /* Main content: middle page section */
  .main-content {
    order: 1;
    height: auto;
    overflow: visible;
  }
  /* Nav links: below top bar, hidden until toggled */
  .site-nav {
    order: 0;
    overflow: visible;
    height: auto;
    min-height: 0;
    scrollbar-gutter: auto;
    background: #0b0b0b;
    border-top: 1px solid #181818;
    padding: 1rem;
    display: none;
  }
  .site-nav.mobile-open { display: block; }
  .site-nav::after { min-height: 0; }
  .desc-section { padding: 1.5rem 1.2rem; margin: 2.5rem 0.75rem 1.5rem; }
  .home-isback-ad { margin: 1.5rem 0.75rem; }
}

/* ── Album Carousel ─────────────────────────────────────────────────────────── */
.carousel-section {
  padding: 2rem 0 0;
}

.carousel-viewport {
  overflow: hidden;
  position: relative;
  padding: 1.2rem 0 1.8rem;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  user-select: none;
}

.carousel-viewport:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  padding: 0.5rem 0;
}

.album-card {
  width: 220px;
  flex-shrink: 0;
  background: #141414;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  transform-origin: center center;
  transition: border-color 0.2s;
}

.album-card:hover {
  border-color: rgba(0, 255, 204, 0.6);
  box-shadow: 0 0 22px rgba(0, 255, 204, 0.3);
}

.album-card.active {
  border-color: #00ffcc;
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
}

.album-cover {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-cover-placeholder {
  font-family: var(--font-heading); font-weight: 800;
  color: #00ffcc;
  font-size: 0.85rem;
  padding: 0.75rem;
  text-align: center;
  line-height: 1.3;
}

.album-info {
  padding: 0.55rem 0.75rem 0.7rem;
  text-align: left;
}

.album-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.album-year {
  font-size: 0.72rem;
  color: #00ffcc;
  margin-top: 0.15rem;
  font-weight: 300;
}

/* The home page inside the Is Back play host (phones, html.rk-in-shell from
   /is-back/play/scene.js): the jukebox plays the songs and there's no song card under the
   carousel, so it doesn't need the room around it. Some is kept for the centred card's glow. */
html.rk-in-shell .carousel-section { padding-top: 1.15rem; }
html.rk-in-shell .carousel-viewport { padding: 0.6rem 0 0.8rem; }
html.rk-in-shell .desc-section { margin-top: 0.25rem; }

/* Any page in the play host while the jukebox's strip floats over the scene's bottom (portrait
   phones, html.rk-shell-dock from /is-back/play/scene.js): room at the end of the page, so it
   scrolls clear of the strip. !important: footer.js sets the body's padding-bottom inline. */
html.rk-shell-dock body { padding-bottom: var(--rk-dock-h) !important; box-sizing: border-box; }
/* The home page wider than 700px scrolls its .main-content, not the page: the room goes there. */
@media (min-width: 701px) {
  html.rk-shell-dock .main-content { padding-bottom: var(--rk-dock-h); box-sizing: border-box; }
}

/* Holds the selected song's .pc-card (styled by /mp3-tracks/styles.css). */
.active-album-embed {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: left;
}
/* The embedded song card's title in the heavy heading cut, like the home page's headings. */
.active-album-embed .pc-card-title { font-family: var(--font-heading); font-weight: 800; }

/* (content-grid replaced by app-layout sidebar + main-content) */

/* ── Site nav sidebar ────────────────────────────────────────────────────────── */
.site-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior-y: contain;
  padding-right: 0.7rem;
  padding-bottom: 1rem;
}

.site-nav::after {
  content: "";
  display: block;
  min-height: 45%;
}
/* Phones: the menu opens in the page's flow (styles above in the 700px block), so it must not
   become its own clipped scroll box. Here, after the rules above, so it outranks them. */
@media (max-width: 700px) {
  .site-nav { overflow: visible; }
  .site-nav::after { min-height: 0; }
}

.nav-category { margin-bottom: 0.7rem; }

.nav-cat-btn {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #1c1c1c;
  padding: 0.66rem 0.75rem 0.66rem 0;
  color: #505050;
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: color 0.15s;
}
.nav-cat-btn:hover { color: #888; }
.nav-cat-btn--admin { color: #4a1020; }
.nav-cat-btn--admin:hover { color: #ff0066; }

.nav-cat-arrow {
  font-size: 0.8rem;
  transition: transform 0.25s ease;
  display: inline-block;
  line-height: 1;
}
.nav-category.open .nav-cat-arrow { transform: rotate(180deg); }

.nav-cat-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.nav-category.open .nav-cat-links { max-height: 5000px; }

.nav-link {
  display: block;
  padding: 0.42rem 0.75rem 0.42rem 0.65rem;
  color: #9a9a9a;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}
.nav-cat-links .nav-link:first-child { margin-top: 0.3rem; }
.nav-link:hover { color: #ddd; border-left-color: #00ffcc; }
.nav-link:has(> .nav-avatar) { display: flex; align-items: center; }
.nav-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; border: 0.15rem solid #30363d; margin-left: 1rem; margin-right: 0.2rem; flex-shrink: 0; }
.nav-link--admin { color: #9a9a9a; }
.nav-link--admin:hover { color: #ff0066; border-left-color: #ff0066; }

/* ── Hero description ────────────────────────────────────────────────────────── */
.hero-tagline {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 2.4rem;
  color: #fff;
  margin: 0 0 1.1rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap; /* index.html shrinks the font when it doesn't fit */
}

.hero-body {
  font-size: 1.05rem;
  color: #e8e8e8;
  line-height: 1.85;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ── First gig ────────────────────────────────────────────────────────────── */
.gig-section {
  background:
    radial-gradient(620px circle at 85% -18%, rgba(0,255,204,0.10), transparent 56%),
    radial-gradient(520px circle at 10% 110%, rgba(56,139,253,0.10), transparent 52%),
    linear-gradient(to bottom, rgba(17,17,17,0.86), rgba(12,12,12,0.9));
  border: 1px solid #2a3340;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.03);
  padding: 2rem 2.5rem 2.5rem;
  margin: 2rem 1.5rem 2rem;
}

.gig-layout {
  display: flex;
  align-items: stretch;
  gap: 1.75rem;
}

.gig-photo-frame {
  position: relative;
  flex: 0 0 240px;
  width: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 30px rgba(0,255,204,0.18);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gig-photo-frame:hover {
  border-color: rgba(0, 255, 204, 0.6);
  box-shadow: 0 0 22px rgba(0, 255, 204, 0.3);
}

.gig-photo-frame:focus-visible {
  outline: none;
  border-color: #00ffcc;
  box-shadow: 0 0 0 3px rgba(0,255,204,0.28);
}

.gig-photo-frame--secondary {
  display: none;
}

.gig-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.14);
  display: block;
}

.gig-content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1 1 260px;
  min-width: 260px;
}

.gig-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.gig-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00ffcc;
  width: 100%;
}

.gig-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 2rem;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

.gig-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #071015;
  background: #00ffcc;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  line-height: 1;
}

.gig-date .material-icons { font-size: 1rem; }

.gig-blurb {
  font-size: 0.92rem;
  color: #e8e8e8;
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0;
}

.gig-videos {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.gig-video-main,
.gig-short {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.gig-video-main:hover,
.gig-short:hover {
  border-color: rgba(0, 255, 204, 0.6);
  box-shadow: 0 0 22px rgba(0, 255, 204, 0.3);
}

.gig-video-main:focus-visible,
.gig-short:focus-visible {
  outline: none;
  border-color: #00ffcc;
  box-shadow: 0 0 0 3px rgba(0,255,204,0.28);
}

.gig-video-main {
  flex: 2.1 1 0;
  aspect-ratio: 16 / 9;
}

.gig-video-player {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  object-fit: contain;
}

.gig-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gig-video-thumb[hidden] { display: none; }

/* The vertical video's poster in the 16:9 box: whole, letterboxed in black, as it plays. */
.gig-video-main .gig-video-thumb {
  object-fit: contain;
  background: #000;
}

.gig-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(0,255,204,0.92);
  color: #071015;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 22px rgba(0,255,204,0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}

.gig-play-btn .material-icons { font-size: 1.4rem; }

.gig-video-main:hover .gig-play-btn,
.gig-short:hover .gig-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: #00ffcc;
}

.gig-video-caption {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.4rem;
  font-family: var(--font-heading); font-weight: 800;
  font-size: 0.7rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.gig-video-caption--short {
  font-size: 0.62rem;
}

.gig-video-main.is-playing .gig-play-btn,
.gig-video-main.is-playing .gig-video-caption,
.gig-short.is-playing .gig-play-btn,
.gig-short.is-playing .gig-video-caption {
  display: none;
}

.gig-short {
  flex: 1 1 0;
  aspect-ratio: 9 / 16;
}

.gig-short .gig-play-btn {
  width: 2.2rem;
  height: 2.2rem;
}

.gig-short .gig-play-btn .material-icons { font-size: 1.3rem; }

@media (max-width: 900px) {
  .gig-layout {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: start;
    gap: 0.9rem 0.75rem;
  }

  /* Flatten the wrapper boxes so their children become direct grid items,
     which lets us re-order photo/videos independently of the markup. */
  .gig-content,
  .gig-videos {
    display: contents;
  }

  .gig-header { order: 1; grid-column: 1 / -1; }
  .gig-blurb  { order: 2; grid-column: 1 / -1; }

  /* Row: the two photos, side by side */
  .gig-photo-frame {
    order: 3;
    grid-column: span 3;
    width: 100%;
    max-width: none;
    aspect-ratio: 3 / 4;
    margin: 0;
  }
  .gig-photo-frame--secondary {
    display: block;
    order: 4;
  }

  /* Row: long video on its own */
  .gig-video-main { order: 5; grid-column: 1 / -1; }

  /* Row: three shorts, in order Minä Sydän S.A.O. / Kysspyssy / Sulata Mun Kyyneleet */
  .gig-short[data-video="mina-sydan-sao"] { order: 6; grid-column: span 2; }
  .gig-short[data-video="kysspyssy"] { order: 7; grid-column: span 2; }
  .gig-short[data-video="sulata-mun-kyyneleet"] { order: 8; grid-column: span 2; }
}

/* ── Gig photo lightbox ───────────────────────────────────────────────────── */
.gig-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  background:
    radial-gradient(circle at center, rgba(20,20,20,0.55) 0%, rgba(0,0,0,0.94) 78%);
  backdrop-filter: blur(2px);
  cursor: zoom-out;
}

.gig-lightbox.is-open {
  display: flex;
}

.gig-lightbox-figure {
  margin: 0;
  max-width: min(90vw, 720px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: default;
}

.gig-lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0,255,204,0.15);
  display: block;
}

.gig-lightbox-figure figcaption {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  text-align: center;
  letter-spacing: 0.02em;
}

.gig-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(20,20,20,0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.gig-lightbox-close:hover,
.gig-lightbox-close:focus-visible {
  background: rgba(0,255,204,0.16);
  border-color: rgba(0,255,204,0.5);
  outline: none;
}

@media (max-width: 700px) {
  .gig-section { padding: 1.5rem 1.2rem; margin: 1.5rem 0.75rem 1.5rem; }
  .contact-section { margin: 1.5rem 0.75rem 0; }
  .gig-title { font-size: 1.6rem; }
  .gig-header { row-gap: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-img-wrap::before { animation: none; }
}
