:root{
  --cream:var(--wp--preset--color--cream);--paper:var(--wp--preset--color--paper);--ochre:var(--wp--preset--color--ochre);
  --green:var(--wp--preset--color--green);--terra:var(--wp--preset--color--terra);--ink:var(--wp--preset--color--ink);
  --muted:var(--wp--preset--color--muted);--line:var(--wp--preset--color--line);
  --b-go:var(--wp--preset--color--go);--b-read:var(--wp--preset--color--read);--b-neutral:#5d5850;
}
html{scroll-behavior:smooth;scroll-padding-top:84px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
img{max-width:100%;height:auto}
em{font-style:italic;color:var(--terra)}
:focus-visible{outline:2px solid var(--b-read);outline-offset:2px}
section[tabindex="-1"]:focus-visible{outline:none}
.wg-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.wg-sr,.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Header */
.wp-block-template-part:has(>.wg-top){position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:20}
.wg-top{position:relative;border-bottom:1px solid var(--line)}
/* Blur on a layer of its own: on .wg-top it would trap the fixed full-screen menu inside the header box. */
.wg-top::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(246,239,226,.94);backdrop-filter:blur(8px)}
.wg-top-row{min-height:72px;gap:24px}
.wg-brand img{height:50px;width:auto}
.wg-tools{gap:8px}
.wg-menu{position:relative}
.wg-menu>summary{list-style:none;width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:3px;background:var(--paper);cursor:pointer;color:var(--ink)}
.wg-menu>summary::-webkit-details-marker{display:none}
.wg-menu>summary:hover,.wg-menu[open]>summary{border-color:var(--ink)}
.wg-menu svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.wg-menu-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(320px,calc(100vw - 32px));background:var(--paper);border:1px solid var(--line);border-radius:3px;box-shadow:0 12px 32px rgba(40,30,20,.14);padding:8px 0;z-index:30}
.wg-menu-panel ul{list-style:none;margin:0;padding:0}
.wg-menu-link{display:block;padding:11px 20px;text-decoration:none;font-size:16px;letter-spacing:.02em}
.wg-menu-link:hover{color:var(--terra);background:var(--cream)}
.wg-menu-contact{border-top:1px solid var(--line);margin-top:6px!important;padding-top:6px!important}
.wg-menu-contact a{display:flex;align-items:center;gap:10px;padding:9px 20px 9px 32px;text-decoration:none;font-size:15px;color:var(--muted);overflow-wrap:anywhere}
.wg-menu-contact a:hover{color:var(--ink)}
.wg-cart .wc-block-mini-cart__button{height:40px;border:1px solid var(--line);border-radius:3px;background:var(--paper);padding:0 10px}

/* Sections */
.wg-sec{padding-block:clamp(56px,8vw,104px)}
.wg-sec.is-paper{background:var(--paper);border-block:1px solid var(--line)}
.wg-eyebrow{font-size:13px!important;letter-spacing:.18em;text-transform:uppercase;color:var(--terra);margin-bottom:10px!important;font-weight:500}
/* Section heads span the content width so they line up with the cards; only the text lines are capped. */
.wg-head{margin-bottom:36px}
.wg-head>*{max-width:70ch}
.wg-head>p:last-child{color:var(--muted)}
.wg-small{font-size:14px;color:var(--muted)}

/* Hero: text on cream, the cellar entrance in an arch like the real doorway (as in the offer) */
.wg-hero{position:relative;isolation:isolate;padding-block:clamp(40px,6vw,72px) clamp(64px,7vw,96px);overflow:hidden;background:linear-gradient(180deg,var(--cream) 0%,#f3e6cc 100%)}
/* Cellar row in the fog, the owner's own photo (2026-11-04), toned down by the opacity and mask below. */
.wg-hero::before{content:"";position:absolute;inset:auto 0 0 0;height:78%;z-index:-1;background:url(../img/pince-sor-hatter.webp) center bottom/cover no-repeat;opacity:.45;-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 60%);mask-image:linear-gradient(180deg,transparent 0%,#000 60%)}
@media (max-width:720px){.wg-hero::before{background-image:url(../img/pince-sor-hatter-mobil.webp)}}
.wg-hero .wp-block-columns{gap:clamp(40px,5vw,72px)}
.wg-hero h1{font-size:clamp(46px,5.6vw,86px);line-height:1.02;margin:18px 0 0}
.wg-hero h1 em{font-weight:500}
.wg-lead{font-size:clamp(18px,1.4vw,20px)!important;color:#4b4037;max-width:34em;margin-top:24px!important}
.wg-hero .wp-block-buttons{margin-top:32px}
.wg-arch{position:relative;width:min(100%,520px);margin-left:auto!important}
.wg-arch>*{margin:0!important}
.wg-door img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;object-position:62% 50%;border-radius:999px 999px 4px 4px;box-shadow:0 30px 50px -28px rgba(42,34,28,.55)}
.wg-yard{position:absolute!important;left:-84px;bottom:-44px;width:54%;border:6px solid var(--cream);border-radius:4px;overflow:hidden;box-shadow:0 20px 34px -18px rgba(42,34,28,.6)}
.wg-yard img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.wg-seal{position:absolute;right:-18px;top:46px;width:112px;height:112px;border-radius:50%;background:var(--ochre);color:#2a1d05;display:grid;place-content:center;text-align:center;font:600 10.5px/1.25 var(--wp--preset--font-family--body)!important;letter-spacing:.2em;text-transform:uppercase;box-shadow:0 12px 24px -12px rgba(42,34,28,.6)}
.wg-seal strong{display:block;font:600 34px/1 var(--wp--preset--font-family--display);letter-spacing:.02em;margin:3px 0}

/* Facts bar under the hero */
.wg-facts{background:var(--wp--preset--color--sand,#efe0b9)}
.wg-facts-row{display:grid;grid-template-columns:repeat(4,1fr)}
.wg-facts-row>p{margin:0!important;display:grid;grid-template-columns:34px 1fr;column-gap:14px;align-items:center;padding:24px 22px;font-size:15px;line-height:1.35;color:#4b4037;border-left:1px solid rgba(138,95,18,.25)}
.wg-facts-row>p:first-child{border-left:0;padding-left:0}
.wg-facts-row>p::before{content:"";grid-row:1/3;width:32px;height:32px;background:var(--green);-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.wg-facts-row strong{display:block;font-weight:500;color:var(--ink)}
.wg-fact-cellar{--i:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 32 32%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4 28V14a12 12 0 0 1 24 0v14%27/%3E%3Cpath d=%27M10 28V16a6 6 0 0 1 12 0v12M4 28h24%27/%3E%3C/svg%3E")}
.wg-fact-family{--i:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 32 32%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2711%27 cy=%2710%27 r=%273.5%27/%3E%3Ccircle cx=%2722%27 cy=%2712%27 r=%272.8%27/%3E%3Cpath d=%27M4 26c0-4 3-7 7-7s7 3 7 7M17 26c.4-3 2.4-5.2 5-5.2s4.6 2.2 5 5.2%27/%3E%3C/svg%3E")}
.wg-fact-glass{--i:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 32 32%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M10 4h12l-1 8a5 5 0 0 1-10 0z%27/%3E%3Cpath d=%27M16 17v9M11 28h10M10.6 9h10.8%27/%3E%3C/svg%3E")}
.wg-fact-key{--i:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 32 32%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2710%27 cy=%2716%27 r=%275%27/%3E%3Cpath d=%27M15 16h13M24 16v4M28 16v3%27/%3E%3C/svg%3E")}

/* Ticket dates: one product title, one row per date */

/* Buttons: colour by meaning (green create/buy, blue read, grey neutral); one filled per view. */
.wp-block-button__link{border:1.5px solid transparent}
.wp-block-button.is-style-go-outline .wp-block-button__link{background:transparent;color:var(--b-go);border-color:var(--b-go)}
.wp-block-button.is-style-read .wp-block-button__link{background:transparent;color:var(--b-read);border-color:var(--b-read)}
.wg-hero .wp-block-button.is-style-read .wp-block-button__link{background:var(--b-read);color:#fff}
.wp-block-button.is-style-neutral .wp-block-button__link{background:transparent;color:var(--b-neutral);border-color:var(--b-neutral)}
.wp-block-button__link:hover{filter:brightness(.92)}

/* Marquee strips: auto-advancing, hand-scrollable */
.wg-marquee{position:relative}
.wg-marquee .wg-track{display:flex;flex-wrap:nowrap;gap:14px;width:max-content;margin:0;padding:0;list-style:none}
.wg-marquee .wg-track>*{margin:0!important;flex:none}
.wg-marquee:not(:has(.mq-viewport)){overflow-x:auto}
.mq-viewport{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;cursor:grab}
.mq-viewport::-webkit-scrollbar{display:none}
.mq-viewport.dragging{cursor:grabbing;user-select:none}
.mq-viewport.dragging a{pointer-events:none}
.mq-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:rgba(251,247,239,.92);color:var(--ink);display:grid;place-items:center;cursor:pointer;opacity:.85;transition:opacity .2s;z-index:2}
.mq-arrow svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mq-arrow.prev{left:12px}.mq-arrow.next{right:12px}
.mq-arrow:hover,.mq-arrow:focus-visible{opacity:1}
@media (hover:none){.mq-arrow{width:36px;height:36px;opacity:.7}}

.wg-strip{padding-top:14px}
.wg-strip .wp-block-image{position:relative}
.wg-strip .wp-block-image img{height:clamp(260px,46vh,520px);width:auto;max-width:none;border-radius:3px}
.wg-strip .wp-block-image figcaption{position:absolute;left:12px;bottom:12px;margin:0;background:rgba(42,34,28,.78);color:var(--cream);font-size:14px;padding:4px 10px;border-radius:2px}

/* Wines */
.wg-wines .wg-track{gap:18px;padding:4px 0}
.wg-wine{width:300px;display:flex;flex-direction:column;gap:16px;background:var(--cream);border:1px solid var(--line);border-radius:3px;padding:20px 18px}
/* Labels differ in shape; a shared stage keeps the cards even. */
.wg-wine .wg-label{height:268px;display:grid;place-items:center;margin:-6px -4px 0;background:color-mix(in srgb,var(--line) 45%,var(--cream));border-radius:2px}
.wg-wine .wg-label img{height:216px;width:auto;max-width:calc(100% - 40px);object-fit:contain;border-radius:1px;box-shadow:0 0 0 1px rgba(42,34,28,.08),0 14px 22px -10px rgba(42,34,28,.45)}
@media (prefers-reduced-motion:no-preference){.wg-wine .wg-label img{transition:transform .25s ease}.wg-wine .wg-label:hover img{transform:translateY(-3px)}}
.wc-block-product .wc-block-components-product-image a{aspect-ratio:4/5;min-height:0;display:grid;grid-template:100%/100%;place-items:center;padding:10%;box-sizing:border-box;background:color-mix(in srgb,var(--line) 45%,var(--cream));border-radius:2px}
.wc-block-product .wc-block-components-product-image img{width:auto!important;height:auto!important;max-width:100%;max-height:100%;object-fit:contain!important;border-radius:1px;box-shadow:0 0 0 1px rgba(42,34,28,.08),0 14px 22px -10px rgba(42,34,28,.45)}
/* Six wines: one row of six reads as a catalogue; 3 columns would leave each label half a screen tall. */
.archive .wc-block-product-template{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:32px 20px!important}
.archive .wc-block-product{width:auto!important;max-width:none!important;margin:0!important}
@media (max-width:1200px){.archive .wc-block-product-template{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:640px){.archive .wc-block-product-template{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 12px!important}}
/* Wine page: labels | buying | details, top-aligned so the first label, the title and the panel start on one line. */
.wg-pdp-page{padding-bottom:clamp(56px,7vw,104px)}
.wg-pdp{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(280px,.75fr);grid-template-areas:"g b s";gap:clamp(32px,4vw,64px);align-items:start;margin-top:clamp(20px,3vw,36px)!important}
.wg-pdp>*{margin:0!important;min-width:0}
.wg-pdp-gallery{grid-area:g}.wg-pdp-buy{grid-area:b}.wg-pdp-specs{grid-area:s}
/* WooCommerce renders the gallery at opacity:0 and only its slider script reveals it; that script is off (inc/shop.php). */
.woocommerce-product-gallery{opacity:1!important}
.wg-pdp .woocommerce-product-gallery{width:auto!important;float:none!important;margin:0!important}
.woocommerce-product-gallery__wrapper{display:flex;gap:12px;align-items:stretch;margin:0}
.wg-pdp .woocommerce-product-gallery__image{flex:1 1 0;min-width:0;min-height:0;aspect-ratio:3/4;container-type:size;display:grid!important;place-items:center;width:auto!important;padding:9%!important;box-sizing:border-box;background:color-mix(in srgb,var(--line) 45%,var(--cream));border-radius:2px}
.wg-pdp .woocommerce-product-gallery__image:only-child{aspect-ratio:3/2}
.wg-pdp .woocommerce-product-gallery__image img{width:auto!important;height:auto!important;max-width:100cqw;max-height:100cqh;object-fit:contain;border-radius:1px;box-shadow:0 0 0 1px rgba(42,34,28,.08),0 14px 22px -10px rgba(42,34,28,.45)}
.wg-pdp-buy>*{margin-block:0!important}
.wg-pdp-buy h1{font-size:clamp(40px,3.6vw,60px);line-height:1.02;margin-bottom:14px!important}
.wg-pdp-buy .wc-block-components-product-price{font-family:var(--wp--preset--font-family--display);font-size:30px;color:var(--green);margin-bottom:18px}
.wg-pdp-buy .wp-block-post-excerpt{margin-bottom:28px!important}
.wg-pdp-buy .wp-block-post-excerpt p{margin:0;font-size:18px;line-height:1.55;color:#4b4037;max-width:40ch}
.wg-pdp-buy form.cart{display:flex;gap:10px;margin:0!important}
.wg-pdp-buy form.cart .quantity{float:none;margin:0}
.wg-pdp-buy form.cart .qty{box-sizing:border-box;width:76px;height:52px;padding:0 8px;text-align:center;font:17px var(--wp--preset--font-family--body);color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:3px}
.wg-pdp-buy form.cart .single_add_to_cart_button{float:none;flex:0 1 260px;height:52px;padding:0 24px;font:500 16px var(--wp--preset--font-family--body);background:var(--b-go);color:#fff;border:0;border-radius:3px}
.wg-pdp-meta{margin-top:28px;padding-top:16px;border-top:1px solid var(--line);display:grid;gap:4px;font-size:14px;color:var(--muted)}
.wg-pdp-meta>*{margin:0!important}
.wg-pdp-meta a{color:var(--ink)}
.wg-pdp-specs{background:var(--paper);border:1px solid var(--line);border-radius:3px;padding:22px 24px 8px}
.wg-pdp-specs .wg-eyebrow{font-family:var(--wp--preset--font-family--body);display:flex;align-items:center;gap:10px}
.wg-pdp-specs .wg-eyebrow::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ochre)}
.wg-pdp-specs figure{margin:0}
.wg-pdp-specs .wp-block-table table{width:100%;border-collapse:collapse}
.wg-pdp-specs .wp-block-table th,.wg-pdp-specs .wp-block-table td{border:0;padding:12px 0;vertical-align:baseline;font-size:15px;line-height:1.4}
.wg-pdp-specs .wp-block-table tbody tr+tr>*{border-top:1px solid var(--line)}
.wg-pdp-specs .wp-block-table th{font-weight:400;color:var(--muted);text-align:left;padding-right:16px;white-space:nowrap}
.wg-pdp-specs .wp-block-table td{color:var(--ink);text-align:right}
.wg-pdp-specs td p{margin:0}
.wg-related{margin-top:clamp(56px,7vw,96px)!important}
.wg-related h2{display:flex;align-items:center;gap:24px;font-size:clamp(28px,3vw,40px);text-align:center;margin:0 0 32px}
.wg-related h2::before,.wg-related h2::after{content:"";flex:1;height:1px;background:color-mix(in srgb,var(--ochre) 55%,transparent)}
.wg-related .wc-block-product-template{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:28px 24px;margin:0;padding:0}
/* Catalogue row: label left spanning all three rows, the button pinned to the label's bottom edge. */
.wg-related .wc-block-product{display:grid;grid-template-columns:104px minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:16px;width:auto!important;max-width:none!important;margin:0!important;text-align:left}
.wg-related .wc-block-product .wc-block-components-product-image{grid-row:1/span 3;margin:0!important}
.wg-related .wc-block-product .wc-block-components-product-image a{padding:8px}
.wg-related .wc-block-product h3{font-size:22px!important;line-height:1.15;margin:4px 0 6px!important;text-align:left}
.wg-related .wc-block-product h3 a{text-decoration:none}
.wg-related .wc-block-product .wc-block-components-product-price{text-align:left;font-size:16px;color:var(--muted)}
.wg-related .wc-block-product .wp-block-button{align-self:end;align-items:flex-start;margin:0!important}
.wg-related .wc-block-components-product-button__button{background:transparent!important;color:var(--b-go)!important;border:1.5px solid;border-color:var(--b-go);border-radius:3px;padding:8px 14px!important;white-space:nowrap;font-size:14px!important}
.wg-related .wc-block-components-product-button__button:hover{background:var(--b-go)!important;color:#fff!important}
@media (max-width:1100px){.wg-pdp{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"g b" "g s"}}
@media (max-width:781px){.wg-pdp{grid-template-columns:1fr;grid-template-areas:"g" "b" "s";gap:28px}}
.wg-wine .wbody{display:flex;flex-direction:column;min-width:0;flex:1}
.wg-wine .whead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;margin:0 0 6px}
.wg-wine h3{font-size:28px;margin:0}
.wg-wine h3 a{text-decoration:none}
.wg-wine h3 span{font-size:18px;color:var(--muted)}
.wg-wine .kind{font-size:14px;margin:0 0 6px}
.wg-wine .meta{font-size:13px;color:var(--muted);margin:0}
.wg-marks{display:flex;gap:10px;align-items:center;margin:12px 0 0}
.wg-marks img{display:block;width:auto;height:56px}
.wg-pdp-specs .wg-marks{margin-top:20px}
.wg-pdp-specs .wg-marks img{height:72px}
.wg-wine .wg-marks{margin:0;gap:8px}
.wg-wine .wg-marks img{height:36px}
.wg-wine .buy{margin-top:auto;display:flex;flex-direction:column;gap:8px}
.wg-wine .price{font-family:var(--wp--preset--font-family--display);font-size:22px;color:var(--green)}
.wg-wine .price.soon{font-style:italic;font-size:20px;color:var(--muted)}
.wg-add{font:500 14px var(--wp--preset--font-family--body);padding:8px 12px;border-radius:3px;border:1.5px solid var(--b-go);color:var(--b-go);background:transparent;cursor:pointer;text-align:center;text-decoration:none}
.wg-add:hover,.wg-add.added{background:var(--b-go);color:#fff}
.wg-add[aria-busy=true]{opacity:.6}
.wg-note{font-size:14px;color:var(--muted);margin-top:28px}

/* Bortrezor */
/* Same overlap as the hero: a large photo with a smaller one pinned to its corner. */
#bortrezor .wp-block-columns{align-items:center;gap:clamp(40px,6vw,96px)}
.wg-pics{position:relative;padding:0 0 64px 0}
.wg-pics>*{margin:0!important}
.wg-pics img{display:block;border-radius:3px;object-fit:cover;width:100%}
.wg-pics>:first-child img{aspect-ratio:4/5}
.wg-pics>:nth-child(2){position:absolute;right:-20px;bottom:0;width:46%;border:6px solid var(--paper);border-radius:4px;box-shadow:0 20px 34px -18px rgba(42,34,28,.6)}
.wg-pics>:nth-child(2) img{aspect-ratio:3/4;border-radius:0}
.wg-fee{font-family:var(--wp--preset--font-family--display)}
.wg-fee strong{font-size:44px;color:var(--green);font-weight:600}
.wg-perks{list-style:none;padding:0;display:grid;gap:10px}
.wg-perks li{padding-left:22px;position:relative}
.wg-perks li::before{content:"";position:absolute;left:4px;top:.65em;width:7px;height:7px;border-radius:50%;background:var(--ochre)}

/* Events */
.wg-events{gap:24px;grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr))!important}
/* Event card: picture strip on top, text below, the booking buttons pinned to the bottom so cards line up. */
.wg-event{display:flex!important;flex-direction:column;gap:0!important;background:var(--cream);border:1px solid var(--line);border-radius:3px;padding:0;overflow:hidden}
/* Core stacks columns on phones with flex-basis:100%!important, which in a vertical card means full height. */
.wg-events .wg-event.wp-block-columns>.wp-block-column{flex-basis:auto!important;width:100%;box-sizing:border-box;margin:0!important}
.wg-event>.wp-block-column:last-child{display:flex;flex-direction:column;flex:1;padding:24px 28px 28px}
.wg-event>.wp-block-column:last-child>:not(.wg-book){margin-block:0 12px}
.wg-event-media{height:clamp(220px,20vw,300px);overflow:hidden}
.wg-event-media figure{margin:0!important;height:100%}
.wg-event-media img{width:100%;height:100%;object-fit:cover;display:block}
.wg-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:2px}
.wg-poster{background:#3a1d17}
.wg-poster img{object-fit:contain;padding:14px 0}
.wg-event .wg-book{margin-top:auto;padding-top:12px}
.wg-price-note{color:var(--muted);font-size:15px}
.wg-when{color:var(--terra);font-weight:500;font-size:15px;margin-bottom:4px!important}
.wg-price-line{margin-bottom:2px!important}
.wg-price-line strong{font-family:var(--wp--preset--font-family--display);font-size:26px;color:var(--green)}

/* Booking */
.wg-booking{margin-top:40px;background:var(--cream);border:1px solid var(--line);border-radius:3px;padding:clamp(18px,3vw,32px)}
.wg-booking h3{margin-top:0}
.wg-bgrid{display:grid;grid-template-columns:minmax(300px,520px) minmax(0,1fr);gap:clamp(32px,4vw,64px)}
.wg-booking fieldset{border:0;padding:0;margin:0;min-width:0}
.wg-booking legend{font-weight:500;margin-bottom:12px}
.wg-seg{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.wg-seg label{border:1px solid var(--line);border-radius:3px;padding:8px 14px;cursor:pointer;background:var(--paper);font-size:15px}
.wg-seg label:has(input:checked){border-color:var(--green);color:var(--green);font-weight:500}
.wg-seg input{accent-color:var(--green)}
.wg-calhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.wg-calhead b{font-family:var(--wp--preset--font-family--display);font-size:24px;text-transform:capitalize}
.wg-nav-m{width:38px;height:38px;border:1px solid var(--line);background:var(--paper);border-radius:3px;cursor:pointer;display:grid;place-items:center;color:var(--ink)}
.wg-nav-m svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.wg-nav-m:disabled{opacity:.35;cursor:default}
.wg-bgrid>fieldset:first-child{max-width:520px}
.wg-dow,.wg-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.wg-dow span{text-align:center;font-size:12px;color:var(--muted)}
.wg-grid button{aspect-ratio:1.25;padding:0;min-width:0;border:1px solid transparent;border-radius:3px;background:none;font:15px var(--wp--preset--font-family--body);color:#8a7f72}
.wg-grid button.open{background:var(--paper);border-color:var(--line);color:var(--ink);cursor:pointer}
.wg-grid button.open::after{content:"";display:block;width:5px;height:5px;border-radius:50%;background:var(--b-go);margin:2px auto 0}
.wg-grid button.open:hover{border-color:var(--green)}
.wg-grid button[aria-pressed=true]{background:var(--green);color:var(--cream);border-color:var(--green)}
.wg-grid button[aria-pressed=true]::after{background:var(--cream)}
.wg-hint{font-size:14px;color:var(--muted)}
.wg-times{margin-top:16px}
.wg-times-label{font-weight:500;margin:0 0 8px}
.wg-tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(68px,1fr));gap:6px}
.wg-tgrid button{padding:8px 0;border:1px solid var(--line);border-radius:3px;background:var(--paper);font:15px var(--wp--preset--font-family--body);color:var(--ink);cursor:pointer}
.wg-tgrid button.open:hover{border-color:var(--green)}
.wg-tgrid button.taken{background:none;border-color:transparent;color:#8a7f72;text-decoration:line-through;cursor:not-allowed}
.wg-tgrid button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:var(--cream)}
.wg-who label{display:flex;flex-direction:column;gap:4px;font-size:14px;margin-bottom:12px}
.wg-who input,.wg-who textarea{font:16px var(--wp--preset--font-family--body);padding:10px 12px;border:1px solid var(--line);border-radius:3px;background:var(--paper);color:var(--ink)}
.wg-who{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;align-content:start}
.wg-who legend{grid-column:1/-1}
.wg-who label:has(textarea),.wg-who .wg-check,.wg-who>p,.wg-who>button{grid-column:1/-1}
.wg-who>button{justify-self:start}
.wg-who .wg-check{flex-direction:row;align-items:flex-start;gap:8px;font-size:13px;color:var(--muted)}
@media (min-width:1101px){.wg-booking{--bp:clamp(18px,3vw,32px);background:color-mix(in srgb,var(--cream) 86%,var(--ochre));display:grid;grid-template-columns:minmax(300px,520px) minmax(0,1fr);column-gap:clamp(32px,4vw,64px);padding:var(--bp);overflow:hidden}
  .wg-bgrid{display:contents}
  .wg-booking>h3{grid-column:1}
  .wg-booking .wg-who{grid-column:2;grid-row:1/span 2;margin:calc(-1*var(--bp)) calc(-1*var(--bp)) calc(-1*var(--bp)) 0;padding:var(--bp);background:var(--paper);border-left:1px solid var(--line)}
  .wg-who input,.wg-who textarea{background:var(--cream)}
  .wg-booking .wg-who legend{float:left;width:100%;padding:0;margin:calc(1.4em + 31px) 0 12px}
}
.wg-hp{position:absolute;left:-9999px}
.wg-submit{font:500 16px var(--wp--preset--font-family--body);padding:12px 22px;border-radius:3px;border:0;background:var(--b-go);color:#fff;cursor:pointer}
.wg-submit[disabled]{opacity:.6}
.wg-msg{font-size:15px;min-height:1.5em}
.wg-msg.err{color:#a3271f}
.wg-msg.ok{color:var(--b-go)}

/* About */
/* The text flows around the portrait instead of leaving an empty column below it. */
.wg-about::after{content:"";display:block;clear:both}
.wg-about>:not(.wg-portrait){max-width:none}
.wg-portrait{float:right;width:min(50%,720px);margin:0 0 28px clamp(32px,4vw,64px)!important}
.wg-portrait>*{margin-top:0!important}
.wg-portrait .wp-block-image img{border-radius:3px;aspect-ratio:3/2;object-fit:cover;width:100%}
.wg-stats{margin-top:14px!important;display:grid!important;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:3px;background:var(--paper);gap:0!important}
.wg-stats>*{padding:14px;text-align:center;margin:0!important}
.wg-stats>*+*{border-left:1px solid var(--line)}
.wg-stats strong{display:block;font-family:var(--wp--preset--font-family--display);font-size:34px;color:var(--green);font-weight:600}
.wg-stats p{font-size:13px;color:var(--muted)}
.wg-archive{display:grid;grid-template-columns:9fr 16fr 16fr 16fr;gap:10px;margin-top:14px!important}
.wg-archive>*{margin:0!important}
/* Column widths follow the photos' shapes (3:4 portrait, 4:3 landscapes), so every photo shows whole at one height. */
.wg-portrait .wg-archive img{aspect-ratio:4/3;object-fit:cover;object-position:50% 20%;width:100%;border-radius:2px;filter:sepia(.25)}
.wg-portrait .wg-archive>:first-child img{aspect-ratio:3/4}
/* Wide screens: the same photos inside the story, alternating sides, the text flowing around them. */
.wg-story{display:none}
@media (min-width:782px){.wg-portrait .wg-archive{display:none}.wg-story{display:block;float:left;clear:left;width:min(42%,320px);margin:6px clamp(20px,2.4vw,32px) 14px 0!important}.wg-story.is-right{float:right;clear:right;margin:6px 0 14px clamp(20px,2.4vw,32px)!important}.wg-story.is-tall{width:min(30%,210px)}.wg-story img{display:block;width:100%;height:auto;border-radius:2px;filter:sepia(.25);box-shadow:0 10px 22px -14px rgba(42,34,28,.55)}}

/* Blog */
.wg-teasers{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.wg-teasers>*{margin:0!important}
.wg-teaser,.wg-posts .wp-block-post{border:1px solid var(--line);border-radius:3px;background:var(--cream);overflow:hidden}
.wg-teaser>*{margin:0 20px!important}
.wg-teaser>.wp-block-image{margin:0!important}
.wg-teaser img{aspect-ratio:16/10;object-fit:cover;width:100%;display:block}
.wg-teaser h3{font-size:24px;margin-top:6px!important}
.wg-teaser>p:last-child{color:var(--muted);margin:8px 20px 20px!important}
.wg-tag{font-size:12px!important;letter-spacing:.14em;text-transform:uppercase;color:var(--terra);margin-top:16px!important}
/* Cards fill the row whatever their number: 1 centred, 2-4 side by side, more in rows of 3 with the last row centred. */
:is(.wg-posts.wp-block-post-template,.wg-posts .wp-block-post-template){--cols:3;--gap:24px;display:flex!important;flex-wrap:wrap;justify-content:center;gap:var(--gap)!important;grid-template-columns:none!important}
:is(.wg-posts.wp-block-post-template,.wg-posts .wp-block-post-template)>li{flex:0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));width:auto!important;min-width:0;margin:0!important;box-sizing:border-box}
:is(.wg-posts.wp-block-post-template,.wg-posts .wp-block-post-template):has(>li:only-child){--cols:1}
:is(.wg-posts.wp-block-post-template,.wg-posts .wp-block-post-template):has(>li:only-child)>li{max-width:760px}
:is(.wg-posts.wp-block-post-template,.wg-posts .wp-block-post-template):has(>li:nth-child(2):last-child){--cols:2}
:is(.wg-posts.wp-block-post-template,.wg-posts .wp-block-post-template):has(>li:nth-child(4):last-child){--cols:4}
@media (max-width:1100px){:is(.wg-posts.wp-block-post-template,.wg-posts .wp-block-post-template):not(:has(>li:only-child)){--cols:2!important}}
@media (max-width:640px){:is(.wg-posts.wp-block-post-template,.wg-posts .wp-block-post-template):not(:has(>li:only-child)){--cols:1!important}}
.wg-posts .wp-block-post{border:1px solid var(--line);border-radius:3px;background:var(--cream);overflow:hidden}
.wg-posts .wp-block-post>:not(.wp-block-post-featured-image){margin-inline:20px}
.wg-posts .wp-block-post-featured-image img{aspect-ratio:16/10;object-fit:cover}
.wg-posts .wp-block-post-excerpt{color:var(--muted);margin-bottom:20px}
/* Article cover: a little wider than the text, never taller than most of the screen, so the text starts in view. */
.single-post main>.wp-block-post-featured-image{max-width:min(100%,1040px)!important;margin:clamp(20px,3vw,36px) auto clamp(28px,4vw,48px)!important}
.single-post main>.wp-block-post-featured-image img{max-height:min(62vh,585px);border-radius:3px}
/* Wide screens: title beside the cover, so the article opens with text, not with a screen-high photo. */
@media (min-width:1100px){
  .single-post main:has(>.wp-block-post-featured-image){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px) minmax(0,540px) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:40px}
  .single-post main:has(>.wp-block-post-featured-image)>*{grid-column:1/-1;width:100%}
  .single-post main:has(>.wp-block-post-featured-image)>.wp-block-post-date{grid-column:2;grid-row:1;align-self:end;margin:0!important}
  .single-post main:has(>.wp-block-post-featured-image)>.wp-block-post-title{grid-column:2;grid-row:2;margin:12px 0 0!important}
  .single-post main:has(>.wp-block-post-featured-image)>.wp-block-post-featured-image{grid-column:3;grid-row:1/4;margin:0!important;max-width:none!important;align-self:center}
  .single-post main:has(>.wp-block-post-featured-image)>.wp-block-post-featured-image img{aspect-ratio:4/3!important;max-height:none}
  .single-post main:has(>.wp-block-post-featured-image)>.wp-block-post-content{margin-top:clamp(40px,4vw,64px)!important}
}

/* Contact */
/* Contact: details with the photo wrapped in on the left, the map as tall as they are on the right. */
#kapcsolat>.wp-block-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(32px,4vw,64px);align-items:stretch}
#kapcsolat>.wp-block-columns>.wp-block-column{margin:0!important;min-width:0}
#kapcsolat h2{margin-bottom:28px}
#kapcsolat>.wp-block-columns>.wp-block-column:first-child::after{content:"";display:block;clear:both}
.wg-dl{display:grid;grid-template-columns:130px 1fr;gap:10px 16px;margin:20px 0}
#kapcsolat .wg-dl{display:block;margin:0}
#kapcsolat .wg-dl dt{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 2px}
#kapcsolat .wg-dl dd{margin:0 0 16px}
.wg-dl dt{color:var(--muted)}
.wg-dl dd{margin:0}
.wg-hours-note{display:block;margin-top:6px;font-size:14px;color:var(--muted);max-width:52ch}
.wg-cat{float:right;width:min(46%,300px);margin:6px 0 16px 28px!important}
.wg-cat img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center 55%;border-radius:3px}
.wg-cat figcaption{font-size:13px;line-height:1.4;color:var(--muted);margin-top:8px}
.wg-map{height:100%;min-height:420px}
.wg-map iframe{box-sizing:border-box;width:100%;height:100%;min-height:420px;border:1px solid var(--line);border-radius:3px;display:block}

/* Footer */
.wg-footer{padding-block:40px 24px;font-size:14px}
.wg-footer a{color:inherit}
.wg-footer>.wp-block-group:not(.wg-footer-bottom){display:grid!important;grid-template-columns:auto 1fr auto;gap:48px;align-items:center}
.wg-footer-logo{margin:0!important}
.wg-footer-logo img{height:56px;width:auto}
.wg-footer .wg-address{margin:0;line-height:1.7;opacity:.92}
.wg-fb{display:inline-flex;align-items:center;gap:10px;margin-top:12px;text-decoration:none}
.wg-fb svg{flex:none}
.wg-fb:hover span,.wg-fb:focus-visible span{text-decoration:underline}
.wg-footer-bottom{border-top:1px solid rgba(246,239,226,.18);margin-top:28px!important;padding-top:16px;gap:8px 24px}
.wg-footer-bottom>p{margin:0!important;opacity:.75;font-size:13px!important}
.wg-footer-bottom>.wg-credit{margin-left:auto!important;text-align:right}

/* Age gate */
.wg-age{position:fixed;inset:0;z-index:100;background:rgba(42,34,28,.72);display:grid;place-items:center;padding:16px}
.wg-age[hidden]{display:none}
.wg-age>div{max-width:440px;background:var(--paper);border-radius:4px;padding:28px;text-align:center}
.wg-age h2{font-size:32px}
.wg-age .row{display:flex;gap:12px;justify-content:center;margin-top:18px;flex-wrap:wrap}
.wg-age button{font:500 16px var(--wp--preset--font-family--body);padding:12px 22px;border-radius:3px;cursor:pointer;border:1.5px solid var(--b-neutral);background:transparent;color:var(--b-neutral)}
.wg-age button.yes{background:var(--b-go);border-color:var(--b-go);color:#fff}

@media (max-width:1100px){
  .wg-bgrid{grid-template-columns:1fr}
  .wg-bgrid>fieldset:first-child{max-width:none}
  .wg-facts-row{grid-template-columns:1fr 1fr}
  .wg-facts-row>p:nth-child(3){border-left:0;padding-left:0}
  .wg-yard{left:-40px}
  .wg-teasers{grid-template-columns:1fr 1fr}
}
@media (max-width:781px){
  .wg-arch{margin:8px auto 40px!important;width:min(100%,380px)}
  .wg-yard{left:-14px;bottom:-34px}
  .wg-seal{right:-6px;width:92px;height:92px}
  .wg-seal strong{font-size:28px}
  .wg-facts-row{grid-template-columns:1fr}
  .wg-facts-row>p{border-left:0;padding:14px 0;border-top:1px solid rgba(138,95,18,.25)}
  .wg-facts-row>p:first-child{border-top:0}
  .wg-pics>:nth-child(2){right:-6px}
  .wg-portrait{float:none;width:100%;margin:0 0 24px!important}
  .wg-teasers{grid-template-columns:1fr}
  .wg-who{grid-template-columns:1fr}
  .wg-footer>.wp-block-group:not(.wg-footer-bottom){grid-template-columns:1fr;gap:18px}
  .wg-footer-bottom>.wg-credit{margin-left:0!important;text-align:left}
  .wg-top-row{min-height:62px;gap:10px}
  .wg-brand img{height:38px}
  .wg-strip .wp-block-image img{height:min(300px,62vw)}
  .wg-wine{width:290px}
  .wg-wine .wg-label{height:236px}
  .wg-wine .wg-label img{height:188px}
  .wg-dl{grid-template-columns:1fr;gap:2px}
  .wg-dl dd{margin-bottom:10px}
  #kapcsolat>.wp-block-columns{grid-template-columns:1fr;gap:24px}
  .wg-cat{width:44%;margin-left:18px!important}
  .wg-map,.wg-map iframe{min-height:0;height:320px}
  .wg-archive{grid-template-columns:9fr 3.5fr 12.5fr}
  .wg-archive>:nth-child(2){grid-column:2/4}
  .wg-archive>:nth-child(3){grid-column:1/3}
  .wg-menu-panel{position:fixed;left:0;right:0;top:62px;bottom:0;width:auto;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;overflow-y:auto;padding:12px 0 96px}
  .wg-menu-link{font-family:var(--wp--preset--font-family--display);font-size:26px;padding:12px 24px}
  .wg-menu-contact a{font-size:17px;padding:12px 24px}
  body:has(.wg-menu[open]){overflow:hidden}
  .wg-dock{position:fixed;left:0;right:0;bottom:0;z-index:25;display:grid;grid-template-columns:repeat(4,1fr);background:rgba(251,247,239,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
  .wg-dock a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 4px 8px;text-decoration:none;font-size:12px;color:var(--ink)}
  .wg-dock svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:var(--green)}
  body:has(.wg-dock){padding-bottom:calc(62px + env(safe-area-inset-bottom))}
}
@media (min-width:782px){.wg-dock{display:none}}

/* Order confirmation */
.wg-thanks .wc-block-order-confirmation-status{text-align:center;margin-bottom:28px}
.wg-thanks .wc-block-order-confirmation-status::before{content:"";display:block;width:72px;height:72px;margin:0 auto 18px;border-radius:50%;background:var(--b-go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/38px no-repeat;animation:wg-pop .45s ease-out both}
.wg-thanks .wc-block-order-confirmation-status h1{font-size:clamp(30px,4.4vw,44px);margin:0 0 10px;color:var(--green)}
.wg-thanks .wc-block-order-confirmation-status p{max-width:58ch;margin:0 auto;color:var(--muted);line-height:1.6}
@keyframes wg-pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.wg-thanks .wc-block-order-confirmation-status::before{animation:none}}

.wg-thanks .wc-block-order-confirmation-summary-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;padding:0;margin:0 0 28px;list-style:none;background:var(--line);border:1px solid var(--line);border-radius:4px;overflow:hidden}
.wg-thanks .wc-block-order-confirmation-summary-list-item{display:flex;flex-direction:column;gap:4px;padding:14px 16px;background:var(--paper)}
.wg-thanks .wc-block-order-confirmation-summary-list-item__key{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.wg-thanks .wc-block-order-confirmation-summary-list-item__value{font-weight:500;overflow-wrap:anywhere}

.wg-thanks .wp-block-woocommerce-order-confirmation-additional-information:not(:empty),
.wg-thanks .wp-block-woocommerce-order-confirmation-totals-wrapper,
.wg-thanks .wc-block-order-confirmation-address-wrapper .wp-block-column > *,
.wg-thanks .wp-block-woocommerce-order-confirmation-additional-fields-wrapper{background:var(--paper);border:1px solid var(--line);border-radius:4px;padding:20px 22px;margin:0 0 20px}
.wg-thanks h2,.wg-thanks h3{font-size:24px;margin:0 0 12px}
.wg-thanks .wc-bacs-bank-details{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.wg-thanks .wc-bacs-bank-details li{display:flex;justify-content:space-between;gap:16px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.wg-thanks .wc-bacs-bank-details li:last-child{border-bottom:0;padding-bottom:0}
.wg-thanks .wc-bacs-bank-details-account-name{font-weight:500}
.wg-thanks table{width:100%;border-collapse:collapse}
.wg-thanks th,.wg-thanks td{padding:10px 0;border-bottom:1px solid var(--line);text-align:left}
.wg-thanks tfoot tr:last-child th,.wg-thanks tfoot tr:last-child td{border-bottom:0;font-weight:600;font-size:18px}
.wg-thanks td:last-child,.wg-thanks th:last-child{text-align:right}
.wg-thanks .wc-block-order-confirmation-address-wrapper{gap:20px;margin:0}
.wg-thanks .wc-block-order-confirmation-address-wrapper .wp-block-column > *{height:100%;box-sizing:border-box}
.wg-thanks address{font-style:normal;line-height:1.6}
.wg-thanks-back{justify-content:center;margin-top:28px}
.wg-thanks .wp-block-woocommerce-order-confirmation-additional-information > p:first-child{margin:0 0 16px;font-weight:500}

.wg-tiers{list-style:none;padding:0;margin:16px 0 20px;display:grid;gap:0}
.wg-tiers li{padding:10px 0;border-top:1px solid var(--line);color:var(--muted)}
.wg-tiers li:last-child{border-bottom:1px solid var(--line)}
.wg-tiers strong{display:block;color:var(--ink);font-weight:500}
.wg-order-note{background:var(--paper);border:1px solid var(--line);border-radius:3px;padding:16px 20px;margin:24px 0;font-size:15px;line-height:1.55}
.wg-order-note p{margin:0 0 6px}.wg-order-note p:last-child{margin:0}
.wg-order-note .wg-back{display:inline-block;margin-top:8px;padding:8px 16px;border:1.5px solid var(--b-read);border-radius:3px;color:var(--b-read);font-weight:600;text-decoration:none}
.wg-order-note .wg-back::before{content:"\2190\00a0"}
.wg-order-note .wg-back:hover{background:color-mix(in srgb,var(--b-read) 8%,transparent)}

/* 404: the hero's look, so a wrong link still lands somewhere that feels like the cellar. */
.wg-404-main{min-height:calc(100vh - 80px);display:flex;align-items:center}
.wg-404{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(40px,6vw,96px);align-items:center;width:100%}
.wg-404 h1{font-size:clamp(40px,4.6vw,72px);line-height:1.04;margin:18px 0 0}
.wg-404 h1 em{font-weight:500;color:var(--green)}
.wg-404 .wg-lead{max-width:52ch;margin:22px 0 0}
.wg-404 .wg-lead span{font-variant-numeric:tabular-nums;font-weight:600;color:var(--ink)}
.wg-404 .wp-block-buttons{margin-top:32px}
.wg-btn-home .wp-block-button__link{background:var(--b-neutral);color:#fff}
.wg-404-or{margin:36px 0 10px;font-size:14px;color:var(--muted)}
.wg-404-links{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:10px 28px}
.wg-404-links a{color:var(--ink);text-underline-offset:4px}
.wg-404-arch{margin:0;justify-self:end;width:min(100%,440px)}
.wg-404-door{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:62% 50%;border-radius:999px 999px 4px 4px;box-shadow:0 30px 50px -28px rgba(42,34,28,.55)}
@media(max-width:781px){
  .wg-404-main{min-height:0}
  .wg-404{grid-template-columns:1fr;gap:36px}
  .wg-404-arch{justify-self:center;width:min(78%,320px)}
}

/* Checkout: form and summary side by side on wide screens, the summary stays in view while the form scrolls. */
/* WooCommerce caps the checkout title at 1000px; it has to line up with the 1500px content below. */
.wg-checkout-page>.wp-block-post-title{max-width:1500px!important;margin:0 auto 8px}
.wg-checkout-page .wg-order-note{margin:12px 0 28px}
@media(min-width:1000px){
  .wc-block-checkout.is-large{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,440px);gap:clamp(32px,4vw,64px);align-items:start}
  .wc-block-checkout.is-large .wc-block-checkout__main,.wc-block-checkout.is-large .wc-block-checkout__sidebar{width:auto;padding:0;margin:0}
  .wc-block-checkout__sidebar{position:sticky;top:100px;background:var(--paper);border:1px solid var(--line);border-radius:3px;padding:20px 24px!important}
}
