html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* prevent horizontal scroll */
}

/* Custom CSS for centering the div */
.fixed-height-row {
  height: 200px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-page-video-placeholder,
#main-page-video-placeholder-mobile {
  background-image:url(../img/wild-imaginarium/3.jpg);
  background-size: cover;
}

#wild-imaginarium-page-video-placeholder{
  background-image:url(../img/wild-imaginarium/hero_1.jpg);
  background-size: cover;
}

#low-carbon-chinatown-pop-up-page-video-placeholder{
  background-image:url(../img/low-carbon-chinatown-pop-up/1.jpg);
  background-size: cover;
}

#cinder-page-video-placeholder{
  background-image:url(../img/hero-images/cinder.jpg);
  background-size: cover; 
}

#growing-riversiders-page-video-placeholder{
  background-image:url(../img/hero-images/growing-riversiders.jpg);
  background-size: cover; 
}

#another-life-page-video-placeholder{
  background-image:url(../img/hero-images/another-life.jpg);
  background-size: cover; 
}

#strata-page-video-placeholder{
  background-image:url(../img/hero-images/strata.jpg);
  background-size: cover; 
}

#three-page-video-placeholder{
  background-image:url(../img/hero-images/t-h-ree.jpg);
  background-size: cover; 
}


.no-padding{
  padding: 0;
}

.no-margin{
  margin: 0;
}

.some-top-padding{
  padding-top: 25px;
}

.display-block{
  display:block;
  text-decoration: none;
}

.some-padding{
  padding:1em;
}

.half-padding-right{
  padding-right:0.5em;
}

.half-padding-left{
  padding-right:0.5em;
}

.one-point-five-padding{
  padding:1.5em;
}

@media (min-width: 768px) {

  .full-padding-left{
    padding-left:3rem;
  }

  .full-padding-right{
    padding-right:3rem;
  }

  .little-padding-left{
    padding-left:1.5rem;
  }

  .little-padding-right{
    padding-right:1.5rem;
  }
}

@media (min-width: 992px) {
  .full-padding-left{
    padding-left:4rem;
  }

  .full-padding-right{
    padding-right:4rem;
  }

  .twice-padding {
    padding: 2em;
  }
}

@media (min-width: 1200px) {
  .full-padding-left{
    padding-left:5rem;
  }

  .full-padding-right{
    padding-right:5rem;
  }
}

@media (min-width: 768px) {
  .img-cover-h100 {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}

.no-decoration{
 text-decoration: none;
}

a {
  color:black;
}

a:hover{
  color:darkgrey;
  text-decoration: none;
}

a[href]
{
  text-decoration: underline;
}

.project-thumbnail:hover{
  opacity: 0.95;
}

.fit-content{
  width:fit-content;
}

.header-button:hover{
/*  background-color: #EEFF41; 
  color:black;*/
}

#highlighted-projects{
  background-color: white;  
}

.black-background{
  background-color: black;
}

.white-background{
  background-color: white;
}

.yellow-background{
  background-color: #EEFF41;
}

.blue-background{
  background-color: #78909C;
}

.white-text{
  color:white;
}

.black-text{
  color:black;
}

.no-pointer{
  pointer-events: none;
}

.overlap {
  margin-top: -50px; /* Adjust the value to control the amount of overlap */
  z-index: 1; /* Ensure the overlapped row is on top */
}

.themed-grid-col {
/*  padding-top: .75rem;
  padding-bottom: .75rem;
  background-color: rgba(86, 61, 124, .15);*/
  /*border: 1px solid rgba(86, 61, 124, .2);*/
}

.no-text-break{
  white-space: nowrap;
}

.img-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.img-container {
    height: 60vh;
    overflow: hidden;
}

.embed-container{
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.yellow-box{
}

.negative-margin{
  margin-bottom: -30px;
}

/*media responsive */
@media (min-width: 576px) { /*sm*/
  .yellow-box{
  }
  .negative-margin{
  }
  .img-container {
    height: 50vh; 
    overflow: hidden;
  }
  .highlighted-button{
    background-color: transparent;  
  }
  .some-top-padding{
    padding-top: 25px;
  }
  .header-button:hover{
    background-color: transparent; 
    color:grey;
  }
  .hero_title{
    margin-top:25%;

    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
  }
}

@media (min-width: 768px) {/*md*/
  .yellow-box{
    position: relative; 
    top: 70px; 
    z-index: 1;
  }
  .negative-margin{
    margin-bottom: -50px;
  }
  .img-container {
    height: 50vh; 
    overflow: hidden;
  }
  .highlighted-button{
    background-color: #EEFF41;  
  }
  .header-button:hover{
    background-color: #EEFF41; 
    color:black;
  }
}

@media (min-width: 992px) { /*lg*/
  .yellow-box{
    position: relative; 
    top: 70px; 
    z-index: 1;
  }
  .negative-margin{
    margin-bottom: -50px;
  }
  .img-container {
      height: 100vh; /* Adjust the height as needed */
      overflow: hidden;
  }
  .highlighted-button{
    background-color: #EEFF41;  
  }
  .header-button:hover{
    background-color: #EEFF41; 
    color:black;
  }
}

@media (min-width: 1200px) { /*xl*/
  .yellow-box{
    position: relative; 
    top: 70px; 
    z-index: 1;
  }
  .negative-margin{
    margin-bottom: -60px;
  }
  .img-container {
      height: 100vh; /* Adjust the height as needed */
      overflow: hidden;
  }
  .highlighted-button{
    background-color: #EEFF41;  
  }
  .header-button:hover{
    background-color: #EEFF41; 
    color:black;
  }
}
/*END*/


.video-container-main-page {
    position: relative;
    width: 100%;
    height: 65vh;
    /*padding-bottom: 56.25%; *//* Adjust this value based on your desired height-to-width ratio */
    overflow: hidden;
}

.iframe-fluid-main {
    position: absolute;
    top: 0;
    left: -50%;
    width: 100vw; /* Make the video full width of the viewport */
    height: 56.25vw; /* Adjust this value based on your desired height-to-width ratio */
    min-height: 70vh; /* Ensure the video fills the viewport height */
    min-width: 124.44vh;  /* Calculate the minimum width based on the height-to-width*/
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Adjust this value based on your desired height-to-width ratio */
    overflow: hidden;
}

.iframe-fluid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
}

/*BURGER MENU drop down STUFF*/
.container {
  display: inline-block;
  cursor: pointer;
}

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: #333;
  margin: 6px 0;
  transition: 0.4s;
}

.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}


/*NEWSLETTER FORM STUFF*/
.formkit-input{
  color:#000;
  border-color:#000000;
  border-radius:4px;
  font-weight:400;
}

.formkit-submit{
  color:#fff;
  background-color:#000000;
  border-radius:4px;
  font-weight:400;
}

h2.responsive-heading {
  font-size: 2.15rem; /* mobile */
}

@media (min-width: 768px) {
  h2.responsive-heading {
    font-size: 3rem; /* desktop */
  }
}

/* Desktop: square */
@media (min-width: 768px) {
  .square-thumb {
    aspect-ratio: 1 / 1;
  }
}

/* Mobile: taller (matching video) */
@media (max-width: 767px) {
  .square-thumb {
    height: 75vh;
  }
}

.square-thumb {
  width: 100%;
  overflow: hidden;
}

.square-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.hover-video.is-playing {
  opacity: 1;
}

.hover-video-vimeo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hover-video-vimeo iframe {
  width: 177.78vh; /* To cover portrait ratio 16:9 */
  min-width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.project-thumbnail:hover .hover-video-vimeo {
  opacity: 1;
}

.hover-video-youtube {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hover-video-youtube iframe {
  width: 177.78vh; /* To cover portrait ratio 16:9 */
  min-width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.project-thumbnail:hover .hover-video-youtube {
  opacity: 1;
}

.hover-video-vimeo.is-playing {
  opacity: 1;
}

.project-thumbnail .project-overlay {
  z-index: 2; /* Ensure text is above the video */
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
/*  background-color: rgba(255, 255, 255, 0.6); /* Translucent white */
  background-color: rgba(238, 255, 65, 1); /* Translucent yellow (#EEFF41) */
  padding: 10px 15px;
  z-index: 2;
  text-align: left;
}

@media (max-width: 767px) {
  .project-overlay {
    padding-left: 8.333333%; /* Match col-1 offset of "Projects" title */
  }
}

.project-overlay h3, .project-overlay h4 {
  margin: 0;
  color: black; /* Ensure text is visible on white background */
}

/* Desktop (md and up): kept square as per user request */
/* Removed media query that was reverting to auto aspect ratio */

.responsive-tagline{
    font-size: 3rem; /* display-5 equivalent, for below md */
  }
  @media (min-width: 768px) {
    #tagline {
      font-size: 5rem; /* display-1 equivalent, for md and above */
    }
}


.project-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* text hugs the image */
  min-height: 60px; /* your standard reserved height */
}

@media (min-width: 768px) and (max-width: 950px) {
  .project-header {
    min-height: 90px;
  }
}

@media (max-width: 767px) {
  .caption-nudge {
    padding-left: 0.7rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .caption-nudge {
    padding-left: 1.5rem;
  }
}
/* Project Carousel Standardization */
.carousel-inner {
  aspect-ratio: 1600 / 1269;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  height: 100%;
}

.carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Extra right spacing for mobile menu on tiny screens */
@media (max-width: 292px) {
  .row.negative-margin > .col-3 {
    padding-left:0px !important;
    /*padding-right: 20px !important;*/
  }
}

/* Reduce container padding on ultra-narrow screens */
@media (max-width: 230px) {
  .row.negative-margin > .col-3 .container {
    padding-left: 5px !important;
  }
}

@media (max-width: 320px) {
  .container {
    padding-left: 5px;
  }
}

@media (max-width: 334px) {
  .row.justify-content-end {
    justify-content: flex-start !important;
  }
}

/* Project page hero wrappers */
.project-hero-video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}
@media (max-width: 575.98px) {
  .project-hero-video-wrapper {
    height: 65vh;
  }
  .project-hero-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    min-width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
  }
}
@media (min-width: 576px) {
  .project-hero-video-wrapper {
    height: 0;
    padding-bottom: 56.25%;
  }
  .project-hero-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

.project-hero-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}
@media (max-width: 575.98px) {
  .project-hero-image-wrapper {
    height: 65vh;
  }
  .project-hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
@media (min-width: 576px) {
  .project-hero-image-wrapper img {
    width: 100%;
    height: auto;
  }
}