/*
Theme Name: WebDragon Műhely
Theme URI: https://webdragon.hu/
Author: WebDragon
Description: Képközpontú, szerkeszthető kezdőlap bőrműves alkotásokhoz.
Version: 0.5.11
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: webdragon
*/
:root{--wd-bg:#f4eee4;--wd-dark:#1d120d;--wd-accent:#a76632;--wd-cream:#fff8ed}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--wd-bg);color:#241914;font-family:Georgia,'Times New Roman',serif}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.wd-wrap{width:min(1400px,92%);margin:auto}.wd-header{background:var(--wd-dark);color:var(--wd-cream);position:relative;z-index:3}.wd-header-inner{display:flex;align-items:center;justify-content:space-between;gap:2rem;min-height:76px}.wd-brand{display:flex;align-items:center;gap:12px;font-size:clamp(1.35rem,2vw,2rem);white-space:nowrap}.wd-brand img{width:49px;height:62px;object-fit:contain}.wd-menu{display:flex;align-items:center;gap:clamp(14px,2.6vw,42px);list-style:none;margin:0;padding:0}.wd-menu a:hover,.wd-menu a:focus-visible{color:#e5ab70}.wd-menu a{display:block;padding:12px 0}.wd-nav-toggle{display:none;background:none;border:1px solid #a86b3b;color:#fff;padding:8px 12px;font:inherit}.wd-hero{min-height:480px;background-size:cover;background-position:center;display:flex;align-items:center;color:var(--wd-cream);position:relative}.wd-hero:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(14,8,5,.92) 0%,rgba(17,9,4,.78) 30%,rgba(17,9,4,.08) 75%)}.wd-hero-content{position:relative;padding:65px 0}.wd-hero h1{max-width:620px;font-size:clamp(3rem,6vw,5.6rem);line-height:.98;letter-spacing:-.035em;margin:0 0 24px}.wd-hero p{font-size:clamp(1.1rem,2vw,1.65rem);max-width:480px;line-height:1.35}.wd-rule{display:block;width:56px;border-top:2px solid #d69050}.wd-button{display:inline-flex;gap:32px;align-items:center;margin-top:12px;padding:14px 28px;background:#632f17;border:1px solid #e1a46a;color:#fff;box-shadow:inset 0 0 0 3px #4a2110}.wd-button:hover,.wd-button:focus-visible{background:#8a451e}.wd-main{padding:24px 0 65px}.wd-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.wd-card img{display:block;width:100%;aspect-ratio:1.95;object-fit:cover}.wd-card h2{display:flex;justify-content:space-between;font-weight:400;font-size:clamp(1.25rem,1.7vw,1.65rem);border-bottom:1px solid #b78a67;padding-bottom:6px;margin:10px 0 6px}.wd-arrow{color:var(--wd-accent)}.wd-card p{color:#574b42;font-size:1.05rem;line-height:1.35;margin:0}.wd-card:hover img{filter:brightness(1.12)}.wd-section-head{display:flex;align-items:center;gap:24px;margin:38px 0 16px}.wd-section-head h2{font-size:1.7rem;font-weight:400;white-space:nowrap;margin:0}.wd-section-head:after{content:'';height:1px;background:#c9aa92;flex:1}.wd-section-head a{white-space:nowrap;color:#6b3b20}.wd-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:18px}.wd-product img{display:block;width:100%;aspect-ratio:1.35;object-fit:cover}.wd-product h3{font-weight:400;margin:9px 0}.wd-empty{padding:30px;background:#fff9f0;border:1px solid #d7c3ae}.wd-content{max-width:900px;margin:60px auto;min-height:45vh;line-height:1.6;font-size:1.1rem}.wd-footer{background:var(--wd-dark);color:#e5d5c5;padding:28px 0}.wd-footer .wd-wrap{display:flex;justify-content:space-between;gap:24px}.wd-footer a{text-decoration:underline}.screen-reader-text{position:absolute;left:-9999px}.screen-reader-text:focus{left:10px;top:10px;background:#fff;padding:10px;z-index:100}@media(max-width:900px){.wd-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.wd-nav-toggle{display:block}.wd-nav{display:none;position:absolute;top:76px;left:0;right:0;background:var(--wd-dark);padding:14px 4%}.wd-nav.is-open{display:block}.wd-menu{display:block}.wd-menu a{padding:12px}}@media(max-width:560px){.wd-cards{grid-template-columns:1fr;gap:26px}.wd-hero{min-height:430px}.wd-hero:before{background:linear-gradient(90deg,rgba(14,8,5,.88),rgba(14,8,5,.38))}.wd-section-head{gap:10px}.wd-section-head h2{font-size:1.4rem}.wd-footer .wd-wrap{display:block}}
.wd-showcase-wrap{padding:46px 0 80px;min-height:55vh}.wd-showcase{max-width:1080px;margin:auto}.wd-showcase-heading{max-width:840px;margin:0 auto 28px}.wd-back{display:inline-block;color:#754521;font-size:.98rem;margin-bottom:25px;text-decoration:underline;text-underline-offset:4px}.wd-showcase-heading h1{font-size:clamp(2.3rem,5vw,4.2rem);line-height:1.08;margin:0 0 16px}.wd-showcase-intro{font-size:clamp(1.12rem,2vw,1.4rem);line-height:1.5;color:#594637;margin:0}.wd-showcase-image{margin:0 0 34px}.wd-showcase-image img{display:block;width:100%;max-height:720px;object-fit:contain;background:#e9dfd0}.wd-showcase-body{max-width:840px;margin:auto;font-size:1.13rem;line-height:1.7;overflow-wrap:anywhere}.wd-showcase-body img{height:auto}.wd-showcase-body a{text-decoration:underline;text-underline-offset:3px}.wd-showcase-body figure{max-width:100%}.wd-page-links{margin-top:30px}@media(max-width:560px){.wd-showcase-wrap{padding:25px 0 50px}.wd-showcase-image{margin-bottom:24px}}
.wd-showcase-heading,.wd-showcase-body{max-width:var(--wd-content-width,840px)}body{font-family:var(--wd-font-body,Georgia,'Times New Roman',serif);font-size:var(--wd-body-size,18px)}h1,h2,h3,.wd-brand{font-family:var(--wd-font-head,Georgia,'Times New Roman',serif)}.wd-hero h1{font-size:clamp(3rem,6vw,var(--wd-hero-size,90px))}.wd-showcase-heading h1{font-size:clamp(2rem,5vw,var(--wd-page-size,67px))}.wd-card img{aspect-ratio:var(--wd-card-ratio,1.95)}
.wd-campaign{--dw-gutter:clamp(20px,3vw,48px);background:#f8f4e8;color:#14291d}.wd-campaign .dw-hero{background:radial-gradient(circle at 73% 25%,#e5d8ad,transparent 40%),linear-gradient(145deg,#faf7ef,#eee6d0);border-bottom:1px solid #dcccaa;padding:75px var(--dw-gutter) 80px}.wd-campaign .dw-section{padding:85px var(--dw-gutter)}.wd-campaign .wp-block-columns{display:flex;gap:clamp(25px,4vw,65px);align-items:center;max-width:1300px;margin:auto}.wd-campaign .wp-block-column{flex:1;min-width:0}.wd-campaign .dw-eyebrow{color:#866423;font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.wd-campaign h1,.wd-campaign h2{font-family:var(--wd-font-head,Georgia,serif);letter-spacing:-.04em;line-height:1.1}.wd-campaign h1{font-size:clamp(42px,5vw,var(--wd-page-size,67px))}.wd-campaign h2{font-size:clamp(34px,4vw,50px)}.wd-campaign .dw-lead{font-size:19px;line-height:1.6;color:#3f5543}.wd-campaign .dw-label{background:#153522;padding:17px;border:1px solid #a97c2e;box-shadow:14px 16px 0 #d3be8a}.wd-campaign .dw-label img{display:block;width:100%;height:auto}.wd-campaign .dw-card{background:#fffdf6;border:1px solid #dfd1ad;padding:clamp(25px,4vw,48px)}.wd-campaign .dw-cta a,.wd-campaign .dw-poll button{display:inline-block;background:#173a26;color:#fff8e5;padding:15px 23px;border:1px solid #173a26;text-decoration:none;font-weight:700;cursor:pointer}.wd-campaign .dw-cta a:hover,.wd-campaign .dw-poll button:hover{background:#28583b}.wd-campaign .dw-poll fieldset{border:0;padding:0;margin:0 0 30px}.wd-campaign .dw-poll legend{font:normal 22px Georgia,serif;margin-bottom:15px}.wd-campaign .dw-poll label{display:inline-flex;gap:8px;align-items:center;border:1px solid #cfc3a4;background:#faf6ea;padding:11px 15px;margin:0 8px 9px 0;cursor:pointer}.wd-campaign .dw-poll label:has(input:checked){background:#e4eddf;border-color:#28613a}.wd-campaign .dw-poll .dw-note{font-size:13px;color:#59665c;line-height:1.5}.wd-campaign .dw-poll .dw-error{color:#a32c26;font-weight:700}.wd-campaign-existing{padding:35px 0}@media(max-width:780px){.wd-campaign .dw-hero{padding:45px 20px}.wd-campaign .dw-section{padding:65px 20px}.wd-campaign .wp-block-columns{flex-direction:column;align-items:stretch}.wd-campaign .dw-label{max-width:560px;margin:15px auto}.wd-campaign .dw-poll label{display:flex}}
.wd-hero{min-height:var(--wd-hero-height,480px);background-position:var(--wd-hero-position,center center)}.wd-hero:before{background:linear-gradient(90deg,rgba(14,8,5,var(--wd-hero-shade,.78)) 0%,rgba(17,9,4,.68) 35%,rgba(17,9,4,.08) 75%)}.wd-cards{grid-template-columns:repeat(var(--wd-card-columns,4),minmax(0,1fr));gap:var(--wd-card-gap,24px)}.wd-card img{height:var(--wd-card-height,auto)}@media(max-width:900px){.wd-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.wd-cards{grid-template-columns:1fr}.wd-hero{min-height:min(var(--wd-hero-height,480px),620px)}.wd-hero:before{background:linear-gradient(90deg,rgba(14,8,5,var(--wd-hero-shade,.78)),rgba(14,8,5,.38))}}
@media(max-width:560px){.wd-section-head{display:block}.wd-section-head:after{display:none}.wd-section-head h1,.wd-section-head h2{white-space:normal;overflow-wrap:anywhere;line-height:1.2}.wd-section-head a{display:inline-block;white-space:normal;margin-top:9px;overflow-wrap:anywhere}}
.wd-hero:before{background:linear-gradient(90deg,rgba(14,8,5,var(--wd-hero-shade,.78)) 0%,rgba(17,9,4,var(--wd-hero-shade,.78)) 35%,rgba(17,9,4,.04) 80%)}.wd-cards .wd-card{min-width:0}.wd-cards .wd-card h2{overflow-wrap:anywhere}.wd-cards .wd-card img{max-width:100%}@media(max-width:560px){.wd-hero{min-height:var(--wd-mobile-hero-height,430px)}.wd-hero h1{font-size:var(--wd-mobile-hero-size,48px)}.wd-cards{grid-template-columns:repeat(var(--wd-mobile-columns,1),minmax(0,1fr))}.wd-cards .wd-card h2{font-size:clamp(1.05rem,4.5vw,1.4rem)}.wd-hero:before{background:linear-gradient(90deg,rgba(14,8,5,var(--wd-hero-shade,.78)),rgba(14,8,5,.22))}}
.wd-header{background:var(--wd-header-bg,var(--wd-dark));color:var(--wd-header-fg,var(--wd-cream))}.wd-header-inner{min-height:var(--wd-header-height,76px)}.wd-brand{min-width:0}.wd-brand img{width:var(--wd-logo-width,49px);height:var(--wd-logo-height,62px);flex-shrink:0}.wd-brand span{overflow:hidden;text-overflow:ellipsis}.wd-menu{font-size:var(--wd-menu-size,18px)}.wd-footer{background:var(--wd-footer-bg,var(--wd-dark));color:var(--wd-footer-fg,#e5d5c5);padding:var(--wd-footer-padding,28px) 0}.wd-nav-toggle{flex-shrink:0}@media(max-width:560px){.wd-brand{white-space:normal;font-size:clamp(1.1rem,5vw,1.6rem)}.wd-brand span{overflow-wrap:anywhere}.wd-footer .wd-wrap span{display:block;margin-bottom:8px}}

/* Consistent product cards: keep the complete photo visible. */
.wd-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.wd-product{display:flex;flex-direction:column;min-width:0;background:#fff9f0;border:1px solid #d7c3ae;border-radius:8px;overflow:hidden}
.wd-product-media{display:flex;align-items:center;justify-content:center;aspect-ratio:4 / 3;background:#e9dfd1}
.wd-product .wd-product-media img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;display:block}
.wd-product-placeholder{color:#574b42;padding:24px;text-align:center}
.wd-product-copy{display:flex;flex-direction:column;flex:1;padding:18px}
.wd-product .wd-product-title{font-size:1.3rem;font-weight:400;margin:0 0 10px;line-height:1.3}
.wd-product-summary{font-size:1rem;line-height:1.5;margin:0 0 16px;color:#574b42}
.wd-product-more{margin-top:auto;color:var(--wd-accent);padding-top:8px}
.wd-product:hover,.wd-product:focus-visible{border-color:var(--wd-accent)}
.wd-product:focus-visible{outline:2px solid var(--wd-accent);outline-offset:3px}
@media(max-width:900px){.wd-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.wd-products{grid-template-columns:1fr}}

/* Natural photo proportions avoid empty bands around portrait images. */
.wd-product-media{aspect-ratio:auto;background:transparent;display:block}
.wd-product .wd-product-media img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
.wd-product-placeholder{display:block;min-height:100px;background:#e9dfd1}

/* Limit large showcase photos without stretching their frame. */
.wd-showcase-image img,.wd-showcase-body .wp-block-image img{display:block;width:auto;height:auto;max-width:100%;max-height:600px;margin-left:auto;margin-right:auto;background:transparent}

/* 0.5.4 – kompakt „névjegykártya” lista a Legújabb alkotásokhoz */
.wd-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,360px));gap:12px 18px;align-items:start;justify-content:start}
.wd-product{display:grid;grid-template-columns:120px minmax(0,1fr);width:100%;max-width:360px;height:140px;min-width:0;background:transparent;border:0;border-radius:0;overflow:hidden;padding:0;box-shadow:none}
.wd-product-media{width:120px;height:140px;padding:20px 0 20px 20px;background:transparent;display:flex;align-items:center;justify-content:flex-start}
.wd-product .wd-product-media img{display:block;width:100px;height:100px;max-width:100px;max-height:100px;aspect-ratio:1/1;object-fit:cover;background:transparent}
.wd-product-placeholder{display:flex;width:100px;height:100px;min-height:0;padding:8px;align-items:center;justify-content:center;background:rgba(255,255,255,.18);font-size:.8rem}
.wd-product-copy{display:flex;flex-direction:column;min-width:0;height:140px;padding:18px 12px 14px 14px;background:transparent;overflow:hidden}
.wd-product .wd-product-title{font-size:1.05rem;font-weight:400;line-height:1.2;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wd-product-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:.88rem;line-height:1.3;margin:0;color:#574b42}
.wd-product-more{margin-top:auto;padding-top:4px;font-size:.86rem;color:var(--wd-accent)}
.wd-product:hover,.wd-product:focus-visible{border:0;background:rgba(255,255,255,.12)}
.wd-product:focus-visible{outline:2px solid var(--wd-accent);outline-offset:2px}
@media(max-width:560px){.wd-products{grid-template-columns:1fr}.wd-product{max-width:360px;width:100%;grid-template-columns:110px minmax(0,1fr)}.wd-product-media{width:110px;padding-left:10px}}

/* The middle image menu always stays on one row, including on mobile. */
.wd-cards{grid-template-columns:none;grid-template-rows:auto;grid-auto-flow:column;grid-auto-columns:min(100%,var(--wd-menu-card-width,240px));gap:var(--wd-card-gap,24px);overflow-x:auto;overflow-y:hidden;align-items:start;padding:2px 2px 16px;scroll-snap-type:x proximity;scroll-padding-inline:2px;scrollbar-width:thin}
.wd-cards .wd-card{scroll-snap-align:start;width:100%;min-width:0}
.wd-cards .wd-card img{width:100%;object-fit:cover}
.wd-cards:focus-visible{outline:2px solid var(--wd-accent);outline-offset:4px}

/* 0.5.11: collapsed dropdown menus; parent links remain clickable. */
.wd-menu li{position:relative}
.wd-menu .menu-item-has-children>a{padding-right:38px}
.wd-submenu-toggle{position:absolute;right:0;top:5px;width:34px;min-height:34px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.wd-submenu-toggle:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.wd-menu .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:20;min-width:230px;max-width:min(320px,90vw);margin:0;padding:6px 0;list-style:none;background:var(--wd-header-bg,var(--wd-dark));color:var(--wd-header-fg,var(--wd-cream));border:1px solid #a86b3b;box-shadow:0 8px 20px #0004}
.wd-menu .sub-menu a{padding:10px 16px;overflow-wrap:anywhere}
.wd-menu .sub-menu .menu-item-has-children>a{padding-right:42px}
.wd-menu .sub-menu .sub-menu{top:0;left:100%}
.wd-menu>li:last-child>.sub-menu{left:auto;right:0}
.wd-menu li.is-submenu-open>.sub-menu{display:block}
@media(min-width:901px) and (hover:hover){.wd-menu li:hover>.sub-menu{display:block}}
@media(max-width:900px){
.wd-nav{top:100%;max-height:80vh;overflow-y:auto}
.wd-menu .sub-menu,.wd-menu .sub-menu .sub-menu{position:static;min-width:0;max-width:none;margin:0 0 4px 12px;border:0;border-left:1px solid #a86b3b;box-shadow:none}
.wd-menu .menu-item-has-children>a{padding-right:44px}
.wd-submenu-toggle{top:6px;width:40px;min-height:40px}
}
