/* ============================================================
   Skydive Tandem — edge-case styles only.
   Layout, color, spacing and typography live in block attributes
   and theme.json. Rules here cover what native blocks can't
   express: pseudo-elements, absolute positioning, fit-content
   pills, the gallery mosaic and media object-fit.
   ============================================================ */

:root{
  --sd-accent:#cf2e2e;
  --sd-navy:#243571;
  /* Navy taken down a step — the section nav row. It has to separate three
     stacked navy bands (top bar, header, page-header) without a second hue.
     Darker rather than lighter: a lighter row between two dark ones reads as a
     gap, a darker one reads as a shelf the header sits on. */
  --sd-navy-shelf:#1b2857;
  --sd-ink:#0f1720;
  --sd-muted:#8794a8;
  --sd-slate:#516079;
  /* Light amber. Only ever a background here (.sd-campaign, with ink text) —
     as text it is 2.2:1 on white, so the palette has a separate `amber`
     for that. See theme.json. */
  --sd-gold:#f2994a;
  --sd-steel:#354254;
  --sd-line:#e3e8f0;
  --sd-cloud:#cdd9f0;
  --sd-iceblue:#eaf2fb;
  --sd-max:1200px;
  --sd-gutter:clamp(20px,5vw,40px);
  --sd-topbar-h:38px;
  /* The header is absolutely positioned, so anything that has to sit below it —
     the section nav band — needs its height as a value. Measured: 70px (16px
     padding around the 38px booking pill, the tallest item), 72px on phones
     (14px around the 44px menu toggle). Rounded up, because too small overlaps
     the row and too large only adds navy to a navy band. */
  --sd-header-h:72px;
  --sd-anchor-offset:24px;
}

@media (prefers-reduced-motion:no-preference){ html{ scroll-behavior:smooth; } }
/* scroll-padding rather than per-anchor scroll-margin: it also applies when the
   browser scrolls a keyboard-focused element into view, which otherwise lands
   under the pinned sub-nav row (WCAG 2.4.11). */
html{ scroll-padding-top:var(--sd-anchor-offset); }
html:has(.sd-sticky-cta){ scroll-padding-bottom:80px; }
/* Swedish compounds ("Fallskärmsuppvisning") are wider than a 320px screen at
   heading sizes; let them hyphenate, and break as a last resort (WCAG 1.4.10). */
h1,h2,h3{ overflow-wrap:break-word; hyphens:auto; }
.has-display-font-size{ hyphens:manual; }

/* ---------- keyboard focus ----------
   Without this the only focus indicator is the browser default: a 1px blue
   ring, which is invisible on the navy header and on the accent buttons.
   Two rings so one of them always contrasts: the inner ring flips with the
   surrounding surface, the outer halo covers the case where the inner ring
   matches the element itself (a white button on a photo, say). */
:root{ --sd-focus:var(--sd-ink); --sd-focus-halo:#fff; }
/* .sd-topbar is deliberately absent: it is the one light surface in the chrome,
   so it keeps the default ink ring. */
.sd-header,nav.sd-subnav,footer,
.wp-block-cover,
.has-navy-background-color,
.has-ink-background-color{ --sd-focus:#fff; --sd-focus-halo:rgba(15,23,32,.6); }

:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{
  outline:2px solid var(--sd-focus);
  outline-offset:2px;
  box-shadow:0 0 0 4px var(--sd-focus-halo);
}

.sd-page, .sd-page *{ box-sizing:border-box; }
/* native inline text-color format uses <mark>; kill the browser's yellow highlight */
mark.has-inline-color{ background:transparent; }
.sd-page :where(p){ margin:0; }
.sd-page{ position:relative; }

/* ---------- top bar (normal flow, below the absolute header) ----------
   Ice blue with navy text, set as block attributes on parts/top-bar.html. It is
   phone, mail and payment marks — service, not navigation — so it reads as a
   light utility strip and leaves the navy below it as one unbroken masthead. */
.sd-topbar{ position:relative; z-index:20; height:var(--sd-topbar-h); padding:0 var(--sd-gutter); margin:0 !important; }
/* inline-block + padding so the phone and mail links clear the 24px minimum
   target size (WCAG 2.5.8) inside the 38px bar */
.sd-topbar a{ display:inline-block; padding:6px 2px; text-decoration:none; }
.sd-topbar a:hover{ text-decoration:underline; text-underline-offset:4px; }
.sd-topbar-pay .wp-block-image{ margin:0; line-height:0; }
@media (max-width:559px){ body .sd-topbar .sd-topbar-pay{ display:none; } }
/* "Sida utan toppfält" template: no utility strip, header sits at the very top */
.sd-no-topbar{ --sd-topbar-h:0px; }
.sd-no-topbar .sd-topbar{ display:none; }

/* ---------- header (native template part, overlays the hero) ---------- */
/* Must outrank .sd-topbar: the mobile overlay menu is a child of this group, so
   it can only ever paint as high as the header's own stacking position. When the
   top bar won, it covered the top 24px of the 44px close button — the X looked
   fine but every tap landed on the top bar and the menu would not close. */
.sd-header{ position:absolute; left:0; right:0; top:var(--sd-topbar-h); z-index:21; padding:16px var(--sd-gutter) !important; margin:0 !important; }
/* The header is white-on-transparent because it overlays a dark hero. Pages
   that don't open with one (a bare content or form page) get a navy band
   behind it instead, so the menu stays readable. A cover that is the first
   block inside a wrapping group (the Black Week page) counts as a hero too. */
.sd-page:not(:has(main > :first-child:is(.wp-block-cover,.has-navy-background-color)),
             :has(main > .wp-block-post-content > :first-child:is(.wp-block-cover,.has-navy-background-color)),
             :has(main > .wp-block-post-content > :first-child > .wp-block-cover:first-child)) .sd-header{
  background:var(--sd-navy);
}
.sd-header-inner{ max-width:var(--sd-max); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:16px; }
/* line-height:0 — the image sits in an inline <a>, whose line box added ~7px
   below the logo and made the figure the tallest thing in the header. */
.sd-header .sd-logo{ margin:0; flex-shrink:0; line-height:0; }
.sd-header .sd-logo img{ height:36px; width:auto; display:block; }
.sd-nav-right{ display:flex; align-items:center; gap:20px; }
/* native core/navigation menu */
.sd-header .wp-block-navigation{ --wp--style--block-gap:22px; }
.sd-header .wp-block-navigation__container{ gap:22px; }
/* 5px block padding lifts the 14px text to a 24px target (WCAG 2.5.8) without
   changing the header height, which is set by the taller logo and CTA. */
.sd-header .wp-block-navigation .wp-block-navigation-item__content{ font:600 14px/1 'Open Sans'; color:#fff; text-decoration:none; padding:5px 0; }
.sd-header .wp-block-navigation .wp-block-navigation-item__content:hover{ text-decoration:underline; text-underline-offset:7px; text-decoration-thickness:2px; text-decoration-color:var(--sd-accent); }
/* dropdown panels — the submenu containers inherit the block's overlay colors
   (white on navy), so these rules only give the panel its shape. Opening is
   core's: pointer hover, or the chevron button for keyboard users. */
.sd-header .wp-block-navigation .has-child > .wp-block-navigation__submenu-container{
  top:calc(100% + 14px); left:-18px;
  padding:10px; border:0 !important; border-radius:16px;
  /* the inset ring is the panel's only edge on pages where the header sits on a
     navy band — same colour, so the drop shadow alone would not separate them */
  box-shadow:0 20px 44px rgba(4,25,54,.38), inset 0 0 0 1px rgba(255,255,255,.14);
}
/* keeps the pointer inside the parent <li> while it crosses the 14px gap —
   core closes the submenu on pointerleave of the item, not of the panel */
.sd-header .wp-block-navigation .has-child > .wp-block-navigation__submenu-container::before{
  content:""; position:absolute; left:0; right:0; top:-14px; height:14px;
}
/* set by nav-dismiss.js when Escape is pressed over an open panel */
.sd-header .wp-block-navigation .has-child.sd-submenu-dismissed > .wp-block-navigation__submenu-container{
  visibility:hidden; opacity:0;
}
.sd-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
  padding:10px 14px; border-radius:10px; font-weight:600; white-space:nowrap;
}
.sd-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.sd-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus{
  background:rgba(255,255,255,.12); text-decoration:none;
}
.sd-header .wp-block-navigation .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content{ color:var(--sd-accent); }
/* chevron: core renders it as a sibling button of the parent link, and gives it
   a fixed height with vertical padding — the content box collapses to 0 and the
   baseline-aligned svg hangs ~6px below the label. Own the box instead: match
   the link's 24px height and centre the icon in it. */
.sd-header .wp-block-navigation .wp-block-navigation-submenu__toggle{
  display:flex; align-items:center; justify-content:center;
  width:24px; height:24px; padding:0; margin-left:-2px;
  color:#fff; opacity:.75; transition:opacity .15s ease;
}
/* rotate the icon, not the button: the button carries the left margin, so
   flipping it would shift the caret sideways as well */
.sd-header .wp-block-navigation .wp-block-navigation-submenu__toggle svg{
  display:block; width:10px; height:10px; stroke:currentColor; transition:transform .15s ease;
}
.sd-header .wp-block-navigation .has-child:hover > .wp-block-navigation-submenu__toggle,
.sd-header .wp-block-navigation .has-child:focus-within > .wp-block-navigation-submenu__toggle{ opacity:1; }
.sd-header .wp-block-navigation .has-child:hover > .wp-block-navigation-submenu__toggle svg,
.sd-header .wp-block-navigation .has-child:focus-within > .wp-block-navigation-submenu__toggle svg{ transform:rotate(180deg); }
/* frosted pill. 38px keeps these from setting the header
   height (well above the 24px WCAG 2.5.8 target); the hamburger, which is the
   only one of them that carries a tap on a phone, goes back to 44px below the
   overlay breakpoint. */
.sd-header .wp-block-navigation__responsive-container-open,
.sd-header .wp-block-navigation__responsive-container-close{
  width:38px; height:38px; padding:0; align-items:center; justify-content:center;
  color:#fff; background:rgba(255,255,255,.16); backdrop-filter:blur(6px);
  border:0; border-radius:100px; cursor:pointer; transition:background .15s ease;
}
.sd-header .wp-block-navigation__responsive-container-open:hover,
.sd-header .wp-block-navigation__responsive-container-close:hover{ background:rgba(255,255,255,.32); }
.sd-header .wp-block-navigation__responsive-container-open svg,
.sd-header .wp-block-navigation__responsive-container-close svg{ fill:currentColor; }
/* collapse to the overlay menu below 1000px — core's 600px breakpoint lets the
   menu wrap over the hero on tablets */
@media (max-width:999px){
  .sd-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){ display:none; }
  .sd-header .wp-block-navigation__responsive-container-open:not(.always-shown){ display:flex; }
  .sd-header .wp-block-navigation__responsive-container-open,
  .sd-header .wp-block-navigation__responsive-container-close{ width:44px; height:44px; }
  /* that 44px toggle is now the tallest item, so the band below has to allow for it */
  :root{ --sd-header-h:76px; }
  .sd-header .wp-block-navigation{ order:10; } /* hamburger sits far right */
}
/* open overlay — colors come from the block's own overlay attributes */
.sd-header .wp-block-navigation__responsive-container.is-menu-open{ padding:88px var(--sd-gutter) 40px; }
body.admin-bar .sd-header .wp-block-navigation__responsive-container.is-menu-open{ top:var(--wp-admin--admin-bar--height,46px); }
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{ font:700 24px/1.25 'Prompt','Open Sans',sans-serif; letter-spacing:-0.01em; }
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{ gap:14px; }
/* Core keeps every submenu expanded inside the overlay, so the dropdowns read
   as indented groups here instead of floating panels. */
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container{
  top:auto; left:auto; min-width:0; margin-top:8px;
  padding:0 0 0 16px !important; border-radius:0;
  border-left:2px solid rgba(255,255,255,.3) !important; box-shadow:none;
}
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container::before{ display:none; }
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
  font:600 17px/1.3 'Open Sans'; padding:8px 0; border-radius:0;
}
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover{ background:none; text-decoration:underline; text-underline-offset:5px; text-decoration-color:var(--sd-accent); }
/* the toggle would only collapse a panel the overlay always shows */
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle{ display:none; }
/* anchor the close button where the hamburger sits (wrappers must not trap the absolute) */
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog{ position:static; }
/* Core stacks its own offsets on top of the container padding (a dialog margin
   plus root padding on the content). That was harmless while the menu fitted;
   with the submenus expanded the list scrolls, so ~100px of dead space at the
   top just pushes items out of reach. */
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog{ margin-top:0; }
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{ padding-top:0; }
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close{ display:flex; position:absolute; top:16px; right:var(--sd-gutter); }
/* booking CTA menu item: hidden in the inline menu, accent pill in the overlay */
.sd-header .wp-block-navigation__responsive-container:not(.is-menu-open) .sd-menu-cta{ display:none; }
.sd-header .wp-block-navigation__responsive-container.is-menu-open .sd-menu-cta{ margin-top:22px; }
.sd-header .wp-block-navigation__responsive-container.is-menu-open .sd-menu-cta .wp-block-navigation-item__content{
  display:inline-block; font:700 17px/1 'Open Sans'; background:var(--sd-accent); color:#fff;
  padding:16px 30px; border-radius:100px;
}
@media (prefers-reduced-motion:no-preference){
  @keyframes sd-menu-in{ from{ opacity:0; transform:translateY(-10px); } to{ opacity:1; transform:none; } }
  .sd-header .wp-block-navigation__responsive-container.is-menu-open{ animation:sd-menu-in .22s ease; }
}
/* mini-cart (woocommerce block; attrs only color it after hydration) —
   frosted pill so the white icon reads on bright photo areas */
.sd-header .wc-block-mini-cart{ margin:0; }
/* Only surface the cart once it holds something. The badge carries `hidden`
   while the cart is empty (productCountVisibility: greater_than_zero), and the
   interactivity API resolves that server-side, so there is no empty-cart flash. */
.sd-header .wc-block-mini-cart:has(.wc-block-mini-cart__badge[hidden]){ display:none; }
/* The badge's text colour is written as an inline style at runtime, derived from
   its own background — i.e. always identical to it. Hence !important. */
.sd-header .wc-block-mini-cart__badge{
  color:#fff !important; font:700 12px/1 'Open Sans';
}
.sd-header .wc-block-mini-cart__button{
  width:38px; height:38px; padding:0; align-items:center; justify-content:center;
  color:#fff; background:rgba(255,255,255,.16); backdrop-filter:blur(6px);
  border-radius:100px; transition:background .15s ease;
}
.sd-header .wc-block-mini-cart__button:hover{ background:rgba(255,255,255,.32); }
.sd-header .wc-block-mini-cart__icon{ width:22px; height:22px; }
/* Boka nu button (core/button) */
.sd-header .sd-nav-cta{ margin:0; }
.sd-header .sd-nav-cta .wp-block-button__link{ font:700 14px/1 'Open Sans'; color:var(--sd-accent); background:#fff; padding:12px 20px; border-radius:100px; box-shadow:none; white-space:nowrap; }
.sd-header .sd-nav-cta .wp-block-button__link:hover{ color:#fff; background:var(--sd-accent); }
/* language switcher — outlined pill so it reads as a toggle rather than another
   destination in the menu.
   The inline menu is already at full width, so the switcher follows the same
   pattern as the booking CTA: the menu item is hidden inline and only shown in
   the overlay, while a standalone pill sits in .sd-nav-right on desktop.
   Polylang's navigation switcher discards the block's className, so hook its
   own class for the menu item. */
.sd-header .sd-lang-header{ margin:0; padding:0; list-style:none; }
.sd-header .sd-lang-header .lang-item{ margin:0; list-style:none; }
.sd-header .sd-lang-header a{
  display:block; font:700 12px/1 'Open Sans'; letter-spacing:.08em; text-transform:uppercase;
  color:#fff; text-decoration:none;
  border:1.5px solid rgba(255,255,255,.45); padding:9px 13px; border-radius:100px;
  transition:background .15s ease, border-color .15s ease;
}
.sd-header .sd-lang-header a:hover{ background:rgba(255,255,255,.16); border-color:#fff; }
/* the in-menu item: hidden inline, shown in the overlay at menu scale */
.sd-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-polylang-navigation-language-switcher{ display:none; }
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-polylang-navigation-language-switcher{ margin-top:18px; }
.sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-polylang-navigation-language-switcher > .wp-block-navigation-item__content{
  display:inline-block; font:700 15px/1 'Open Sans'; letter-spacing:.08em; text-transform:uppercase;
  border:1.5px solid rgba(255,255,255,.45); padding:12px 22px; border-radius:100px;
}
/* below the overlay breakpoint the overlay carries it, so drop the header pill */
@media (max-width:999px){ .sd-header .sd-lang-header{ display:none; } }
/* compact header on phones */
@media (max-width:600px){
  .sd-header{ padding:14px 16px !important; }
  .sd-header .sd-logo img{ height:32px; }
  .sd-nav-right{ gap:10px; }
  .sd-header .sd-nav-cta .wp-block-button__link{ font-size:13px; padding:11px 16px; }
  .sd-header .wp-block-navigation__responsive-container.is-menu-open{ padding:70px 20px 32px; }
  .sd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close{ top:14px; right:16px; }
}

/* ---------- section nav (sticky sub-navigation on /tandem/, /fallskarmskurs/, /skydivers/) ----------
   One band does two jobs. Its padding-top is the flow height the absolute header
   doesn't contribute, so the page below it starts under the header rather than
   behind it; and because the sticky offset is that same height negated, the band
   scrolls up until only the link row is left, pinned to the viewport top.
   Hence the gradient rather than a background-color: that padding is what sits
   behind the header where a hero would otherwise be, so it has to stay plain
   navy for the white header text, while the row itself is the darker shelf. The
   two stops meet at the header's height — keep them on the same variable.
   z-index stays under .sd-header (21) so the mobile overlay menu covers it.
   The tag qualifier matters: core/navigation repeats the block's own classes on
   the inner <ul>, so a bare .sd-subnav would build the band twice. */
nav.sd-subnav{
  position:sticky; top:calc(-1 * var(--sd-header-h)); z-index:19;
  padding-top:var(--sd-header-h);
  background:linear-gradient(to bottom, var(--sd-navy) var(--sd-header-h), var(--sd-navy-shelf) var(--sd-header-h));
  /* more links than fit is normal on phones: scroll the row, never wrap it */
  overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none;
}
nav.sd-subnav::-webkit-scrollbar{ display:none; }
/* The admin bar is fixed for logged-in users, so the pinned row has to start
   below it — 32px wide screens, 46px from 782px down. Under 600px the admin bar
   is absolute and scrolls away, so the plain offset applies again. */
body.admin-bar nav.sd-subnav{ top:calc(32px - var(--sd-header-h)); }
@media (max-width:782px){ body.admin-bar nav.sd-subnav{ top:calc(46px - var(--sd-header-h)); } }
@media (max-width:600px){ body.admin-bar nav.sd-subnav{ top:calc(-1 * var(--sd-header-h)); } }
.sd-subnav .wp-block-navigation__container{
  max-width:var(--sd-max); margin:0 auto; padding:0 var(--sd-gutter);
  gap:26px; flex-wrap:nowrap; justify-content:flex-start;
}
/* The doubled class is not a typo. Core ships
   `.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}`
   at specificity 0,3,0, so a single-class rule here loses and the links inherit
   the page's ink colour — unreadable on the navy shelf. Repeat the class the way
   core does to outrank it. The header nav escapes this because `.sd-header`
   already gives it a third class. */
.sd-subnav .wp-block-navigation-item__content{
  display:block; padding:14px 0; white-space:nowrap;
  font:600 14px/1.2 'Open Sans'; text-decoration:none;
}
.sd-subnav .wp-block-navigation-item__content.wp-block-navigation-item__content{ color:#a9bde3; }
.sd-subnav .wp-block-navigation-item__content.wp-block-navigation-item__content:hover{ color:#fff; }
/* the section root is the first item; make it read as the band's label */
.sd-subnav .wp-block-navigation__container > .wp-block-navigation-item:first-child{
  padding-right:26px; border-right:1px solid rgba(255,255,255,.18);
}
.sd-subnav .wp-block-navigation__container > .wp-block-navigation-item:first-child .wp-block-navigation-item__content{
  font-weight:700; color:#fff;
}
/* core marks the current page on the link itself */
.sd-subnav .wp-block-navigation-item__content[aria-current="page"]{
  color:#fff; box-shadow:inset 0 -3px 0 var(--sd-accent);
}
/* The band, not the hero, now sits behind the header, so in-page anchors have to
   clear the pinned row (about 46px) instead of the old bare 24px. */
html:has(nav.sd-subnav){ --sd-anchor-offset:70px; }
html:has(body.admin-bar nav.sd-subnav){ --sd-anchor-offset:102px; }
/* The hero's 150px top padding exists only to clear the overlaid header. On a
   section page the band already does that, so the padding would only add a tall
   empty navy block above the title. Inline padding needs the !important. */
.sd-page:has(.sd-subnav) .wp-block-post-content > .sd-page-hero:first-child{
  padding-top:56px !important;
}
@media (max-width:600px){
  :root{ --sd-header-h:74px; }
  .sd-subnav .wp-block-navigation__container{ gap:20px; padding:0 16px; }
  .sd-subnav .wp-block-navigation-item__content{ font-size:13px; padding:12px 0; }
  .sd-subnav .wp-block-navigation__container > .wp-block-navigation-item:first-child{ padding-right:20px; }
  /* the admin bar scrolls away at this width, so it needs no allowance — but its
     rule above outranks the plain one, so restate it here */
  html:has(nav.sd-subnav),
  html:has(body.admin-bar nav.sd-subnav){ --sd-anchor-offset:58px; }
}

/* ---------- page hero (the default sub-page header) ----------
   A core/cover in the "Sidhuvud" synced pattern (wp_block, slug `sidhuvud`):
   one attached image, swapped for all pages at once by replacing it there. Each
   page supplies only its own title, intro, button and link, through
   core/pattern-overrides — see the README.

   The pattern carries all four slots, but most pages fill two, so the unused
   ones arrive empty and are hidden here rather than pruned per page. Both still
   take up space otherwise: the paragraph keeps its 22px top margin, and although
   core omits an empty button altogether, the wp:buttons wrapper it leaves behind
   keeps its 26px. Hence `:empty` on the wrapper, not on the button. */
.sd-page-hero p:empty,
.sd-page-hero .wp-block-buttons:empty{ display:none; }

/* ---------- footer ---------- */
/* Header and footer share the brand-logo pattern, so the size lives here
   rather than as an inline height on the image block. */
footer .sd-logo{ margin:0; }
footer .sd-logo img{ height:34px; width:auto; display:block; }

/* wp:columns only stacks at 782px, so from there up to about 1040px the four
   columns are narrow enough to wrap every link label onto two lines, which puts
   the row back out of balance. Reflow to two columns before that happens. The
   !important mirrors core's own stacking rule and is the only way past the
   inline flex-basis each column carries. */
@media (min-width:782px) and (max-width:1040px){
  .sd-footer-cols{ flex-wrap:wrap !important; }
  .sd-footer-cols > .wp-block-column{ flex-basis:calc(50% - 20px) !important; }
}

/* Every footer link brightens to white on hover. Underlines are left to the
   default everywhere except the two link lists below, where a run of underlined
   rows reads as noise — and where the label alone is clearly a link. */
footer a:hover{ color:#fff; }

/* Link columns. core/list has no blockGap control, so the row rhythm lives here;
   the padding keeps each row at the same 24px target as the header menu. */
.sd-footer-links{ list-style:none; padding:0; }
.sd-footer-links li{ margin:0; }
.sd-footer-links li + li{ margin-top:10px; }
.sd-footer-links a{ display:inline-block; padding:2px 0; text-decoration:none; }
.sd-footer-links a:hover{ text-decoration:underline; text-underline-offset:3px; }

/* Review cards. Stars use gold rather than the amber rating colour: amber is
   picked for contrast on light cards and goes muddy on the ink background. */
.sd-footer-reviews .sd-review-stars{ color:var(--sd-gold); letter-spacing:1px; }
.sd-review-card{ background:rgba(255,255,255,.03); }

/* Logos come in at wildly different aspect ratios, so they are sized by height
   and the row is free to wrap. */
.sd-footer-pay .wp-block-image{ margin:0; }
.sd-footer-pay img{ display:block; }

/* Geographic landing pages: one wrapping link row rather than a fifth column,
   which would squeeze the address block on tablet widths. */
.sd-footer-cities a{ text-decoration:none; }
.sd-footer-cities a:hover{ text-decoration:underline; text-underline-offset:3px; }
.sd-footer-cities .sd-sep,
.sd-footer-legal .sd-sep{ opacity:.5; }

/* ---------- footer language switcher ---------- */
.sd-lang-footer{ display:flex; gap:18px; margin:0; padding:0; list-style:none; }
.sd-lang-footer .lang-item{ margin:0; }
.sd-lang-footer a{ display:inline-block; padding:3px 0; font:600 14px/1.5 'Open Sans'; color:var(--sd-muted); text-decoration:none; }
.sd-lang-footer a:hover{ color:#fff; text-decoration:underline; text-underline-offset:4px; }
.sd-lang-footer .current-lang a{ color:#fff; }

/* ---------- pills (fit-content width + backdrop blur) ---------- */
.sd-campaign{ width:fit-content; margin:22px auto 0; font:700 14px/1.3 'Open Sans'; color:var(--sd-ink); background:var(--sd-gold); padding:10px 20px; border-radius:100px; }

/* ---------- fixed-size bits inside cards ---------- */
.sd-step-num{ width:44px; height:44px; display:flex; align-items:center; justify-content:center; }
/* min-width keeps the badges in a column; nowrap stops a 4-glyph badge like
   "≤105" from breaking after the third character. */
.sd-req-badge{ min-width:44px; white-space:nowrap; flex-shrink:0; }
.sd-avatar-initials{ width:128px; height:128px; display:flex; align-items:center; justify-content:center; margin-left:auto; margin-right:auto; }

/* ---------- package cards ---------- */
.sd-pkg--pop{ position:relative; }
.sd-pkg-badge{ position:absolute; top:-13px; left:50%; transform:translateX(-50%); white-space:nowrap; }
.sd-pkg-cta{ margin-top:auto; }
/* Inside a flex card the bare class is not enough: core zeroes child margins with
   `.is-layout-flex > :is(*, div)`, which outranks it. Same rule, enough weight to
   land — this is what keeps the price row and link on the card floor when the
   descriptions run to different lengths (front page lane cards). */
.is-layout-flex > .sd-pkg-cta{ margin-top:auto; }
/* slate, not muted: muted (#8794a8) on white is 3.07:1 and "kr" is real text at
   18px/600, so it needs 4.5:1. slate clears it at 6.4:1. */
.sd-price-unit{ font-size:18px; font-weight:600; color:var(--sd-slate); }
.wp-block-woocommerce-single-product .wc-block-components-product-price .woocommerce-Price-currencySymbol{ font-size:18px; font-weight:600; color:var(--sd-slate); }
.wp-block-woocommerce-single-product .wc-block-components-product-price del{ font-size:.5em; font-weight:600; color:var(--sd-slate); text-decoration-thickness:2px; margin-right:.35em; }
.wp-block-woocommerce-single-product .wc-block-components-product-price del .woocommerce-Price-currencySymbol{ font-size:1em; }
.wp-block-woocommerce-single-product .wc-block-components-product-price ins{ text-decoration:none; }
/* The closed mini-cart drawer is only faded out, so its links stayed in the tab
   order. visibility waits out Woo's 0.3s slide so closing still animates. */
.wc-block-components-drawer__screen-overlay--is-hidden{ visibility:hidden; transition:opacity .3s, visibility 0s .3s; }
/* Woo's default olive badge is 3.4:1 behind white text */
.woocommerce span.onsale{ background-color:var(--sd-accent); color:#fff; }
/* dark campaign sections (Black Week): slate is unreadable on black */
.sd-dark .wc-block-components-product-price del,
.sd-dark .wc-block-components-product-price .woocommerce-Price-currencySymbol{ color:rgba(255,255,255,.6); }
.sd-price-old{ font-size:22px; font-weight:600; color:var(--sd-slate); text-decoration:line-through; margin-right:12px; }

/* ---------- media cards (photo on top: front page lanes, Tierp outings) ----------
   The card group carries padding:0 so the photo reaches the card edge — core's
   `:where(.wp-block-group.has-background)` would otherwise inset it by 1.25em/2.375em.
   Everything below is what block attributes can't say: a clipping media box, the
   pill placed on the photo, and the hover state. */
.sd-media-card{ transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.sd-media-card:hover{ transform:translateY(-3px); box-shadow:0 14px 32px rgba(15,23,32,.09); border-color:var(--sd-cloud); }
/* inherit, not a literal: the front page cards round at 20px and the Tierp cards
   at 16px, and only the two top corners follow the card. */
.sd-card-media{ position:relative; overflow:hidden; border-top-left-radius:inherit; border-top-right-radius:inherit; }
.sd-card-media img{ transition:transform .5s ease; }
.sd-media-card:hover .sd-card-media img{ transform:scale(1.04); }
.sd-card-tag{ position:absolute; left:16px; bottom:16px; z-index:1; }
.sd-card-link a{ text-decoration:none; }
.sd-media-card:hover h3 a{ text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:2px; text-decoration-color:var(--sd-accent); }
.sd-media-card:hover .sd-card-link a,
.sd-card-link a:focus-visible{ text-decoration:underline; text-underline-offset:4px; }
.sd-card-tag--top{ top:16px; bottom:auto; }
@media (prefers-reduced-motion:reduce){
  .sd-media-card, .sd-card-media img{ transition:none; }
  .sd-media-card:hover{ transform:none; }
  .sd-media-card:hover .sd-card-media img{ transform:none; }
}

/* ---------- step cards (photo + number badge on the photo) ----------
   The number sits on the image, so it needs a ring to stay legible whatever
   the photo does behind it. sd-step-num already sizes the disc. */
.sd-step-card .sd-step-num{ box-shadow:0 0 0 3px rgba(255,255,255,.85); }
/* A one-word badge like "Populärast" must not wrap when the grid narrows. */
.sd-pkg-card .sd-card-tag{ white-space:nowrap; }
.sd-pkg-video{ margin:0; }
.sd-pkg-video a{ text-decoration:none; }
.sd-pkg-video a:hover, .sd-pkg-video a:focus-visible{ text-decoration:underline; text-underline-offset:4px; }
/* The price block is a Woo child; without this it keeps its own top margin and
   pushes the description away from the heading on the photo cards. */
.sd-pkg-card .wp-block-woocommerce-single-product{ margin:0; }

/* ---------- group booking table ---------- */
.sd-group-table{ margin:0; overflow-x:auto; }
.sd-group-table table{ border-collapse:separate; border-spacing:0; background:#fff; border:1px solid var(--sd-line); border-radius:16px; overflow:hidden; }
.sd-group-table thead th{ background:var(--sd-navy); color:#fff; font:700 14px/1.4 'Open Sans'; letter-spacing:.04em; text-align:left; padding:15px 22px; border:0; }
.sd-group-table tbody :is(th,td){ padding:17px 22px; font:400 15px/1.6 'Open Sans'; color:var(--sd-steel); text-align:left; border:0; border-top:1px solid var(--sd-line); }
/* the row label is a <th scope="row"> so screen readers announce it with each cell */
.sd-group-table tbody th{ font-weight:700; color:var(--sd-ink); white-space:nowrap; }
@media (max-width:600px){
  .sd-group-table tbody th{ white-space:normal; }
  .sd-group-table th, .sd-group-table td{ padding:13px 16px; }
}

/* ---------- sticky book-now button ----------
   sticky, not fixed: as the last block in the content it rides the bottom-right
   corner for the whole article and then parks at the end, so it never sits on
   top of the footer (where it used to cover the language switcher on phones).
   The row itself is click-through; only the button takes pointer events. */
/* max-width/margin reset: the content wrapper is a constrained layout, so
   without this the row is capped at the 1200px measure and the button lands
   ~120px inside the viewport edge instead of hugging the corner. */
.sd-sticky-cta{ position:sticky; bottom:22px; z-index:40; max-width:none; margin:0; display:flex; justify-content:flex-end; padding-right:22px; pointer-events:none; }
.sd-sticky-cta .wp-block-button{ pointer-events:auto; }
.sd-sticky-cta .wp-block-button__link{ box-shadow:0 10px 26px rgba(221,51,51,.35); }
@media (max-width:600px){
  .sd-sticky-cta{ bottom:14px; padding-right:14px; }
  .sd-sticky-cta .wp-block-button__link{ padding:13px 20px !important; font-size:15px; }
}
@media print{ .sd-sticky-cta{ display:none; } }

/* ---------- split section (two full-bleed halves) ---------- */
.sd-split{ display:grid; grid-template-columns:1fr 1fr; }
.sd-split-video{ margin:0; min-height:460px; position:relative; overflow:hidden; }
.sd-split-video video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }

/* ---------- path panels (full-bleed cover columns) ---------- */
.sd-path-panel{ overflow:hidden; }
@media (prefers-reduced-motion:no-preference){
  .sd-path-panel .wp-block-cover__image-background{ transition:transform .6s ease; }
  .sd-path-panel:hover .wp-block-cover__image-background{ transform:scale(1.05); }
}

/* a cover that grows to the height of its column (image beside a text column) */
.wp-block-column:has(> .sd-cover-fill){ display:flex; flex-direction:column; }
.sd-cover-fill{ flex:1 1 auto; }

/* a cover whose side gradient only darkens the left edge: once stacked on a
   phone the text spans the whole photo, so add a flat dim layer under the
   gradient (the editor's gradient stays untouched) */
@media (max-width:781px){
  .sd-cover-mobile-dim::before{ content:""; position:absolute; inset:0; z-index:1; background:rgba(7,9,13,.6); pointer-events:none; }
  .sd-cover-mobile-dim > .wp-block-cover__inner-container{ z-index:2; }
}

/* ---------- gallery mosaic ---------- */
.sd-gallery-grid{ display:grid; grid-template-columns:2fr 1fr 1fr; grid-template-rows:210px 210px; gap:14px; }
.sd-gallery-grid .sd-gi{ border-radius:16px; overflow:hidden; position:relative; margin:0; min-height:0; height:100%; }
.sd-gallery-grid figure.sd-gi img{ width:100%; height:100%; object-fit:cover; display:block; }
.sd-gi--tall{ grid-row:span 2; }
.sd-gi--wide{ grid-column:span 2; }
.sd-gallery-grid > .wp-block-gallery{ grid-column:span 2; grid-row:span 2; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:210px 210px; gap:14px; margin:0; }
.sd-gallery-grid > .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){ width:auto; margin:0; }
.sd-gi.wp-block-cover{ display:flex; align-items:center; justify-content:center; }
.sd-gi.wp-block-cover > .wp-block-cover__inner-container{ width:auto; margin:0; }
/* The circle wraps a real link — it used to be a bare <p> that looked like a
   control but was neither focusable nor clickable. The <a> fills the circle so
   the whole 74px disc is the target. */
.sd-play-circle{ width:74px; height:74px; border-radius:50%; background:rgba(255,255,255,.92); display:flex; align-items:center; justify-content:center; font-size:24px; margin:0; transition:transform .15s ease, background .15s ease; }
.sd-play-circle a{ display:flex; align-items:center; justify-content:center; width:100%; height:100%; border-radius:50%; color:var(--sd-accent); text-decoration:none; }
.sd-play-circle:hover{ transform:scale(1.08); background:#fff; }
.sd-play-circle:has(a:focus-visible){ transform:scale(1.08); background:#fff; }

/* ---------- contact split (both halves stretch to the taller column) ---------- */
.sd-contact .wp-block-column{ display:flex; flex-direction:column; }
.sd-contact .wp-block-column > .wp-block-group,
.sd-contact .wp-block-column > .wp-block-cover{ flex:1; }
@media (max-width:781px){
  .sd-contact .wp-block-column:first-child > .wp-block-group{ border-radius:20px 20px 0 0 !important; }
  .sd-contact .wp-block-column:last-child > .wp-block-cover{ border-radius:0 0 20px 20px !important; }
}

/* ---------- faq accordion marker ---------- */
details.sd-faq{ border-radius:14px; }
details.sd-faq summary{ display:flex; justify-content:space-between; align-items:center; font-weight:700; line-height:1.3; list-style:none; cursor:pointer; }
details.sd-faq summary::-webkit-details-marker{ display:none; }
details.sd-faq summary::after{ content:"+"; color:var(--sd-accent); font-size:22px; transition:transform .2s; }
details.sd-faq[open] summary::after{ transform:rotate(45deg); }

/* ---------- news cards (hover states + clipped image zoom) ---------- */
.sd-news-grid .wp-block-post{ display:flex; }
.sd-news-featured-grid .wp-block-post-featured-image{ border-radius:20px; }
/* 1119px is where the featured pair stops fitting side by side (2 x 500px
   columns + 40px gap inside the gutters). Full width, a 3:2 hero gets tall
   enough to push the rest of the archive off screen, so flatten it. */
@media (max-width:1119px){
  .sd-news-featured-grid .wp-block-post-featured-image{ aspect-ratio:16/9 !important; }
}
/* stretch every card to the row height so the Läs mer links line up */
.sd-news-card{ width:100%; display:flex; flex-direction:column; }
.sd-news-card .wp-block-read-more{ margin-top:auto; padding-top:6px; }
.sd-news-card .wp-block-post-featured-image{ margin:0; border-radius:16px; overflow:hidden; }
.sd-news-card .wp-block-post-featured-image img{ transition:transform .4s ease; }
.sd-news-card:hover .wp-block-post-featured-image img{ transform:scale(1.045); }
.sd-news-card .wp-block-post-title a,
.sd-news-card .wp-block-read-more{ text-decoration:none; }
.sd-news-card:hover .wp-block-post-title a{ text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:2px; text-decoration-color:var(--sd-accent); }
.sd-news-card:hover .wp-block-read-more{ text-decoration:underline; text-underline-offset:4px; }

/* pagination pills (scoped so the shop archive keeps core styling) */
.sd-pagination .wp-block-query-pagination-numbers{ display:flex; gap:8px; }
.sd-pagination a,.sd-pagination .page-numbers.current{
  display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:42px; padding:0 15px;
  font:700 14px/1 'Open Sans'; color:var(--sd-ink); text-decoration:none;
  border:1.5px solid #e3e8f0; border-radius:100px;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.sd-pagination a:hover{ background:#f6f8fb; }
.sd-pagination .page-numbers.current{ background:var(--sd-navy); border-color:var(--sd-navy); color:#fff; }
.sd-pagination .page-numbers.dots{ color:var(--sd-slate); }

/* single post: prev/next links */
.sd-post-nav .post-navigation-link-next{ margin-left:auto; text-align:right; }
.sd-post-nav a{ text-decoration:none; }
.sd-post-nav a:hover{ text-decoration:underline; text-underline-offset:4px; }

/* ---------- woocommerce (classic markup the blocks can't style) ---------- */
.woocommerce-ordering{ margin:0; }
.woocommerce-ordering select.orderby,
.wc-block-catalog-sorting select{
  font:600 14px/1.2 'Open Sans'; color:var(--sd-ink); background:#fff;
  border:1.5px solid #e3e8f0; border-radius:100px; padding:11px 16px; cursor:pointer;
}
.woocommerce-result-count{ margin:0; }
/* single product: gallery + add-to-cart form */
.wp-block-woocommerce-product-image-gallery img{ border-radius:20px; }
.wc-block-add-to-cart-form form.cart{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.wc-block-add-to-cart-form .quantity .qty{
  height:54px; width:84px; margin:0; text-align:center; font:600 16px 'Open Sans';
  color:var(--sd-ink); background:#fff; border:1.5px solid #e3e8f0; border-radius:100px;
}
.wc-block-add-to-cart-form .single_add_to_cart_button{ margin:0; }
/* classic notices (my account, legacy forms) */
.woocommerce-message,.woocommerce-info,.woocommerce-error{ border-radius:12px; }
/* my account: nav pills + forms */
.woocommerce-MyAccount-navigation ul{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.woocommerce-MyAccount-navigation a{
  display:block; padding:13px 18px; font:600 15px/1.2 'Open Sans'; color:var(--sd-ink);
  text-decoration:none; border:1.5px solid #e3e8f0; border-radius:12px; transition:background .15s ease;
}
.woocommerce-MyAccount-navigation a:hover{ background:#f6f8fb; }
.woocommerce-MyAccount-navigation li.is-active a{ background:var(--sd-navy); border-color:var(--sd-navy); color:#fff; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea{
  padding:13px 16px; font:400 15px/1.4 'Open Sans'; color:var(--sd-ink);
  border:1.5px solid #e3e8f0; border-radius:12px; background:#fff;
}
.woocommerce form.login,.woocommerce form.register,
.woocommerce form.woocommerce-EditAccountForm,.woocommerce form.woocommerce-ResetPassword{
  border:1.5px solid #e3e8f0; border-radius:20px; padding:30px;
}
/* classic woo buttons that miss wp-element-button */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{
  font:700 15px/1 'Open Sans'; color:#fff; background:var(--sd-accent);
  padding:15px 28px; border:0; border-radius:100px; cursor:pointer;
  transition:background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{
  color:#fff; background:#c02b2b; box-shadow:0 8px 24px rgba(221,51,51,.3); transform:translateY(-1px);
}

/* ---------- comparison tables (guide pages) ----------
   Per-cell borders and the mobile scroll container can't be expressed as
   block attributes, so the table block keeps its own layout rules. */
figure.wp-block-table.sd-compare{ margin:0; overflow-x:auto; background:#fff; border:1px solid var(--sd-line); border-radius:16px; }
.wp-block-table.sd-compare table{ min-width:560px; }
.wp-block-table.sd-compare th,
.wp-block-table.sd-compare td{ border:0; border-bottom:1px solid var(--sd-line); padding:14px 18px; text-align:left; vertical-align:top; font:400 15px/1.55 'Open Sans'; color:var(--sd-steel); }
.wp-block-table.sd-compare thead{ border-bottom:0; }
/* thead cells are th except the empty corner (td); row labels are <th scope="row"> */
.wp-block-table.sd-compare thead :is(th,td){ font:700 12px/1.3 'Open Sans'; letter-spacing:.1em; text-transform:uppercase; color:var(--sd-navy); background:var(--sd-iceblue); }
.wp-block-table.sd-compare thead :first-child,
.wp-block-table.sd-compare tbody th{ width:24%; }
.wp-block-table.sd-compare tbody th{ font-weight:700; color:var(--sd-ink); }
.wp-block-table.sd-compare tbody tr:last-child :is(th,td){ border-bottom:0; }
@media (max-width:600px){
  .wp-block-table.sd-compare th,
  .wp-block-table.sd-compare td{ padding:12px 14px; font-size:14px; }
}

/* ---------- guide cards (hub + related links) ---------- */
.sd-guide-card{ transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.sd-guide-card:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(15,23,32,.08); border-color:var(--sd-cloud); }
.sd-guide-card a{ text-decoration:none; }
.sd-guide-card > p:last-child{ margin-top:auto; padding-top:18px; }
.sd-guide-card:hover h3 a{ text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:2px; text-decoration-color:var(--sd-accent); }
.sd-guide-card:hover > p:last-child a{ text-decoration:underline; text-underline-offset:4px; }

/* ---------- background video pause (WCAG 2.2.2) ----------
   Added by video-control.js to every cover with a video background. */
.sd-video-toggle{
  position:absolute; right:clamp(16px,3vw,28px); bottom:clamp(16px,3vw,28px); z-index:3;
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; padding:0; border:0; border-radius:50%;
  background:rgba(15,23,32,.55); color:#fff; cursor:pointer;
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.sd-video-toggle:hover{ background:rgba(15,23,32,.8); }
.sd-video-toggle svg{ display:block; width:18px; height:18px; fill:currentColor; }

/* ---------- scrolling band (WCAG 2.2.2) ----------
   A group with class sd-marquee whose child group has sd-marquee-track.
   marquee.js adds is-marquee, the duplicate rail and the pause button; without
   it (no JS, reduced motion) the band stays a static wrapping row. */
.sd-marquee{ position:relative; overflow:hidden; }
.sd-marquee.is-marquee .sd-marquee-rail{ display:flex; width:max-content; animation:sd-marquee var(--sd-marquee-duration,40s) linear infinite; }
.sd-marquee.is-marquee .sd-marquee-track{ width:max-content; flex-wrap:nowrap; justify-content:flex-start; gap:0; flex-shrink:0; padding-inline:0 !important; }
.sd-marquee.is-marquee .sd-marquee-track > *{ margin:0; white-space:nowrap; }
.sd-marquee.is-marquee .sd-marquee-track > *::after{ content:"\2726" / ""; display:inline-block; margin:0 .7em; font-size:.55em; vertical-align:middle; opacity:.75; }
.sd-marquee.is-marquee:hover .sd-marquee-rail,
.sd-marquee.is-paused .sd-marquee-rail{ animation-play-state:paused; }
@keyframes sd-marquee{ to{ transform:translateX(-50%); } }
.sd-marquee-toggle{
  position:absolute; right:clamp(12px,2vw,24px); top:50%; transform:translateY(-50%); z-index:2;
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; padding:0; border:0; border-radius:50%;
  background:var(--wp--preset--color--ink); color:#fff; cursor:pointer;
  box-shadow:0 0 0 6px var(--wp--preset--color--accent);
}
.sd-marquee-toggle:hover{ background:var(--wp--preset--color--midnight); }
.sd-marquee-toggle svg{ display:block; width:18px; height:18px; fill:currentColor; }

/* ---------- responsive ---------- */
@media (max-width:900px){
  .sd-split{ grid-template-columns:1fr; }
  .sd-split-video{ min-height:320px; }
  .sd-gallery-grid{ grid-template-columns:1fr 1fr; grid-template-rows:auto; }
  .sd-gi--tall{ grid-row:auto; grid-column:span 2; }
  .sd-gallery-grid .sd-gi{ min-height:200px; }
  .sd-gallery-grid > .wp-block-gallery{ grid-row:auto; grid-template-rows:auto; }
}
