/* ============================================================
   WORKS -- styles for the works directory page
   - Collections grid (gallery of work categories)
   - Individual collection detail views
   - Lightbox modal for viewing individual works
   - Responsive grid
   ============================================================ */

.plate-cap .price{
  display:block;
  margin-top:4px;
  font-family:"Space Mono", monospace;
  font-size:11px;
  letter-spacing:.03em;
  color:var(--ink);
  font-weight:500;
}

.catalog-empty{
  padding:80px 0;
  font-family:"Space Mono", monospace;
  font-size:13px;
  color:var(--ink-soft);
  line-height:1.9;
}

/* ============================================================
   Lightbox Modal
   ============================================================ */

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  overflow: auto;
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  background: var(--bg);
  color: var(--ink);
  max-width: 95vw;
  width: 100%;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  z-index: 1001;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.lightbox-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  overflow: auto;
  min-height: 200px;
  width: 100%;
}

#lightbox-image {
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  object-fit: contain;
  display: block;
}

.lightbox-info {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.6);
}

.lightbox-back {
  margin-bottom: 16px;
}

.lightbox-back a {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lightbox-back a:hover {
  color: #fff;
}

.lightbox-info .t {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #fff;
}

.lightbox-info .yr {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  color: #aaa;
  font-weight: 400;
}

.lightbox-info .m {
  font-size: 13px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 12px;
}

.lightbox-info .price {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  margin-top: 8px;
}

/* ============================================================
   Responsive Behavior
   ============================================================ */

@media (max-width: 600px) {
  .lightbox-modal {
    padding: 12px;
  }

  .lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
  }

  .lightbox-image-wrapper {
    min-height: 150px;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
    font-size: 24px;
  }

  .lightbox-info {
    padding: 16px;
  }

  .lightbox-info .t {
    font-size: 14px;
  }

  .lightbox-info .m {
    font-size: 12px;
  }
}

.lightbox-modal:focus-within {
  outline: none;
}

@media (prefers-color-scheme: dark) {
  .lightbox-modal {
    background: rgba(0, 0, 0, 0.95);
  }
}
