/* Schreinerei Umgeher – static site. Layout and colours follow the former Contao theme (1000 px box on dark brown,
   fixed header with a dark top bar, 16-column float grid in the content).
   Breakpoints as on the old site: phone < 768px, tablet 768–979px, desktop from 980px.

   Font sizes – one font (Open Sans), at most four steps per breakpoint (variables below):
     --fs-s   11px              top bar, breadcrumb, copyright line, picture captions (were 10px)
     --fs-m   12.8px            running text, main navigation, side menu, footer links (navigation was 13px),
                                h3 in the privacy policy (bold)
     --fs-l   16.64px           h2–h6, side menu title, footer titles (were h2 19.2, h3 17.92, h4 16.64, h5 15.36,
                                side menu 15px; tablet h2 17.92, h3 16.64, h4/h5 15.36)
     --fs-xl  21.76px / tablet 19.2px   h1
   Icons (sprite in layout.php) are drawn after Font Awesome, which the old site loaded as a font
   (CC BY 4.0, fontawesome.com/license/free). */

@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --text: #636363;
    --blue: #0078c2;
    --dark: #484848;
    --brown: #34201f;
    --box: #fafafa;
    --line: #d7d7d7;
    --frame: #e4e4e4;
    --hover: #f2f2f2;
    --fs-s: 11px;
    --fs-m: 12.8px;
    --fs-l: 16.64px;
    --fs-xl: 21.76px;
}
@media (min-width: 768px) and (max-width: 979.98px) {
    :root { --fs-xl: 19.2px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scrollbar-gutter: stable; scroll-padding-top: 130px; }
body { margin: 0; font: 400 var(--fs-m)/1.7 'Open Sans', Arial, Helvetica, sans-serif; color: var(--text); background: var(--brown); }

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--text); }
a:hover, a:focus-visible { color: var(--blue); }
h1, h2, h3, h4, h5, h6 { margin: 1em 0 12px; font-weight: 400; color: var(--text); }
h1 { font-size: var(--fs-xl); }
h2, h3, h4, h5, h6 { font-size: var(--fs-l); }
p, ul, ol, table { margin: 0 0 1em; }
ul { padding: 0; list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
td { padding: 0; text-align: left; vertical-align: top; }
strong { font-weight: 700; }
hr { clear: both; height: 1px; margin: 0; border: 0; border-bottom: 1px solid var(--line); }
.center, .center h2, .center p { text-align: center; }
.left, .center p.left { text-align: left; }
.clear { clear: both; height: .1px; font-size: .1px; line-height: .1px; }

.sprite { display: none; }
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: none; }

.skip-link { position: absolute; left: 10px; top: -60px; z-index: 600; padding: 8px 14px; background: #fff; color: var(--text); }
.skip-link:focus-visible { top: 10px; }

/* ------------------------------------------------------------------ header (fixed from 768px) */

.wrapper { padding: 120px 0 20px; }
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    border-top: 30px solid var(--dark);
    border-bottom: 1px solid #d4d4d4;
    background: var(--box);
    box-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.site-header__inner { position: relative; width: 1000px; max-width: 100%; margin: 0 auto; padding-bottom: 20px; }   /* max-width: no sideways scrolling at 980–999 px */

.topmenu { position: absolute; left: 0; top: -27px; }
.topmenu ul { margin: 0; }
.topmenu li { float: left; margin-left: 10px; line-height: 1.7; }
.topmenu a, .contactdetails li { font-size: var(--fs-s); color: #fff; text-decoration: none; }
.topmenu a:hover, .topmenu a:focus-visible { color: #fff; text-decoration: underline; }
.contactdetails { position: absolute; right: 0; top: -25px; margin: 0; }
.contactdetails li { float: left; margin-left: 10px; padding-left: 10px; }
.contactdetails .icon { width: 11px; height: 11px; margin-right: 4px; vertical-align: -1px; }
.contactdetails .icon--phone { width: 9px; }
.contactdetails a { color: #fff; text-decoration: none; }
.contactdetails a:hover { color: #fff; }   /* as on the old site: no underline on hover */
.contactdetails a:focus-visible { color: #fff; text-decoration: underline; }

.mainnav { float: right; }
.mainnav__list { margin: 0; }
.mainnav__list > li { position: relative; float: left; }
.mainnav__list a {
    display: block;
    padding: 25px 10px 24px;
    font-size: var(--fs-m);
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text);
    transition: color .5s, background-color .5s;
}
.mainnav__list > li:hover > a, .mainnav__list > li > a:focus-visible,
.mainnav__list > li.is-current > a, .mainnav__list > li.is-trail > a { color: var(--blue); }

/* dropdown: the entries unfold one below the other (height animation as on the old site) */
.mainnav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    width: 190px;
    margin: 0;
    background: var(--box);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .4);
    visibility: hidden;
    opacity: 0;
}
.mainnav__list > li:last-child > .mainnav__sub { left: auto; right: 10px; }
@media (min-width: 768px) and (max-width: 1084.98px) {
    /* "Über uns": open to the left as long as the dropdown would run past the right edge of the window
       (up to about 1068 px, plus room for a classic scrollbar) */
    .mainnav__list > li:nth-last-child(2) > .mainnav__sub { left: auto; right: 0; }
}
.mainnav__sub li { height: 0; overflow: hidden; transition: height .25s ease; }
.mainnav__list > li:hover > .mainnav__sub, .mainnav__list > li:focus-within > .mainnav__sub, .mainnav__list > li.is-open > .mainnav__sub { visibility: visible; opacity: 1; }
.mainnav__list > li:hover > .mainnav__sub li, .mainnav__list > li:focus-within > .mainnav__sub li, .mainnav__list > li.is-open > .mainnav__sub li { height: 42px; overflow: visible; }
.mainnav__list > li.is-closed > .mainnav__sub { visibility: hidden; opacity: 0; }   /* closed with Escape (main.js) */
.mainnav__sub a { padding: 10px; border-bottom: 1px solid var(--frame); }
.mainnav__sub li:first-child a { border-top: 1px solid var(--frame); }
.mainnav__sub li:last-child a { border-bottom: 0; }
.mainnav__sub a:hover, .mainnav__sub a:focus-visible, .mainnav__sub a[aria-current] { background: var(--hover); color: var(--blue); }

.logo { position: relative; left: 10px; top: 11px; overflow: hidden; width: 160px; height: 49px; margin: 0; }
.logo a, .logo img { display: block; }
.logo a:focus-visible, .gallery a:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }   /* inside the box, which clips */
.mainnav__toggle { display: none; }

/* ------------------------------------------------------------------ content box */

.container {
    display: flow-root;
    width: 1000px;
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 20px 0;
    background: var(--box);
    box-shadow: 0 0 6px rgba(0, 0, 0, .5);
}
.layout-sidebar .container { display: flex; align-items: flex-start; }
.main { display: block; flex: 1 1 auto; min-width: 0; }
.main__inside { display: flow-root; padding: 0 20px; }
.aside { flex: 0 0 268px; padding: 10px 20px 10px 10px; }

.breadcrumb { margin-left: 10px; padding: 14px 0 10px; border-bottom: 1px solid var(--line); font-size: var(--fs-s); }
.breadcrumb ul { display: inline-block; margin: 0; }
.breadcrumb li { float: left; }
.breadcrumb li:not(:last-child)::after { content: ' > '; margin: 0 3px 0 1px; }
.breadcrumb a { display: inline-block; color: var(--text); }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--blue); }

/* Contao's 16-column grid: blocks float side by side; widths in % of the content column */
.article { display: block; }
.article.mt-20 { margin-top: 20px; }
.article > * { margin-left: 1%; margin-right: 1%; }
.ce, .gallery { margin-top: 1em; margin-bottom: 1em; }
.g4, .g8, .g16 { float: left; }
.g4 { width: 23%; }
.g8 { width: 48%; }
.g16 { width: 98%; }
.ce.mt-10 { margin-top: 10px; }
.ce.mt-20 { margin-top: 20px; }
.ce.mb-20 { margin-bottom: 20px; }
.ce p, .ce ul, .ce ol { line-height: 1.6; }
.ce ul li { margin-left: 18px; padding-left: 5px; list-style: disc; }
.ce h1:first-child, .ce h2:first-child { margin-top: 1em; }
.article a { overflow-wrap: anywhere; }   /* long addresses (e.g. in the privacy policy) wrap instead of widening the page */

/* pictures with a white frame */
.img { margin: 0; padding-bottom: 10px; }
.img img { padding: 9px; border: 1px solid var(--frame); background: #fff; box-shadow: 0 1px 2px #d5d5d5; }
.img--right { float: right; padding: 0 0 5px 10px; }
.img--left { float: left; padding: 0 10px 5px 0; }
.img figcaption { padding-left: 5px; font-size: var(--fs-s); line-height: 1.7; }
.img a { display: inline-block; }
.layout-home .img { margin-bottom: 10px; }

/* picture galleries (thumbnails open in the lightbox) */
.gallery ul { overflow: hidden; margin: 0; }
.gallery li { position: relative; float: left; overflow: hidden; margin: 0 1% 2%; text-align: center; }
.gallery .cols-4 li { width: 23.4%; }
.gallery .cols-5 li { width: 18.3%; }
.gallery .cols-4 li:nth-child(4n+1), .gallery .cols-5 li:nth-child(5n+1) { clear: left; margin-left: 0; }
.gallery .cols-4 li:nth-child(4n), .gallery .cols-5 li:nth-child(5n) { margin-right: 0; }
.gallery a { display: block; padding-bottom: 10px; }
.gallery img { padding: 9px; border: 1px solid var(--frame); background: #fff; box-shadow: 0 1px 2px #d5d5d5; }

/* home page: four boxes with pictograms */
.box { margin-bottom: 0; padding: 0 10px 10px; transition: background-color .4s ease-in-out, color .4s ease-in-out; }
.box h2 { text-transform: uppercase; transition: color .4s ease-in-out; }
.box:hover { background: var(--blue); color: #fff; }
.box:hover h2, .box:hover a { color: #fff; }
.box__icon { max-width: 200px; height: 80px; margin: 0 auto; background: no-repeat center bottom / 40%; }
.box--tueren .box__icon { background-image: url('../img/start/picto-fenster-tueren.png'); }
.box--tueren:hover .box__icon { background-image: url('../img/start/picto-fenster-tueren-hover.png'); }
.box--wintergarten .box__icon { background-image: url('../img/start/picto-wintergarten.png'); }
.box--wintergarten:hover .box__icon { background-image: url('../img/start/picto-wintergarten-hover.png'); }
.box--moebel .box__icon { background-image: url('../img/start/picto-moebel.png'); }
.box--moebel:hover .box__icon { background-image: url('../img/start/picto-moebel-hover.png'); }
.box--treppen .box__icon { background-image: url('../img/start/picto-treppen.png'); }
.box--treppen:hover .box__icon { background-image: url('../img/start/picto-treppen-hover.png'); }

/* home page slider: slides move sideways (1.5 s), a new picture every 4 s */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform 1.5s ease; }
.slider__slide { flex: 0 0 100%; margin: 0; line-height: 1.7; }
.slider__slide img { display: block; width: 940px; padding: 9px; border: 1px solid var(--frame); background: #fff; box-shadow: 0 1px 2px #d5d5d5; margin-bottom: 6.75px; }
html:not(.js) .slider__slide:not(:first-child) { display: none; }
@media (min-width: 980px) {
    /* the old site kept the size of the framed pictures on the home page (940 × 350 / 220 × 150 px including the
       frame); here the picture is cropped by a few pixels to fit instead of being squeezed */
    .slider__slide img { height: 350px; object-fit: cover; }
    .layout-home .img img { height: 150px; object-fit: cover; }
}
.slider__control { position: relative; height: 30px; margin-bottom: 20px; }
.slider__control[hidden] { display: none; }
.slider__prev, .slider__next { position: absolute; top: 9px; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.slider__prev { left: 0; text-align: left; }
.slider__next { right: 0; text-align: right; }
.slider__prev .icon, .slider__next .icon { width: 10px; height: 16px; vertical-align: middle; }
.slider__prev:hover, .slider__next:hover, .slider__prev:focus-visible, .slider__next:focus-visible { color: var(--blue); }
.slider__dots { position: absolute; top: 18px; left: 25%; width: 50%; display: flex; justify-content: center; }
.slider__dots button { width: 10px; height: 10px; padding: 1.5px; border: 0; border-radius: 50%; background: #bbb content-box; cursor: pointer; }
.slider__dots button[aria-current] { background-color: #666; }

/* side menu */
.submenu h2 { margin: .5em 0 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); line-height: 1.7; }
.submenu ul { margin: 5px 0 0; }
.submenu a {
    display: block;
    padding: 8px 0 8px 5px;
    border-bottom: 1px solid var(--frame);
    font-size: var(--fs-m);
    line-height: 1.7;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color .5s ease-in-out, color .5s ease-in-out;
}
.submenu a::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 14px 2px 1px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.submenu a:hover, .submenu a:focus-visible { background: var(--hover); color: var(--blue); }
.submenu a[aria-current] { color: var(--blue); }
.submenu a[aria-current]:hover { background: none; }

/* sitemap page */
.headline.sitemap { margin-bottom: 25px; padding-bottom: 10px; border-bottom: 1px solid var(--line); text-align: center; }
.headline.sitemap .icon { width: 31px; height: 25px; margin-right: 15px; vertical-align: -3px; }
.sitemap-list { margin: 0 1%; padding: 0 100px; }
.sitemap-list a { display: block; margin-right: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: var(--fs-l); line-height: 1.5; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; }
.sitemap-list a:hover, .sitemap-list a:focus-visible { text-decoration: underline; color: var(--blue); }
.sitemap-list ul { margin: 0; padding: 10px 0 10px 20px; }
.sitemap-list ul a { border-bottom: 0; font-size: var(--fs-m); text-transform: none; letter-spacing: 1px; }

/* legal texts */
.legal h2 { margin-top: 1.5em; }
.legal h3 { margin: 1.2em 0 8px; font-size: var(--fs-m); font-weight: 700; }

/* ------------------------------------------------------------------ footer */

.site-footer { display: flow-root; width: 1000px; max-width: 100%; margin: 0 auto; padding: 35px 20px 20px; background: var(--dark); color: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .5); }
.footer-cols { display: flow-root; }
.footer-col { float: left; margin: 0 1%; }
.footer-col.g8 { margin: 0; }   /* as on the old site: only the narrow columns have side margins */
.site-footer h4 { margin: 0 0 12px; border-bottom: 1px solid #fff; color: #fff; line-height: 1.7; }
.site-footer p { margin: 0 0 1em; line-height: 1.6; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.footer-col ul { margin: 0; }
.footer-col li a { display: block; padding: 4px 0; font-size: var(--fs-m); }
.footer-col li a[aria-current] { text-decoration: underline; }
.site-footer .footermenu { clear: both; margin: 15px 1% 0; padding-top: 15px; border-top: 1px solid var(--line); font-size: var(--fs-s); line-height: 1.7; }
.footermenu a { padding-top: 10px; }

/* ------------------------------------------------------------------ mobile menu (phone; opened by the "Quicknavigation" button) */

.mm[hidden] { display: none; }
.mm__blocker { position: fixed; inset: 0; z-index: 400; background: #000; opacity: 0; transition: opacity .4s ease; }
.mm.is-open .mm__blocker { opacity: .3; transition-delay: .4s; }
.mm__menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 401;
    width: 80%;
    max-width: 450px;
    overflow: hidden;
    background: var(--box);
    font-size: var(--fs-m);
    line-height: 22px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .5);
    transform: translate3d(-100%, 0, 0);
    transition: transform .4s ease;
}
.mm.is-open .mm__menu { transform: none; }
.mm__close { position: absolute; top: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 30px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.mm__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; }
.mm__close:hover, .mm__close:focus-visible { color: var(--blue); }
html.mm-open { overflow: hidden; }
.mm a { color: var(--text); text-decoration: none; }
.mm__panels { position: absolute; inset: 0; overflow: hidden; border-top: 30px solid var(--dark); }
.mm__panel { position: absolute; inset: 0; overflow-y: auto; background: var(--box); visibility: hidden; transform: translate3d(100%, 0, 0); transition: transform .4s ease, visibility .4s; }
.mm__panel.is-current { visibility: visible; transform: none; transition: transform .4s ease, visibility 0s; }   /* visible at once, so it can take the focus */
.mm__panel.is-parent { transform: translate3d(-100%, 0, 0); }
.mm__head { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; margin: 0; padding: 0 44px; border-bottom: 1px solid var(--line); }
.mm__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mm__prev { position: absolute; top: 0; left: 0; bottom: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.mm__prev::before { content: ''; position: absolute; top: 0; bottom: 0; left: 20px; width: 9px; height: 9px; margin: auto; border-top: 2px solid var(--blue); border-left: 2px solid var(--blue); transform: rotate(-45deg); }
.mm__list { margin: 0; }
.mm__list li { position: relative; display: flex; border-bottom: 1px solid var(--frame); }
.mm__list a { flex: 1; display: block; min-width: 0; padding: 10px 10px 10px 20px; letter-spacing: 1px; }
.mm__list a[aria-current] { color: var(--blue); background: var(--hover); }
.mm__next { position: relative; flex: none; width: 80px; padding: 0; border: 0; border-left: 1px solid var(--frame); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mm__counter { position: absolute; top: 10px; left: 25px; }
.mm__next::after { content: ''; position: absolute; top: 0; bottom: 0; right: 22px; width: 9px; height: 9px; margin: auto; border-top: 2px solid var(--blue); border-left: 2px solid var(--blue); transform: rotate(135deg); }

/* ------------------------------------------------------------------ lightbox */

.lb { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 50px 60px; background: rgba(0, 0, 0, .8); opacity: 0; transition: opacity .25s; }
.lb[hidden] { display: none; }
.lb.is-visible { opacity: 1; }
.lb__figure { margin: 0; padding: 10px; border-radius: 10px; background: #000; box-shadow: 0 5px 20px rgba(0, 0, 0, .5); text-align: left; }
.lb__img { display: block; max-width: calc(100vw - 140px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
.lb__caption { min-height: 20px; padding-top: 8px; color: #999; font-size: var(--fs-s); }
.lb__caption strong { color: #fff; }   /* title white and bold, counter grey (as on the old site) */
.lb__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.lb__btn svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.lb__btn[hidden] { display: none; }
.lb__btn:hover, .lb__btn:focus-visible { color: var(--blue); }
.lb__prev { left: 8px; top: 50%; margin-top: -22px; }
.lb__next { right: 8px; top: 50%; margin-top: -22px; }
.lb__close { right: 8px; top: 8px; }
html.lightbox-open { overflow: hidden; }

/* ------------------------------------------------------------------ tablet: everything 98 % wide, narrower side column */

@media (min-width: 768px) and (max-width: 979.98px) {
    /* the header stays at the top while scrolling, but takes up its own space: where the logo moves below the
       menu (up to about 900 px), the content starts below it (the old site let the logo overlap the content) */
    html { scroll-padding-top: 191px; }
    .wrapper { padding-top: 0; }
    .site-header { position: sticky; display: flow-root; margin-bottom: 18px; }
    .site-header__inner, .container, .site-footer { width: 98%; }
    .mainnav__list > li > a { padding: 25px 8px 24px; }
    .aside { flex-basis: 228px; padding: 10px 30px 10px 0; }
    .site-footer { padding: 35px 25px; }
    .article img, .site-footer img { width: 100%; vertical-align: middle; }
    .article .img a { display: block; }   /* pictures fill their column, also when the file is smaller */
    .slider__slide img { margin-bottom: 0; }
}

/* ------------------------------------------------------------------ phone: header scrolls along, one column, menu button */

@media (max-width: 767.98px) {
    html { scroll-padding-top: 0; }   /* the header scrolls along here */
    .wrapper { padding-top: 0; overflow: hidden; }
    .site-header { position: relative; }
    .site-header__inner { width: 93%; padding: 12px 0 0; }
    .topmenu, .mainnav { display: none; }
    .logo { left: 0; top: 0; margin: 0 auto; }
    .mainnav__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 60%;
        margin: 15px auto 0;
        height: 34px;
        padding: 0 8px 0 11px;
        border: 1px solid var(--line);
        background: var(--box);
        box-shadow: inset 0 0 3px #dedede;
        color: var(--text);
        font: 400 var(--fs-m)/24px 'Open Sans', Arial, sans-serif;
        cursor: pointer;
    }
    .mainnav__toggle .icon { width: 11px; height: 7px; }
    html:not(.js) .mainnav__toggle { display: none; }
    html:not(.js) .mainnav { display: block; float: none; margin-top: 10px; }
    html:not(.js) .mainnav__list > li { float: none; }
    html:not(.js) .mainnav__list a { padding: 6px 0; }
    html:not(.js) .mainnav__sub { position: static; width: auto; box-shadow: none; visibility: visible; opacity: 1; }
    html:not(.js) .mainnav__sub li { height: auto; }
    html:not(.js) .mainnav__sub a { padding: 4px 0 4px 20px; border: 0; }
    .site-header__inner::after { content: ''; display: block; height: 15px; }

    .container { width: 93%; margin-top: 20px; }
    .layout-sidebar .container { display: block; }
    .breadcrumb { display: none; }
    .aside { width: 80%; margin: 0 auto 10px; padding: 10px; border-top: 1px solid var(--box); }

    .article > .ce, .article > .gallery, .footer-col { float: none; width: auto; margin-left: 0; margin-right: 0; }
    .g4, .g8, .g16 { float: none; width: auto; margin: 0; }   /* old site: grid blocks lose all margins on the phone */
    .footer-col.g4 { margin: 0 1%; }
    .article > .slider { margin: 0; }
    .slider__slide img { margin-bottom: 0; }
    .img--right, .img--left { padding: 0; }
    .article img { width: 100%; vertical-align: middle; }
    .article .img a { display: block; }
    .site-footer { width: 93%; padding: 35px 25px; }
    .sitemap-list { margin: 0; padding: 0; }

    .lb { padding: 50px 10px; }
    .lb__img { max-width: calc(100vw - 40px); }
    .lb__prev, .lb__next { top: auto; bottom: 8px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
