body {
  margin: 0;
  padding: 0;
  font-family: 'Titillium Web';
  font-size: 1rem;
  text-rendering: optimizeLegibility;
  background-color: #ce293d;
  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 min-content 1fr;
  column-gap: 6px;
  align-items: end;
  justify-items: flex-start;
  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;
}

.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ptop-20vh {
  padding-top: 20vh;
}

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

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

.h-100vh {
  height: 100vh !important;
}

.overflow-y-auto {
  overflow-y: auto !important;
}

.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, .static-box {
  display: block;
  position: relative;
  height: 70vh;
  z-index: 2;
}

.content-box {
  margin-left: 40px;
  padding: 25px 40px 25px 25px;
  color: #fff;
  background-color: #ce293d;
  /*-webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);*/
  max-width: 400px;
  /*max-height: 68vh;
  overflow-y: auto;*/
  opacity: .85;
  border-radius: 5px;
}

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

.heading {
  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;
  line-height: 2.4rem !important;
}

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

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

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

.quote, .quote-left, .subquote, .cite, .colbg h3 {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .2);
}

.quote {
  padding: 1.5rem 1rem 0 1rem;
  font-size: 2.3rem;
  font-weight: bold;
  text-align: center;
  line-height: 2.4rem !important;
}

.quote-left {
  padding: 0 1rem 0 0;
  font-size: 2.1rem;
  font-weight: bold;
  text-align: left;
  line-height: 2.4rem !important;
  margin-block-start: 0.9rem !important;
}

.subquote {
  padding-top: 0.5rem;
  font-size: 1.7rem;
  font-weight: bold;
  text-align: center;
  line-height: 2rem !important;
}

.cite {
  padding: 0 1rem 0 0;
  font-size: 1.1rem;
  line-height: 1.5rem;
}

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

.d-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.flex-content {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.8rem;
  background-color: #ce293d;
  padding: 0 20px 0 20px;
}

.static-box img {
  max-width: 250px;
  height: auto;
}

.text-blk {
  flex: 1;
  padding: 0 20px 20px 20px;
}

.img-blk {
  flex: 0 1;
  padding: 0 30px 0 20px;
}

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: #fff;
  border: 1px solid #fff;
}

.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, .video-overlay h2 {
  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;
}

h3 {
	font-size: clamp(24px, 3vw, 48px);
	font-weight: 700;
	line-height: 1.1;
  color: #fff;
  margin: 0;
}

.fullwrapper {
	max-width: 100vw;
}

.colbg {
	text-align: center;
	display: flex;
	width: 90vw;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0 auto;
	padding: 20px 10px;
}

.colbg h3 {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .3px;
}

.colbg.infobox {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.fullwrapper.infobox {
	width: calc(90vw - 100px);
	padding: 30px 50px;
}

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

.photoinfo {
	position: absolute;
	width: 70%;
	bottom: 65px;
	right: 50%;
	transform: translateX(50%);
}

.photoinfo.photocred {
	background: none;
	text-shadow: 2px 2px 2px black;
	bottom: 20px;
	padding: 5px 5px 10px;
}

.photoinfo.photocred p {
  color: #fff;
  font-size: 10px !important;
  font-weight: 300;
  font-style: italic;
  text-align: center;
  margin: 0;
  opacity: 0.8;
  line-height: .9rem;
}


/*#p10 .bg, #p12 .bg {
  background-color: #ca7c8a;
}*/

#p1 .bg {
  background-image: url('/wp-content/uploads/2025/03/sg50_pioneer_stories_1.jpg');
}

#p2 .bg {
  background-image: url('/wp-content/uploads/2025/03/sg50_pioneer_stories_2.jpg');
}

#p4 .bg {
  background-image: url('/wp-content/uploads/2025/03/sg50_pioneer_stories_4.jpg');
}

#p5 .bg {
  background-image: url('/wp-content/uploads/2025/03/sg50_pioneer_stories_5.jpg');
}

#p6 .bg {
  background-image: url('/wp-content/uploads/2025/03/sg50_pioneer_stories_6.jpg');
}

#p8 .bg {
  background-image: url('/wp-content/uploads/2025/04/sg50_pioneer_stories_8.jpg');
}

#p9 .bg {
  background-color: #ce293d;
  background-image: none;
}

#p13 .bg {
  background-image: url('/wp-content/uploads/2025/04/sg50_pioneer_stories_13.jpg');
}

#p14 .bg {
  background-color:#ce293d;
  background-image: none;
}


/* 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 (min-width : 992px) {
  .photoinfo {
    position: absolute;
    bottom: 50px;
    right: 35px;
    width: fit-content;
    transform: none;
    background: none;
  }

  .photoinfo p {
    text-align: right;
  }

}

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

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

  .scroll-box {
    height: 100vh;
  }

  .video-overlay h1 {
    font-size: clamp(38px, 2.8rem + ((1vw - 7.68px) * 0.721), 64px);
  }
  
  .video-overlay p:not(.date), .video-overlay h2 {
    font-size: 1.25rem;    
  }

  .scroll-indicator {
    margin-top: 6vh;
    font-size: 0.8rem;
  }

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

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

  .d-flex {
    flex-direction: column-reverse;
  }

  .quote-left {
    padding: 0;
    font-size: 1.8rem;
    line-height: 2.1rem !important;
  }

  .cite {
    padding: 0;
    font-size: .9rem;
    line-height: 1.3rem;
  }

  .flex-content {
    font-size: 1.15rem;
    line-height: 1.6rem;
    max-width: 100%;
    padding: 10px 0 20px 0;
  }

  .flex-content p {
    padding: 0 15px;
  }

  .static-box img {
    max-width: 200px;
  }

  .text-blk, .img-blk {
    padding: 0;
  }

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

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

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

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

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

}