/* ── Projects two-panel layout ───────────────────── */

.dc-proj-page {
  display: flex;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  min-height: calc(100vh - 65px);
}

/* ── LEFT sidebar (30%) ── */
.dc-proj-sidebar-panel {
  flex: 0 0 30%;
  width: 30%;
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow-y: auto;
  border-right: 1px solid #e4e9f5;
  padding: 2em 1.4em 2em 1.6em;
  background: #fafbfd;
  scrollbar-width: thin;
  scrollbar-color: #c8d0e8 transparent;
}

.dc-proj-sidebar-panel::-webkit-scrollbar { width: 4px; }
.dc-proj-sidebar-panel::-webkit-scrollbar-thumb { background: #c8d0e8; border-radius: 2px; }

.dc-sidebar-heading {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #999;
  margin: 0 0 1.2em 0;
}

.dc-sidebar-item {
  padding: 0.9em 0.8em;
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  margin-bottom: 0.3em;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.dc-sidebar-item:hover,
.dc-sidebar-item.active {
  border-left-color: #1a2f6b;
  background: #eef1f9;
}

.dc-sidebar-title {
  display: block;
  font-size: 0.88em;
  font-weight: 700;
  color: #1a2f6b;
  text-decoration: none;
  margin-bottom: 0.4em;
  line-height: 1.4;
}

.dc-sidebar-title:hover { text-decoration: underline; color: #1a2f6b; }

.dc-sidebar-desc {
  font-size: 0.78em;
  color: #555;
  margin: 0 0 0.5em 0;
  line-height: 1.55;
}

.dc-sidebar-pubs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dc-sidebar-pubs a {
  font-size: 0.72em;
  color: #1a2f6b;
  background: #e4eaf7;
  border: 1px solid #c0cce8;
  border-radius: 3px;
  padding: 1px 6px;
  text-decoration: none;
  white-space: nowrap;
}

.dc-sidebar-pubs a:hover { background: #1a2f6b; color: #fff; }

/* ── RIGHT main panel (70%) ── */
.dc-proj-main-panel {
  flex: 1;
  min-width: 0;
  padding: 2.5em 3em 2em 2.5em;
}

/* ── Full project section ── */
.dc-full-proj {
  margin-bottom: 0.5em;
}

.dc-full-proj-title {
  font-size: 1.45em;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.5em 0;
  line-height: 1.3;
}

.dc-full-proj-meta {
  font-size: 0.88em;
  color: #555;
  margin-bottom: 1.3em;
  line-height: 1.7;
}

/* video */
.dc-full-proj-video {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 5px;
  background: #000;
  display: block;
  margin: 0 0 1.3em 0;
}

/* ── Gallery peek carousel ── */
.dc-gallery-slider {
  position: relative;
  width: 100%;
  height: 390px;        /* explicit height ensures visibility before images load */
  margin-bottom: 1.6em;
  border-radius: 5px;
  overflow: hidden;
  background: #111;
  user-select: none;
}

.dc-gallery-track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 100%;
  transition: transform 0.44s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.dc-gallery-slide {
  flex: 0 0 80%;
  filter: brightness(0.28);
  transition: filter 0.44s ease;
  border-radius: 3px;
  overflow: hidden;
}

.dc-gallery-slide.active {
  filter: brightness(1);
}

.dc-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
  pointer-events: none;
  -webkit-user-drag: none;
}

.dc-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  width: 38px;
  height: 60px;
  font-size: 2em;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  border-radius: 3px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(4px);
}

.dc-gallery-btn:hover { background: rgba(255,255,255,0.32); }
.dc-gallery-prev { left: 0; border-radius: 0 3px 3px 0; }
.dc-gallery-next { right: 0; border-radius: 3px 0 0 3px; }

.dc-gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.dc-gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.dc-gallery-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* text */
.dc-full-proj-text p {
  font-size: 0.97em;
  color: #222;
  line-height: 1.75;
  margin-bottom: 1em;
}

.dc-full-proj-kw {
  font-size: 0.85em;
  color: #666;
  margin: 0.8em 0 0.5em 0;
}

.dc-full-proj-pubs {
  font-size: 0.9em;
  margin: 0.5em 0 0.5em 0;
}

.dc-full-proj-note {
  font-size: 0.82em;
  color: #888;
  margin-top: 0.6em;
}

.dc-full-proj-hr {
  border: none;
  border-top: 1px solid #e4e9f5;
  margin: 2.5em 0;
}

/* ── Responsive: stack on narrow screens ── */
@media (max-width: 768px) {
  .dc-proj-page { flex-direction: column; }
  .dc-proj-sidebar-panel {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e4e9f5;
  }
  .dc-proj-main-panel { padding: 1.5em 1em; }
  .dc-full-proj-gallery { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
