.sjg-gallery { --gap: 12px; }
.sjg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--gap); }
.sjg-item { position: relative; overflow: hidden; }
.sjg-item img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.sjg-item::after { content: ""; position: absolute; inset: 0; background: transparent; pointer-events: none; }
.sjg-item.sjg-blur img { filter: blur(6px); }
.sjg-locked-cta { margin-bottom: 1rem; padding: .75rem 1rem; background: #111; color: #fff; border-radius: 6px; }
.sjg-access { list-style: disc; padding-left: 18px; }

/* Lightbox with right-side meta */
.sjg-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 9999; }
.sjg-lightbox.open { display: flex; }
.sjg-lb-inner { width: min(1200px, 96vw); max-height: 96vh; display: grid; grid-template-rows: auto 1fr; row-gap: 10px; }
.sjg-lb-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sjg-lb-title { color: #fff; font: 600 18px/1.3 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin: 0; }
.sjg-close { color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
.sjg-lb-body { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 16px; align-items: start; }
.sjg-lb-media { display: flex; align-items: center; justify-content: center; }
.sjg-lightbox img { max-width: 100%; max-height: 84vh; box-shadow: 0 10px 30px rgba(0,0,0,.6); background: #111; }
.sjg-lb-meta { color: #e9e9e9; font: 400 14px/1.55 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; overflow: auto; max-height: 84vh; }
.sjg-lb-desc { white-space: pre-wrap; margin-bottom: .75rem; }

/* Tags under description */
.sjg-lb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: .25rem 0 1rem; }
.sjg-lb-tags a { color: #111; background: #fff; border-radius: 999px; padding: 4px 10px; text-decoration: none; font-size: 12px; }
.sjg-lb-tags a:hover { filter: brightness(0.9); }

/* Comments to the right of the picture */
.sjg-comments { border-top: 1px solid rgba(255,255,255,.15); padding-top: .75rem; margin-top: .75rem; }
.sjg-comments h4 { margin: 0 0 .5rem; color: #fff; font: 600 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.sjg-comment-list { display: grid; gap: 8px; margin: 0 0 .75rem; padding: 0; list-style: none; }
.sjg-comment { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 8px; border-radius: 6px; color: #ddd; }
.sjg-comment small { color: #aaa; display: block; margin-top: 4px; }
.sjg-cform label { display: block; margin: 6px 0 2px; color: #ddd; font-size: 12px; }
.sjg-cform input, .sjg-cform textarea { width: 100%; background: #0f0f0f; color: #fff; border: 1px solid #333; border-radius: 6px; padding: 8px; font: inherit; }
.sjg-cform textarea { min-height: 80px; }
.sjg-cform button { margin-top: 8px; padding: 8px 12px; border-radius: 6px; border: 1px solid #444; background: #fff; color: #111; cursor: pointer; }
.sjg-cform .sjg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Stack on small screens */
@media (max-width: 800px) {
  .sjg-lb-body { grid-template-columns: 1fr; }
  .sjg-lb-meta { max-height: 40vh; }
  .sjg-cform .sjg-row { grid-template-columns: 1fr; }
}
