/* ==========================================================================
   Gallery module — storefront pages
   --------------------------------------------------------------------------
   «Галерея», artwork page, print product page, author's shop, search, and the
   cards the home-page blocks reuse. Every colour, radius and font is a theme
   token; the knobs below are the theme's to set:

     --gh-media-bg      background behind mockups and artworks
     --gh-card-gap      gap of the card grids
     --gh-card-min      narrowest card in the product grid
     --gh-chip-radius   chips and tabs
   ========================================================================== */

:root {
    --gh-media-bg: var(--c-surface-sunk, #f3f3f1);
    --gh-card-gap: clamp(.75rem, 2vw, 1.5rem);
    --gh-card-min: 200px;
    --gh-chip-radius: var(--r-pill, 999px);
    --gh-heading: var(--font-display, inherit);
}

.gh-page { padding-block: clamp(1rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem); }
.gh-page__head { margin-bottom: 1.25rem; }
.gh-h1 { font-family: var(--gh-heading); font-weight: var(--fw-heading, 700); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: var(--lh-tight, 1.1); margin: 0 0 .5rem; color: var(--c-text-strong); }
.gh-h2 { font-family: var(--gh-heading); font-weight: var(--fw-heading, 700); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: var(--lh-tight, 1.15); margin: 0; color: var(--c-text-strong); }
.gh-lead { color: var(--c-text-muted); margin: 0; max-width: 46rem; }
.gh-eyebrow { margin: 0 0 .35rem; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-muted); }
.gh-eyebrow a { color: inherit; }
.gh-prose { line-height: var(--lh-prose, 1.6); }
.gh-empty { padding: 3rem 1rem; text-align: center; color: var(--c-text-muted); }
.gh-center { text-align: center; margin-top: 2rem; }
.gh-link { background: none; border: 0; padding: 0; color: var(--c-link, var(--c-accent)); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9em; margin-left: .5rem; }

.gh-crumbs { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .875rem; color: var(--c-text-muted); margin-bottom: 1rem; }
.gh-crumbs a { color: inherit; text-decoration: none; }
.gh-crumbs a:hover { color: var(--c-text-strong); }
.gh-crumbs > * + *::before { content: '/'; margin-right: .35rem; opacity: .5; }

/* --- tabs, chips, toolbar ----------------------------------------------------- */

.gh-tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--c-border); margin-bottom: 1rem; }
.gh-tabs a { flex: none; padding: .7rem .9rem; color: var(--c-text-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; white-space: nowrap; }
.gh-tabs a:hover { color: var(--c-text-strong); }
.gh-tabs a[aria-current] { color: var(--c-text-strong); border-bottom-color: var(--c-accent); }
.gh-tabs small { color: var(--c-text-faint, var(--c-text-muted)); font-weight: 400; }

.gh-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.gh-toolbar__end { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.gh-chips { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1 1 32rem; }
.gh-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .8rem; border: 1px solid var(--c-border); border-radius: var(--gh-chip-radius); color: var(--c-text); text-decoration: none; font-size: .875rem; line-height: 1.3; background: var(--c-bg); transition: border-color var(--dur, .15s), background var(--dur, .15s); }
.gh-chip:hover { border-color: var(--c-border-strong); }
.gh-chip[aria-current] { background: var(--c-text-strong); border-color: var(--c-text-strong); color: var(--c-bg); }
.gh-chip small { opacity: .6; }
.gh-chip--sm { font-size: .8rem; padding: .2rem .6rem; }
.gh-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0; }

.gh-sort select, .gh-search-inline input, .gh-qty input { font: inherit; font-size: .9rem; padding: .45rem .7rem; border: 1px solid var(--c-border); border-radius: var(--r-sm, 8px); background: var(--c-bg); color: var(--c-text); }
.gh-search-inline input { width: 13rem; }
.gh-search-big { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.gh-search-big input { flex: 1; font: inherit; font-size: 1.15rem; padding: .75rem 1rem; border: 1px solid var(--c-border-strong); border-radius: var(--r-md, 10px); background: var(--c-bg); color: var(--c-text); }

/* --- grids and cards ----------------------------------------------------------- */

.gh-grid { display: grid; gap: var(--gh-card-gap); }
.gh-grid--products { grid-template-columns: repeat(auto-fill, minmax(min(var(--gh-card-min), 46%), 1fr)); }
.gh-grid--works { grid-template-columns: repeat(auto-fill, minmax(min(220px, 46%), 1fr)); align-items: start; }

.gh-pcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card-bg, transparent); border-radius: var(--card-radius, var(--r-md, 12px)); }
.gh-pcard__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--card-radius, var(--r-md, 12px)); background: var(--gh-media-bg); }
.gh-pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, transform .4s var(--ease, ease); }
.gh-pcard__img--alt { opacity: 0; }
.gh-pcard:hover .gh-pcard__img--alt { opacity: 1; }
.gh-pcard:hover .gh-pcard__img { transform: scale(1.02); }
.gh-pcard.is-swatch .gh-pcard__img--alt { opacity: 0; }
.gh-pcard__body { padding: .6rem .15rem 0; display: grid; gap: .15rem; }
.gh-pcard__title { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; }
.gh-pcard__title a { color: var(--c-text-strong); text-decoration: none; }
.gh-pcard__title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.gh-pcard__meta { margin: 0; font-size: .82rem; color: var(--c-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-pcard__meta a { position: relative; z-index: 1; color: inherit; }
.gh-pcard__price { margin: .15rem 0 0; font-weight: 700; color: var(--c-text-strong); }

.gh-swatches { display: flex; align-items: center; gap: .3rem; margin-bottom: .2rem; position: relative; z-index: 1; min-height: 16px; }
.gh-swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); cursor: pointer; }
.gh-swatch:hover, .gh-swatch.is-on { outline: 2px solid var(--c-text-strong); outline-offset: 1px; }
.gh-swatch-more { font-size: .75rem; color: var(--c-text-muted); }

.gh-fav { position: absolute; top: .5rem; right: .5rem; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); color: #222; cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s; box-shadow: 0 1px 4px rgb(0 0 0 / .12); }
.gh-pcard:hover .gh-fav, .gh-fav:focus-visible, .gh-fav[aria-pressed="true"] { opacity: 1; }
.gh-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.gh-fav[aria-pressed="true"] svg { fill: var(--c-danger, #e0245e); stroke: var(--c-danger, #e0245e); }
.gh-fav:active { transform: scale(.9); }
.gh-fav--big { position: static; opacity: 1; width: 48px; height: 48px; flex: none; border: 1px solid var(--c-border); box-shadow: none; background: var(--c-bg); color: var(--c-text-strong); }
@media (hover: none) { .gh-fav { opacity: 1; } }

.gh-wcard { display: flex; flex-direction: column; min-width: 0; }
.gh-wcard__media { display: grid; place-items: center; padding: 8%; background: var(--gh-media-bg); border-radius: var(--card-radius, var(--r-md, 12px)); aspect-ratio: 1; overflow: hidden; }
.gh-wcard__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .12)); transition: transform .4s var(--ease, ease); }
.gh-wcard:hover .gh-wcard__media img { transform: scale(1.03); }
.gh-wcard__body { padding: .6rem .15rem 0; display: grid; gap: .2rem; font-size: .875rem; }
.gh-wcard__title { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.3; font-family: inherit; }
.gh-wcard__title a { color: var(--c-text-strong); text-decoration: none; }
.gh-wcard__src { font-weight: 400; color: var(--c-text-muted); }
.gh-wcard__author { margin: 0; color: var(--c-text-muted); }
.gh-wcard__author a { color: inherit; }
.gh-wcard__facts { margin: 0; display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.gh-wcard__facts a { color: var(--c-text); text-decoration: none; }
.gh-wcard__facts a:hover { color: var(--c-accent); }

/* --- shelves and pager ---------------------------------------------------------- */

.gh-shelf { margin-top: clamp(2.5rem, 6vw, 4rem); }
.gh-shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.gh-shelf__more { color: var(--c-text-muted); text-decoration: none; white-space: nowrap; font-size: .9rem; }
.gh-shelf__more:hover { color: var(--c-text-strong); }

.gh-pager { display: grid; justify-items: center; gap: 1rem; margin-top: 2.5rem; }
.gh-pager__pages { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: center; }
.gh-pager__pages > * { min-width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: var(--r-sm, 8px); text-decoration: none; color: var(--c-text); }
.gh-pager__pages a:hover { background: var(--c-surface-sunk); }
.gh-pager__pages [aria-current] { background: var(--c-text-strong); color: var(--c-bg); }
.gh-more { min-width: 14rem; }
.gh-list.is-loading { opacity: .6; }

/* --- artwork page -------------------------------------------------------------- */

.gh-art { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.gh-art__figure { margin: 0; padding: clamp(1rem, 5%, 3rem); background: var(--gh-media-bg); border-radius: var(--r-lg, 16px); display: grid; place-items: center; position: sticky; top: 1rem; }
.gh-art__figure img { max-width: 100%; height: auto; max-height: 75vh; width: auto; filter: drop-shadow(0 12px 28px rgb(0 0 0 / .16)); }
.gh-art__actions { display: grid; gap: .75rem; margin-top: 1.5rem; }
.gh-byline { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--c-text); margin: .5rem 0 1rem; }
.gh-byline__name { display: block; font-weight: 600; color: var(--c-text-strong); }
.gh-byline__city { display: block; font-size: .85rem; color: var(--c-text-muted); }
.gh-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none; background: var(--c-accent-soft, var(--c-surface-sunk)); color: var(--c-accent); font-weight: 700; }
.gh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gh-avatar--lg { width: 72px; height: 72px; font-size: 1.5rem; }
.gh-avatar--xl { width: 112px; height: 112px; font-size: 2.6rem; border: 4px solid var(--c-bg); }
.gh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; margin: 1rem 0 0; }
.gh-facts dt { font-size: .8rem; color: var(--c-text-muted); }
.gh-facts dd { margin: 0; font-weight: 500; }
.gh-licence { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.1rem; border: 1px solid var(--c-border); border-radius: var(--r-md, 12px); background: var(--c-surface, transparent); }
.gh-licence__title { margin: 0; font-weight: 600; }
.gh-licence__note { margin: .15rem 0 0; font-size: .85rem; color: var(--c-text-muted); max-width: 22rem; }
.gh-original summary, .gh-details summary { cursor: pointer; font-weight: 600; }
.gh-original { padding: .75rem 0; }

/* --- product page --------------------------------------------------------------- */

.gh-product { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.gh-product__gallery { display: grid; gap: .75rem; position: sticky; top: 1rem; }
.gh-product__stage { margin: 0; aspect-ratio: 1; background: var(--gh-media-bg); border-radius: var(--r-lg, 16px); overflow: hidden; }
.gh-product__stage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.gh-product__stage img.is-loading { opacity: .55; }
.gh-product__thumbs { display: flex; gap: .5rem; }
.gh-thumb { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm, 8px); overflow: hidden; background: var(--gh-media-bg); cursor: pointer; width: 76px; height: 76px; }
.gh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gh-thumb[aria-selected="true"] { border-color: var(--c-text-strong); }
.gh-product__by { color: var(--c-text-muted); margin: 0 0 1rem; }
.gh-product__by a { color: var(--c-text); }
.gh-price { font-size: 1.75rem; font-weight: 700; color: var(--c-text-strong); margin: 0 0 1.25rem; font-family: var(--gh-heading); }
.gh-opt { border: 0; padding: 0; margin: 0 0 1.25rem; }
.gh-opt legend { padding: 0; margin-bottom: .55rem; font-size: .9rem; color: var(--c-text-muted); }
.gh-opt legend b { color: var(--c-text-strong); font-weight: 600; }
.gh-opt__colors, .gh-opt__sizes { display: flex; flex-wrap: wrap; gap: .5rem; }
.gh-color { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); cursor: pointer; }
.gh-color input, .gh-size input { position: absolute; opacity: 0; pointer-events: none; }
.gh-color:has(input:checked) { outline: 2px solid var(--c-text-strong); outline-offset: 3px; }
.gh-color:has(input:focus-visible), .gh-size:has(input:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.gh-size { position: relative; }
.gh-size span { display: grid; place-items: center; min-width: 3.2rem; height: 2.75rem; padding: 0 .75rem; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm, 8px); cursor: pointer; font-weight: 500; }
.gh-size:has(input:checked) span { background: var(--c-text-strong); color: var(--c-bg); border-color: var(--c-text-strong); }
.gh-size.is-off span { opacity: .35; text-decoration: line-through; }
.gh-buy__row { display: flex; gap: .5rem; align-items: stretch; }
.gh-qty input { width: 4.5rem; height: 100%; text-align: center; }
.gh-buy__cta { flex: 1; min-height: 48px; font-size: 1.05rem; }
.gh-buy__hint { color: var(--c-danger); margin: .5rem 0 0; font-size: .9rem; }
.gh-perks { list-style: none; padding: 1rem 0; margin: 1.25rem 0; border-block: 1px solid var(--c-border); display: grid; gap: .45rem; font-size: .9rem; color: var(--c-text-muted); }
.gh-perks li::before { content: '✓'; color: var(--c-success, var(--c-accent)); font-weight: 700; margin-right: .55rem; }
.gh-details { border-bottom: 1px solid var(--c-border); padding: .9rem 0; }
.gh-details > :not(summary) { color: var(--c-text-muted); }

/* --- author's shop and authors -------------------------------------------------- */

.gh-shop-hero { background: var(--banner, linear-gradient(120deg, var(--c-accent-soft, #eee), var(--c-surface-sunk, #f5f5f5))) center / cover; padding-top: clamp(4rem, 12vw, 9rem); }
.gh-shop-hero__inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; padding-bottom: 1.5rem; position: relative; top: 3.5rem; margin-bottom: 3.5rem; }
.gh-shop-hero__text { flex: 1 1 20rem; padding-top: 3.5rem; }
.gh-shop-hero__meta { margin: 0; color: var(--c-text-muted); }
.gh-shop-hero__bio { margin: .5rem 0 0; max-width: 40rem; }
.gh-follow { align-self: center; }
.gh-about { max-width: 46rem; }
.gh-socials { display: flex; gap: 1rem; padding: 0; list-style: none; }
.gh-authors { display: grid; gap: var(--gh-card-gap); grid-template-columns: repeat(auto-fill, minmax(min(200px, 46%), 1fr)); }
.gh-author { display: grid; justify-items: center; gap: .35rem; padding: 1.25rem 1rem; text-align: center; border: 1px solid var(--c-border); border-radius: var(--r-md, 12px); text-decoration: none; color: var(--c-text); }
.gh-author:hover { border-color: var(--c-border-strong); }
.gh-author__name { font-weight: 600; color: var(--c-text-strong); }
.gh-author__meta { font-size: .85rem; color: var(--c-text-muted); }

/* --- toast for features of later stages ---------------------------------------- */

.gh-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); max-width: min(30rem, calc(100vw - 2rem)); padding: .85rem 1.1rem; border-radius: var(--r-md, 12px); background: var(--c-text-strong); color: var(--c-bg); box-shadow: var(--shadow-lg, 0 10px 30px rgb(0 0 0 / .2)); opacity: 0; transition: opacity .2s, transform .2s; z-index: 1000; pointer-events: none; font-size: .95rem; }
.gh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 52rem) {
    .gh-art, .gh-product { grid-template-columns: minmax(0, 1fr); }
    .gh-art__figure, .gh-product__gallery { position: static; }
    .gh-search-inline input { width: 100%; }
    .gh-toolbar__end { width: 100%; }
    .gh-toolbar__end > * { flex: 1; }
    .gh-shop-hero__inner { top: 2.5rem; margin-bottom: 2.5rem; }
}

/* --- home-page blocks ------------------------------------------------------------ */

.gh-grid--fixed { grid-template-columns: repeat(var(--gh-cols, 4), minmax(0, 1fr)); }
@media (max-width: 60rem) { .gh-grid--fixed { grid-template-columns: repeat(min(var(--gh-cols, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 40rem) { .gh-grid--fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gh-authors--covers { grid-template-columns: repeat(auto-fill, minmax(min(240px, 46%), 1fr)); }
.gh-author--cover { padding: 0 0 1.25rem; overflow: hidden; }
.gh-author__covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 100%; aspect-ratio: 3 / 1.1; background: var(--gh-media-bg); margin-bottom: -36px; }
.gh-author__covers img { width: 100%; height: 100%; object-fit: contain; padding: 10%; background: var(--gh-media-bg); }
.gh-author--cover .gh-avatar { border: 3px solid var(--c-bg); position: relative; }

.gh-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(1rem, 3vw, 2.5rem); }
.gh-hero__eyebrow { margin: 0 0 1rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); font-weight: 600; }
.gh-hero__title { font-family: var(--gh-heading); font-weight: var(--fw-heading, 700); font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.05; margin: 0 0 1.25rem; color: var(--c-text-strong); letter-spacing: -.02em; }
.gh-hero__lead { font-size: 1.15rem; color: var(--c-text-muted); margin: 0 0 1.75rem; max-width: 34rem; line-height: 1.55; }
.gh-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.gh-hero__note { margin: 1rem 0 0; font-size: .9rem; color: var(--c-text-muted); }
.gh-hero__collage { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); gap: .75rem; aspect-ratio: 1.05; }
.gh-hero__tile { display: block; overflow: hidden; border-radius: var(--r-lg, 16px); background: var(--gh-media-bg); }
.gh-hero__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, ease); }
.gh-hero__tile:hover img { transform: scale(1.04); }
.gh-hero__tile--1 { grid-area: 1 / 1 / 5 / 4; }
.gh-hero__tile--2 { grid-area: 1 / 4 / 3 / 7; }
.gh-hero__tile--3 { grid-area: 3 / 4 / 7 / 7; }
.gh-hero__tile--4 { grid-area: 5 / 1 / 7 / 3; }
.gh-hero__tile--5 { grid-area: 5 / 3 / 7 / 4; }
@media (max-width: 52rem) {
    .gh-hero { grid-template-columns: minmax(0, 1fr); }
    .gh-hero__collage { aspect-ratio: 1.3; }
}
.gh-hero .cms-btn--lg { padding: .9rem 1.6rem; font-size: 1.05rem; }

/* --- section page filter ------------------------------------------------------------ */

.gh-price-filter { display: flex; align-items: center; gap: .35rem; }
.gh-price-filter input { width: 6.5rem; font: inherit; font-size: .9rem; padding: .45rem .6rem; border: 1px solid var(--c-border); border-radius: var(--r-sm, 8px); background: var(--c-bg); color: var(--c-text); }
.gh-price-filter .cms-btn { min-height: 0; padding: .45rem .8rem; }
.page--gallery, .page--shop_category, .page--artwork, .page--print-product, .page--author-shop, .page--search { --w-container: 80rem; }

/* --- favourites and follow ------------------------------------------------------------- */

.gh-wcard { position: relative; }
.gh-wcard:hover .gh-fav { opacity: 1; }
.gh-fav-wide[aria-pressed="true"] { color: var(--c-danger); border-color: var(--c-danger); }
.gh-follow { display: grid; justify-items: center; gap: .3rem; align-self: center; }
.gh-follow__count { font-size: .85rem; color: var(--c-text-muted); }
.gh-follow [aria-pressed="true"] { background: transparent; color: var(--c-text-strong); border-color: var(--c-border-strong); box-shadow: none; }

/* --- collections -------------------------------------------------------------------- */

.gh-colls { display: grid; gap: var(--gh-card-gap); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.gh-coll { display: grid; gap: .3rem; text-decoration: none; color: var(--c-text); }
.gh-coll__media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--card-radius, var(--r-md, 12px)); background: var(--gh-media-bg); }
.gh-coll__media img { width: 100%; height: 100%; object-fit: contain; padding: 12%; background: var(--gh-media-bg); transition: transform .4s var(--ease, ease); }
.gh-coll__media .gh-coll__cover { grid-column: 1 / -1; object-fit: cover; padding: 0; }
.gh-coll:hover .gh-coll__media img { transform: scale(1.04); }
.gh-coll__title { font-family: var(--gh-heading); font-weight: var(--fw-heading, 700); font-size: 1.15rem; color: var(--c-text-strong); margin-top: .35rem; }
.gh-coll__meta { font-size: .85rem; color: var(--c-text-muted); }

.gh-original__form { display: grid; gap: .5rem; max-width: 28rem; }
.gh-original__form input, .gh-original__form textarea { font: inherit; padding: .55rem .7rem; border: 1px solid var(--c-border); border-radius: var(--r-sm, 8px); background: var(--c-bg); color: var(--c-text); }
.gh-original__form small { color: var(--c-text-muted); font-size: .8rem; }
.gh-original__ok { color: var(--c-success); }
.gh-original__err { color: var(--c-danger); }
.gh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 52rem) {
    .gh-price-filter { flex: 1 1 100%; }
    .gh-price-filter input { flex: 1; width: auto; min-width: 0; }
}
