/* =====================================================================
   INSUNTEC — full públic
   Colors i tipografia es poden ajustar aquí (variables CSS).
   ===================================================================== */
:root {
  --navy: #0b2a4a;
  --navy-dark: #071b31;
  --sun: #f5a623;
  --sun-dark: #d98c0b;
  --sky: #1f6fb2;
  --ink: #1d2733;
  --muted: #5d6b7a;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 74, .10);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: #000; padding: .5rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; }
.ico { vertical-align: -3px; }

/* ---------- Botons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.25rem; border-radius: 999px; font-weight: 600; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2; transition: transform .15s ease, background .2s, color .2s, box-shadow .2s; text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sun); color: var(--navy-dark); }
.btn-primary:hover { background: var(--sun-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: var(--bg-alt); color: var(--navy); }
.btn-ghost:hover { background: var(--line); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.link-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--sun); margin-top: .5rem; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--sun-dark); margin-bottom: .6rem; }
.tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--sky); background: #e8f1fa; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .5rem; }

/* ---------- Capçalera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.topbar { background: var(--navy-dark); color: #cfe0f3; font-size: .85rem; }
.topbar-inner { display: flex; gap: 1.25rem; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #cfe0f3; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: var(--sun); text-decoration: none; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.topbar-social { display: flex; gap: .75rem; }
.topbar-map-short { display: none; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { padding: .1rem .45rem; border-radius: 4px; font-weight: 700; font-size: .78rem; letter-spacing: .04em; }
.lang-switch a.active { background: var(--sun); color: var(--navy-dark); }
.lang-switch a.active:hover { color: var(--navy-dark); }
@media (max-width: 1100px) { .topbar-map-full { display: none; } .topbar-map-short { display: inline; } }
@media (max-width: 520px) { .topbar-social { display: none; } .topbar-inner { gap: .9rem; } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand img { height: 52px; width: auto; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; align-items: center; }
.mainnav a:not(.btn) { display: block; padding: .5rem .6rem; color: var(--navy); font-weight: 600; font-size: .92rem; border-radius: 8px; white-space: nowrap; }
.mainnav .btn { white-space: nowrap; padding: .6rem 1.05rem; }
.mainnav a:not(.btn):hover, .mainnav a.active { background: var(--bg-alt); text-decoration: none; color: var(--sky); }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; height: 3px; background: var(--navy); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) { .topbar-inner .topbar-mail { display: none; } }
@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .mainnav { position: fixed; inset: 0 0 0 auto; width: min(85vw, 340px); background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .25s ease; padding: 5.5rem 1.25rem 2rem; overflow-y: auto; }
  .mainnav.open { transform: none; }
  .mainnav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .mainnav a:not(.btn) { padding: .85rem 1rem; font-size: 1.05rem; }
  .nav-cta { margin: 1rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  body.nav-open { overflow: hidden; }
  .nav-toggle { position: relative; z-index: 60; }
}

/* ---------- Flash ---------- */
.flash-wrap { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); z-index: 80; width: min(92vw, 560px); display: grid; gap: .5rem; }
.flash { padding: .9rem 1.1rem; border-radius: 10px; box-shadow: var(--shadow); font-weight: 500; }
.flash-ok { background: #e4f6ea; color: #15532a; border: 1px solid #b7e4c6; }
.flash-error { background: #fdeaea; color: #8a1c1c; border: 1px solid #f3c1c1; }

/* ---------- Portada: panells ---------- */
.hero-panels { background: var(--navy-dark); color: #fff; }
.hero-intro { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1rem 1.5rem; max-width: 900px; margin-inline: auto; }
.hero-intro h1 { color: #fff; margin-bottom: .5rem; }
.hero-intro p { color: #c9d8e8; font-size: clamp(1rem, 1.6vw, 1.2rem); margin: 0; }
.panels { display: grid; grid-template-columns: repeat(4, 1fr); min-height: clamp(420px, 60vh, 620px); }
.panel { position: relative; overflow: hidden; display: flex; align-items: flex-end; color: #fff; text-decoration: none !important; isolation: isolate; min-height: 320px; border-right: 1px solid rgba(255,255,255,.08); }
.panel:last-child { border-right: 0; }
.panel-bg { position: absolute; inset: 0; background: var(--bg, linear-gradient(135deg, #16406b, #0b2a4a)) center/cover no-repeat; transition: transform .6s ease; z-index: -2; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,27,49,.95) 0%, rgba(7,27,49,.55) 45%, rgba(7,27,49,.25) 100%); transition: background .3s; }
.panel:hover .panel-bg { transform: scale(1.06); }
.panel:hover::after { background: linear-gradient(to top, rgba(7,27,49,.97) 0%, rgba(11,42,74,.7) 55%, rgba(11,42,74,.35) 100%); }
.panel-content { padding: 1.5rem 1.4rem 1.6rem; width: 100%; }
.panel-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 16px; align-items: center; justify-content: center; background: rgba(245,166,35,.18); color: var(--sun); margin-bottom: .75rem; border: 1px solid rgba(245,166,35,.4); }
.panel h2 { color: #fff; font-size: 1.35rem; margin-bottom: .15rem; text-transform: uppercase; letter-spacing: .04em; }
.panel-sub { display: block; color: var(--sun); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.panel p { color: #d6e1ec; font-size: .95rem; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease, margin .3s; }
.panel:hover p, .panel:focus-visible p { max-height: 200px; opacity: 1; margin-bottom: .5rem; }
.panel .link-more { color: var(--sun); }
@media (max-width: 1024px) { .panels { grid-template-columns: repeat(2, 1fr); } .panel { min-height: 300px; } .panel p { max-height: 200px; opacity: 1; margin-bottom: .5rem; } }
@media (max-width: 560px) { .panels { grid-template-columns: 1fr; } .panel { min-height: 260px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); } }
@media (hover: none) { .panel p { max-height: 200px; opacity: 1; margin-bottom: .5rem; } }

/* ---------- Seccions genèriques ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Qui som band */
.about-band { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.stats li { background: #fff; border-radius: var(--radius); padding: 1.1rem 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; border-left: 5px solid var(--sun); }
.stats strong { font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } .stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.ig-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--bg-alt); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ig-item:hover img { transform: scale(1.05); }
.ig-play { position: absolute; top: .6rem; right: .6rem; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }
.consent-placeholder { background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; display: flex; flex-direction: column; gap: .75rem; align-items: center; }
.consent-placeholder.small { padding: 1.25rem; width: 100%; height: 100%; justify-content: center; }
.consent-placeholder p { margin: 0; }

/* Projectes */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.project-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(11,42,74,.06); border: 1px solid var(--line); color: inherit; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover img { transform: scale(1.04); }
.project-card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.project-card-body h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.project-card-body p { color: var(--muted); font-size: .93rem; margin-bottom: .25rem; flex: 1; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: .9rem; }
.chip.active, .chip:hover { background: var(--navy); color: #fff; text-decoration: none; border-color: var(--navy); }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; }
.pagination a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); color: var(--navy); font-weight: 600; }
.pagination a.active { background: var(--navy); color: #fff; }

/* Marques */
.brands { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: center; align-items: center; margin-top: 2rem; }
.brand-logo { opacity: .75; transition: opacity .2s; color: var(--muted); font-weight: 600; }
.brand-logo:hover { opacity: 1; }
.brand-logo img { height: 48px; width: auto; filter: grayscale(1); transition: filter .2s; }
.brand-logo:hover img { filter: none; }

/* Pàgines interiors */
.page-hero { position: relative; color: #fff; padding: clamp(3.5rem, 10vw, 7rem) 0; background: var(--navy-dark); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg, none) center/cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,27,49,.92), rgba(7,27,49,.55)); }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero .lead { color: #d6e1ec; font-size: 1.15rem; margin: 0; max-width: 720px; }
.page-hero-plain { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-hero-plain::after { background: var(--navy); }
.page-hero .panel-icon { margin-bottom: 1rem; }
/* Capçalera de secció: més baixa, icona al costat del títol */
.page-hero-section { padding: clamp(1.75rem, 4vw, 2.75rem) 0; }
.page-hero-row { display: flex; align-items: center; gap: 1.1rem; }
.page-hero-row .panel-icon { margin: 0; flex-shrink: 0; width: 56px; height: 56px; }
.page-hero-row > div { min-width: 0; }
.page-hero-section h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0; }
.page-hero-section .lead { font-size: 1.05rem; }
@media (max-width: 520px) { .page-hero-row .panel-icon { width: 44px; height: 44px; } }
/* Text de secció a tot l'ample */
.section-text { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.prose-wide { max-width: none; }
.section-cta { margin: 1.5rem 0 0; }
.breadcrumb { font-size: .9rem; color: #b9c9db; margin-bottom: .75rem; }
.breadcrumb a { color: #e2ecf6; }
.meta { color: #c9d8e8; display: flex; gap: 1.25rem; flex-wrap: wrap; margin: .5rem 0 0; font-size: .95rem; }
.section-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .section-layout { grid-template-columns: 1fr; } }
.prose { font-size: 1.05rem; }
/* Text justificat amb partició de mots (lang="ca") perquè no quedin espais grans */
/* (també al mòbil, a petició del client) */
.prose, .prose p, .prose div, .prose li, .prose span, .about-grid p, .panel p, .project-card-body p { text-align: justify !important; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.prose table, .prose th, .prose td { text-align: left !important; }
.prose h1, .prose h2, .prose h3, .prose h4 { text-align: left !important; hyphens: manual; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); }
.prose img { border-radius: 10px; margin: 1rem 0; }
.page-figure { margin: 2rem 0 1rem; }
.page-figure img { width: 100%; height: auto; margin: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Galeries */
.gallery { display: grid; gap: .75rem; }
.gallery-side { grid-template-columns: 1fr; }
.gallery-item { display: block; border-radius: 12px; overflow: hidden; background: var(--bg-alt); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-project { grid-template-columns: repeat(4, 1fr); margin-bottom: 2.5rem; }
.gallery-project .gallery-main { grid-column: 1 / -1; }
.gallery-project .gallery-main img { aspect-ratio: 16/8; }
.gallery-video { aspect-ratio: 16/9; background: #000; }
.gallery-video video, .gallery-video iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .gallery-project { grid-template-columns: repeat(2, 1fr); } }
.mini-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.mini-panel { position: relative; isolation: isolate; display: flex; align-items: center; gap: .9rem; padding: 1.5rem 1.4rem; border-radius: var(--radius); color: #fff; font-weight: 700; font-size: 1.1rem; overflow: hidden; min-height: 110px; text-decoration: none !important; }
.mini-panel::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg, linear-gradient(135deg,#16406b,#0b2a4a)) center/cover; transition: transform .5s; }
.mini-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7,27,49,.7); }
.mini-panel:hover::before { transform: scale(1.06); }
.mini-panel .panel-icon { width: 48px; height: 48px; margin: 0; flex-shrink: 0; }
@media (max-width: 760px) { .mini-panels { grid-template-columns: 1fr; } }

/* Contacte */
.contact-section { background: linear-gradient(180deg, var(--bg-alt), #fff); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--navy); }
.contact-list .ico { flex-shrink: 0; margin-top: 3px; color: var(--sun-dark); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.contact-form label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 1rem; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: .3rem; padding: .75rem .9rem; border: 1px solid #c9d3de; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--sun); border-color: var(--sun); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.contact-info p { text-align: left; }
.contact-form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.contact-form .check input { width: 20px; height: 20px; margin: 3px 0 0; }
.form-legal { font-size: .78rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Peu */
.site-footer { background: var(--navy-dark); color: #b9c9db; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-logo { height: 44px; width: auto; margin-bottom: .75rem; background: #fff; border-radius: 8px; padding: 6px; }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: #d6e1ec; }
.site-footer a:hover { color: var(--sun); }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-social { display: flex; gap: .9rem; margin-top: .75rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

.to-top { position: fixed; right: 1rem; bottom: 1rem; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Cookies */
.cookie-banner { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(94vw, 760px); z-index: 90; }
.cookie-inner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 1.1rem 1.25rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.cookie-inner p { margin: 0; flex: 1 1 320px; font-size: .92rem; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: .55rem 1rem; font-size: .92rem; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0,0,0,.93); }
.lightbox-content img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: 10px; }
.lightbox-caption { color: #fff; text-align: center; margin-top: .5rem; font-size: .95rem; }
.lightbox-close { position: fixed; top: .5rem; right: .75rem; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; z-index: 3; }
.lightbox-content { cursor: pointer; }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); color: #fff; transition: background .2s; }
.lightbox-nav:hover, .lightbox-nav:focus-visible { background: var(--sun); color: var(--navy-dark); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter { position: fixed; top: .9rem; left: 1rem; z-index: 3; color: #fff; font-size: .9rem; font-weight: 600; letter-spacing: .04em; opacity: .85; }
@media (max-width: 640px) { .lightbox-nav { width: 44px; height: 44px; background: rgba(7,27,49,.6); } .lightbox-prev { left: .4rem; } .lightbox-next { right: .4rem; } }

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

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