/* Disable text selection on the entire page */
html, body, #fullscreen-container, #image-wrapper, #main-image,
#top-bar, #project-numbers, #caption-bar {
  -webkit-user-select: none;  /* Safari, iOS */
  -moz-user-select: none;     /* Firefox */
  -ms-user-select: none;      /* IE10+ */
  user-select: none;          /* Standard */
}
/* ========== LOGO IMAGES ========== */
#logo-fs,
#logo-st {
  position: fixed;
  top: 1.5%;
  height: auto;
  width: 46.25%;
  object-fit: contain;
  z-index: 4000;
  pointer-events: none;
}

#logo-fs {
  left: 1.5%;
}

#logo-st {
  right: 1.5%;
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  font-size: 18px;
  line-height: 24px;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #FFFFFF;
  overflow-x: hidden;
  overflow-y: auto;
  word-spacing: 0.03rem;
  scroll-snap-type: y mandatory;
}

/* ========== VERTICAL CAROUSEL ========== */
#vertical-carousel {
  width: 100%;
  min-height: 100vh;
}

.project-card {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4500;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.project-card img {
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  border-radius: 8px;
}

.project-title {
  display: none;
}

/* Intro Card Styles */
.intro-card {
  cursor: default;
  height: 85vh;
  justify-content: center;
  align-items: center;
}

.intro-text {
  text-align: center;
  color: #333;
  max-width: 100vw;
  padding: 2rem;
  margin-top: 25vh;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: bold;
}

.intro-scroll {
  font-size: 14px;
  opacity: 0.5;
  letter-spacing: 0.1em;
}

/* About Link */
#about-link {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  height: auto;
  width: 160px;
  cursor: pointer;
  z-index: 6000;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

#about-link:hover {
  opacity: 0.7;
}

/* Hide About and Navigator in Detail View - handled by JavaScript */

/* Project Navigator */
#project-navigator {
  position: fixed;
  bottom: 2rem;
  right: 1.5%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 6000;
  transition: opacity 0.3s ease;
}

.project-nav-item {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  cursor: pointer;
  position: relative;
}

.project-nav-item:hover {
  opacity: 0.7;
}

.project-nav-item.active::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid #333;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ========== DETAIL VIEW ========== */
#detail-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5000;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s ease, visibility 0s 0.6s;
}

#detail-view.active {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.6s ease, visibility 0s 0s;
}

#detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
  transition: background-color 0.6s ease;
}

#detail-view.active #detail-overlay {
  background-color: rgba(0, 0, 0, 0.85);
}

#close-detail {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: transparent;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease, opacity 0.6s ease;
}

#detail-view.active #close-detail {
  opacity: 1;
}

#close-detail:hover {
  background-color: white;
  color: black;
}

#detail-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
  padding: 0;
  overflow: hidden;
}

#detail-carousel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2vw;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.detail-carousel-image {
  width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  flex-shrink: 0;
  user-select: none;
  cursor: pointer;
  border-radius: 8px;
}

.detail-carousel-image:hover {
  opacity: 0.95;
}

#detail-caption {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
  z-index: 3;
  max-width: 80%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#detail-view.active #detail-caption {
  opacity: 1;
}

/* ========== TOP BAR ========== */
#top-bar {
  display: none;
}

/* Left: Studio MHK / Back */
#studio-toggle {
  position: absolute;
  left: 1rem;
  cursor: pointer;
  /* text-transform: uppercase; */
  /* font-weight: bold; */
  letter-spacing: 0;
}

#view-toggle:not(.back):hover {
  color: #fd5000;
}

#studio-toggle:not(.back):hover {
  color: #FFD12B !important;
}


/* Center: Project numbers */
#project-numbers .project-number {
  display: inline-block;   /* ensures a fixed-width "box" */
  /* background-color: green; */
  width: auto;           /* adjust as needed for double/triple-digit numbers */
  text-align: center;      /* center the text within this box */
  margin: 11px;
  cursor: pointer;
  /* color: black; */
  font-weight: regular;
  /* font-size: 12px; */
  font-size: 0.8em;
  font-kerning: auto;
  color: rgba(0, 0, 0, 0.6);

  
  /* font-family: monospace; */
}
#project-numbers .project-number.active {
  /* color: rgb(200, 255, 0); */
  color: rgb(254, 254, 254);
  background-color: rgba(98, 75, 247, 0.7);
  
  /* text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px; */

  border-radius: 6px;
  padding: 1px 8px 1px 8px;
  margin-right: 3px;
  margin-left: 3px;

}

/* Right: View All / Back for Overview */
#view-toggle {
  position: absolute;
  right: 1rem;
  cursor: pointer;
  /* text-transform: uppercase; */
  font-weight: regular;
}
#view-toggle.back {
  color: black !important;
}

/* ========== SCROLL CONTAINER ========== */
#scroll-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200vh; /* Two full viewports */
  transition: transform 0.5s ease;
  transform: translateY(0);
}

/* Each section occupies full viewport height */
#slideshow-section,
#info-section {
  height: 100vh;
  width: 100%;
}

/* ========== FULLSCREEN CONTAINER (Slideshow) ========== */
#fullscreen-container {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: default;
}

#image-wrapper {
  position: relative;
  width: 100vw;
  height: 88vh;
  /* left: 1vw; */
  top: 6vh;

}

#main-image {
  width: 100%;
  height: 100%;
  object-fit:contain;
}

/* CAPTION BAR (OVERLAY on image) */
#caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  /* font-weight: bold; */
  padding: 1em;
  z-index: 2;
  /* font-family: 'Courier New', Courier, monospace; */
  /* background-color: #eff705; */
  font-weight: regular;
  color: #000;
  letter-spacing: 1px;
}

/* ========== INFO SECTION ========== */
#info-section {
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  background-color: #fff;
}
.info-content {
  max-width: 940px;
  text-align: left;
  padding-left: 1.2rem;
  padding-top: 10rem;
  
}
#intro_car{
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 50em;
  padding-bottom: 30vh;
  color: rgba(56, 56, 56, 0.152);
}

/* ========== OVERVIEW CONTAINER ========== */
#overview-container {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 0; 
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  overflow: auto;
  z-index: 2000;
  padding: 40px;
  padding-top: 4rem;
}
#overview-container.active {
  opacity: 1;
  visibility: visible;
}

#overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 80px;
}

#overview-grid img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  height: auto;
  cursor: pointer;
  transition: opacity 0.3s;
}

#overview-caption {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  line-height: 8rem;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  letter-spacing: -0.2rem;
  color: rgb(247, 57, 19);
  z-index: 9999;
  width: 90vw;
}

/* ========== HOVER THUMBNAIL FOR PROJECT NUMBERS ========== */
#project-hover-thumbnail {
  position: absolute;
  display: none;
  width: 150px;
  height: auto;
  pointer-events: none;
  background-color: #fff;
  border-radius: 5%;
  z-index: 9999;
}

.studio-icon {
  font-size: 1.8em;  /* Increase the size of the icon */
  vertical-align: middle;
  color: rgb(0, 0, 0);
  margin-right: -0.05em;
}

/* ========== MEDIA QUERIES (OPTIONAL) ========== */
@media (max-aspect-ratio: 1/1) {

  /* Mobile Logo Layout */
  #logo-fs {
    top: 1%;
    left: 50% !important;
    right: auto;
    transform: translateX(-50%);
    width: 96%;
  }

  #logo-st {
    top: calc(1% + 15vh); /* Position below FS logo with proper spacing */
    bottom: auto;
    left: 50% !important;
    right: auto;
    transform: translateX(-50%);
    width: 96%;
  }

  /* Mobile About Link */
  #about-link {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
  }

  html, body {

    font-size: 16px;
    line-height: 22px;

  }
  

  #top-bar {
    height: 50px;
  }

  #project-numbers {
    display: none;
  }

  #main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #caption-bar {

    bottom: 10vh;


  }

  .info-content {
    max-width: 95%;
    text-align: left;
    padding-left: 1.2rem;
    padding-top: 10rem;
    padding-bottom: 10vh;
    font-size: 15px;
    line-height: 19px;

    
  }
  #intro_car{
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 36em;
    padding-bottom: 20vh;
    color: rgba(56, 56, 56, 0.152);
  }

  #overview-caption {
    font-size: 4rem;
    line-height: 4.8rem;
  }

  /* Adjust scroll container if needed */
}