/* ============================
   RESET + BASE
============================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  background-image: url(images/Backgrounds/11v2.jpg);
  background-repeat: repeat;        /* repeat background instead of stretch */
  background-size: auto;
  background-position: top left;
  color: #111;
  line-height: 1.7;
  padding: 20px;

  /* make text more defined */
  font-weight: 500;                 /* slightly bolder than normal */
  text-shadow: 0 0 1px rgba(0,0,0,0.2); /* subtle shadow for definition */
}

/* ============================
   HEADINGS
============================ */
h3 {
  text-align: left;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 8px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ============================
   INTRO TEXT
============================ */
.intro {
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.intro p { margin-bottom: 1rem; }

/* ============================
   CONTENT BLOCKS
============================ */
.content-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 2rem auto;
  max-width: 1200px;
}

.content-block.reverse { flex-direction: column; }

.media iframe {
  width: 100%;
  max-width: 600px;
  height: 400px;
  border: none;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.text {
  flex: 1;
  max-width: 650px;
  text-align: left;
}

.text p {
  font-weight: 500;
  text-shadow: 0 0 1px rgba(0,0,0,0.25);
}

/* ============================
   THUMBNAILS (under text)
============================ */
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 10px;
  max-width: 520px; /* tidy row under your text */
}

.thumbs .thumb {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.thumbs .thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.thumbs img {
  width: 100%;
  height: 70px;          /* small consistent thumb height */
  object-fit: cover;     /* neat crop */
  display: block;
}

/* ============================
   LIGHTBOX
============================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 32px;
  line-height: 1;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.15);
}

/* ============================
   DESKTOP LAYOUT
============================ */
@media (min-width: 900px) {
  .content-block {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
  }

  .content-block.reverse { flex-direction: row-reverse; }

  .media iframe {
    width: 600px;
    height: 400px;
  }
}

/* ============================
   MOBILE LAYOUT
============================ */
@media (max-width: 899px) {
  .media iframe {
    width: 95vw;
    height: calc(95vw * 0.666); /* keep 600x400 ratio */
  }
  .thumbs {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  .thumbs img {
    height: 64px;
  }
}


