/* ─── PROJECT PAGE ───────────────────────────────────────────── */

/* ─── PREV/NEXT PROJECT ARROWS ───────────────────────────────── */
.proj-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  font-family: 'MSCHF', monospace;
  font-size: 24px;
  cursor: pointer;
  padding: 16px;
  transition: color 0.25s ease;
  line-height: 1;
}

.proj-arrow:hover {
  color: var(--accent);
}

.proj-arrow--prev {
  left: 8px;
}

.proj-arrow--next {
  right: 8px;
}

/* ─── INFO BAR ───────────────────────────────────────────────── */
.info-bar {
  display: grid;
  grid-template-columns: var(--col-left) 1px 1fr 1px auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 80px;
}

.info-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 20px var(--margin);
}

.info-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: lowercase;
}

.info-value {
  font-size: 14px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.info-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  align-self: stretch;
}

.info-desc {
  display: flex;
  align-items: center;
  padding: 20px 24px;
}

.info-site-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  vertical-align: middle;
  transition: opacity 0.2s ease;
  margin-left: 6px;
}

.info-site-link:hover {
  opacity: 0.7;
}

.info-desc p {
  font-size: 14px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  text-transform: lowercase;
}

.info-tags {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 20px var(--margin);
  width: 260px;
  min-width: 260px;
  max-width: 260px;
}

.info-tag {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: lowercase;
}

.video-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #111;
}

.video-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.75;
}

.video-thumb:hover .video-thumb-img {
  transform: scale(1.02);
  opacity: 0.9;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-size: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  padding-left: 4px;
}

.video-thumb:hover .video-play {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── CONTENT GRID ───────────────────────────────────────────── */
.content-grid {
  width: 100%;
  display: grid;
  grid-template-columns: var(--col-left) 0 1fr 0 auto;
}

.content-grid-inner {
  grid-column: 3;
  width: 100%;
  overflow: hidden;
}

/* ─── SCROLLABLE IMAGE ───────────────────────────────────────── */
.scrollable-page {
  width: 100%;
  display: grid;
  grid-template-columns: var(--col-left) 1px 1fr 1px auto;
}

.scrollable-page-inner {
  grid-column: 3;
  width: 100%;
}

.scrollable-img {
  width: 100%;
  height: auto;
  display: block;
}

.scrollable-img.ver-img {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 600px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .content-grid-inner {
    grid-column: 1;
  }
  .scrollable-page {
    grid-template-columns: 1fr;
  }
  .scrollable-page-inner {
    grid-column: 1;
  }
  .scrollable-img { width: 100%; }
  .scrollable-img.ver-img { width: 100%; max-width: 100%; }
}

.carousel-v {
  position: relative;
  width: 100%;
  height: calc((100vh - var(--nav-height)) * 0.85);
  overflow: hidden;
}

.carousel-v-track {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.carousel-v-item {
  width: 100%;
  height: calc((100vh - var(--nav-height)) * 0.85);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
}

/* Horizontal 16:9 videos/images */
.carousel-v-item.hor {
  padding: 0;
}

.carousel-v-item.hor iframe,
.carousel-v-item.hor .video-thumb {
  width: 100%;
  height: 100%;
}

.carousel-v-item.hor img {
  width: 100%;
  max-height: calc((100vh - var(--nav-height)) * 0.85);
  object-fit: contain;
}

/* Vertical images */
.carousel-v-item.ver img {
  max-height: calc((100vh - var(--nav-height)) * 0.85 - 80px);
  max-width: 60%;
  width: auto;
  object-fit: contain;
}

/* ─── CAROUSEL UP/DOWN ARROWS ────────────────────────────────── */
.carousel-v-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'MSCHF', monospace;
  font-size: 20px;
  cursor: pointer;
  padding: 12px;
  transition: color 0.25s ease;
  display: none;
  line-height: 1;
}

.carousel-v-arrow:hover {
  color: var(--accent);
}

.carousel-v-arrow--up   { top: 16px; }
.carousel-v-arrow--down { bottom: 16px; }

.carousel-v.multi .carousel-v-arrow { display: block; }

/* ─── CAROUSEL COUNTER ───────────────────────────────────────── */
.carousel-v-counter {
  position: absolute;
  bottom: 20px;
  right: var(--margin);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.3);
  display: none;
}

.carousel-v.multi .carousel-v-counter { display: block; }

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.asset-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
}

/* ─── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .proj-arrow { display: none; }

  /* Fix info bar stacking */
  .info-bar {
    grid-template-columns: 1fr;
  }

  .info-divider { display: none; }

  .info-brand {
    padding: 16px var(--margin) 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .info-desc {
    padding: 12px var(--margin);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .info-tags {
    padding: 12px var(--margin) 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    min-width: unset;
    justify-content: flex-start;
  }

  /* Fix carousel height — only constrain horizontal (video) items */
  .carousel-v-item.hor {
    height: 56.25vw;
  }

  /* Vertical images — let them breathe */
  .carousel-v-item.ver {
    height: auto;
    padding: 20px 0;
  }

  .carousel-v {
    height: auto;
  }

  /* When a hor-orientation carousel loads vertical (mobile) images,
     let each slide expand to show the full image */
  .carousel-v-item.hor img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  /* Override fixed slide height when images are vertical on mobile */
  .carousel-v-item.hor:has(img) {
    height: auto;
    padding: 0;
  }

  /* Recalculate track transform per-slide via JS — reset overflow so tall slides show */
  .carousel-v-track {
    height: auto;
  }
}
