/*
Theme Name: Fotograf Staghøj Light
Author: Fotograf Staghøj
Description: Let fototema med simpel WordPress-menu og Gutenberg-mønstre.
Version: 0.4.8
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: fotografstaghoj-light
License: GPL v2 or later
*/
:root{--ink:#26362f;--muted:#65736b;--paper:#faf9f6;--line:#dedfd7;--accent:#355e49}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:var(--sg-size,17px)/var(--sg-leading,1.7) var(--sg-body,system-ui,sans-serif)}a{color:inherit;text-underline-offset:5px}button,input,textarea{font:inherit}button{cursor:pointer}img{max-width:100%;height:auto}h1,h2,h3,h4,h5,h6{font-family:var(--sg-heading,Georgia,serif);font-weight:400;line-height:1.12;letter-spacing:-.035em}h1{font-size:clamp(2rem,6vw,var(--sg-h1,80px))}h2{font-size:clamp(1.75rem,4vw,var(--sg-h2,56px))}h3{font-size:1.7rem}a:focus-visible,button:focus-visible{outline:3px solid #a56c23;outline-offset:5px}.wrap{width:min(var(--sg-width,1680px),calc(100% - 64px));margin:auto}.site-header{background:var(--paper);border-bottom:1px solid var(--line);position:relative;z-index:20}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:105px}.brand{text-decoration:none;line-height:1.2;font-family:var(--sg-heading,Georgia,serif);font-size:27px}.brand small{display:block;font:10px/2.5 var(--sg-body,system-ui);letter-spacing:.25em;text-transform:uppercase}.custom-logo{max-width:210px;max-height:75px;width:auto}.nav-list,.nav-list ul{list-style:none;margin:0;padding:0}.nav-list{display:flex;align-items:center;gap:25px}.nav-list>li{display:flex;align-items:center;gap:5px}.nav-list a{text-decoration:none}.nav-list a:hover{text-decoration:underline}.sub-toggle{border:0;background:transparent;min-width:44px;min-height:44px;color:inherit}.nav-list>li>.sub-menu{position:absolute;top:100%;left:0;width:100%;padding:40px max(32px,calc((100% - var(--sg-width,1680px))/2));background:var(--sg-menu,#f0f1ea);border-bottom:1px solid var(--line);box-shadow:0 18px 25px #26362f12;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 45px}.nav-list>li>.sub-menu>li>a{font-family:var(--sg-heading,Georgia,serif);font-size:24px}.sub-menu .sub-menu{margin-top:10px}.sub-menu .sub-menu a{font-size:16px}.sub-menu[hidden]{display:none!important}.menu-toggle{display:none;padding:10px 16px;border:1px solid var(--line);background:none;border-radius:4px}.skip{position:absolute;top:-100px;left:12px;background:white;padding:10px;z-index:100}.skip:focus{top:8px}.content{padding:65px 0 90px;min-height:60vh}.entry{width:100%;max-width:none;margin:auto}.entry>.alignwide{width:100%;max-width:100%}.entry .wp-block-image img,.wp-block-gallery img{border-radius:3px}.entry-title{margin-top:0}.wp-block-button__link{background:var(--accent);color:var(--sg-button-text,#fff);border-radius:var(--sg-radius,3px);padding:14px 25px;text-decoration:none}.wp-block-columns{gap:36px}.wp-block-cover{border-radius:4px}.site-footer{border-top:1px solid var(--line);padding:45px 0}.footer-inner{display:flex;justify-content:space-between;gap:25px;flex-wrap:wrap}.footer-inner p{margin:0}.footer-links{list-style:none;padding:0;margin:0;display:flex;gap:20px;flex-wrap:wrap}.intro{padding:60px 0 100px;max-width:850px}.intro p{max-width:580px;color:var(--muted)}.eyebrow{font:12px var(--sg-body,system-ui);letter-spacing:.2em;text-transform:uppercase}.post-card{border-bottom:1px solid var(--line);padding-bottom:35px;margin-bottom:35px}.wp-block-gallery{margin:30px 0}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:901px){.site-nav{display:block!important}.entry:has(>.alignwide){max-width:none}}
@media(max-width:900px){.header-inner{min-height:85px;flex-wrap:wrap;gap:0}.brand{font-size:23px}.menu-toggle{display:block}.site-nav{width:100%;padding:15px 0 25px}.site-nav[hidden]{display:none}.nav-list{display:block}.nav-list>li{display:flex;flex-wrap:wrap;border-top:1px solid var(--line);padding:8px 0}.nav-list>li>a{flex:1;padding:8px 0}.nav-list>li>.sub-menu{position:static;width:100%;display:block;padding:15px 20px;box-shadow:none;border:0}.sub-menu li{padding:6px 0}.nav-list>li>.sub-menu>li>a{font-size:21px}.sub-menu .sub-menu a{display:block;padding:6px 0}.content{padding:35px 0 60px}.wrap{width:calc(100% - 32px)}.intro{padding:35px 0 60px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.menu-toggle[hidden]{display:none}

/* Match the wider page canvas in the classic theme block editor. */
.editor-styles-wrapper .wp-block{max-width:var(--sg-width,1680px)}
.editor-styles-wrapper .wp-block[data-align="wide"],.editor-styles-wrapper .wp-block[data-align="full"]{max-width:var(--sg-width,1680px)}

.site-header{background:var(--sg-header,var(--paper))}.site-footer{background:var(--sg-footer,var(--paper))}.site-nav{font-family:var(--sg-body,system-ui,sans-serif)}.entry a:not(.wp-block-button__link){color:var(--sg-link,var(--accent))}
/* Desktop cards; mobile retains compact text-only disclosure menus. */

/* Menu Builder plugin owns desktop menu. WordPress navigation remains mobile and fallback. */
@media(min-width:901px){body.staghoj-builder-active .site-nav{display:none!important}}
@media(max-width:900px){body.staghoj-builder-active .staghoj-builder-nav{display:none!important}}
@media(min-width:901px){.nav-list>li>.sub-menu[hidden]{display:none!important}}


/* Staghøj: editorial image-and-text block patterns. Uses theme typography and palette. */
.sg-photo-story{width:100%;margin-block:clamp(28px,5vw,80px)}
.sg-photo-story .wp-block-columns{align-items:center;gap:clamp(24px,4vw,64px);margin-block:0}
.sg-photo-story .wp-block-column{min-width:0}
.sg-photo-story .sg-photo-story-copy{padding-block:clamp(12px,2vw,32px)}
.sg-photo-story .sg-photo-story-copy>:first-child{margin-top:0}
.sg-photo-story .sg-photo-story-copy>:last-child{margin-bottom:0}
/* Respect native Gutenberg width/height controls and image block inline styles. */
.sg-photo-story figure.sg-photo-story-image{max-width:100%;margin:0}
.sg-photo-story figure.sg-photo-story-image img{display:block;max-width:100%;border-radius:var(--sg-story-radius,24px);object-fit:cover}
.sg-photo-story figure.sg-photo-story-image img:not([style*="height"]){height:auto}
.sg-photo-story figure.sg-photo-story-image img:not([style*="width"]){width:100%}
.sg-photo-story figure.sg-photo-story-image img[style*="height"]{object-fit:cover}
.sg-photo-story figure.sg-photo-story-image.is-resized{display:table;max-width:100%}
.sg-photo-story figure.sg-photo-story-image.is-resized img{max-width:100%}
.sg-photo-story .sg-photo-story-image{margin:0}
.sg-photo-story .sg-photo-story-image:empty{min-height:240px;border:1px dashed var(--line);border-radius:var(--sg-story-radius,24px)}
.sg-photo-story.sg-photo-story-sequence{display:flex;flex-direction:column;gap:clamp(36px,5vw,88px)}
.sg-photo-story.sg-photo-story-sequence>.wp-block-columns{width:100%}
@media(max-width:781px){.sg-photo-story .wp-block-columns{gap:22px}.sg-photo-story .sg-photo-story-copy{padding:0}.sg-photo-story.sg-photo-story-sequence{gap:40px}}

/* Image format styles: use in WordPress image block > Styles. */
.wp-block-image.is-style-sg-original img { width:auto; height:auto!important; max-width:100%; object-fit:contain; aspect-ratio:auto!important; }
.wp-block-image:is(.is-style-sg-landscape-169,.is-style-sg-landscape-32,.is-style-sg-portrait-23,.is-style-sg-square) img { display:block; width:100%!important; height:auto!important; max-width:100%; object-fit:cover; }
.wp-block-image.is-style-sg-landscape-169 img { aspect-ratio:16/9!important; }
.wp-block-image.is-style-sg-landscape-32 img { aspect-ratio:3/2!important; }
.wp-block-image.is-style-sg-portrait-23 img { aspect-ratio:2/3!important; }
.wp-block-image.is-style-sg-square img { aspect-ratio:1/1!important; }
/* Set explicit dimensions only for selected crop styles; aspect-ratio gives the image element its box. */
.wp-block-image:is(.is-style-sg-landscape-169,.is-style-sg-landscape-32,.is-style-sg-portrait-23,.is-style-sg-square) { display:block; }

/* Focal point controls: set on the native WordPress image block. */
.wp-block-image[class*="sg-focus-"] img{object-position:var(--sg-focus-x,50%) var(--sg-focus-y,50%)!important;}
.wp-block-image.sg-focus-x-0{--sg-focus-x:0%;}
.wp-block-image.sg-focus-y-0{--sg-focus-y:0%;}
.wp-block-image.sg-focus-x-5{--sg-focus-x:5%;}
.wp-block-image.sg-focus-y-5{--sg-focus-y:5%;}
.wp-block-image.sg-focus-x-10{--sg-focus-x:10%;}
.wp-block-image.sg-focus-y-10{--sg-focus-y:10%;}
.wp-block-image.sg-focus-x-15{--sg-focus-x:15%;}
.wp-block-image.sg-focus-y-15{--sg-focus-y:15%;}
.wp-block-image.sg-focus-x-20{--sg-focus-x:20%;}
.wp-block-image.sg-focus-y-20{--sg-focus-y:20%;}
.wp-block-image.sg-focus-x-25{--sg-focus-x:25%;}
.wp-block-image.sg-focus-y-25{--sg-focus-y:25%;}
.wp-block-image.sg-focus-x-30{--sg-focus-x:30%;}
.wp-block-image.sg-focus-y-30{--sg-focus-y:30%;}
.wp-block-image.sg-focus-x-35{--sg-focus-x:35%;}
.wp-block-image.sg-focus-y-35{--sg-focus-y:35%;}
.wp-block-image.sg-focus-x-40{--sg-focus-x:40%;}
.wp-block-image.sg-focus-y-40{--sg-focus-y:40%;}
.wp-block-image.sg-focus-x-45{--sg-focus-x:45%;}
.wp-block-image.sg-focus-y-45{--sg-focus-y:45%;}
.wp-block-image.sg-focus-x-50{--sg-focus-x:50%;}
.wp-block-image.sg-focus-y-50{--sg-focus-y:50%;}
.wp-block-image.sg-focus-x-55{--sg-focus-x:55%;}
.wp-block-image.sg-focus-y-55{--sg-focus-y:55%;}
.wp-block-image.sg-focus-x-60{--sg-focus-x:60%;}
.wp-block-image.sg-focus-y-60{--sg-focus-y:60%;}
.wp-block-image.sg-focus-x-65{--sg-focus-x:65%;}
.wp-block-image.sg-focus-y-65{--sg-focus-y:65%;}
.wp-block-image.sg-focus-x-70{--sg-focus-x:70%;}
.wp-block-image.sg-focus-y-70{--sg-focus-y:70%;}
.wp-block-image.sg-focus-x-75{--sg-focus-x:75%;}
.wp-block-image.sg-focus-y-75{--sg-focus-y:75%;}
.wp-block-image.sg-focus-x-80{--sg-focus-x:80%;}
.wp-block-image.sg-focus-y-80{--sg-focus-y:80%;}
.wp-block-image.sg-focus-x-85{--sg-focus-x:85%;}
.wp-block-image.sg-focus-y-85{--sg-focus-y:85%;}
.wp-block-image.sg-focus-x-90{--sg-focus-x:90%;}
.wp-block-image.sg-focus-y-90{--sg-focus-y:90%;}
.wp-block-image.sg-focus-x-95{--sg-focus-x:95%;}
.wp-block-image.sg-focus-y-95{--sg-focus-y:95%;}
.wp-block-image.sg-focus-x-100{--sg-focus-x:100%;}
.wp-block-image.sg-focus-y-100{--sg-focus-y:100%;}

/* Staghøj customizable footer: normal document flow (does not cover page content). */
.sg-footer{--sg-footer-ink:var(--ink);position:relative;padding:0;background:var(--sg-footer,var(--paper));color:var(--sg-footer-ink);overflow:hidden;border:0}
.sg-footer-strip{display:grid;grid-template-columns:repeat(var(--sg-strip-count,5),minmax(0,1fr));height:clamp(120px,17vw,270px);overflow:hidden}
.sg-footer-strip{grid-template-columns:repeat(var(--sg-strip-count,5),minmax(0,1fr))}
.sg-footer-strip-item{min-width:0;overflow:hidden}
.sg-footer-strip-item img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.sg-footer-layout{display:grid;grid-template-columns:1.1fr 1.1fr 1.5fr 1.4fr;gap:clamp(20px,3vw,54px);padding-block:clamp(42px,5vw,78px);align-items:start}
.sg-footer p{margin:0 0 14px}.sg-footer a{color:inherit;text-underline-offset:4px}.sg-footer a:hover{opacity:.75}
.sg-footer-heading{font-family:var(--sg-body,system-ui,sans-serif);font-weight:700;font-size:1.05rem;letter-spacing:0;line-height:1.5;margin:0 0 16px}
.sg-footer-links{list-style:none;columns:2;column-gap:25px;margin:0;padding:0}.sg-footer-links li{break-inside:avoid;margin-bottom:10px}
.sg-footer-copyright-note{font-weight:700;line-height:1.5}.sg-footer-branding{display:flex;gap:18px;flex-wrap:wrap;align-items:center;margin-top:24px}
.sg-footer-brand{max-width:210px;max-height:90px;width:auto;height:auto;object-fit:contain}
.sg-footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-block:16px 24px;border-top:1px solid currentColor;font-size:.85rem}
.sg-footer-help{opacity:.7;font-size:.85rem}
@media(max-width:950px){.sg-footer-layout{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.sg-footer-strip{height:125px;display:flex;overflow:hidden}.sg-footer-strip-item{flex:1;min-width:0}.sg-footer-layout{grid-template-columns:1fr;gap:20px;padding-block:35px}.sg-footer-links{columns:2}.sg-footer-bottom{flex-wrap:wrap}.sg-footer-brand{max-width:160px}}
@media(prefers-reduced-motion:no-preference){.sg-footer.sg-footer-reveal .sg-footer-layout,.sg-footer.sg-footer-reveal .sg-footer-bottom{opacity:0;transform:translateY(32px);transition:opacity .55s ease, transform .55s ease}.sg-footer.sg-footer-reveal.sg-footer-in-view .sg-footer-layout,.sg-footer.sg-footer-reveal.sg-footer-in-view .sg-footer-bottom{opacity:1;transform:translateY(0)}}
