body {
  margin: 0;
  padding: 0;
  font-family: 'Titillium Web';
  font-size: 1rem;
  text-rendering: optimizeLegibility;
  background-color: #1f2257;
  overflow-x: hidden;
}

a {
  color: #fff !important;
  text-decoration: underline;
}

.header {
  position: absolute;
  width: 100%;
  z-index: 2;
  padding: 15px;
}

.logo {
  display: grid;
  grid-template-columns: min-content 1fr min-content;
  align-items: center;
  justify-items: end;
  opacity: .8;
}

.logo img {
  max-width: 128px;
}

.logo-btm {
  margin: 0 auto;
  text-align: center;
  padding-top: 30vh;
  opacity: .8;
}

.content-wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

section {
  position: relative;
  height: 100%;
  padding-top: 100vh;
  margin-block-start: 0 !important;
  overflow: hidden;
}

.ptop-0 {
  padding-top: 0;
}

.ptop-15px {
  padding-top: 15px;
}

.bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.scroll-box {
  display: block;
  position: relative;
  height: 100vh;
  z-index: 2;
}

.content-box {
  margin-left: 40px;
  padding: .6rem .9rem .6rem;
  color: #fff;
  background-color: #1f2257;
  /*-webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);*/
  max-width: 400px;
  /*max-height: 68vh;
  overflow-y: auto;*/
  opacity: .85;
}

.content-box p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.7rem;
}

.heading,
.quote {
  line-height: 2.1rem !important;
}

.heading {
  font-size: 1.4rem !important;
  font-weight: bold;
}

.heading2 {
  font-size: 2rem !important;
  font-weight: 700;
  line-height: 2.8rem;
  padding-bottom: .7rem;
}

.text-normal {
  font-weight: normal;
}

.text-center {
  text-align: center;
}

.quote {
  padding: 1.5rem 1rem 0 1rem;
  font-size: 2.1rem;
  font-weight: bold;
  text-align: center;
}

/*.cite {
  padding: 0 1rem 0 1rem;
  font-size: 1.2rem;
}*/

.flex-center {
  width: 700px;
  min-height: 100vh;
  padding: 1.3rem 1.5rem 2rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: #fff;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.35rem;
  line-height: 1.8rem;
}

.flex-static-content {
  z-index: 2;
  /*overflow-y: auto;*/
}

button.top {
  margin-top: 40px;
  padding: 1.2rem 1.5rem;
  border: 1px solid #fff;
  border-radius: 50px;
  background-color: transparent;
  color: #fff;
  cursor: pointer;
}

button.top:hover {
  color: #ff8737;
  border: 1px solid #ff8737;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  width: 75%;
  max-width: 800px;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .2);
}

.video-overlay h1 {
  font-size: clamp(47px, 3.1rem + ((1vw - 7.68px) * 0.721), 64px);
  font-weight: 700;
  line-height: 1.2;
}

.video-overlay p {
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 1.3;
  letter-spacing: .3px;
}

.scroll-indicator {
  margin-top: 10vh;
  font-size: 0.9rem;
}

.fa-computer-mouse {
  font-size: 24px;
  margin-bottom: 8px;
}

p.date {
  margin-top: 40px;
  font-size: 0.9rem;

}

/* Bottom gradient overlay the video */
#p1 .bg::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  background: linear-gradient(to bottom,
      rgba(64, 64, 64, 0) 70%,
      rgba(64, 64, 64, 1) 100%);
}

#p1 video {
  height: 100%;
  width: 130%;
  object-fit: cover;
  overflow-x: hidden;
}

#p1 h1,
#p1 h3 {
  color: #fff;
}

#p2 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_1.jpg');
}

#p4 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_4.jpg');
}

#p5 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_3.jpg');
}

#p6 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_10.jpg');
}

#p7 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_12.jpg');
}

#p9 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_9.jpg');
}

#p10 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_8.jpg');
}

#p11 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_6.jpg');
}

#p12 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_5.jpg');
}

#p13 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_7.jpg');
}

#p14 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_6.jpg');
}

#p15 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_5.jpg');
}

#p17 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_7.jpg');
}

#p18 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_15.jpg');
}

#p19 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_13.jpg');
}

#p20 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_14.jpg');
}

#p21 .bg {
  background-image: url('/wp-content/uploads/2024/10/francis_tay_16.jpg');
}

/* Required by Lenis */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}


/* Media Queries
-------------------------------------------- */

@media only screen and (max-width: 550px) {

  .logo img,
  .logo-btm img {
    width: 100px;
    height: auto;
  }

  .video-overlay {
    font-size: 2.2rem;
    width: 85%;
  }

  .content-box {
    margin-left: auto;
    margin-right: auto;
    max-width: 340px;
    /*overflow-y: scroll;*/
  }

  .flex-center {
    max-width: 340px;
  }

  #p1 video {
    width: 200%;
  }

  #p2 .bg {
    background-position: 67% 0;
  }

  #p4 .bg {
    background-position: 22% 0;
  }

  #p5 .bg {
    background-position: 75% 0;
  }

  #p6 .bg {
    background-position: 45% 0;
  }

  #p7 .bg {
    background-position: 45% 0;
  }

  #p9 .bg {
    background-position: 15% 0;
  }

  #p10 .bg {
    background-position: 15% 0;
  }

  #p11 .bg {
    background-position: 66% 0;
  }

  #p12 .bg {
    background-position: 25% 0;
  }

  #p13 .bg {
    background-position: 50% 0;
  }

  #p15 .bg {
    background-position: 14% 0;
  }

  #p18 .bg {
    background-position: 51% 0;
  }

  #p19 .bg {
    background-position: 55% 0;
  }

  #p20 .bg {
    background-position: 39% 0;
  }

}