/* Minimal shared CSS for lightbox & helpers (most styles are in templates) */
.jocd-login-gate{background:#052e2b;border:1px solid #134e4a;color:#99f6e4;padding:12px 14px;border-radius:12px;margin:16px 0}

/* Added by QAImageEmbed to style question/answer images */
.jocd-qa-embed img{max-width:100%;height:auto;border:1px solid #d9d9d9;border-radius:4px;display:block}
.jocd-qa-embed a{cursor:pointer}


/* === Raja v4e additions === */
.jocd-img-frame{display:inline-block;background:#f5f5f5;border:1px solid #e5e5e5;border-radius:8px;padding:8px;margin:8px 8px 16px 0;line-height:0;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.jocd-img-frame:hover{box-shadow:0 2px 6px rgba(0,0,0,.1)}
.jocd-image-strip{margin-top:10px;display:flex;flex-wrap:wrap;gap:12px}
.jocd-image-strip .jocd-img-frame img{max-width:280px;height:auto}
.jocd-answer-block>.jocd-answer-heading{font-weight:700;margin:16px 0 6px;font-size:1.05em}
.jocd-qa-embed img{cursor:pointer}



/* === Raja v4f refinements === */
.jocd-img-frame{display:inline-block;background:#f8f9fa;border:2px dashed #e2e8f0;border-radius:10px;padding:10px;margin:10px 10px 18px 0;line-height:0;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.jocd-img-frame:hover{box-shadow:0 2px 8px rgba(0,0,0,.12)}
.jocd-image-strip{display:flex;flex-wrap:wrap;gap:12px;width:100%;clear:both;margin-top:10px;margin-bottom:16px}
.jocd-image-strip .jocd-img-frame img{max-width:280px;height:auto}
.jocd-detail + .jocd-detail{margin-top:20px}
.jocd-answer-block>.jocd-answer-heading{font-weight:700;margin:16px 0 8px;font-size:1.05em}
.jocd-qa-embed img, .jocd-img-frame img, .jocd-panel img{cursor:pointer}
.jocd-qa-embed a{display:inline-block;text-decoration:none;border:2px dashed #e2e8f0;border-radius:10px;padding:10px;background:#f8f9fa;margin:10px 10px 18px 0}
.jocd-qa-embed img{display:block;max-width:100%;height:auto}



/* === Raja v4g hardened visuals === */
.jocd-detail{margin-bottom:18px}
.jocd-detail > p:first-child{margin-bottom:8px}
.jocd-detail-text{display:block;width:100%}
.jocd-image-strip{display:block;width:100%;clear:both;margin-top:10px;margin-bottom:16px}
.jocd-img-frame{display:inline-block;background:#f8f9fa;border:2px dashed #e2e8f0;border-radius:12px;padding:10px;margin:10px 12px 18px 0;line-height:0;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.jocd-img-frame:hover{box-shadow:0 2px 8px rgba(0,0,0,.12)}
.jocd-image-strip .jocd-img-frame img{max-width:280px;height:auto}
.jocd-answer-block>.jocd-answer-heading{font-weight:700;margin:16px 0 10px;font-size:1.05em}
/* Make *any* JOCD image obviously clickable */
.jocd-qa-embed img, .jocd-img-frame img, .jocd-panel img, .jocd-figure img{cursor:pointer}
/* Style QA anchors wrapping images */
.jocd-qa-embed a{display:inline-block;text-decoration:none;border:2px dashed #e2e8f0;border-radius:12px;padding:10px;background:#f8f9fa;margin:10px 12px 18px 0}
.jocd-qa-embed img{display:block;max-width:100%;height:auto}
/* Figures also framed visually */
.jocd-figure img{border:2px dashed #e2e8f0;border-radius:12px;background:#f8f9fa;padding:8px}



/* === Raja v4i — compact dashed frame, pointer cursor, and 2-up grids === */
.jocd-image-strip{display:grid !important;grid-template-columns:1fr !important;gap:12px !important;width:100% !important;clear:both !important;margin:12px 0 18px 0 !important}
@media (min-width:640px){
  .jocd-image-strip{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
.jocd-image-strip .jocd-img-frame{margin:0 !important}
.jocd-img-frame{display:block !important;background:#fafafa !important;border:1px dashed #e2e8f0 !important;border-radius:10px !important;padding:4px !important;margin:8px 0 14px 0 !important;line-height:0 !important;box-shadow:none !important;cursor:pointer !important}
.jocd-img-frame img{display:block !important;width:100% !important;height:auto !important;cursor:pointer !important}
/* QA blocks: make them a 2-up grid too */
.jocd-qa-embed{display:grid !important;grid-template-columns:1fr !important;gap:12px !important;margin:12px 0 18px 0 !important}
@media (min-width:640px){
  .jocd-qa-embed{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
.jocd-qa-embed a{margin:0 !important;border:1px dashed #e2e8f0 !important;border-radius:10px !important;padding:4px !important;background:#fafafa !important;cursor:pointer !important}
.jocd-qa-embed img{display:block !important;width:100% !important;height:auto !important;cursor:pointer !important}
/* Ensure next content starts clearly below the images without excessive whitespace */
.jocd-detail{margin-bottom:16px !important}
.jocd-detail > p:first-child{margin-bottom:8px !important}



/* === Raja v4j — visual size tuning === */
.jocd-image-strip,
.jocd-qa-embed{justify-items:start !important;justify-content:start !important}
.jocd-image-strip .jocd-img-frame{max-width:520px !important}
.jocd-qa-embed a{max-width:520px !important}
.jocd-figure img{max-width:520px !important}
/* Keep images clickable with a clear pointer */
.jocd-img-frame, .jocd-img-frame img, .jocd-qa-embed a, .jocd-qa-embed img{cursor:pointer !important}

/* CPD certificate claim button */
.jocd-cpd-claim-btn{
  background-color:#20c0cc !important;
  border-color:#20c0cc !important;
  color:#ffffff !important;
}
.jocd-cpd-claim-btn:hover,
.jocd-cpd-claim-btn:focus{
  background-color:#159099 !important;
  border-color:#159099 !important;
  color:#ffffff !important;
}
.jocd-cpd-claim .jocd-cpd-message{
  margin-top:8px;
  font-size:0.9rem;
  color:#b91c1c;
}

/* CPD certificate preview image block */
.jocd-cpd-image{
  display:flex;
  justify-content:center;
  margin:12px 0 8px;
}
.jocd-cpd-image-frame{
  display:inline-block;
  padding:10px;
  background:#f8fafc;
  border-radius:18px;
  box-shadow:0 14px 30px rgba(15,23,42,0.16);
  transform:rotate(-1.8deg);
  transition:transform 160ms ease-out, box-shadow 160ms ease-out;
}
.jocd-cpd-image-thumb{
  display:block;
  max-width:360px;
  width:100%;
  height:auto;
  border-radius:16px;
  box-shadow:0 0 0 1px rgba(148,163,184,0.4);
  cursor:pointer;
}
.jocd-cpd-image-frame:hover .jocd-cpd-image-thumb{
  cursor:pointer;
}
.jocd-cpd-image-frame:hover{
  transform:rotate(-0.6deg) translateY(-2px);
  box-shadow:0 20px 40px rgba(15,23,42,0.28);
}

/* CPD full-size lightbox */
.jocd-cpd-lightbox{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.88);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:9999999;
}
.jocd-cpd-lightbox.open{
  display:flex;
}
.jocd-cpd-lightbox-inner{
  position:relative;
  max-width:90vw;
  max-height:90vh;
}
.jocd-cpd-lightbox-image{
  display:block;
  max-width:100%;
  max-height:100%;
  border-radius:14px;
  box-shadow:0 24px 50px rgba(0,0,0,0.6);
}
.jocd-cpd-lightbox-close{
  position:absolute;
  top:-14px;
  right:-14px;
  width:32px;
  height:32px;
  border-radius:999px;
  border:none;
  background:#0f172a;
  color:#f9fafb;
  font-size:20px;
  line-height:32px;
  text-align:center;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(15,23,42,0.6);
}
.jocd-cpd-lightbox-close:hover{
  background:#1f2933;
}

/* CPD image refinements: no tilt, slightly larger */
.jocd-cpd-image-frame{
  transform:translateY(0) !important;
}
.jocd-cpd-image-frame:hover{
  transform:translateY(-2px) !important;
}
.jocd-cpd-image-thumb{
  max-width:420px !important;
}
