/* Templates-first landing: hero search, design gallery, custom-design block. Builds on styles.css tokens. */
.hero2{background:var(--cyan);border-bottom:2px solid var(--navy);padding:64px 0 0;position:relative;z-index:2}
.hero2 .wrap{display:flex;flex-direction:column;gap:22px}
.hero2 h1{margin:0;font-size:clamp(44px,7vw,96px);line-height:.92;letter-spacing:-.055em;font-weight:800;max-width:15ch}
.hero2 h1 em{font-style:normal;color:#fff}
.hero2 .lead{margin:0;font-size:clamp(17px,1.6vw,20px);max-width:58ch;font-weight:500}
.search{max-width:720px}
.search .go{white-space:nowrap}
.filters{display:flex;flex-wrap:wrap;gap:10px}
.filters button{border:2px solid var(--navy);background:#fff;color:var(--navy);border-radius:999px;padding:8px 16px;font:inherit;font-weight:700;font-size:14px;cursor:pointer;transition:background .15s,color .15s}
.filters button:hover{background:var(--ice-2)}
.filters button.on{background:var(--navy);color:#fff}
.filters button small{font-weight:600;opacity:.6;margin-left:4px}
.filters button:focus-visible,.card:focus-visible,.card .btns a:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.filters a.chip-link{display:inline-flex;align-items:center;gap:5px;border:1.5px solid rgba(11,27,46,.22);background:#fff;color:var(--navy);border-radius:999px;padding:5px 12px;font-weight:600;font-size:13px;line-height:1.3;text-decoration:none;transition:background .15s,color .15s,border-color .15s}
.filters a.chip-link:hover{border-color:var(--navy);background:var(--ice-2)}
.filters a.chip-link.on{background:var(--navy);border-color:var(--navy);color:#fff}
.filters a.chip-link small{font-weight:500;font-size:11.5px;opacity:.55}
.filters a.chip-link:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.filters.niche-filters{margin-bottom:22px}
.filters a.chip-link.niche{background:var(--ice-2);border-color:transparent}
.filters a.chip-link.niche:hover{background:#fff;border-color:var(--navy)}
.related{margin-top:40px;display:flex;flex-direction:column;gap:10px}
.related .filters{margin-bottom:0}
.peek{margin-top:28px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px;transform:translateY(40px)}

.card{background:#fff;border:2px solid var(--navy);border-radius:16px;overflow:hidden;box-shadow:6px 6px 0 var(--navy);display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.card:hover{transform:translate(-3px,-3px);box-shadow:9px 9px 0 var(--navy)}
.card .shot{display:block;aspect-ratio:4/4.2;overflow:hidden;border-bottom:2px solid var(--navy);background:var(--ice-2)}
.card .shot img{display:block;width:100%;height:auto;transition:transform 3s ease}
.card:hover .shot img{transform:translateY(calc(-100% + 300px))}
.card .meta{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:12px 14px 14px}
.card .meta b{font-size:15px;display:block}
.card .meta small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.card .btns{display:flex;gap:6px}
.card .btns a{flex:1;text-align:center;font-size:12.5px;font-weight:800;border:2px solid var(--navy);border-radius:10px;padding:7px 10px;white-space:nowrap;color:var(--navy);text-decoration:none}
.card .btns a.use{background:var(--cyan)}
.card .btns a.pv{background:#fff}

.gallery{padding:110px 0 40px}
.gallery .top{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px;flex-wrap:wrap}
.gallery .filters{margin-bottom:26px}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.grid .card[hidden]{display:none}
.empty{border:2px dashed var(--navy);border-radius:16px;padding:28px;text-align:center;font-weight:600}
.empty a{color:var(--cyan-text)}
.count{color:var(--muted);font-weight:600;font-size:14px}

/* Full gallery page: hero head, browse-all link and pagination. */
.hero2.gallery-head{padding-bottom:48px}
.pager{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:38px}
.pager .pg{min-width:44px;justify-content:center;display:inline-flex;align-items:center;border:2px solid var(--navy);background:#fff;color:var(--navy);border-radius:10px;padding:8px 14px;font-weight:800;font-size:14px;text-decoration:none}
.pager .pg:hover{background:var(--ice-2)}
.pager .pg.on{background:var(--navy);color:#fff}
.pager .pg:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.pager .pg.ellipsis{border:0;background:transparent;min-width:auto;padding-inline:2px}
.browse-all{margin-top:34px;display:flex;justify-content:center}
.browse-all .btn{font-size:16px}

.custom{margin:44px 0 10px;background:var(--navy);color:#fff;border-radius:22px;border:2px solid var(--navy);box-shadow:8px 8px 0 var(--cyan);padding:40px;display:grid;grid-template-columns:1.3fr 1fr;gap:30px;align-items:center}
.custom h2{color:#fff;margin:0}
.custom p{color:#B9C8DA;font-size:17px;margin:12px 0 0}
.custom .tag{display:inline-block;background:var(--cyan);color:var(--navy);font-weight:800;font-size:12px;letter-spacing:.06em;border-radius:999px;padding:6px 12px;margin-bottom:14px}
.custom .prompt{box-shadow:6px 6px 0 var(--cyan);border-color:var(--cyan)}
.custom>*{min-width:0}
.custom .prompt input{min-width:0}
.custom ul{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:8px;color:#DDF4FF;font-weight:600}

@media(max-width:1100px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.peek,.grid{grid-template-columns:repeat(2,1fr)}.custom{grid-template-columns:minmax(0,1fr);padding:26px}.peek{transform:translateY(30px)}}
@media(max-width:560px){.peek .card:nth-child(n+3){display:none}.hero2{padding-top:40px}.grid{grid-template-columns:1fr}.card .shot{aspect-ratio:4/3.4}.card .btns a{padding:10px}.filters{flex-wrap:nowrap;overflow-x:auto;margin-left:-16px;margin-right:-16px;padding:2px 16px 8px;scrollbar-width:none}.filters button,.filters a.chip-link{flex-shrink:0}.gallery{padding-top:80px}}
@media(prefers-reduced-motion:reduce){.card,.card .shot img{transition:none}.card:hover .shot img{transform:none}}

/* Compact gallery header + toolbar (owner 2026-10-05: less clutter, designs closer to the fold) */
.filters{gap:8px}
.gallery{padding:56px 0 40px}
.hero2.gallery-head.compact{padding:40px 0 30px}
.hero2.gallery-head.compact .stamp{display:none}
.hero2.gallery-head.compact h1{font-size:clamp(34px,4.6vw,56px);max-width:none}
.hero2.gallery-head.compact .lead{font-size:16px}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;flex-wrap:wrap}
.toolbar-title{margin:0;font-size:20px;letter-spacing:-.02em}
.crumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;font-weight:600;color:var(--muted)}
.crumbs a{color:var(--navy);text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.crumbs [aria-current]{color:var(--navy);font-weight:800}
.more-niches{display:contents}
.more-niches summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;border:1.5px dashed rgba(11,27,46,.3);border-radius:999px;padding:5px 12px;font-size:13px;font-weight:700;color:var(--navy)}
.more-niches summary::-webkit-details-marker{display:none}
.more-niches[open] summary{background:var(--navy);color:#fff;border-style:solid}
.more-niches > .filters{width:100%;margin-top:8px}
@media(max-width:560px){.gallery{padding-top:40px}.hero2.gallery-head.compact{padding:28px 0 22px}}
