/* Base styles */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: 'Open Sans', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  height: auto;
  min-height: 100vh;
  overflow-y: scroll;
  background-color: #ffffff;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;

}

.project-back {
  cursor: pointer;
  transition: transform 0.2s ease;
  position: fixed;
  right: 60px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  font-size: 60px;
  margin: 0px;
}

.project-back:hover {
  transform: scale(1.05);
}

.project-hero {
  position: relative;
  padding: 20px;
  text-align: left;
  margin: 30px;
  align-items: center;
}


.project-title {
  font-size: 100px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  color: #000;
  margin: 0px;
}

.project-subtitle {
  font-size: 40px;
  color: #000000;
  margin: 0px;
}

/* MAIN CONTENT */
.project-layout-1 {
  display: flex;
  background-color: #ffffff;
  margin: 100px;
  width: 100vw;
}




.dynamic-text .char {
  display: inline-block;
  transition: transform 0.3s ease;
  margin: .6px;
}

.project-title.dynamic-text {
  display: block;
}

.project-subtitle.dynamic-text {
  display: block;
}

.sketchfab-embed-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  /* vertical spacing above/below */
  width: 100%;
}

.sketchfab-embed-wrapper iframe {
  border: none;
  /* remove default border */
  width: 80vw;
  /* 80% of the viewport width */
  height: 60vh;
  /* 60% of the viewport height */
  max-width: 1200px;
  /* cap at a reasonable max size */
  max-height: 800px;
  margin-top: 100px;
}

.icon-row {
  display: flex;
  justify-content: left;
  margin-left: 50px;
  gap: 1.5rem;
  padding: 1rem 0;
}

.icon-container {
  position: relative;
  text-align: center;
  cursor: pointer;
}

.icon-container img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.icon-container:hover img {
  transform: scale(1.1);
}

.icon-label {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.4rem;
  padding: 3px 8px;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

.icon-container:hover .icon-label {
  display: block;
}



.main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  padding: 2rem 10rem;
  box-sizing: border-box;
  height: auto;
}

/* Common resets for layout components */
.layout-text-left,
.layout-image-left {
  display: flex;
  align-items: center;
}

.layout-text-left .image,
.layout-image-left .image {
  flex: 0 1 40%;
  /* limit image container to 40% of width */
  padding: 1rem;
}

.layout-text-left .image img,
.layout-image-left .image img {
  width: 70%;
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for images */
.layout-text-left .image img:hover,
.layout-image-left .image img:hover,
.layout-three-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Full text section spans container */
.layout-full-text {
  width: 100%;
}

.layout-three-images {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* wrapper to enforce a fixed aspect ratio & hide overflow */
.layout-three-images .image-mask {
  flex: 0 1 calc((100% - 2rem) / 3);
  aspect-ratio: 4 / 3;
  /* pick whatever ratio you like */
  overflow: hidden;
  border-radius: 0.5rem;
  /* optional, for rounded corners */
  background: #eee;
  /* fallback bg while loading */
}

/* wrapper to enforce a fixed aspect ratio & hide overflow */
.image-mask-square {
  flex: 0 1 calc((100% - 2rem) / 3);
  aspect-ratio: 3 / 3;
  /* pick whatever ratio you like */
  overflow: hidden;
  border-radius: 0.5rem;
  /* optional, for rounded corners */
  background: #eee;
  /* fallback bg while loading */
}

/* the img fills its mask, cropping instead of squashing */
.layout-three-images .image-mask-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* the img fills its mask, cropping instead of squashing */
.layout-three-images .image-mask-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* the img fills its mask, cropping instead of squashing */
.layout-three-images .image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* wrapper to enforce a fixed aspect ratio & hide overflow */
.image-mask-photos {
  flex: 0 1 calc((100% - 2rem) / 3);
  aspect-ratio: 3 / 4;
  /* pick whatever ratio you like */
  overflow: hidden;
  border-radius: 0.5rem;
  /* optional, for rounded corners */
  background: #eee;
  /* fallback bg while loading */
}


.layout-single-images {
  flex: 0 1 calc((100% - 2rem) / 3);
  aspect-ratio: 20 / 11.5;
  /* pick whatever ratio you like */
  overflow: hidden;
  border-radius: 0.5rem;
  /* optional, for rounded corners */
  background: #eee;
  /* fallback bg while loading */
}

.layout-single-images .image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.text-container {
  position: relative;
  padding: 20px;
  text-align: left;
  margin: 20px;
  align-items: center;
  width: 70%;
}

.text-container h2 {
  font-size: 40px;
}

.text-container p {
  font-size: 30px;
}

/* YouTube embed wrapper */
.video-container {
  display: flex;
  justify-content: center;
  padding-bottom: 6rem;
}

/* Responsive iframe sizing */
.video-container iframe {
  width: 90%;
  /* adjust % to taste */
  max-width: 1080px;
  /* caps the width */
  aspect-ratio: 16 / 9;
  /* keeps the 16:9 ratio automatically */
  border: none;
  margin: 20px;
}

.layout-image-left li {
  font-size: 25px;
}

.text-container li {
  font-size: 25px;
}

@media only screen and (max-width: 1024px) {
  .main {
    padding: 1.4rem;
  }

  .project-title {
    font-size: 50px;
    text-align: left;
  }

  .project-subtitle {
    font-size: 24px;
    text-align: left;
  }

  .project-back {
    right: 20px;
    font-size: 40px;
  }

  .icon-row {
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
    gap: 1rem;
  }

  .text-container {
    width: 100%;
    margin: 10px 0;
    padding: 0rem;
  }

  .text-container h2 {
    font-size: 28px;
  }

  .text-container p {
    font-size: 15px;
  }

  .layout-text-left,
  .layout-image-left,
  .layout-three-images {
    flex-direction: column;
    align-items: center;
  }

  .layout-text-left .image img,
  .layout-image-left .image img {
    width: 100%;
    max-width: 100%;
  }

  .layout-three-images {
    gap: 1rem;
    flex-direction: column;
  }

  .layout-three-images .image-mask {
    width: 90%;
    aspect-ratio: auto;
  }

  .video-container iframe {
    width: 100%;
    max-width: 100%;
  }

  .layout-image-left li {
    font-size: 15px;
  }

  .video-container {
    flex-direction: column;
    /* stack videos vertically */
    align-items: center;
    margin-bottom: 0px;
    padding: 20px;
  }

  .video-container iframe {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
  }

  .project-title {
    font-size: 40px;
  }

  .project-subtitle {
    font-size: 20px;
  }

  .project-hero {
    margin: 5px;
    padding: 10px;
  }

  .icon-container img {
    width: 30px;
    height: 30px;
  }

  .icon-row {
    justify-content: left;
  }

  .sketchfab-embed-wrapper iframe {
    margin-top: 0px;
  }

}