/* Elixar Portfolio — archive rows + modal (original aesthetic) */
.plx-wrap {
  --plx-bg: #F4F3F0;
  --plx-ink: #111;
  --plx-accent: #FF4500;
  --plx-muted: rgba(17,17,17,.55);
  font-family: 'Space Mono', ui-monospace, monospace;
  color: var(--plx-ink);
  background: var(--plx-bg);
  border: 1px solid var(--plx-ink);
}

.plx-empty {
  font-family: 'Space Mono', monospace;
  padding: 2rem;
  text-align: center;
  opacity: .6;
  border: 1px dashed rgba(17,17,17,.3);
}

/* Filters */
.plx-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--plx-ink);
  background: rgba(255,255,255,.35);
}
.plx-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.plx-filter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .55;
  margin-right: 4px;
  min-width: 7rem;
}
.plx-filter-btn {
  appearance: none;
  border: 1px solid rgba(17,17,17,.25);
  background: transparent;
  color: var(--plx-ink);
  font-family: inherit;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 10px;
  cursor: pointer;
  transition: .15s ease;
}
.plx-filter-btn:hover { border-color: var(--plx-ink); }
.plx-filter-btn.is-active {
  background: var(--plx-ink);
  border-color: var(--plx-ink);
  color: var(--plx-bg);
}
.plx-filter-count {
  padding: 8px 20px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .5;
  border-bottom: 1px solid rgba(17,17,17,.15);
}

/* Column headers */
.plx-cols {
  display: none;
  grid-template-columns: 1.1fr 1.4fr 1.4fr 1fr;
  gap: 12px;
  padding: 10px 20px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .45;
  border-bottom: 1px solid rgba(17,17,17,.2);
}
.plx-cols-right { text-align: right; }
@media (min-width: 900px) {
  .plx-cols { display: grid; }
}

/* Rows */
.plx-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(17,17,17,.18);
  cursor: pointer;
  transition: background .15s ease;
}
.plx-row:hover,
.plx-row:focus-visible {
  background: rgba(255,69,0,.06);
  outline: none;
}
.plx-row.is-hidden { display: none; }
@media (min-width: 900px) {
  .plx-row {
    grid-template-columns: 1.1fr 1.4fr 1.4fr 1fr;
    align-items: center;
  }
}

.plx-cell-id { display: flex; flex-direction: column; gap: 4px; }
.plx-id {
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--plx-accent);
}
.plx-meta {
  font-size: 11px;
  opacity: .55;
  text-transform: uppercase;
}

.plx-cell-title h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  margin: 0 0 6px;
  font-weight: 600;
}
.plx-cell-title p {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .55;
}

.plx-cell-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.plx-specs-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .45;
}

.plx-cell-img { display: flex; justify-content: flex-start; }
@media (min-width: 900px) {
  .plx-cell-img { justify-content: flex-end; }
}
.plx-img {
  width: 100%;
  max-width: 220px;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--plx-ink);
  filter: grayscale(100%);
  transition: filter .2s ease, transform .2s ease;
  background: rgba(17,17,17,.04);
}
.plx-row:hover .plx-img {
  filter: grayscale(0);
  transform: translateY(-2px);
}
.plx-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: .08em;
  opacity: .4;
}

/* Modal */
.plx-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}
.plx-modal.is-open { display: flex; align-items: stretch; justify-content: center; }
.plx-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,.55);
}
.plx-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 100vh;
  margin: 0 auto;
  background: #F4F3F0;
  border: 1px solid #111;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 900px) {
  .plx-modal-panel {
    margin: 3vh auto;
    max-height: 94vh;
  }
}

.plx-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #111;
  background: rgba(255,255,255,.5);
}
.plx-sys {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .7;
}
.plx-sys .qid { color: #FF4500; font-weight: 700; }
.plx-blink { animation: plxBlink 1s steps(1) infinite; }
@keyframes plxBlink { 50% { opacity: .2; } }

.plx-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  color: #111;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.plx-close:hover { color: #FF4500; border-color: #111; }

.plx-modal-body {
  flex-grow: 1;
  overflow-y: auto;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(17,17,17,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,.05) 1px, transparent 1px);
}
.plx-modal-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .plx-modal-grid { grid-template-columns: 1fr 1fr; }
  .plx-media { border-right: 1px solid #111; border-bottom: 0; }
}

.plx-media {
  border-bottom: 1px solid #111;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40vh;
}
.plx-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border: 1px solid #111;
  background: rgba(17,17,17,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.plx-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: none;
}
.plx-stage.has-img img { display: block; }
.plx-stage.has-img .plx-stage-label { display: none; }
.plx-stage-label {
  font-size: 12px;
  text-transform: uppercase;
  opacity: .4;
}
.plx-mark { position: absolute; width: 32px; height: 32px; }
.plx-mark-tl { top: 16px; left: 16px; border-top: 1px solid #111; border-left: 1px solid #111; }
.plx-mark-br { bottom: 16px; right: 16px; border-bottom: 1px solid #111; border-right: 1px solid #111; }

.plx-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.plx-thumbs:empty { display: none; }
.plx-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border: 1px solid #111;
  cursor: pointer;
  filter: grayscale(100%);
  opacity: .6;
  transition: all .2s;
}
.plx-thumb:hover { opacity: 1; }
.plx-thumb.is-active {
  border-color: #FF4500;
  filter: grayscale(0);
  opacity: 1;
}
.plx-file-note {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(17,17,17,.4);
  margin-top: 16px;
  text-align: right;
}

.plx-data {
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: rgba(244,243,240,.8);
}
.plx-data-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1;
  margin: 0 0 16px;
}
.plx-data-client {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .7;
  margin: 0 0 36px;
}
.plx-data-client b { color: #111; }
.plx-specs {
  font-size: 14px;
  border-top: 1px solid #111;
  padding-top: 28px;
  margin-bottom: 28px;
  flex-grow: 1;
}
.plx-spec-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(17,17,17,.2);
}
@media (min-width: 640px) {
  .plx-spec-row { grid-template-columns: 120px 1fr; gap: 16px; }
}
.plx-spec-label {
  opacity: .5;
  text-transform: uppercase;
  font-size: 12px;
}
.plx-spec-bold { font-weight: 700; }
.plx-spec-opt { color: #FF4500; }
.plx-desc-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
  opacity: .5;
  display: block;
  margin-bottom: 16px;
}
.plx-desc {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: .9;
  margin: 0;
  white-space: pre-wrap;
}
.plx-cta {
  display: block;
  width: 100%;
  background: #111;
  color: #F4F3F0;
  padding: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
  border: 1px solid #111;
  margin-top: 32px;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
  box-sizing: border-box;
}
.plx-cta:hover { background: #FF4500; color: #111; }

@media (max-width: 768px) {
  .plx-media, .plx-data { padding: 20px; }
  .plx-modal-top { padding: 12px 16px; }
  .plx-sys { font-size: 9px; }
}

body.plx-lock { overflow: hidden; }
