#theme .memoryz-theme-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; text-align:left; }
#theme .memoryz-theme-grid::before, #theme .memoryz-theme-grid::after { display:none !important; content:none !important; }
#theme .memoryz-theme-grid label.memoryz-theme-choice { display:block; width:auto; margin:0; padding:0; position:relative; overflow:hidden; border:2px solid #e5e1db; border-radius:9px; background:#fff; cursor:pointer; transition:border-color .18s,box-shadow .18s; }
#theme .memoryz-theme-choice:hover { border-color:#cbb99e; box-shadow:0 5px 16px #25201912; }
#theme .memoryz-theme-choice.is-selected { border-color:#ff8c00 !important; box-shadow:0 0 0 2px #ff8c0024; }
#theme .memoryz-theme-choice:focus-within { outline:2px solid #ff8c00; outline-offset:3px; }
#theme .memoryz-theme-choice > img, #theme .memoryz-theme-choice > picture, #theme .memoryz-theme-choice picture img, #theme .memoryz-theme-choice video { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border:0 !important; border-radius:0 !important; padding:0 !important; }
#theme .memoryz-theme-choice.memoryz-theme-video > img, #theme .memoryz-theme-choice.memoryz-theme-video > picture { display:none; }
#theme .memoryz-theme-caption { display:block; padding:12px 34px 12px 12px; font-size:15px; font-weight:600; line-height:1.4; color:#30363b; }
#theme .memoryz-theme-caption small { display:block; margin-top:3px; color:#71767b; font-size:12px; font-weight:400; }
#theme .memoryz-theme-choice input.memoryz-theme-radio { display:block !important; position:absolute; bottom:17px; right:12px; width:17px; height:17px; margin:0; opacity:1; appearance:auto; accent-color:#ff8c00; }
#theme .memoryz-theme-badge { position:absolute; top:9px; left:9px; border-radius:4px; padding:4px 7px; background:#ffffffdf; color:#444; font-size:10px; font-weight:700; letter-spacing:.08em; }
#theme .memoryz-theme-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:15px 0 20px; color:#697077; font-size:13px; }
#theme .memoryz-theme-toolbar button { border:1px solid #ddd; border-radius:5px; padding:7px 12px; background:#fff; color:#444; font-size:13px; line-height:1.4; cursor:pointer; }
@media(max-width:1100px) { #theme .memoryz-theme-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) { #theme .memoryz-theme-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } #theme .memoryz-theme-toolbar { align-items:flex-start; flex-direction:column; } }
@media(max-width:420px) { #theme .memoryz-theme-grid { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { #theme .memoryz-theme-choice { transition:none; } }
