/* ─── BASE ──────────────────────────────────────────────── */
body {
  background: #fff;
  color: rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

/* ─── TWO-COLUMN LAYOUT ─────────────────────────────────── */
.page-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* ─── LEFT PANEL ─────────────────────────────────────────── */
.left-panel {
  width: 324px;
  flex-shrink: 0;
  height: 100vh;
  overflow: hidden;
  padding: 1.4rem 32px 1.4rem 32px;
  display: flex;
  flex-direction: column;
}

/* Nav scrolls independently — logo stays pinned */
.project-nav {
  flex: 1;
  width: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.project-nav::-webkit-scrollbar { display: none; }

.left-panel__header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.site-name {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.site-name img {
  height: 28px;
  width: auto;
  display: block;
}

.site-name:hover { opacity: 0.45; }

/* Hidden on desktop — only appears on mobile */
.mobile-hamburger { display: none; }

/* ─── PROJECT NAV ────────────────────────────────────────── */
.proj-group { margin: 0; padding: 0; }

.proj-group__label {
  display: flex;
  align-items: center;
  padding: 10px 0 5px;
  color: rgba(0, 0, 0, 0.65);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proj-group__label::before {
  content: '';
  flex: 1;
  height: 0.5px;
  background: currentColor;
  margin-right: 7px;
}

.proj-group__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.proj-item { list-style: none; }

.proj-item__link {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: rgba(0, 0, 0, 0.65);
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.proj-item__link:hover       { color: rgba(0, 0, 0, 1); }
.proj-item.is-active .proj-item__link { color: rgba(0, 0, 0, 1); }

/* ─── FOOTER NAV (desktop only) ─────────────────────────── */
.list-footer-nav { margin-top: 1.5rem; }

.list-footer-nav a {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
  line-height: 1.6;
  padding: 0.1rem 0;
  transition: color 0.15s ease;
}

.list-footer-nav a:hover { color: rgba(0, 0, 0, 0.35); }

/* ─── RIGHT PANEL ────────────────────────────────────────── */
.right-panel {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding: 1.4rem;          /* ← margins around the image */
  background: #fff;
}

.right-panel::-webkit-scrollbar { display: none; }

/* Every image or video inside the project detail */
.detail-media {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.4rem;
}

/* First image of each project — fixed square crop */
.detail-media--hero {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Two-column info block: title/meta left · description right */
.detail-info {
  display: flex;
  gap: 2rem;
  padding: 1.4rem 0 2rem;
}

.detail-info__left {
  flex: 0 0 22%;
}

.detail-info__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.85);
  line-height: 1.3;
}

.detail-info__meta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.detail-info__right {
  flex: 1;
}

.detail-info__right p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 0.9rem;
}

/* ─── VIEW TOGGLE BUTTONS ───────────────────────────────── */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.view-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  color: rgba(141, 159, 167, 0.55);
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.view-btn:hover     { color: #8D9FA7; }
.view-btn.is-active { color: #8D9FA7; }

/* ─── MOSAIC "WHERE" BUTTON ─────────────────────────────── */
.mf-btn {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.25);
  padding: 0;
  transition: color 0.15s ease;
}

.mf-btn:hover     { color: rgba(0, 0, 0, 0.55); }
.mf-btn.is-active { color: rgba(0, 0, 0, 0.85); }

/* ─── MOSAIC VIEW ────────────────────────────────────────── */
.mosaic-view {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 50;
  overflow-y: auto;
  scrollbar-width: none;
}

.mosaic-view::-webkit-scrollbar { display: none; }

.mosaic-view.is-active { display: block; }

.mosaic-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.4rem 1rem;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.mosaic-grid {
  column-count: 4;
  column-gap: 1.2rem;
  padding: 0 1.4rem 2rem;
}

@media (max-width: 1400px) { .mosaic-grid { column-count: 3; } }
@media (max-width: 900px)  { .mosaic-grid { column-count: 2; } }
@media (max-width: 500px)  { .mosaic-grid { column-count: 1; } }

.mosaic-card {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  cursor: pointer;
}

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

.mosaic-card__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: #8D9FA7;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.mosaic-card__meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 0.15rem;
  line-height: 1.4;
}

/* ─── TIMELINE VIEW ──────────────────────────────────────── */
.timeline-view {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 50;
  overflow-y: auto;
  scrollbar-width: none;
}

.timeline-view::-webkit-scrollbar { display: none; }

.timeline-view.is-active { display: block; }

.timeline-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.4rem 1rem;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

/* ─── TIMELINE YEAR BADGE ────────────────────────────────── */
.timeline-year-badge {
  display: none;
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  z-index: 100;
  pointer-events: none;
}

.timeline-year-badge.is-active { display: block; }

/* ─── MAP VIEW ────────────────────────────────────────────── */
.map-view {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 50;
  flex-direction: column;
}

.map-view.is-active { display: flex; }

.map-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.4rem 1rem;
  flex-shrink: 0;
  background: #fff;
}

#map-canvas {
  flex: 1;
  min-height: 0;
}

/* ─── MOBILE NAV OVERLAY ─────────────────────────────────── */
/* Hidden on desktop */
.mobile-overlay,
.mobile-nav { display: none; }

/* ─── MOBILE (≤767px) ───────────────────────────────────── */
@media (max-width: 767px) {
  body { overflow: hidden; }

  .page-layout {
    flex-direction: column;
    height: 100vh;
  }

  /* Left panel shrinks to header row only — project-nav hidden */
  .left-panel {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    overflow: visible;
    padding: 1.4rem 1.4rem 0.8rem;
  }

  .left-panel .project-nav { display: none; }

  /* Right panel fills the remaining screen height */
  .right-panel {
    flex: 1;
    width: 100%;
    height: 0;          /* flex:1 handles actual height */
    padding: 1.4rem;
  }

  /* On mobile the right panel scrolls freely — no overrides needed */

  /* Hide view toggle only in left panel on mobile — hamburger replaces it there */
  .left-panel__header .view-toggle { display: none; }

  /* Show hamburger on mobile */
  .mobile-hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    padding: 4px;
  }

  /* Footer nav never visible on mobile (it's in the overlay instead) */
  .list-footer-nav { display: none; }

  /* Dark overlay backdrop */
  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Full-screen dark nav panel */
  .mobile-nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.97);
    z-index: 200;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 1.4rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
  }

  .mobile-nav::-webkit-scrollbar { display: none; }

  .mobile-nav.is-open { transform: translateX(0); }

  /* Top bar inside mobile nav */
  .mobile-nav__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
  }

  .mobile-nav__label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
  }

  .mobile-nav__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
  }

  .mobile-nav__close:hover { color: #fff; }

  /* Page links (Office, Contact) */
  .mobile-nav__page-link {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.1rem 0;
    line-height: 1.6;
    transition: color 0.15s ease;
  }

  .mobile-nav__page-link:hover { color: #fff; }

  /* Spacer between page links and project groups */
  .mobile-nav__spacer { height: 1.5rem; }

  /* Year group labels — italic, matching desktop */
  .mobile-nav__group-label {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1.2rem;
    margin-bottom: 0.1rem;
    line-height: 1.6;
  }

  /* Project items — matching desktop indent */
  .mobile-nav__item {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.1rem 0 0.1rem 2rem;
    line-height: 1.6;
    transition: color 0.15s ease;
  }

  .mobile-nav__item:hover { color: #fff; }
}

/* ─── DARK LIST — MOBILE CLOSE + CREDITS TOGGLE (hidden on desktop) ── */
.dl-pd-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dl-pd-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(141, 159, 167, 0.6);
  font-size: 22px;
  font-weight: 300;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.dl-pd-close:hover { color: var(--color-white); }

.dl-pd-credits-toggle {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(141, 159, 167, 0.45);
  padding: 12px 0;
  transition: color 0.15s ease;
}

.dl-pd-credits-toggle:hover { color: rgba(141, 159, 167, 0.8); }

.dl-pd-credits-icon {
  font-size: 20px;
  font-weight: 300;
  color: rgba(141, 159, 167, 0.5);
}

/* ─── DARK LIST VIEW ─────────────────────────────────────── */
.dl-view {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--color-dark);
  overflow: hidden;
}

.dl-view.is-active { display: block; }

/* Mobile: let JS-controlled view state persist on all screen sizes */

/* ── Slideshow background ────────────────────────────────── */
.dl-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dl-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 3s ease;
}

.dl-slide.is-active { opacity: 1; }

.dl-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 32, 0.30);
  pointer-events: none;
}

.dl-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.dl-slide.is-active .dl-slide__bg { transform: scale(1); }

.dl-slideshow.is-project .dl-slide__bg {
  transform: none !important;
  transition: none !important;
}

.dl-slide.is-contain .dl-slide__bg {
  background-size: contain;
  background-repeat: no-repeat;
  transform: none !important;
  transition: none !important;
}

.dl-slide.is-contain::after { background: none; }

.dl-slide__caption {
  position: absolute;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(232, 228, 223, 0.85);
  pointer-events: none;
}

/* ── Full-screen veil — appears when project detail is open ── */
.dl-bg-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(13, 31, 32, 0.72);
  opacity: 0;
  pointer-events: none;
}

/* ── Darkening veil (behind header, above slideshow) ─────── */
.dl-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(13, 31, 32, 0.55);
  opacity: 0;
  pointer-events: none;
}

/* ── Header (same layout as mosaic/timeline/map, dark-styled) */
.dl-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.4rem 1rem;
  background: linear-gradient(to bottom, rgba(13, 31, 32, 0.75) 0%, transparent 100%);
}

/* White logo inside dark header */
.dl-header .site-name img {
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.dl-header .site-name:hover { opacity: 0.5; }

/* View icons — same colour/opacity as the logo (all equal) */
.dl-header .view-btn            { color: rgba(232, 228, 223, 0.82); }
.dl-header .view-btn:hover      { color: rgba(232, 228, 223, 1);    }
.dl-header .view-btn.is-active  { color: rgba(232, 228, 223, 1);    }

/* ── Projects panel — always visible ─────────────────────── */
.dl-projects-panel {
  position: absolute;
  left: 1.4rem;
  top: var(--nav-height);
  z-index: 10;
  width: 260px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--nav-height) - 40px);
}

.dl-pp-arrow {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(141, 159, 167, 0.45);
  font-size: 16px;
  padding: 5px 0;
  line-height: 1;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.dl-pp-arrow:hover { color: var(--color-white); }

.dl-pp-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.dl-pp-wrap::-webkit-scrollbar { display: none; }

.dl-pp-list { list-style: none; padding: 0; margin: 0; }

.dl-pp-item a {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: rgba(141, 159, 167, 0.85);
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dl-pp-item a:hover    { color: var(--color-white); }
.dl-pp-item.is-active a { color: var(--color-white); }

.dl-pp-year {
  display: flex;
  align-items: center;
  padding: 10px 0 5px;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  list-style: none;
}

.dl-pp-year::before {
  content: '';
  flex: 1;
  height: 0.5px;
  background: currentColor;
  margin-right: 7px;
}

/* ── Hover preview image ─────────────────────────────────── */
.dl-hover-preview {
  position: absolute;
  left: calc(1.4rem + 260px + 20px);
  z-index: 15;
  width: 280px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, top 0.15s ease;
}

.dl-hover-preview.is-visible { opacity: 1; }

.dl-hover-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.dl-hover-preview::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 16px;
  border: 14px solid transparent;
  border-right-color: rgba(232, 228, 223, 0.7);
}

/* ── Project detail panel ────────────────────────────────── */
.dl-project-detail {
  position: absolute;
  left: calc(1.4rem + 260px + 20px);
  top: var(--nav-height);
  z-index: 10;
  display: flex;
  flex-direction: row;
  gap: 0;
  padding-top: 26px;
  max-height: calc(100vh - var(--nav-height) - 20px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.dl-project-detail.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.dl-pd-col {
  width: 260px;
  overflow-y: auto;
  scrollbar-width: none;
  padding-top: 4px;
}

.dl-pd-col::-webkit-scrollbar { display: none; }
.dl-pd-col--credits { padding-top: 28px; width: 180px; }

.dl-pd-divider {
  width: 0.5px;
  background: rgba(141, 159, 167, 0.15);
  flex-shrink: 0;
  margin: 0 10px;
  align-self: stretch;
}

.dl-pd-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 6px;
}

.dl-pd-meta {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d9fa7;
  margin-bottom: 14px;
}

.dl-pd-text { margin-top: 14px; margin-bottom: 12px; }

.dl-pd-text p {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: rgba(232, 228, 223, 0.6);
  margin-bottom: 10px;
}

.dl-pd-image {
  display: none;
  width: 100%;
  margin-top: 16px;
  object-fit: cover;
  cursor: default;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.dl-pd-image.is-visible { display: block; }

.dl-pd-play {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(141, 159, 167, 0.5);
  padding: 12px;
  margin-top: 16px;
  transition: color 0.2s ease;
}

.dl-pd-play:hover { color: rgba(232, 228, 223, 0.9); }
.dl-pd-play.is-visible { display: block; animation: dl-pulse 2s ease-in-out infinite; }

@keyframes dl-pulse {
  0%, 100% { color: rgba(141, 159, 167, 0.5); transform: scale(1); }
  50%      { color: rgba(255, 255, 255, 1);    transform: scale(1.15); }
}

.dl-pd-section-head {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(141, 159, 167, 0.45);
  margin-bottom: 12px;
  padding-top: 4px;
}

.dl-pd-credits { display: block; }

.dl-pd-credits dt {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(141, 159, 167, 0.5);
  margin-bottom: 3px;
  margin-top: 10px;
}

.dl-pd-credits dt:first-child { margin-top: 0; }

/* ── Filmstrip (fullscreen slideshow thumbnails) ─────────── */
.dl-filmstrip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  padding: 40px 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(13, 31, 32, 0.75) 0%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.dl-filmstrip.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.dl-filmstrip__track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: flex-end;
}

.dl-filmstrip__track::-webkit-scrollbar { display: none; }

.dl-filmstrip__thumb {
  flex-shrink: 0;
  height: 70px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  display: block;
}

.dl-filmstrip__thumb:hover { opacity: 0.85; }
.dl-filmstrip__thumb.is-active { opacity: 1; }

/* ── Play/Pause button ───────────────────────────────────── */
.dl-play-pause {
  position: absolute;
  bottom: 1.8rem;
  left: 1.4rem;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(232, 228, 223, 0.82);
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color 0.15s ease, opacity 0.3s ease;
}

.dl-play-pause:hover { color: rgba(232, 228, 223, 1); }

#dl-view:has(.dl-projects-panel:hover) .dl-play-pause { opacity: 0.5; }

.dl-pd-credits dd {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: rgba(232, 228, 223, 0.65);
  margin: 0;
  white-space: pre-line;
}

/* ── Fourth column: News + Others (independent panel) ────── */
.dl-extra-panel {
  position: absolute;
  left: calc(1.4rem + 260px + 20px + 260px + 20px + 180px + 20px);
  top: var(--nav-height);
  z-index: 10;
  width: 220px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--nav-height) - 40px);
  padding-top: 26px;
  border-left: 0.5px solid rgba(141, 159, 167, 0.15);
  padding-left: 10px;
}

.dl-pd-extra-section {
  flex: 0 0 50%;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.dl-pd-extra-section::-webkit-scrollbar { display: none; }

.dl-pd-extra-section--news { padding-bottom: 12px; }
.dl-pd-extra-section--others { padding-top: 12px; border-top: 0.5px solid rgba(141, 159, 167, 0.15); }

.dl-pd-extra-content {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: rgba(232, 228, 223, 0.6);
}

.dl-extra-item { padding: 4px 0; }

.dl-extra-item__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.dl-extra-item__link {
  flex: 1;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: rgba(141, 159, 167, 0.85);
  text-decoration: none;
  transition: color 0.15s ease;
}

.dl-extra-item__link:hover { color: var(--color-white); }

.dl-extra-item__toggle {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  color: rgba(141, 159, 167, 0.5);
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease;
}

.dl-extra-item__toggle:hover { color: var(--color-white); }

.dl-extra-item__body {
  display: none;
  padding: 6px 0 10px;
}

.dl-extra-item.is-expanded .dl-extra-item__body { display: block; }

.dl-extra-item__date {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(141, 159, 167, 0.4);
  margin-bottom: 4px;
}

.dl-extra-item__desc {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: rgba(232, 228, 223, 0.5);
  margin-bottom: 8px;
}

.dl-extra-item__image {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.dl-extra-item__image:hover { opacity: 1; }

/* ── News full-view (takes over entire fourth column) ──── */
.dl-extra-fullview {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding-top: 4px;
}

.dl-extra-fullview::-webkit-scrollbar { display: none; }

.dl-extra-fullview__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 300;
  color: rgba(141, 159, 167, 0.5);
  padding: 0;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.dl-extra-fullview__close:hover { color: var(--color-white); }

.dl-extra-fullview__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 8px;
}

.dl-extra-fullview__image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.dl-extra-fullview__desc {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: rgba(232, 228, 223, 0.6);
}

/* ── Dark list — mobile layout (detail below list) ─────── */
@media (max-width: 767px) {
  .dl-view.is-active {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  .dl-view.is-active::-webkit-scrollbar { display: none; }

  .dl-slideshow, .dl-bg-veil, .dl-veil {
    position: fixed;
  }

  .dl-header {
    position: sticky;
    top: 0;
    flex-shrink: 0;
  }

  .dl-projects-panel {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-height: none;
    padding: 0 1.4rem;
    flex-shrink: 0;
  }

  .dl-pp-arrow { display: none; }

  .dl-pp-wrap {
    overflow: visible;
    flex: none;
  }

  .dl-project-detail {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-height: none;
    padding: 1.2rem 1.4rem 2rem;
    flex-direction: column;
    transform: none !important;
    flex-shrink: 0;
  }

  .dl-pd-col { width: 100%; }
  .dl-pd-col--credits { padding-top: 0; }
  .dl-pd-divider { display: none; }
  .dl-extra-panel { display: none; }

  .dl-pd-close { display: block; }

  .dl-pd-credits-toggle { display: flex; }
  .dl-pd-credits-body { display: none; }
  .dl-pd-credits-body.is-expanded { display: block; }
  .dl-pd-section-head { display: none; }

  .dl-hover-preview { display: none !important; }

  .dl-play-pause { left: 1.4rem; }
}

