/* Project Details */
.project-details .pd-header {
  max-width: 860px;
  margin: 0 auto 46px;
  text-align: center;
}

.pd-kicker {
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.pd-title {
  margin: 0 0 18px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

@media (min-width: 768px) {
  .pd-title {
    font-size: 48px;
  }
}

.pd-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .pd-sub {
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
  }
  .text-muted-foreground {
    font-size: 14px;
  }
}

/* One premium container card */
.pd-shell {
  background: rgba(232, 238, 247, 0.06);
  border: 1px solid rgba(232, 238, 247, 0.12);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* Two column layout */
.pd-shell-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .pd-shell-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }
}

/* Left: Copy */
.pd-shell-copy {
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

@media (min-width: 1024px) {
  .pd-shell-copy {
    padding: 34px;
  }
}

/* Right: Media */
.pd-shell-media {
  padding: 18px;
  border-top: 1px solid rgba(232, 238, 247, 0.12);
}

@media (min-width: 1024px) {
  .pd-shell-media {
    padding: 22px;
    border-top: 0;
    border-left: 1px solid rgba(232, 238, 247, 0.12);
  }
}

/* Typography inside */
.pd-card-title {
  margin: 12px 0 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.pd-card-sub {
  margin: 6px 0 12px;
  font-weight: 800;
  font-size: 13px;
}

.pd-text {
  margin: 0;
  line-height: 1.75;
  font-size: 14px;
}

.pd-text + .pd-text {
  margin-top: 12px;
}

.pd-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.pd-li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pd-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(143, 173, 49, 0.9);
  flex: 0 0 auto;
}

/* Actions pinned nicely */
.pd-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .pd-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* Push note to the bottom for a cleaner card rhythm */
.pd-note {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Video */
.pd-video {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(232, 238, 247, 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  aspect-ratio: 16 / 9;
}

.pd-video-el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Thumbnails: modern overlay caption, consistent height */
.pd-thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .pd-thumbs {
    gap: 16px;
  }
}

.pd-thumb {
  position: relative;
  border: 1px solid rgba(232, 238, 247, 0.12);
  background: rgba(232, 238, 247, 0.05);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.pd-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.pd-thumb img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}

@media (min-width: 768px) {
  .pd-thumb img {
    height: 150px;
  }
}

/* Caption as overlay (no extra height, looks premium) */
.pd-thumb-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(232, 238, 247, 0.96);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.pd-media-note {
  margin: 12px 2px 0;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Project Details Lightbox */
.pd-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.pd-lightbox.is-open {
  display: block;
}

.pd-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.pd-lightbox-panel {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
}

@media (min-width: 768px) {
  .pd-lightbox-panel {
    inset: 40px;
  }
}

.pd-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(232, 238, 247, 0.16);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.25);
}

.pd-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(232, 238, 247, 0.16);
  background: rgba(232, 238, 247, 0.08);
  color: rgba(232, 238, 247, 0.95);
  display: grid;
  place-items: center;
  cursor: pointer;
}
