/* === /wp-content/themes/your-child-theme/space-single.css === */

.entry-title {color:#222222 !important;}

/* HERO (real image is set inline via background-image) */
.space-hero__frame {
  position: relative;
  width: 100%;
  /* Ensure it always has height, even if aspect-ratio hiccups */
  min-height: clamp(200px, 42vh, 520px);
  /* You already have a max-height; keep it */
  max-height: clamp(220px, 60vh, 680px);
  margin: 0 0 14px 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;

  background-color: #0b0d10;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: all 0.3s ease-out;
}

.space-hero__frame:hover {
filter: brightness(1.3);
}

/* Deterrent overlay (PNG/GIF the user right-clicks by mistake) */
.space-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* clicks go to frame to open modal */
  -webkit-user-drag: none;
  transition: all 0.5s ease-out;
}

.space-hero__frame:hover .space-hero__overlay  {
transform:scale(1.1);
}

/* Small hint tag */
.space-hero__hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: .2px;
}

/* Placeholder if no image */
.space-hero__placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  border-radius: 16px;
  background: #f3f4f6;
  color: #6b7280;
}

/* Short description under hero */
.space-excerpt {
  margin: 18px 0 10px;
  font-size: 15px;
}

/* Taxonomies (label + chips) */
.space-tax-wrap {
  margin: 10px 0 10px 0;
  display: grid;
  gap: 3px;
}

.space-tax-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: baseline;
  gap: 3px;
	border-bottom: 1px solid #CCCCCC;
}

.space-tax-label {
  font-weight: 600;
  color: #374151;
}

.space-tax-chips {
  list-style: none;
  padding: 5px !important;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* Remove any theme bullets */

.space-tax-chips ul { padding: 5px 0 5px 1em !important;}
.space-tax-chips li { list-style: none; }
.space-tax-chips li::before { content: none !important; }

.space-tax-chips li a {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 999px;
  background: #eef2f7;
  color: #0f172a;
  font-size: 12px;
  text-decoration: none;
}
.space-tax-chips li a:hover { background: #e2e8f0; }

/* MODAL overlay */
.space-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;              /* toggled by .is-open */
  z-index: 99999;
}
.space-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 28px);
}

/* Dialog */
.space-modal__dialog {
  width: min(920px, 92vw);
  max-height: 92vh;           /* avoid clipping */
  overflow: auto;             /* scroll inside if tall */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  padding: clamp(16px, 3vw, 24px);
  position: relative;
}

.space-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

/* Dialog content */
.space-modal__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 280px 1fr;
}
@media (max-width: 700px) {
  .space-modal__grid { grid-template-columns: 1fr; }
}

.space-modal__thumb img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.space-modal__title { margin: 4px 0 8px; }
.space-modal__license { font-size: 14px; color: #374151; }

/* Modal form (logged-in view) */
.space-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
}

.space-check input[type="checkbox"] {
  flex: 0 0 10px; transform: scale(1.37);
}

.space-check label {
  flex: 1;         /* take remaining space */
}
.space-dlbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 30px;
  border: 0;
  cursor: pointer;
  background: #005bed;
  color: #fff;
  font-weight: 600;
}
.space-dlbtn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* Not-logged-in notice */
.space-modal__notice {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  color: #111827;
}
.space-modal__muted {
  color: #6b7280;
  font-size: 12px;
  margin-top: 8px;
}

/* Auth buttons row */
.space-auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.space-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
}
.space-btn--primary {
  background: #005bed;
  color: #fff;
}
.space-btn--primary:hover { filter: brightness(0.95); }
.space-btn--ghost {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #111827;
}
.space-btn--ghost:hover { background: #f3f4f6; }

/* Optional spec list (only if you add it later) */
.space-specs {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.space-specs li strong { margin-right: 6px; }
.space-dlbtn .icon {font-size:20px !important; transform:scaleX(1.7); }
