.gif-rights{margin:1rem 0;padding:1rem;border:1px solid var(--border-color,#ded6cf);border-radius:.7rem;background:var(--surface,#faf7f3);font-size:.9rem;line-height:1.5;overflow-wrap:anywhere}
.gif-rights p{margin:.35rem 0}.gif-rights summary{cursor:pointer;font-weight:600}.gif-rights details{margin-top:.75rem}.gif-rights h2{font-size:1.1rem}
.gif-gallery-picker{padding:1rem;border:1px solid #ded6cf;border-radius:.7rem;margin-bottom:1.5rem;max-width:100%}
.gif-gallery-options{list-style:none;padding:0;margin:.5rem 0;max-height:22rem;overflow:auto;border:1px solid #cfc4b9;border-radius:.5rem}
.gif-gallery-options[hidden]{display:none}.gif-gallery-options li{display:flex;gap:.7rem;align-items:center;padding:.65rem;cursor:pointer;min-height:3.2rem;overflow-wrap:anywhere}
.gif-gallery-options li:hover,.gif-gallery-options li[aria-selected=true]{background:#eee5da;outline:2px solid #713b34;outline-offset:-2px}
.gif-gallery-options img,.gif-gallery-selection img{object-fit:contain;max-height:4rem;flex-shrink:0}.gif-gallery-selection{display:flex;align-items:center;gap:.75rem;margin:.75rem 0}
.gif-marking-previews{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem}.gif-marking-previews figure{margin:0}.gif-marking-previews img{width:100%;height:auto;max-height:32rem;object-fit:contain}.gif-marking-previews figcaption{font-weight:600;padding:.5rem 0}
.srab-card>.gif-rights,.home-meme-card>.gif-rights{margin:.6rem;padding:.65rem;font-size:.8rem}.gif-marking-options{display:flex;flex-wrap:wrap;gap:1rem}

/* GIF detail reuses the gallery's visual/content columns and mobile stacking. */
.gif-detail-layout .srab-detail-image{position:relative;min-width:0}
.gif-detail-layout .srab-detail-lightbox-trigger{display:flex;justify-content:center;align-items:center;max-width:100%}
.gif-detail-layout .srab-detail-image img{width:auto;height:auto;max-width:100%;max-height:var(--detail-image-max-height,72vh);max-height:var(--detail-image-max-height,72svh);object-fit:contain}
