/* Portfolio, ported from the dportal WordPress plugin (sanity-portfolio.css):
   purple filter chips, 3-column cards, side-by-side project detail.
   Scoped to .dp-works; shares the .dp-about base (fonts, colours). */
.dp-works {
  --pc: #a259ff;                     /* the WP theme's portfolio section colour */
  --wp-card: rgba(15, 17, 26, 0.88);
  --wp-text-light: #c8c8cc;
  --wp-muted: #6b7a99;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
}
.dp-works .dp-portfolio { padding: 0 0 4px; }
.dp-works .dp-loading, .dp-works .dp-empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--wp-muted); font-size: 14px; }

/* filter bar */
.dp-works .dp-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.dp-works .dp-filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 13px; font-family: inherit;
  color: #bfbfc4;                      /* inactive chips: a touch brighter than body text so they read on the dark card */
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.dp-works .dp-filter-btn:hover { background: rgba(162, 89, 255, 0.12); border-color: rgba(162, 89, 255, 0.4); color: var(--wp-text-light); }
.dp-works .dp-filter-btn.dp-active { background: var(--pc); border-color: var(--pc); color: #fff; }

/* grid + cards */
.dp-works .dp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .dp-works .dp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .dp-works .dp-grid { grid-template-columns: 1fr; } }
.dp-works .dp-card {
  border-radius: 10px; overflow: hidden;
  background: var(--wp-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.dp-works .dp-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55); border-color: rgba(162, 89, 255, 0.3); }
.dp-works .dp-card__image { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.04); aspect-ratio: 383 / 249; }
.dp-works .dp-card__btn { display: block; width: 100%; height: 100%; border: none; padding: 0; cursor: pointer; background: transparent; overflow: hidden; }
.dp-works .dp-card__btn img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
  transition: object-position 6s ease, transform 0.4s ease;
}
.dp-works .dp-card:hover .dp-card__btn img { object-position: bottom center; transform: scale(1.03); }
.dp-works .dp-card__placeholder { width: 100%; height: 100%; background: rgba(255, 255, 255, 0.04); }
.dp-works .dp-card__arrow {
  position: absolute; bottom: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pc); color: #fff; border: none; cursor: pointer;
  font-size: 18px; line-height: 36px; text-align: center; padding: 0;
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}
.dp-works .dp-card:hover .dp-card__arrow { opacity: 1; transform: scale(1); }
.dp-works .dp-card__content { padding: 14px 16px 18px; }
.dp-works .dp-card__type { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pc); display: block; margin-bottom: 5px; font-weight: 500; }
.dp-works .dp-card__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: #fff; }

/* project detail (replaces the grid inside our modal; same side-by-side layout as the WP modal) */
.dp-works .dp-detail { display: grid; gap: 16px; }
.dp-works .dp-back {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--dp-main);
  border-radius: 6px; padding: 6px 14px 6px 10px; font: inherit; font-size: 13px; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.dp-works .dp-back:hover { background: rgba(162, 89, 255, 0.12); border-color: rgba(162, 89, 255, 0.4); color: var(--wp-text-light); }
.dp-works .dp-modal__content {
  position: relative;
  background: #0d1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}
@media (min-width: 700px) { .dp-works .dp-modal__content { flex-direction: row; } }
.dp-works .dp-modal__media {
  flex: 0 0 55%;
  background: #070d1b;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
}
@media (max-width: 699px) { .dp-works .dp-modal__media { min-height: 220px; } }
.dp-works .dp-modal__media img { width: 100%; height: auto; display: block; }
.dp-works .dp-modal__media a { display: block; width: 100%; cursor: zoom-in; }
.dp-works .dp-modal__video { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.dp-works .dp-modal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dp-works .dp-modal__animation { display: flex; align-items: center; justify-content: center; margin: auto; max-width: 100%; }
.dp-works .dp-modal__animation iframe { width: 100%; height: 100%; border: 0; }
.dp-works .dp-modal__body { flex: 1; padding: 32px 28px 28px; }
.dp-works .dp-modal__title { margin: 0 0 18px; font-size: 20px; font-weight: 600; color: #fff; line-height: 1.3; }
.dp-works .dp-modal__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dp-works .dp-modal__meta-item span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--wp-muted); margin-bottom: 4px; }
.dp-works .dp-modal__meta-item strong { font-size: 14px; font-weight: 600; color: var(--wp-text-light); }
.dp-works .dp-modal__desc h3 { font-size: 11px; font-weight: 700; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pc); }
.dp-works .dp-modal__desc p { font-size: 14px; line-height: 1.7; color: var(--dp-main); margin: 0; }
