.template-gallery-hero { margin-bottom: 24px; }
.template-gallery-hero-art { display: flex; align-items: center; justify-content: center; flex-direction: column; min-width: 0; min-height: 0; margin: 0; }
.template-gallery-hero-art .feature-product-monitor-frame { width: 100%; padding: 8px; border-radius: 14px; }
.template-gallery-hero-art .feature-product-monitor-screen { aspect-ratio: 2.2 / 1; }
.template-gallery-hero-art .feature-product-monitor-neck { height: 24px; }
.template-gallery-hero-art .feature-product-monitor-base { height: 10px; }
.template-gallery-hero-art .official-art-badge { z-index: 1; inset-inline-end: 0; inset-block-end: 0; }
.template-gallery-section { margin-top: 40px; }
.template-gallery-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 34px; }
.template-gallery-guide article { display: flex; align-items: flex-start; gap: 13px; min-width: 0; padding: 18px; border: 1px solid #e5ebef; border-radius: 16px; background: linear-gradient(145deg, #fff, #f8fbfa); }
.template-gallery-guide article > span { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; color: #167c74; background: #eaf6f3; font-size: 1.15rem; }
.template-gallery-guide h2 { margin: 0 0 5px; color: #102a3b; font-size: .95rem; font-weight: 850; }
.template-gallery-guide p { margin: 0; color: #647583; font-size: .82rem; line-height: 1.9; }
.template-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.template-gallery-card { min-width: 0; overflow: hidden; border: 1px solid #e5ebef; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(14,39,56,.06); }
.template-gallery-preview { position: relative; display: block; width: 100%; height: 330px; padding: 0; overflow: hidden; border: 0; background: #e9edf0; cursor: pointer; }
.template-gallery-preview iframe { position: absolute; top: 0; left: 50%; width: 794px; height: 1123px; border: 0; background: #fff; pointer-events: none; transform: translateX(-50%) scale(.3); transform-origin: top center; }
.template-gallery-card-body { padding: 18px; }
.template-gallery-category { color: #647583; font-size: .75rem; }
.template-gallery-card h3 { margin: 8px 0; color: #102a3b; font-size: 1.05rem; }
.template-gallery-card p { min-height: 60px; color: #647583; font-size: .83rem; line-height: 1.9; }
.template-gallery-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.template-gallery-tags span { padding: 4px 9px; border-radius: 99px; color: #42606d; background: #f0f5f6; font-size: .7rem; }
.template-gallery-open-link { padding: 0; border: 0; color: #1a827b; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.template-gallery-modal { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 0; background: rgba(10,25,36,.78); }
.template-gallery-modal.is-open { display: flex; }
.template-gallery-modal-dialog { display: flex; width: 100%; height: 100vh; height: 100dvh; max-height: none; flex-direction: column; overflow: hidden; border-radius: 0; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.32); }
.template-gallery-modal-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; color: #fff; background: #102a3b; }
.template-gallery-modal-header h2 { margin: 0; color: #fff; font-size: 1rem; }
.template-gallery-modal-close { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); cursor: pointer; }
.template-gallery-modal-preview { position: relative; width: 100%; min-height: 0; flex: 1 1 auto; overflow: auto; background: #dce3e8; }
.template-gallery-modal-preview::after { display: block; height: var(--template-gallery-scaled-height, 1123px); content: ""; }
.template-gallery-modal-frame { position: absolute; top: 0; left: 50%; width: 794px; height: 1123px; border: 0; background: #fff; transform-origin: top center; }
.template-gallery-modal-dialog > p { flex: 0 0 auto; margin: 0; padding: 10px 20px 14px; color: rgba(255,255,255,.82); background: #102a3b; font-size: .8rem; }
body.template-gallery-modal-open { overflow: hidden; }
@media (max-width: 900px) { .template-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .template-gallery-guide { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .template-gallery-grid { grid-template-columns: 1fr; } .template-gallery-preview { height: 360px; } .template-gallery-zoom { opacity: 1; } }
