/* Kozlowski Electric: the logo's red and bolt amber on the charcoal of the shop sign and panel steel.
   Barlow Condensed (display) and Barlow (text), both SIL OFL. The signature is the breaker panel of the
   home page ("panel" below), whose breakers switch on one by one when the page opens. */

@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
    --ink: #1e2428;
    --ink-2: #2c3439;
    --steel: #e1e6e9;
    --steel-2: #c9d1d6;
    --paper: #f6f7f5;
    --text: #1e2428;
    --muted: #4a555c;
    --red: #c3161c;
    --red-dark: #9a1015;
    --amber: #f29a1f;
    --amber-soft: #ffd27a;
    --blue: #1a5a83;
    --on-dark: #eef1f2;
    --on-dark-muted: #b9c3c8;
    --display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --body: "Barlow", system-ui, sans-serif;
    --radius: 18px;
    --lb-accent: #f29a1f;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 400 1.0625rem/1.6 var(--body);
}

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

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

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

h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }

p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

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

.skip {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--amber);
    color: var(--ink);
    font-weight: 600;
    border-radius: 8px;
}
.skip:focus { top: 1rem; }

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(30 36 40 / .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--on-dark);
    border-bottom: 1px solid rgb(255 255 255 / .08);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1.5rem;
    min-height: 72px;
    padding-block: .55rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--on-dark);
    text-decoration: none;
    margin-right: auto;
}
.brand img { width: 23px; height: 60px; }
.brand-name {
    font: 800 1.55rem/1 var(--display);
    letter-spacing: .01em;
}
.brand-name span { color: var(--amber); }

.nav { display: flex; gap: .25rem; }
.nav a {
    color: var(--on-dark);
    text-decoration: none;
    font-weight: 600;
    padding: .45rem .8rem;
    border-radius: 999px;
}
.nav a:hover { background: rgb(255 255 255 / .1); }
.nav a[aria-current="page"] { background: var(--on-dark); color: var(--ink); }

.top-call {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.05rem;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font: 700 1.2rem/1 var(--display);
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
}
.top-call:hover { background: var(--red-dark); }

.top-social { display: flex; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.top-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgb(238 241 242 / .35);
    color: var(--on-dark);
}
.top-social a:hover { border-color: var(--amber); color: var(--amber); }

/* Below 1000 px the menu and the social icons share the second row, under the name and the phone. */
@media (max-width: 1000px) {
    .top-row::before { content: ""; order: 2; flex-basis: 100%; height: 0; margin-top: -.6rem; }
    .nav { order: 3; flex: 1 0 auto; }
    .top-social { order: 4; }
}

@media (max-width: 720px) {
    .top { position: static; }
    .top-row { gap: .5rem 1rem; }
    .nav { margin-left: -.8rem; }
    .brand-name { font-size: 1.35rem; }
    .brand img { width: 18px; height: 46px; }
    .top-call { font-size: 1.1rem; padding: .55rem .85rem; }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 52px;
    padding: .75rem 1.4rem;
    border-radius: 12px;
    border: 2px solid transparent;
    font: 700 1.25rem/1.1 var(--display);
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: var(--on-dark-muted); color: var(--on-dark); }
.btn-line:hover { border-color: var(--amber); color: var(--amber-soft); }
.btn-white { background: #fff; color: var(--red-dark); }

/* ---- hero ---- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60rem 30rem at 85% 20%, rgb(242 154 31 / .16), transparent 60%),
        linear-gradient(160deg, var(--ink-2), var(--ink) 60%);
    color: var(--on-dark);
    padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
}
.hero::after {
    /* a run of conduit along the foot of the hero */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 1.4rem;
    height: 6px;
    background: repeating-linear-gradient(90deg, #56636a 0 120px, #6c7a82 120px 128px);
    opacity: .6;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero-kicker {
    color: var(--amber-soft);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
}

.hero h1 {
    font-size: clamp(2.9rem, 1.6rem + 5.4vw, 6.1rem);
    line-height: .92;
    letter-spacing: -.02em;
    margin-bottom: 1.5rem;
}

.lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); max-width: 36ch; }
.hero .lead { color: var(--on-dark); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-panel { max-width: 500px; justify-self: end; width: 100%; }

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-panel { justify-self: start; max-width: 420px; }
}

/* ---- panel: the breaker panel of the home page ---- */

.panel { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .45)); }

.brk-tog { fill: #e9edef; }
.brk-l { --off: -22px; }
.brk-r { --off: 22px; }
.brk-main { --off: 0; }
.brk-main .brk-tog { fill: var(--amber); }

.brk-label {
    font: 700 18px/1 var(--display);
    fill: var(--amber-soft);
    letter-spacing: .01em;
}
.panel-main { font: 700 15px/1 var(--display); fill: #b9c3c8; letter-spacing: .08em; }
.panel-led { fill: var(--amber); }

@media (prefers-reduced-motion: no-preference) {
    .brk .brk-tog {
        transform-box: fill-box;
        animation: brk-flip .32s cubic-bezier(.3, 1.6, .5, 1) both;
        animation-delay: calc(.5s + var(--i) * .16s);
    }
    .brk-main .brk-tog { animation-name: brk-main; }
    .brk-label {
        animation: brk-lit .4s ease both;
        animation-delay: calc(.62s + var(--i) * .16s);
    }
    .panel-led, .panel-glow {
        animation: brk-led .5s ease both;
        animation-delay: 2.1s;
    }
}

@keyframes brk-flip { from { transform: translateX(var(--off)); fill: #8b979e; } }
@keyframes brk-main { from { transform: translateY(8px); fill: #8b979e; } }
@keyframes brk-lit { from { fill: #6c7a82; } }
@keyframes brk-led { from { opacity: 0; } }

/* ---- rail: hours and contact under the hero ---- */

.rail { background: var(--steel); border-bottom: 1px solid var(--steel-2); }
.rail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.rail-grid > div { padding: 1.3rem 1.2rem 1.1rem; border-left: 1px solid var(--steel-2); }
.rail-grid > div:first-child { border-left: 0; padding-left: 0; }
.rail h2 { font-size: 1rem; font-family: var(--body); font-weight: 600; color: var(--muted); margin-bottom: .2rem; letter-spacing: 0; }
.rail p { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 860px) {
    .rail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rail-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
    .rail-grid > div:nth-child(n+3) { border-top: 1px solid var(--steel-2); }
}
@media (max-width: 480px) {
    .rail-grid { grid-template-columns: minmax(0, 1fr); }
    .rail-grid > div { border-left: 0; padding: .9rem 0; }
    .rail-grid > div + div { border-top: 1px solid var(--steel-2); }
}

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

.band { padding-block: clamp(3.5rem, 7vw, 6.5rem); }

.work-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.years { position: relative; }
.years-figure {
    display: flex;
    align-items: flex-start;
    margin: 0;
    font: 800 clamp(9rem, 5rem + 16vw, 17rem)/.8 var(--display);
    letter-spacing: -.04em;
    color: var(--red);
}
.years-plus { color: var(--amber); font-size: .5em; line-height: 1; margin-left: .05em; }
.years-label { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--display); margin-top: .8rem; }

.wires { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .55rem; }
.wires li {
    display: flex;
    align-items: center;
    gap: .9rem;
    font: 700 clamp(1.3rem, 1.1rem + .7vw, 1.7rem)/1.15 var(--display);
}
.wires li::before {
    /* a stripped wire end in the colour of its insulation */
    content: "";
    flex: none;
    width: 46px;
    height: 10px;
    border-radius: 5px 0 0 5px;
    background: linear-gradient(90deg, var(--wire) 0 72%, #c88a4a 72% 100%);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18);
}
.w-black { --wire: #23292d; }
.w-red { --wire: var(--red); }
.w-blue { --wire: var(--blue); }
.w-green { --wire: #2f7d3a; }
.w-white { --wire: #fdfdfb; }

@media (max-width: 760px) {
    .work-grid { grid-template-columns: minmax(0, 1fr); }
}

.shop { background: var(--steel); }
.shop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.shop-photo, .about-photo { margin: 0; }
.shop-photo img, .about-photo img {
    border-radius: var(--radius);
    box-shadow: 0 24px 50px -20px rgb(30 36 40 / .5);
}
.shop-text p { color: var(--muted); }
.link-strong { font: 700 1.3rem/1.2 var(--display); color: var(--red-dark); }

@media (max-width: 760px) {
    .shop-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- reviews ---- */

.reviews { background: var(--ink); color: var(--on-dark); }
.reviews a { color: var(--amber-soft); }
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.review {
    margin: 0;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-radius: var(--radius);
    background: var(--ink-2);
    border-top: 4px solid var(--amber);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.review-long { grid-row: span 2; border-top-color: var(--red); background: linear-gradient(160deg, #343e44, var(--ink-2)); }
.review blockquote { margin: 0 0 1.4rem; }
.review blockquote p { margin: 0; }
.review-long blockquote p { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.5; }
.review figcaption strong { display: block; font: 700 1.3rem/1.2 var(--display); color: #fff; }
.review figcaption span { display: block; color: var(--on-dark-muted); font-size: .95rem; margin-top: .2rem; }
.reviews-more { margin: 2rem 0 0; font-weight: 600; }

@media (max-width: 760px) {
    .review-grid { grid-template-columns: minmax(0, 1fr); }
    .review-long { grid-row: auto; }
}

/* ---- lake band ---- */

.lake { position: relative; background: var(--ink); color: #fff; }
.lake img { width: 100%; height: clamp(260px, 32vw, 420px); object-fit: cover; }
.lake::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(20 25 28 / .92) 0%, rgb(20 25 28 / .55) 45%, rgb(20 25 28 / 0) 80%);
}
.lake-text {
    position: absolute;
    left: 0; right: 0; bottom: clamp(1.2rem, 3vw, 2.5rem);
    z-index: 1;
}
.lake-text h2 { margin-bottom: .3rem; color: #fff; }
.lake-text p { margin: 0; }
.lake-text a { color: #fff; font-weight: 600; }

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

.call-band { background: var(--red); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); }
.call-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.call-grid h2 { margin-bottom: .2rem; }
.call-grid p { margin: 0; max-width: 46ch; }
.call-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.call-phone {
    color: #fff;
    font: 800 clamp(2.4rem, 1.6rem + 3vw, 3.6rem)/1 var(--display);
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
}
.call-phone:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.call-band :focus-visible { outline-color: #fff; }

/* ---- inner pages ---- */

.page-hero {
    background: linear-gradient(160deg, var(--ink-2), var(--ink));
    color: var(--on-dark);
    padding-block: clamp(2.5rem, 6vw, 5rem);
    border-bottom: 6px solid var(--amber);
}
.page-hero h1 { font-size: clamp(2.8rem, 1.8rem + 4.5vw, 5.2rem); line-height: .95; margin-bottom: 1rem; }
.page-hero .lead { margin: 0; color: var(--on-dark); }

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.about-text { max-width: 62ch; }
.about-first { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); line-height: 1.45; }
@media (max-width: 860px) {
    .about-grid { grid-template-columns: minmax(0, 1fr); }
}

.facts { background: var(--steel); }
.fact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
}
.fact-grid > div { background: var(--paper); border-radius: 14px; padding: 1.3rem 1.2rem; border-left: 5px solid var(--red); }
.fact-grid dt { font: 700 1.45rem/1.1 var(--display); margin-bottom: .4rem; }
.fact-grid dd { margin: 0; color: var(--muted); }
.facts-names { margin: 1.6rem 0 0; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fact-grid { grid-template-columns: minmax(0, 1fr); } }

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
.contact-card {
    background: var(--ink);
    color: var(--on-dark);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2.2rem);
}
.contact-card a { color: var(--amber-soft); }
.big-phone { margin: 0 0 1.5rem; }
.big-phone a {
    color: #fff;
    font: 800 clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem)/1 var(--display);
    text-decoration: none;
    white-space: nowrap;
}
.big-phone a:hover { color: var(--amber-soft); }
.contact-list { margin: 0; display: grid; gap: 1.1rem; }
.contact-list dt { color: var(--on-dark-muted); font-size: .95rem; font-weight: 600; }
.contact-list dd { margin: .1rem 0 0; overflow-wrap: anywhere; }

.form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    box-shadow: 0 1px 0 var(--steel-2), 0 20px 50px -30px rgb(30 36 40 / .45);
}
.form-card > p { color: var(--muted); }
@media (max-width: 860px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- the form ---- */

.contact-form { display: grid; gap: 1rem; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .form-pair { grid-template-columns: minmax(0, 1fr); } }
.contact-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--paper);
    border: 1px solid #8a959c;
    border-radius: 10px;
    padding: .7rem .85rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #5f6a71; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--ink); }
.contact-form ul { margin: .3rem 0 0; padding-left: 1.1rem; color: var(--red-dark); }
.contact-form button { justify-self: start; }
.form-hint { color: var(--muted); font-size: .95rem; margin: 0; }
.contact-sent {
    background: #e7f2e8;
    border-left: 5px solid #2f7d3a;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
}
.contact-sent strong { display: block; }

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

.foot { background: var(--ink); color: var(--on-dark-muted); padding-top: clamp(3rem, 6vw, 4.5rem); }
.foot a { color: var(--on-dark); }
.foot h2 { font-size: 1.35rem; color: #fff; margin: 0 0 .6rem; }
.foot h2 + p, .foot h2 + ul { margin-bottom: 1.4rem; }
.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 3rem;
}
.foot-id { display: flex; gap: 1.2rem; align-items: flex-start; }
.foot-logo { width: 36px; height: 93px; flex: none; }
.foot-name { font: 800 1.6rem/1.05 var(--display); color: #fff; margin-bottom: .1rem; }
.foot-alt { font-weight: 600; margin-bottom: .8rem; }
.foot-phone { font: 800 1.9rem/1 var(--display); text-decoration: none; color: #fff !important; white-space: nowrap; }
.foot address { font-style: normal; }
.foot-social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    margin-top: 2.5rem;
    padding-block: 1.3rem;
    border-top: 1px solid rgb(255 255 255 / .12);
    font-size: .95rem;
}
.foot-bottom p { margin: 0; }
@media (max-width: 860px) {
    .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .foot-id { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
    background: linear-gradient(160deg, var(--ink-2), var(--ink));
    color: var(--on-dark);
}
.not-found > div { max-width: 36rem; }
.not-found img { width: 44px; height: 113px; margin-bottom: 1.5rem; }
.not-found h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4rem); }
.not-found a:not(.btn) { color: var(--amber-soft); }

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

/* ---- 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;
    }
}
