/* ============================
   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;
  background-size: auto;
  background-position: top left;
  color: #111;
  line-height: 1.7;
  padding: 20px;

  /* make text more defined */
  font-weight: 500;
  text-shadow: 0 0 1px rgba(0,0,0,0.2);
}

/* ============================
   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; }

.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);
}

/* ============================
   MEDIA ELEMENTS (Videos & Images)
============================ */
.content-block .media > iframe {
  display: block;
  width: min(95vw, 600px);
  aspect-ratio: 4 / 3; /* 600 x 400 */
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  border: none;
}

.content-block .media > img {
  display: block;
  width: min(95vw, 600px);
  aspect-ratio: 4 / 3.333; /* 600 x 450 */
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* ============================
   THUMBNAIL GALLERY
============================ */
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  max-width: 520px;
}

@media (max-width: 899px) {
  .thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.thumbs .thumb {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  outline: 1px solid rgba(255,255,255,0.15);
  transition: transform .15s ease, outline-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

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

.thumbs .thumb:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.thumbs .thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2; /* consistent thumbnail crop */
  object-fit: cover;
  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; }
}

/* ============================
   MOBILE LAYOUT
============================ */
@media (max-width: 899px) {
  .content-block {
    flex-direction: column;
  }

  .thumbs {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .thumbs img {
    height: auto;
  }
}



