/* Template previews v8: three devices shown together, image itself is the link */
#templates .dr-real-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;width:100%}
#templates .dr-template-card{min-width:0;overflow:hidden;background:#20174e;border:1px solid rgba(190,160,255,.26);border-radius:20px;display:flex;flex-direction:column}
#templates .dr-preview-link{display:block;text-decoration:none;outline-offset:4px}
#templates .dr-preview-link:focus-visible{outline:3px solid #b99aff}
#templates .dr-preview-stage{position:relative;height:250px;overflow:hidden;background:radial-gradient(ellipse at 55% 0%,#513997 0%,#25174e 57%,#130e35 100%);isolation:isolate}
#templates .dr-device{position:absolute;overflow:hidden;background:#fff;border:solid #cbb9fb;box-shadow:0 12px 22px rgba(4,2,18,.5);transition:transform .2s ease}
#templates .dr-device img{display:block;width:100%;height:calc(100% - 12px);object-fit:cover;object-position:top left}
#templates .dr-device-bar{height:12px;background:#e9e2fc;display:flex;gap:3px;align-items:center;padding:0 6px}
#templates .dr-device-bar i{width:3px;height:3px;border-radius:50%;background:#ad91ee}
#templates .dr-desktop{width:79%;height:63%;left:6%;top:12%;border-width:4px;border-radius:9px;z-index:1}
#templates .dr-tablet{width:44%;height:55%;right:3%;bottom:9%;border-width:5px;border-radius:12px;z-index:2}
#templates .dr-tablet img{object-position:58% top}
#templates .dr-mobile{width:22%;height:47%;left:15%;bottom:4%;border-width:5px;border-radius:13px;z-index:3}
#templates .dr-mobile img{object-position:65% top}
#templates .dr-preview-link:hover .dr-device,#templates .dr-preview-link:focus-visible .dr-device{transform:translateY(-4px)}
#templates .dr-template-card .template-info{padding:17px 18px 20px;display:flex;flex-direction:column;gap:5px}
#templates .dr-template-card .template-info strong{font-size:18px;color:#fff}
#templates .dr-template-card .template-info span{font-size:16px;color:#c5b8e9}
#templates .dr-template-all{text-align:center;margin-top:27px}
#templates .dr-template-all a{display:inline-block;color:#cbb4ff;text-decoration:underline;text-underline-offset:5px;font-size:16px;font-weight:700;padding:8px}
#templates .dr-template-all a:hover,#templates .dr-template-all a:focus-visible{color:#fff}
@media(max-width:900px){#templates .dr-real-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#templates .dr-real-template-grid{grid-template-columns:1fr}#templates .dr-preview-stage{height:270px}}

/* v9: one professionally rendered device mockup per template */
#templates .dr-preview-stage{height:auto;aspect-ratio:16/9;background:#eeeafc;overflow:hidden}
#templates .dr-mockup-image{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
#templates .dr-preview-link:hover .dr-mockup-image{transform:scale(1.035)}
#templates .dr-preview-link:focus-visible{outline:3px solid #cbb4ff}
