html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Bebas Neue", sans-serif;
  color: #CECCA8;
}


/* =============================
   FULLSCREEN BACKGROUND FIX
   (Mobile Safe)
============================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url(slanted-gradient.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}


/* =============================
   GLOBAL
============================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-image: url(slanted-gradient.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; */
  font-family: "Bebas Neue", sans-serif;
  color: #CECCA8;
}

#wrapper {
  width: 100%;
}

/* =============================
   HEADER
============================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
}

header h1 {
  margin: 0;
  font-size: 64px;
  letter-spacing: 2px;
  color: #CECCA8;
  white-space: nowrap;
  flex-shrink: 0;  
}

header a {
  text-decoration: none;
  color: #CECCA8;
}

/* =============================
   NAV
============================= */

nav{ 
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav li a {
  color: #CECCA8;
  text-decoration: none;
  font-size: 20px;
  transition: 0.3s ease;
}

nav li a:hover {
  color: white;
  transform: scale(1.05);
}

/* =============================
   MAIN
============================= */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

main h1 {
  text-align: center;
  margin: 60px 0 30px;
}

/* =============================
   VIDEO SYSTEM
============================= */

/* Desktop Layout */
.guilford,
.video-row2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.guilford .video-wrapper:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 700px;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.short-wrapper {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  grid-column: 1 / -1;   /* takes full width of grid */
  justify-self: center; 
}

.short-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================
   TEXT
============================= */

p {
  font-size: 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.facebook-embed {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 9 / 16;  /* Facebook reels are vertical */
  margin: 0 auto;
}

.facebook-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- FOOTER ---------- */

footer {
  margin-top: 80px;
  padding: 0 40px 20px;
  text-align: right;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer li {
  display: inline-block;
}

.bi {
  color: #CECCA8;
  font-size: 22px;
  padding: 6px;
  transition: 0.3s ease;
}

.bi:hover {
  transform: scale(1.1);
}

.social-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}




/* =============================
   MOBILE
============================= */

@media (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  h1{ 
    gap: 16px;
  }

  main {
    padding: 0 20px;
  }

  nav ul {
  justify-content: center;
  flex-direction: row;   /* keeps nav horizontal like contact */
  gap: 24px;
}

    .guilford,
  .video-row2,
  .social-row {
    grid-template-columns: 1fr;
  }

  /* FORCE VIDEO STACKING */
  .guilford,
  .video-row2 {
    display: flex;           /* switch from grid to flex */
    flex-direction: column;  /* stack vertically */
    gap: 40px;
  }

  .video-wrapper {
    width: 100%;
  }

  body {
    background-attachment: scroll;
  }


    .social-row {
    display: flex;
    flex-direction: column;
    align-items: center;   /* ← THIS centers them */
    gap: 40px;
  }

  .facebook-embed,
  .instagram-media {
    width: 100%;
    max-width: 500px;      /* optional: keeps them from getting huge */
    margin: 0 auto;
  }

}

