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

/* BASE */
body {
  font-family: Arial, sans-serif;
  background: url(images/Backgrounds/8.jpg) center / cover no-repeat;
  line-height: 1.6;
  color: black; /* text color changed to black */
  min-height: 100vh;
  padding: 20px;
}

/* TEXT SECTION */
.writing {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem;
}

.writing h2 { 
  margin-bottom: 10px; 
}

.writing p, 
.writing h4 { 
  margin-bottom: 1rem; 
}

.writing a {
  color: #0056b3;
  text-decoration: none;
}
.writing a:hover { 
  text-decoration: underline; 
}

/* VIDEO GRID — DESKTOP */
.video-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 28px;
  max-width: 1300px;
  margin: 0 auto;
}

.video-item {
  flex: 0 0 400px;
  max-width: 400px;
  text-align: center;
}

.video-item h3 {
  margin: 8px 0 10px;
  font-weight: normal;
}

.video-item iframe {
  display: block;
  border: 0;
  width: 400px;
  height: 500px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* MOBILE / TABLET */
@media (max-width: 900px) {
  .video-grid {
    display: block;
  }

  .video-item {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
    clear: both !important;
  }

  .video-item iframe {
    width: 95vw !important;
    height: calc(95vw * 1.25) !important; /* keep 400x500 aspect ratio */
    float: none !important;
  }

  .writing {
    font-size: 0.95rem;
    padding: 1rem;
  }
}

/* DESKTOP ENFORCEMENT */
@media (min-width: 901px) {
  .video-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 28px !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
  }

  .video-item {
    flex: 0 0 400px !important;
    max-width: 400px !important;
    width: 400px !important;
  }

  .video-item iframe {
    width: 400px !important;
    height: 500px !important;
    display: block !important;
    float: none !important;
    margin: 0 auto !important;
  }
}

