
body {
margin: 0;
font-family: 'Merriweather', Georgia, serif;
background-color: #EEE8D5;
color: #2c2c2c;
padding-top: 20px; /* or slightly more than header height */
overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header, footer {
  font-family: Arial, Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background-color: #1e1e1e;
  border-bottom: 0px solid #333;
  z-index: 1000;
  gap: 1rem;
  height: 60px; /* Reduced from 80px */
}

header h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 100;
  color: #00B8FF;
  flex: 1;
  text-align: center;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2; /* makes vertical alignment more consistent */
}

h1[id], h2[id] { scroll-margin-top: 30px; } /* match your header height */

/* put near your existing scroll-margin rules */
.video-card[id] { scroll-margin-top: 70px; }  /* try 60–90px to taste */

.image-card[id] { scroll-margin-top: 30px; }  /* try 60–90px to taste */

/* ----------------Nav Menu ---------------------- */
	
#navMenu {
  position: absolute;
  top: 100%;
  right: 2rem;
  width: 200px;
  overflow: hidden;
  max-height: 0;
  display: flex;
  flex-direction: column;
  background-color: rgba(30, 30, 30, 0.9);
  border-radius: 8px;
  transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out, opacity 0.3s ease-in-out;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  z-index: 1500;
  opacity: 0;
}

#navMenu.show {
  padding: 1rem;
  opacity: 1;
}


#navMenu a {
  color: #ccc;
  text-decoration: none;
  margin: 0.4rem 0;
  text-align: right;
  padding-right: 0.5rem;
}

#navMenu a:hover {
  color: #00B8FF;
}



/* -------------------------------------- */

/* Footer */

footer {
  text-align: center;
  padding: 1rem;
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  font-size: 0.8rem;
  color: #828181;
}



/* -------------------------------------- */

/* Logo */


.logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  opacity: 42%;
	align-self: center;
	transform: translateY(3px);
}

.logo:hover {
  filter: brightness(2);
}



/* -------------------------------------- */

/* Hamburger */

.hamburger {
  font-size: 2rem;
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  transform: translateY(-3px); /* raise it slightly */
}



/* -------------------------------------- */

/* Image Banner */

.image-banner {
  background-color: #1e1e1e; /* same as header */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  margin-top: 40px; /* offset for fixed header height */
  width: 100%;
  box-sizing: border-box;
}

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



/* -------------------------------------- */

/* subheader */

.subheader {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0px 1.5rem 0; /* adjusted for header + buffer */
}

.subheader p {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.subheader h1 {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 17px;
  color: #2A2A2A;
  flex: 1;
  text-align: center;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2; /* makes vertical alignment more consistent */
}


/* -------------------------------------- */

/* content */

.content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0px 1.5rem 0; /* adjusted for 60px header + buffer */
}

.content p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.content .justified-text {
  text-align: justify;
  margin-bottom: 1rem;
}

.content p1 {
  margin-bottom: 0rem;
  font-size: 1rem;
}

.content h1 {
  margin-top: 20px;
  margin-bottom: 0px;
  font-size: 1rem;
  color: #2A2A2A;
  flex: 1;
  text-align: left;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2; /* makes vertical alignment more consistent */
}

.content h2 {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 1rem;
  font-weight: 900;
  color: #2A2A2A;
  flex: 1;
  text-align: center;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2; /* makes vertical alignment more consistent */
}

.content a:link,  .content a:visited {
	color: #212121;
	font: bold;
	text-decoration: none;
}

.content p a:hover {
	color: #00B8FF;
}



/* -------------------------------------- */

/* content centered */

.centered {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0px 1.5rem 0; /* adjusted for 60px header + buffer */
}

.centered p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.centered p1 {
  margin-bottom: 0rem;
  font-size: 1rem;
}

.centered h1 {
  margin-top: 20px;
  margin-bottom: 0px;
  font-size: 1rem;
  color: #2A2A2A;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2; /* makes vertical alignment more consistent */
}

.centered h2 {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 1rem;
  font-weight: 900;
  color: #2A2A2A;
  flex: 1;
  text-align: center;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2; /* makes vertical alignment more consistent */
}


/* -------------------------------------- */

/* quote */

.quote {
  max-width: 600px;
  margin: 2rem auto;
	text-align: left;
  padding: 0px 1.5rem 0; /* adjusted for 60px header + buffer */
}

.quote p {
  margin-bottom: 1rem;
  font-size: 1rem;
}
.quote p1 {
  margin-bottom: 0rem;
  font-size: 1rem;
}

/* -------------------------------------- */

/* Wrapped Image Right */

.wrapped-img-right {
  width: 40%;
  max-width: 100%;
  float: right;
  margin: 0px 0 0px 10px;
	vertical-align: top;    /* key: align top of the float with top of line */
}

.wrapped-img-right img {
  width: 100%;
  height: auto;
  display: block;
}

.wrapped-img-right figcaption {
  font-size: 0.9em;
  color: #555;
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  text-align: center;
  color: #555;
}

@media (max-width: 700px) {
  .wrapped-img-right {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}

/* -------------------------------------- */

/* Image Frame - 2 across */

.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two equal columns */
  gap: 16px;                 /* space between the two images */
}

@media (max-width: 700px) {
  .image-gallery {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}


.image-gallery1a {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two equal columns */
  gap: 16px;                 /* space between the two images */
	  margin-bottom: 1rem; /* or whatever spacing you want */
}

@media (max-width: 700px) {
  .image-gallery {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}




/* -------------------------------------- */

/* Image Frame 1 - single image 700px centered */

.image-gallery1 {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* one columns */
  }

@media (max-width: 700px) {
  .image-gallery1 {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}

/* -------------------------------------- */

/* Image Frame 2 - single image 500px centered */

.image-gallery2 {
  display: grid;
  grid-template-columns: min(100%, 500px); /* single column, capped width */
  justify-content: center;                 /* center the track */
  margin-inline: auto;                     /* center the container itself */
  }

@media (max-width: 700px) {
  .image-gallery2 {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}

.image-gallery2a {
  display: grid;
  grid-template-columns: min(100%, 500px); /* single column, capped width */
  justify-content: center;                 /* center the track */
	margin-top: 8px;					   /* extra header */
  margin-inline: auto;                     /* center the container itself */
  }

@media (max-width: 700px) {
  .image-gallery2a {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}


/* -------------------------------------- */

/* Image Frame - 3 across */


.image-gallery3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* two equal columns */
  gap: 8px;                 /* space between the two images */
}

@media (max-width: 700px) {
  .image-gallery3 {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}


/* -------------------------------------- */

/* Image Frame - image-triptych */


.image-gallery4 {
  display: flex;
  gap: 16px;
  /* compute a height that fits all three images + gaps on one line */
  --lineHeight: min(300px, calc((100% - 32px) * 0.3212)); /* 32 = 2 gaps */
}

.image-gallery4 img {
  height: var(--lineHeight);
  width: auto;           /* preserves each thumb’s aspect */
  display: block;
}

/* Optional: stack on very small screens */
@media (max-width: 520px) {
  .image-gallery4 { flex-direction: column; }
  .image-gallery4 img { height: auto; width: 100%; }
}

/* -------------------------------------- */


/* Image Frame - image-duo */


/* Duo: V – H on one line inside .content */
.image-gallery5 {
  --gap: 16px;                        /* keep in sync with gap */
  display: flex;
  gap: var(--gap);

  /* 0.4087 = 300 / (200 + 534). Subtract one gap. */
  --lineHeight: min(300px, calc((100% - var(--gap)) * 0.4087));
}

.image-gallery5 figure {                  /* if you use <figure> */
  margin: 0;                         /* kill default margins */
}

.image-gallery5 img {
  height: var(--lineHeight);         /* auto-scales under 800px */
  width: auto;
  display: block;
}

/* Optional: stack on narrow phones */
@media (max-width: 520px) {
  .image-gallery5 { flex-direction: column; }
  .image-gallery5 img { height: auto; width: 100%; }
}


/* -----------------  aside-photo --------------------- */

/* Text + image (right) block that aligns to the content column */
/* Wider text, slimmer aside (still hugs right edge) */
.text-with-aside{
  --aside-min: 240px;
  --aside-max: 38%;        /* was 50% — gives text more room */
  --gap: 1.25rem;          /* was 2rem */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(var(--aside-min), var(--aside-max));
  gap: 1.25rem var(--gap);
  align-items: start;
  max-width: var(--content-max, 900px);
  margin: 0 auto;
}

.text-with-aside .aside-photo{ justify-self: end; } /* keep stuck to right */

/* keep the 40vh cap */
.text-with-aside .aside-photo img{
  max-height: 40vh;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Optional: make text even wider on large screens */
@media (min-width: 1100px){
  .text-with-aside{ --aside-max: 36%; }
}

/* Mobile unchanged (text first, image second, aligned right) */
@media (max-width: 700px){
  .text-with-aside{ grid-template-columns: 1fr; }
  .text-with-aside .aside-photo{ margin-top: .75rem; justify-self: end; }
}


.text-with-aside .aside-photo{
  justify-self: end;     /* figure at the right edge of the grid track */
  display: grid;         /* let us right-align its content */
  justify-items: end;    /* push the IMG to the right inside the figure */
}

.text-with-aside .aside-photo img{
  display: block;
  margin: 0;             /* ensure no stray margins */
  max-height: 40vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* -------------------------------------- */

/* Card/frame + caption */

.image-card {
  margin: 0;
  padding: 2px;
  border: 0px solid #ccc;    /* optional frame */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;        /* keeps image & caption centered */
}

.image-card img {
  display: block;
  width: 100%;               /* fills its column */
  height: auto;
}

.image-card figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  text-align: center;
  color: #555;
}


/* -------------------------------------- */

/* Lightbox overlay */



/* -------------------------------------- */


/* Lock image-frame to content width + force single row, shrink items */

:root{
  --content-max: 800px;
  --content-pad: 1.5rem;
}

.content, .subheader{
  max-width: var(--content-max);
  margin: 2rem auto;
  padding: 0 var(--content-pad);
  box-sizing: border-box;
}

/* frame aligns with content width */
.image-frame{
  width: 100%;
  max-width: var(--content-max);
  margin: 1rem auto;
  padding: 10px var(--content-pad);
  box-sizing: border-box;

  display: flex !important;
  flex-wrap: nowrap !important;   /* no wrap */
  gap: 10px;
  justify-content: center;        /* keep it centered */
  overflow: hidden;               /* avoid stray overflow */
}

/* equal columns that shrink as needed */
.image-frame figure{
  flex: 1 1 0 !important;         /* grow/shrink evenly */
  min-width: 0;                    /* allow shrink */
  margin: 0;
  text-align: center;
}

/* images scale with their figure */
.image-frame img{
  width: 100%;
  height: auto;
  display: block;
}

/* if the frame sits inside .content, remove double side padding */
.content .image-frame,
.subheader .image-frame{
  padding-left: 0;
  padding-right: 0;
}


/* -------------------------------------- */


/* Smooth scroll for the whole page */

html { scroll-behavior: smooth; }

/* Smooth scroll globally */
html { scroll-behavior: smooth; }


/* -------------------------------------- */


/* ===== Quicklinks ===== */

.quicklinks-drawer{
  position: fixed; left: 0; bottom: 0; width: 100%;
  max-height: calc(32px + env(safe-area-inset-bottom));   /* closed peek */
  background: rgba(31,31,31,.92);
  border-radius: 16px 16px 0 0;
  overflow: hidden;                                       /* show the curve */
  z-index: 10000;
  pointer-events: none;
  font-family: Arial, Tahoma, Geneva, Verdana, sans-serif;
	transition: max-height 0.5s ease-in-out;                  /* transition sed */
}

.quicklinks-drawer.is-open{
  max-height: calc(80vh + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  pointer-events: auto;
  box-shadow: 0 -8px 20px rgba(0,0,0,0); 
}

.quicklinks-drawer.is-closing{ max-height: calc(32px + env(safe-area-inset-bottom)); }


/* Header: reserve only the space needed for the title */
.quicklinks-header{
  position: sticky; top: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0;                    /* no extra vertical space */
  min-height: 28px;              /* ≈ 17px * 1.2 line-height + a few px */
  cursor: pointer;
  background: rgba(46,46,46,0.9);
  border-top-left-radius: inherit; border-top-right-radius: inherit;
  pointer-events: auto;
}

/* Centered blue handle (stronger) */
.quicklinks-handle{
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 4px;
  border-radius: 7px;
  background: rgba(0,184,255,0.50);
	transition: background 0.5s ease-in-out;
  box-shadow: 0 1px 0 rgba(255,255,255,0);
  border: 0; padding: 0;
}

/* Title stays absolutely positioned */
.quicklinks-title, .quicklinks-header span{
  position: absolute;
  top: 6px;                      /* adjust if you want it a touch higher/lower */
  left: 0;                       /* keep your padding-left instead if preferred */
  padding-left: 28px;
  line-height: 1.2;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: rgba(0,184,255,0.50);
  transition: color 0.5s ease-in-out;
}

.quicklinks-drawer.is-open .quicklinks-title {
  color: rgba(0,184,255,1.0);               /* fully lit when open */
}

.quicklinks-drawer.is-closing .quicklinks-title {
  color: rgba(0,184,255,0.5);               /* fade back as soon as close starts */
}

.quicklinks-drawer.is-open .quicklinks-handle {
  background: rgba(0,184,255,1.0)              /* fully lit when open */
}

.quicklinks-drawer.is-closing .quicklinks-handle {
  background: rgba(0,184,255,0.5)           /* fade back as soon as close starts */
}


/* List layout */
/* Nav: pull right up under the header */
.quicklinks-nav{
  display: flex; flex-direction: column; gap: 7px;
  padding: 0 14px calc(22px + env(safe-area-inset-bottom)) 14px; /* top padding = 0 */
}

.quicklinks-drawer:not(.is-open) .quicklinks-nav{ pointer-events: none; }


/* Links as pills rgba(255,255,255,.07)*/
.quicklinks-nav a{
  display: block;
  padding: 7px 14px;
  border-radius: 999px; 
  background: rgba(255,255,255,.07);
  color: #00B8FF;
  font-size: 14px; font-weight: 200;
  text-decoration: none; line-height: 1.2;
}

.video-label {
  color: #7A7A7A;   /* or any highlight colour */
  font-weight:900;
  font-size: 10px; /* tweak size relative to link */
  letter-spacing: 1px; /* optional styling */
}


.quicklinks-nav a:active{ background: rgba(255,255,255,.18); }
.quicklinks-nav a:focus-visible{ outline: 2px solid #00B8FF; outline-offset: 2px; }




/* Scrim (click-away) */
.quicklinks-scrim{
  position: fixed; inset: 0; z-index: 9999; display: none;
  pointer-events: none; background: rgba(0,0,0,.001);
  transition: opacity .18s ease; opacity: 0;
}
.quicklinks-scrim.show{ display: block; pointer-events: auto; opacity: 1; }


/* Pointer cursor for images that are actually clickable */

/* 1) Images wrapped in links */
a img { cursor: pointer; }

/* 2) Images that open the lightbox via data-full */
img[data-full] { cursor: pointer; }

/* Optional opt-out: add data-static to any image you don't want to show pointer */
img[data-static] { cursor: default !important; }


/* Apply only on mobile/tablet landscape, not desktop */
@media screen and (orientation: landscape) and (max-width: 900px) {
  .quicklinks-drawer {
    max-height: calc(12px + env(safe-area-inset-bottom));
  }

  .quicklinks-header {
    padding: 10px 0 4px;
  }

  .quicklinks-handle {
    height: 3px;
  }
}


/* Tighten the gap between title and first pill */
.quicklinks-header{
	padding: 0 !important;
	height: 42px !important; } /* just enough for the title */

.quicklinks-title{
	top: 14px; }                                         /* nudge if needed */

.quicklinks-nav{
	padding-top: 0px !important; }                          /* remove top padding */





/* =========================================================
   LightGallery — clean, consistent theme + behavior
   ========================================================= */

/* 1) Cursor only where images open in lightbox */
section[class*="image-gallery"] img:not([data-no-lightbox]),
figure.wrapped-img-right img:not([data-no-lightbox]),
figure.aside-photo img:not([data-no-lightbox]) { cursor: zoom-in; }

/* 2) Hide default LG captions (we removed data-sub-html) */
.lg-outer .lg-sub-html { display: none !important; }

/* 3) Thumbnails always visible + brand highlight */
.lg-thumb-outer { display: block !important; }
.lg-thumb-outer .lg-thumb-item {
  border: 2px solid transparent;
  box-sizing: border-box;
  border-color: #808080 !important;     /* neutral rgba(255, 255, 255, 0.9) border for inactive */
}

.lg-thumb-outer .lg-thumb-item.active,
.lg-thumb-outer .lg-thumb-item:focus { border-color: #00B8FF !important; }
.lg-thumb-outer .lg-thumb-item:hover { border-color: rgba(255, 255, 255, 0.9) !important; }

/* 4) Stacking & clickability (lightbox above everything) */
.lb, .lg-outer, .lg-backdrop, .lg-inner { z-index: 20000 !important; }
.lg-prev, .lg-next {
  z-index: 20010 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}
.lg-prev .lg-icon, .lg-next .lg-icon { pointer-events: auto !important; }
/* The current slide is clickable; others don't swallow clicks */
.lg-outer .lg-item { pointer-events: none !important; }
.lg-outer .lg-item.lg-current { pointer-events: auto !important; }

/* 5) Brand color via LG v2 theme vars (no solid squares) */
:root{
  --lg-toolbar-icon-color: #00B8FF;   /* zoom, close, etc. */
  --lg-next-prev-color:   #00B8FF;   /* nav arrows */
  --lg-icon-color:        #00B8FF;   /* general fallback */
}
/* Use currentColor skins without painting button backgrounds */
.lg-toolbar .lg-icon,
.lg-prev, .lg-next { color: #00B8FF !important; }
.lg-toolbar .lg-icon,
.lg-prev .lg-icon,
.lg-next .lg-icon { background: transparent !important; }

/* 8) Counter styling */
.lg-toolbar .lg-counter {
  color: #00B8FF !important;   /* brand color */
  font-size: 14px !important;  /* adjust size */
}


/* 6) Keep toolbar visible when zoomed */
.lg-toolbar {
  z-index: 20020 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.lg-toolbar .lg-icon { pointer-events: auto !important; }

/* 7) Optional: small hover pop */
.lg-toolbar .lg-icon:hover,
.lg-prev:hover, .lg-next:hover { filter: brightness(1.15); }



/* AUDIO PLAYER */

.audio-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #EEE8D5;
  border: 2px solid #aaa;
  border-radius: 30px;
  padding: 0.5rem 1rem;
  max-width: 490px;
  margin: 1.5rem auto;
  font-family: sans-serif;
}

.play-btn {
  width: 42px;
  height: 42px;
  border: 2px solid #aaa;
  border-radius: 50%;
  background: #EEE8D5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.play-btn:hover {
  background: #EEE8D5;
}

.play-btn svg {
  width: 28px;
  height: 28px;
  fill: black;
}

.audio-player .progress {
  flex: 1;
  height: 6px;
  background: rgba(160,160,160,1.00);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}

.audio-player .progress-filled {
  height: 100%;
  width: 0;
  background: rgba(112,168,241,1.00);
}

.audio-player .time { 
  font-size: 0.8rem;
  min-width: 45px;
  text-align: center;
}

.audio-player input[type=range] {
  width: 70px;
}


/* keep the input tall enough to host the thumb */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 14px;              /* >= thumb size helps layout */
  background: transparent;    /* track handled below */
  cursor: pointer;
  outline: none;
}

/* WebKit track + filled look (uses gradient) */
.volume-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, rgba(160,160,160,1.00) var(--value, 50%), #ddd var(--value, 50%));
}

/* WebKit thumb — center it vertically */
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #292929;
  border: none;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
  margin-top: -4px;           /* (14 - 6) / 2 -> centers thumb on track */
}

/* Firefox */
.volume-slider::-moz-range-track {
  background: #ddd;
  height: 6px;
  border-radius: 3px;
}
.volume-slider::-moz-range-progress {
  background: #aaa;           /* match your filled color */
  height: 6px;
  border-radius: 3px;
}
.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #292929;
  border: none;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* Hide volume slider on screens narrower than 768px (phones) */
/* On mobile: hide volume, expand progress */
@media (max-width: 768px) {
  .volume-slider {
    display: none;
  }

  .audio-player {
    gap: 0.5rem;
    justify-content: space-between;
  }

  .audio-player .progress {
    flex: 2;   /* expand bar wider */
  }
}



 /* VIDEO PLAYER */

/* --- Video Card (no hover zoom) --- */
/* Limit video card size */
.video-card {
  max-width: 400px;   /* keeps it a card, not full width */
  margin: 1.5rem auto; /* centers it in the column */
  background-color: #EEE8D5;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  position: relative;   /* ✅ anchor for the badge */
}


.video-card img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.video-card h2 {
 margin-top: 8px;
  font-size: 0.8rem;
  text-align: center;
  color: #555;
}

/* Bottom-right "video" badge */
.ii-video-badge {
  position: absolute;
  right: 7px;
  bottom: 4px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(0,0,0,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* avoids blocking clicks */
}

.ii-video-badge svg {
  width: 16px;
  height: 16px;
  fill: #aaa;
}


.video-card:hover .ii-video-badge svg {
  fill: #00B8FF; /* new hover color */
}


/* --- Modal --- */
.modal {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  position: relative;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; max-width: 800px;
}

.modal-content video {
  width: 100%;
  border-radius: 8px;
}



 /* VIDEO PLAYER GRID 3 across */

/* Grid wrapper for video cards */
.video-grid{
  display: grid;
  gap: 12px;                        /* match your image gaps */
  grid-template-columns: repeat(2, 1fr);  /* default = 2 across */
  align-items: start;
}

/* Easy switches: 2 or 3 across on wide screens */
.video-grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.video-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }

/* Responsive collapse */
@media (max-width: 900px){
  .video-grid.cols-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px){
  .video-grid, .video-grid.cols-3, .video-grid.cols-2{
    grid-template-columns: 1fr;     /* stack on phones */
  }
}

/* Let cards fill their grid cell (override single-card sizing) */

/* Inside the grid, don't force cards to stretch vertically */
.video-grid .video-card{
  max-width: unset;
  margin: 0;
  height: auto;               /* let content decide height */
  display: block;             /* drop the flex column */
}

/* Image fills the card width */
.video-grid .video-card img{
  width: 100%;
  height: auto;
  display: block;
}


 /* VIDEO PLAYER GRID 2 across */


