body {
  margin: 0;
  padding: 0;
  font-family: 'Titillium Web';
  font-size: 1.25rem;
  line-height: 1.6rem;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  font-weight: bold;
  color: #5f3b28 !important;
  text-decoration: underline;
}

.content-box a {
  color: #fff !important;
}

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

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

.pbtm-0 {
  padding-bottom: 0 !important;
}

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

.pleft-1rem {
  padding-left: 1rem;
}

.w-50 {
  width: 50%;
}

.w-400px {
  width: 400px;
}

.float-right {
  clear: both;
  float: right;
  margin-right: 20px
}

.wrapper-p22 {
  z-index: 2;
  margin: 40px 0;
}

.click-p22 img {
  box-shadow: 10px 10px 0 #999;
  transition: box-shadow 0.3s;
}

.click-p22 img:hover {
  box-shadow: 10px 10px 0 #f59926;
  cursor: pointer;
}

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

.bg-none {
  background-image: none !important;
  background-color: transparent !important;
}

.bg-orange {
  background-color: #d88f5d;
}

.border-btm-orange {
  border-bottom: 12px solid #fdd289;
}

img {
  max-width: 100%;
}

.full-screen-video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.video-wrapper {
  width: 50%;
  height: 100%;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  margin: 0 20px;
  z-index: 4;
}

.video-control {
  display: none;
}

/*.video-wrapper video {
  width: 90%;
  height: auto;
  z-index: 4;
}*/

.video-wrapper img,
.video-wrapper video {
  display: block;
  padding-left: 20px;
  padding-right: 20px;
  width: auto;
  max-height: 80vh;
}

.video-wrapper img {
  max-width: 480px
}

.video-wrapper video {
  max-width: 100%
}

.excerpt {
  margin-top: 10px;
  font-size: 1.25rem;
  line-height: 1.7rem;
}

.excerpt br {
  margin-top: 15px;
}

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

.content-box {
  margin-left: 40px;
  padding: .6rem .9rem .6rem;
  color: #fff;
  background-color: #d88f5d;
  max-width: 400px;
  opacity: .85;
}

.grid-container {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}

/*.grid-col {
 display: flex;
  flex-direction: column;
}*/

.grid-col img {
  max-width: 100%;
  width: 100%;
  height: auto;
}

.alt-box {
  font-size: 1.1rem;
  line-height: 1.4rem;
  padding: .5rem .7rem .6rem;
  color: #fff;
  background-image: none;

}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.flex-container .col {
  width: 45%;
  /* Adjust width for 2x2 layout */
  margin: 2.5%;
  transition: box-shadow 0.3s;
}

.flex-container img:hover {
  box-shadow: 8px 8px 0 #f59926;
  cursor: pointer;
}

/*.float-right .content-box {
  margin-left: 0;
  margin-right: 40px;
}*/

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


.heading {
  font-size: 2rem !important;
  font-weight: bold;
  line-height: 2.5rem;
  padding-bottom: .7rem;
}

.heading p {
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.5rem;
}

.box-styled {
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 2.4rem;
  padding: 20px;
  color: #5f3b28;
  background-color: #f5ecdc;
  border: 5px solid #5f3b28;
  border-radius: 10px;
  box-shadow: 8px 8px 0 #f59926;
}

.box-styled p {
  margin: 0;
  padding: 0;
}

.text-large {
  font-size: 1.7rem;
  line-height: 2.1rem;
}

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

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

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

p.quote {
  margin: 0;
  padding: 1.5rem 1rem 0 1rem;
  font-size: 1.85rem;
  font-weight: bold;
  line-height: 2.4rem;
}

p.quote2 {
  font-weight: bold;
  font-size: 1.4rem;
  line-height: 1.7rem;
}

.cite {
  font-size: 1.1rem !important;
  margin: 0;
}

.box-styled .cite {
  margin: 10px 0 10px 0;
  font-size: 1.1rem !important;
  font-weight: normal !important;
  line-height: 1.3rem;
}


.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: #5f3b28;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.35rem;
  line-height: 1.8rem;
}

.flex-center2 {
  max-width: 1200px;
  min-height: 100vh;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
}

.flex-static-content {
  z-index: 2;
}

button.top {
  margin-top: 40px;
  padding: 10px 20px;
  border: 1px solid #5f3b28;
  border-radius: 50px;
  background-color: transparent;
  color: #5f3b28;
}

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

.video-control:hover {
  cursor: pointer;
}

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

}

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

#p1 .bg {
  background-image: url('/wp-content/uploads/2024/10/pisa_creative_singapore_students_1.jpg');
  background-position: top;
}

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

#p2 .bg, #p26 .bg {
  background-color: #ffefaf;
}

#p3 .bg, #p25 .bg {
  background-color: #f4e4a2;
}

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

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

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

#p8 .bg {
  background-image: url('/wp-content/uploads/2024/10/pisa_creative_singapore_students_8.jpg');
  background-position: top;
}

#p9 .bg,
#p13 .bg2 {
  background-color: #fdd289;
}

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

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

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

#p15 .bg, #p17 .bg, #p19 .bg,
#p21 .bg {
  background-color: #f0dadf;
}

#p16 .bg, #p18 .bg, #p20 .bg {
  background-color: #e9d0d6;
}

#p22 .bg2,
#p23 .bg {
  background-color: #ebe2f9;
}

#p24 .bg {
  background-color: #dad0ed;
}

#p27 .bg {
  background-image: url('/wp-content/uploads/2024/10/pisa_creative_singapore_students_27.jpg');
  background-position: top;
}

#p28 .bg,
#p29 .bg {
  background-color: #fddca5;
}

.footer {
  max-width: 700px;
  position: absolute;
  bottom: 20px;
  font-size: .9rem;
  line-height: 1.2rem;
  padding-left: 20px;
  padding-right: 20px;
  z-index: 2;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(26, 78, 46, 0.1);
  background-color: transparent;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(26, 78, 46, 0.1);
  background: #f59926;
}

/* 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: 767px) {

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

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

  .video-overlay-sm h1 {
    font-size: 35px;
  }

  .video-wrapper {
    width: 100%;
    margin: 0;
  }

  .video-wrapper video {
    /*width: 100%;
    height: 100%;*/
    max-height: 100vh;
    object-fit: cover;
    aspect-ratio: 9/16;
  }

  video::-webkit-media-controls {
    display: none;
  }

  .video-control {
    display: inline-block;
    font-weight: bold;
    margin: 15px 0;
    padding: 5px 10px;
    color: #d88f5d;
    text-align: center;
    border: 1px solid #fff;
    border-radius: 50px;
    cursor: pointer;
    background-color: #fff;
    font-size: 1.1rem;
  }

  /*.video-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .video-box {
    max-width: 100%;
  }*/

  .w-50 {
    width: 100%;
  }

  .float-right {
    float: none;
    margin-right: auto;
  }

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

  .float-right .content-box {
    margin-left: auto;
    margin-right: auto;
  }

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

  .flex-container {
    row-gap: 20px;
  }

  .flex-container .col {
    width: 100%;
    margin: 1.2%;
  }

  .grid-container {
    grid-template-columns: repeat(3, minmax(50vh, 1fr));  
    overflow-x: auto;
  }

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

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

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

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

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

  #p27 .bg {
    background-position: 80% 0;
  }

}


@media only screen and (min-width: 768px) and (max-width: 940px) {
  .content-box {
    max-width: 300px;
  }

  .float-right .content-box {
    margin-left: 0;
    margin-right: 10px;
  }

}

@media only screen and (min-width: 1200px) {
  /* Bring video closer to scroll-box */
  .video-wrapper {
    justify-content: flex-end;
  } 

}