/* ============================================================
   GLOBAL VARIABLES
   ============================================================ */
:root {
  --accent: #888888;
  --nav-bg-mobile: rgba(0, 0, 0, 0.55);
  --lightbox-bg: rgba(0, 0, 0, 0.92);
  --arrow-size: 60px;
  --arrow-thickness: 6px;
  --play-icon-size: 70px;
}

/* ============================================================
   GLOBAL TYPOGRAPHY & COLORS
   ============================================================ */
body,
p,
li,
label,
input,
textarea,
select {
  color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
}

a,
a:hover,
a:active,
a:focus {
  color: #ffffff !important;
}

blockquote {
  border-left-color: #ffffff !important;
}

/* ============================================================
   BUTTONS & FORMS
   ============================================================ */
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  border-color: #ffffff !important;
  color: #ffffff !important;
  background: transparent !important;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25) !important;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
#banner {
  background-image: url('../../images/opm-logo-hero.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
}

#banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

#banner .inner {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 8px;
}

#banner h2 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 0, 0, 0.6);
}

#banner p {
  font-size: 1.4rem;
  font-weight: 600;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(0, 0, 0, 0.5);
}

/* Small mobile scaling */
@media screen and (max-width: 480px) {
  #banner .inner p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
  }

  #banner .inner h2 {
    font-size: 2rem !important;
    margin-bottom: 0.5rem;
  }
}

/* Fade-in animation */
#banner .inner p {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SOCIAL ICONS
   ============================================================ */
.social-hero,
.social-footer {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.social-footer {
  margin-top: 2rem;
}

.social-hero li a,
.social-footer li a,
#nav .icon {
  font-size: 1.6rem;
  color: #ffffff !important;
  transition: 0.25s ease;
}

.social-hero li a:hover,
.social-footer li a:hover,
#nav .icon:hover {
  color: var(--accent) !important;
  transform: scale(1.15);
}

/* ============================================================
   DARK THEME BACKGROUNDS
   ============================================================ */
body {
  background: #111 !important;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.wrapper,
.wrapper.style1,
.wrapper.style2,
.wrapper.special,
section,
article {
  background: transparent !important;
}

#page-wrapper {
  background: transparent !important;
}

#header {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
}

#header.alt {
  background: transparent !important;
  backdrop-filter: none !important;
}

#footer {
  background: rgba(0, 0, 0, 0.4) !important;
}

#one.wrapper.style1.special {
  background: rgba(0, 0, 0, 0.35) !important;
  border-radius: 12px;
  padding: 3rem 2rem !important;
  backdrop-filter: blur(4px);
}

section.wrapper,
section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* ============================================================
   GLOBAL FAINT BACKGROUND (ALL PAGES)
   ============================================================ */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../../images/opm-logo-hero-faint.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
  animation: faintFade 2s ease-out forwards;
}

@keyframes faintFade {
  from { opacity: 0; }
  to   { opacity: 0.03; }
}

/* SECOND FAINT LOGO FOR LONG PAGES */
body::after {
  content: "";
  position: fixed;
  bottom: -20vh;
  right: -10vw;
  width: 60vw;
  height: 60vh;
  background-image: url('../../images/opm-logo-hero-faint.webp');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.02;
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   NAVIGATION — SPECTRAL SYSTEM
   ============================================================ */
@media screen and (min-width: 981px) {
  #header #nav {
    display: block !important;
  }
  #header .menuToggle {
    display: none !important;
  }
}

@media screen and (max-width: 980px) {
  #header #nav {
    display: none !important;
  }
  #header .menuToggle {
    display: block !important;
  }
}

.menuToggle {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 10000;
  padding: 1rem;
}

.menuToggle .hamburger {
  width: 28px;
  height: 3px;
  background: #ffffff;
  display: block;
  position: relative;
  transition: background 0.3s ease;
}

.menuToggle .hamburger::before,
.menuToggle .hamburger::after {
  content: "";
  width: 28px;
  height: 3px;
  background: #ffffff;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.menuToggle .hamburger::before { top: -8px; }
.menuToggle .hamburger::after { top: 8px; }

body.is-menu-visible .menuToggle .hamburger {
  background: transparent;
}

body.is-menu-visible .menuToggle .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

body.is-menu-visible .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================================
   SONGS PAGE — BANDHELPER WIDGET STYLING
   ============================================================ */
.songlist-container {
  background: rgba(0, 0, 0, 0.55);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 1.5rem;
}

.songlist-container,
.songlist-container * {
  line-height: 1.25 !important;
  font-size: 0.95rem !important;
  color: #ffffff !important;
}

.songlist-container table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.songlist-container td,
.songlist-container th {
  padding: 0.4rem 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.songlist-container tr:last-child td {
  border-bottom: none !important;
}

/* ============================================================
   MEDIA PAGE — AUTO-FIT CINEMATIC GALLERY
   ============================================================ */
.media-gallery {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.media-gallery li {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

/* 16:9 hard crop */
.media-gallery img,
.media-gallery .video-thumb {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.media-gallery li:hover img,
.media-gallery li:hover .video-thumb {
  transform: scale(1.08);
  opacity: 0.9;
}

/* ============================================================
   VIDEO THUMBNAILS — DARK OVERLAY + GLOWING PLAY ICON
   ============================================================ */
.media-gallery .video-wrapper {
  position: relative;
}

.media-gallery .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.media-gallery .play-icon {
  width: var(--play-icon-size);
  height: var(--play-icon-size);
  border-left: var(--arrow-thickness) solid white;
  border-top: var(--arrow-thickness) solid transparent;
  border-bottom: var(--arrow-thickness) solid transparent;
  transform: translateX(10%);
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.9));
}

/* ============================================================
   LIGHTBOX VIEWER
   ============================================================ */
.lightbox.hidden {
  display: none;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--lightbox-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fadeIn 0.3s ease forwards;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
}

.lightbox-image,
.lightbox-video {
  width: 100%;
  height: auto;
  max-height: 85vh;
  border-radius: 8px;
  display: none;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
  opacity: 0.85;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover {
  opacity: 0.6;
}

/* Bold navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--arrow-size);
  height: var(--arrow-size);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  font-weight: 900;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-nav:hover {
  opacity: 0.7;
  transform: translateY(-50%) scale(1.1);
}

/* Mobile adjustments */
@media screen and (max-width: 600px) {
  .lightbox-nav {
    font-size: 36px;
    width: 50px;
    height: 50px;
  }
}

.media-gallery {
  gap: .75rem; /* reduce spacing between items */
}

.media-gallery li {
  margin: 0;
  padding: 0;
  border: none; /* remove debug border */
}

.media-gallery img,
.media-gallery .video-thumb {
  padding-bottom: 56.25%; /* keep 16:9 crop */
  height: 0;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.media-gallery li {
  max-width: 400px;
  margin: 0 auto;
}
