/*!
 * it-inpage-tpl-v1.css (8 Oct 2026)
 * Pairs with it-inpage-tpl-v1.js. Card grid (reuses the established 30-strip gallery card
 * pattern) plus the full-screen in-page overlay that opens a design without ever navigating
 * the browser away from the gallery page it was clicked from.
 */
html.ipt-open,html.ipt-open body{overflow:hidden!important}

.ipt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px}
.ipt-card{display:flex;flex-direction:column;gap:8px;text-align:left;background:none;border:1px solid transparent;
  border-radius:10px;padding:8px;cursor:pointer;font:inherit;color:inherit;transition:border-color .15s,box-shadow .15s}
.ipt-card:hover{border-color:#E3E0D8;box-shadow:0 8px 20px -12px rgba(23,23,23,.18)}
.ipt-card:focus-visible{outline:3px solid #F26207;outline-offset:2px}
.ipt-mini{position:relative;display:block;width:100%;aspect-ratio:17/22;overflow:hidden;border-radius:6px;
  background:#F4F1EA;box-shadow:0 1px 2px rgba(11,20,25,.08),0 10px 22px -14px rgba(11,20,25,.22)}
/* A real screenshot of the real page - no transform-scaled DOM replica, so none of the sizing
   hacks that used to live here (container-type collapse, a reused wrapper's positioning rule
   scoped to the wrong container id, a selector convention mismatch) can happen again by
   construction. Just a plain image filling its own fixed-aspect-ratio card. */
.ipt-mini img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center}
.ipt-name{font-size:13px;font-weight:600;color:#171717;padding:0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:480px){.ipt-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}}

/* ---- the in-page editor overlay --------------------------------------------------------- */
.ipt-overlay{position:fixed;inset:0;z-index:99999;background:#17171A;display:flex;flex-direction:column}
.ipt-overlay[hidden]{display:none!important}
.ipt-bar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 14px;background:#121214;border-bottom:1px solid #2A2A30;color:#F4F1EA}
.ipt-bar-label{font-size:14px;font-weight:650;letter-spacing:.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ipt-close{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;background:#232327;color:#F4F1EA;
  border:1px solid #3A3A42;border-radius:9px;padding:8px 14px;font-size:14px;font-weight:650;cursor:pointer}
.ipt-close:hover{background:#2C2C32}
.ipt-close:focus-visible{outline:2px solid #F26207;outline-offset:2px}
.ipt-frame-wrap{flex:1 1 auto;min-height:0;background:#F4F1EA}
.ipt-frame{display:block;width:100%;height:100%;border:0}
@media (prefers-reduced-motion:no-preference){.ipt-overlay{animation:iptFade .15s ease-out}}
@keyframes iptFade{from{opacity:0}to{opacity:1}}

@media(max-width:339px){.ipt-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
