/* Автосервиз „Мапо“ – service4x4.org. Workshop green and sign red, the colours of the firm's own building.
   Display: Fira Sans Extra Condensed (uppercase, like the lettering on the facade banner). Text: Play.
   One theme. Every colour is a custom property on :root. */

@font-face {
    font-family: 'Fira Sans Extra Condensed';
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/fira-sans-extra-condensed-black.woff2') format('woff2');
}
@font-face {
    font-family: 'Fira Sans Extra Condensed';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/fira-sans-extra-condensed-bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Play';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/play.woff2') format('woff2');
}
@font-face {
    font-family: 'Play';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/play-bold.woff2') format('woff2');
}

:root {
    --green: #1f5a3c;
    --green-night: #0f2e20;
    --green-deep: #163f2b;
    --green-lit: #2f8a57;
    --green-pale: #dcebe0;
    --red: #d9302c;
    --red-deep: #b4231f;
    --red-text: #c0241f;
    --maroon: #4a0202;
    --plaster: #f4f3ed;
    --sheet: #ffffff;
    --line: #d9d8cf;
    --ink: #1b1d1a;
    --ink-soft: #4b4f49;
    --on-green: #ffffff;
    --on-green-soft: #cfe3d6;
    --display: 'Fira Sans Extra Condensed', 'Arial Narrow', Impact, sans-serif;
    --text: 'Play', 'Segoe UI', Roboto, sans-serif;
    --radius: 8px;
    --wrap: 1180px;
    --lb-bg: rgba(15, 46, 32, .96);
    --lb-text: #ffffff;
    --lb-accent: #ffffff;
    --lb-accent-soft: rgba(255, 255, 255, .18);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--ink);
    background: var(--plaster);
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--green);
    text-decoration-thickness: 1px;
    text-underline-offset: .15em;
}

a:hover {
    color: var(--green-lit);
}

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -.01em;
    line-height: .95;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.75rem, 2rem + 4.5vw, 5.5rem);
}

h2 {
    font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
}

h3 {
    font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
    font-weight: 700;
    line-height: 1.05;
}

p {
    margin: 0 0 1em;
}

ul {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

.wrap {
    width: min(100% - 32px, var(--wrap));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 700;
}

.skip:focus {
    top: 12px;
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 243, 237, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 10px 0;
}

.brand {
    display: block;
    margin-right: auto;
}

.brand img {
    width: 124px;
    height: 63px;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
}

.call:hover,
.call:focus-visible {
    background: var(--red-deep);
    color: #fff;
}

.lang {
    display: flex;
    gap: 6px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
}

.lang a,
.lang span {
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
}

.lang span {
    background: var(--green);
    color: #fff;
}

.lang a {
    color: var(--ink-soft);
}

.lang a:hover {
    color: var(--green);
    background: var(--green-pale);
}

.menu-button {
    display: none;
    border: 2px solid var(--green);
    background: transparent;
    color: var(--green);
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    width: 100%;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.nav a {
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.nav a:hover {
    color: var(--green);
    background: var(--green-pale);
}

.nav a[aria-current="page"] {
    color: var(--green);
    border-bottom-color: var(--red);
}

@media (min-width: 900px) {
    .top-row {
        gap: 10px 18px;
    }
    .nav {
        width: auto;
        order: 1;
        margin-right: auto;
        font-size: 1.1rem;
    }
    .nav a {
        padding: 6px 7px;
    }
    .brand {
        margin-right: 0;
    }
    .call {
        order: 2;
    }
    .lang {
        order: 3;
    }
}

@media (max-width: 899px) {
    .menu-button {
        display: inline-block;
    }
    .top.js .nav {
        display: none;
    }
    .top.js .nav.open {
        display: flex;
        flex-direction: column;
        padding-top: 6px;
        border-top: 1px solid var(--line);
    }
    .top.js .nav.open a {
        padding: 10px 8px;
        font-size: 1.35rem;
    }
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--red);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
    background: var(--red-deep);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: currentColor;
    color: var(--green);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.on-dark .btn-ghost {
    color: #fff;
}

.on-dark .btn-ghost:hover,
.on-dark .btn-ghost:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--green-night);
}

/* ---- hero with the lifting 4x4 ---- */

.hero {
    position: relative;
    background: var(--green-night);
    background-image: linear-gradient(160deg, var(--green-deep) 0%, var(--green-night) 55%, #0a2117 100%);
    color: var(--on-green);
    overflow: hidden;
    padding: clamp(40px, 6vw, 80px) 0 0;
}

.hero .wrap {
    display: grid;
    gap: 28px;
    align-items: end;
}

.hero h1 {
    color: #fff;
    margin-bottom: .35em;
    max-width: 12ch;
}

.hero .lead {
    font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
    color: var(--on-green-soft);
    max-width: 44ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 32px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    color: var(--on-green-soft);
    font-size: .98rem;
}

.hero-meta strong {
    color: #fff;
    font-weight: 700;
}

.truck {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    display: block;
}

.truck .body,
.truck .wheel,
.truck .spring {
    transform-box: fill-box;
    transform-origin: center;
}

/* The lift: the body sits low on the axles and rises on its springs once; the lifted state is the resting state. */
@keyframes lift {
    0% { transform: translateY(26px); }
    35% { transform: translateY(26px); }
    100% { transform: translateY(0); }
}
@keyframes stretch {
    0% { transform: scaleY(.55); }
    35% { transform: scaleY(.55); }
    100% { transform: scaleY(1); }
}
@keyframes roll {
    0% { transform: translateX(-120px); }
    35% { transform: translateX(0); }
    100% { transform: translateX(0); }
}

.truck .body {
    animation: lift 2.2s cubic-bezier(.2, .8, .3, 1.1) both;
}

.truck .spring {
    transform-origin: 50% 100%;
    animation: stretch 2.2s cubic-bezier(.2, .8, .3, 1.1) both;
}

.truck .rig {
    animation: roll 2.2s cubic-bezier(.3, .7, .2, 1) both;
}

.truck .track {
    stroke-dasharray: 14 10;
}

@media (min-width: 820px) {
    .hero .wrap {
        grid-template-columns: 1.05fr 1fr;
        gap: 40px;
    }
}

/* ---- bands ---- */

.band {
    padding: clamp(48px, 7vw, 96px) 0;
}

.band-tight {
    padding: clamp(32px, 5vw, 64px) 0;
}

.band-green {
    background: var(--green);
    color: var(--on-green);
}

.band-green a {
    color: #fff;
}

.band-green h2,
.band-green h3 {
    color: #fff;
}

.band-red {
    background: var(--red);
    background-image: linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%);
    color: #fff;
}

.band-red h2,
.band-red a {
    color: #fff;
}

.band-sheet {
    background: var(--sheet);
}

.on-dark {
    color: var(--on-green);
}

.kicker {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--red-text);
    margin: 0 0 .6em;
}

.band-green .kicker,
.band-red .kicker,
.hero .kicker {
    color: var(--on-green-soft);
}

.lead {
    font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
    max-width: 60ch;
}

.measure {
    max-width: 66ch;
}

/* the two lifts: large figures stated by the original */
.figures {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.figures li {
    border-left: 4px solid var(--red);
    padding-left: 18px;
}

.figures .fig {
    display: block;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(3.4rem, 2.6rem + 3vw, 5.4rem);
    line-height: .9;
    color: #fff;
}

.figures .fig small {
    font-size: .45em;
    font-weight: 700;
    margin-left: .1em;
}

.figures p {
    margin: 8px 0 0;
    color: var(--on-green-soft);
}

/* the trail: the six steps of a repair */
.trail {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    position: relative;
}

.trail li {
    counter-increment: step;
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.trail li::before {
    content: counter(step);
    font-family: var(--display);
    font-weight: 900;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--green);
}

.trail p {
    margin: 0;
}

@media (min-width: 820px) {
    .trail {
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
    }
}

/* brands: a strip of names */
.brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brands li {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.3rem, 1.1rem + 1vw, 2rem);
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 8px 16px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: var(--sheet);
}

.brands li.lead-brand {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.brands li a {
    color: inherit;
    text-decoration: none;
}

/* photos: a bento of the workshop */
.bento {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
}

.bento figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--green-night);
}

.bento a {
    display: block;
    height: 100%;
}

.bento img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.bento a:hover img {
    transform: scale(1.03);
}

.bento .tall {
    grid-row: span 2;
}

@media (min-width: 720px) {
    .bento {
        grid-template-columns: 1.2fr 1fr 1fr;
        grid-auto-rows: 240px;
    }
}

/* ---- page hero (inner pages) ---- */

.page-hero {
    background: var(--green);
    background-image: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
    color: #fff;
    padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
}

.page-hero h1 {
    color: #fff;
    max-width: 16ch;
}

.page-hero .lead {
    color: var(--on-green-soft);
}

.page-hero a {
    color: #fff;
}

/* in-page navigation for long pages */
.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.subnav a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-decoration: none;
}

.subnav a:hover {
    background: #fff;
    color: var(--green);
}

/* ---- service sections ---- */

.service {
    scroll-margin-top: 110px;
    padding: clamp(36px, 5vw, 64px) 0;
    border-top: 1px solid var(--line);
}

.service:first-of-type {
    border-top: 0;
}

.service-grid {
    display: grid;
    gap: 24px 48px;
}

.service-grid > header {
    position: relative;
}

.service-grid > header h2 {
    color: var(--green);
}

.service-grid > header .deco {
    width: 56px;
    height: 56px;
    color: var(--red);
    margin-bottom: 12px;
}

@media (min-width: 820px) {
    .service-grid {
        grid-template-columns: minmax(240px, .8fr) 1.4fr;
    }
    .service-grid > header {
        position: sticky;
        top: 110px;
        align-self: start;
    }
}

.checks {
    list-style: none;
    margin: 0 0 1.4em;
    padding: 0;
    columns: 1;
}

.checks li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 6px;
    break-inside: avoid;
}

.checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .5em;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--green);
    transform: rotate(45deg);
}

.band-green .checks li::before,
.band-red .checks li::before {
    background: #fff;
}

@media (min-width: 640px) {
    .checks.two {
        columns: 2;
        column-gap: 32px;
    }
}

.note {
    padding: 14px 18px;
    border-left: 4px solid var(--red);
    background: var(--green-pale);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 0 0 1.2em;
}

/* ---- cards (used sparingly: contact page) ---- */

.duo {
    display: grid;
    gap: 24px;
}

@media (min-width: 880px) {
    .duo {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 32px);
}

.big-phone {
    display: inline-block;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem);
    line-height: 1;
    color: var(--red);
    text-decoration: none;
    margin-bottom: 18px;
}

.big-phone:hover {
    color: var(--red-deep);
}

.contact-list {
    margin: 0 0 1.5em;
}

.contact-list > div {
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.contact-list dt {
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--green);
    font-size: 1.05rem;
}

.contact-list dd {
    margin: 2px 0 0;
}

/* ---- contact form ---- */

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-form input:not([type="hidden"]),
.contact-form textarea {
    width: 100%;
    font: inherit;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: var(--plaster);
    color: var(--ink);
    margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 3px var(--green-pale);
}

.contact-form .form-hint {
    font-size: .92rem;
    color: var(--ink-soft);
    margin-top: 12px;
}

.contact-sent {
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--green-pale);
    border-left: 4px solid var(--green);
    margin-bottom: 20px;
}

.contact-form ul {
    color: var(--red-deep);
    font-size: .95rem;
}

/* ---- gallery ---- */

.gallery {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery figure {
    margin: 0;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery img {
    width: 100%;
    aspect-ratio: 800 / 452;
    object-fit: cover;
}

.gallery figcaption {
    padding: 12px 14px;
    font-size: .98rem;
}

/* ---- call band ---- */

.cta {
    display: grid;
    gap: 20px;
    align-items: center;
}

.cta h2 {
    margin: 0;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (min-width: 820px) {
    .cta {
        grid-template-columns: 1fr auto;
    }
}

.hours {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.foot {
    background: var(--green-night);
    color: var(--on-green-soft);
    padding: clamp(40px, 6vw, 72px) 0 24px;
}

.foot a {
    color: #fff;
}

.foot h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--on-green-soft);
    margin-bottom: .8em;
}

.foot-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 760px) {
    .foot-grid {
        grid-template-columns: 1.3fr 1fr 1fr;
    }
}

.foot-logo {
    width: 160px;
    height: 81px;
    margin-bottom: 14px;
}

.foot address {
    font-style: normal;
}

.foot-phone {
    font-family: var(--display);
    font-weight: 900;
    font-size: 2rem;
    text-decoration: none;
    line-height: 1;
}

.foot-bottom {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: .92rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
}

.foot-bottom p {
    margin: 0;
}

/* ---- 404 ---- */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--green-night);
    color: var(--on-green-soft);
    padding: 40px 16px;
}

.not-found > div {
    max-width: 640px;
}

.not-found h1,
.not-found h2 {
    color: #fff;
}

.not-found a {
    color: #fff;
}

.not-found img {
    width: 206px;
    height: 104px;
    margin-bottom: 24px;
}

/* ---- motion ---- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .truck .body,
    .truck .spring,
    .truck .rig {
        animation: none;
    }
    .bento img {
        transition: none;
    }
}
/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}
