:root {
  --ink: #071820;
  --ink-soft: #29414a;
  --muted: #65777d;
  --line: #dfe7e3;
  --paper: #ffffff;
  --mist: #f3f7f5;
  --green: #51b848;
  --green-dark: #1f7c44;
  --red: #d5423a;
  --shadow: 0 22px 80px rgba(7, 24, 32, 0.14);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.7rem max(1.25rem, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 231, 227, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 184px;
}

.brand img {
  width: 184px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a,
.header-cta,
.contact-links a {
  text-decoration: none;
}

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

.site-nav a:hover,
.contact-links a:hover {
  color: var(--green-dark);
}

.header-cta {
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.language-switcher {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.language-switcher button {
  min-width: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72svh;
  overflow: hidden;
  isolation: isolate;
  padding: 4.4rem max(1.25rem, calc((100vw - var(--container)) / 2));
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(7, 24, 32, 0.94) 0%, rgba(7, 24, 32, 0.86) 48%, rgba(7, 24, 32, 0.42) 100%),
    linear-gradient(0deg, rgba(7, 24, 32, 0.18), rgba(7, 24, 32, 0.18)),
    url("assets/bam-optima.png");
  background-position: center, center, 82% 52%;
  background-repeat: no-repeat;
  background-size: cover, cover, auto 88%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 7px;
  background: var(--green);
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow,
.data-panel .eyebrow,
.contact-copy .eyebrow {
  color: #9df18b;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  font-size: 4.35rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 1.2rem;
}

.hero-lead {
  max-width: 660px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.2rem;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--ink);
  background: var(--green);
}

.button-primary:hover {
  background: #62ce57;
}

.button-secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 760px;
  margin: 2rem 0 0;
}

.hero-facts div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts dt {
  font-weight: 900;
}

.hero-facts dd {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.section {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.section-copy {
  max-width: 780px;
}

.section-copy p:not(.eyebrow),
.product-copy p,
.data-panel p,
.audience-copy p,
.contact-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.centered {
  margin: 0 auto;
  text-align: center;
}

.intro-grid,
.service-list,
.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.intro-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-card,
.service-list article,
.faq-list details,
.timeline article,
.metrics-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.info-card {
  min-height: 250px;
  padding: 1.4rem;
  box-shadow: 0 12px 30px rgba(7, 24, 32, 0.06);
}

.info-card span,
.timeline span {
  display: inline-flex;
  margin-bottom: 1.4rem;
  color: var(--green-dark);
  font-weight: 900;
}

.info-card p,
.service-list p,
.timeline p,
.faq-list p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.product-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: 3rem;
}

.product-media {
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 2rem;
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(7, 24, 32, 0.98), rgba(41, 65, 74, 0.92)),
    url("assets/puce-nosquito.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.product-media img {
  width: min(440px, 96%);
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.5));
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--green);
}

.method-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.timeline article {
  padding: 1.4rem;
  background: var(--mist);
}

.data-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 1rem;
}

.data-panel {
  padding: 2.2rem;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
}

.data-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.metrics-grid div {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  background: var(--paper);
}

.metrics-grid strong {
  font-size: 1.5rem;
}

.metrics-grid span {
  color: var(--muted);
}

.service-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.service-list {
  margin-top: 0;
}

.service-list article {
  padding: 1.4rem;
}

.audience-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 4rem 2.2rem;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
}

.audience-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.audience-tags span {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.faq-list {
  grid-template-columns: 1fr;
}

.faq-list details {
  padding: 1.2rem 1.4rem;
}

.faq-list summary {
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 3rem;
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto 4rem;
  padding: 3rem;
  border-radius: 8px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(7, 24, 32, 0.98), rgba(7, 24, 32, 0.86)),
    url("assets/puce-nosquito.png") center/cover no-repeat;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-links a {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--paper);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: var(--paper);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(81, 184, 72, 0.3);
  border-color: var(--green-dark);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem max(1.25rem, calc((100vw - var(--container)) / 2));
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 0.35rem;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav.is-open {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: calc(100% + 0.5rem);
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open a {
    padding: 0.8rem;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-position: center, center, 100% 55%;
    background-size: cover, cover, auto 72%;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .intro-grid,
  .timeline,
  .product-section,
  .data-section,
  .service-section,
  .audience-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .product-media {
    min-height: 460px;
  }

  .service-list {
    margin-top: 0;
  }

  .audience-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    display: flex;
    width: 100vw;
    max-width: 100vw;
    gap: 0.55rem;
    justify-content: space-between;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .brand,
  .brand img {
    width: 130px;
  }

  .brand {
    order: 1;
  }

  .language-switcher {
    order: 2;
  }

  .nav-toggle {
    display: none;
    order: 3;
  }

  .language-switcher {
    gap: 0.1rem;
    padding: 0.18rem;
  }

  .language-switcher button {
    min-width: 34px;
    padding: 0.4rem 0.45rem;
  }

  .hero {
    width: 100vw;
    max-width: 100vw;
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
    background-image:
      linear-gradient(90deg, rgba(7, 24, 32, 0.96), rgba(7, 24, 32, 0.84)),
      url("assets/bam-optima.png");
    background-position: center, right 8% bottom 4%;
    background-size: cover, auto 54%;
  }

  .hero-content {
    width: auto;
    max-width: 350px;
    min-width: 0;
  }

  .hero-lead,
  h1 {
    max-width: 350px;
    min-width: 0;
  }

  h1 {
    font-size: 1.95rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-lead,
  .section-copy p:not(.eyebrow),
  .product-copy p,
  .data-panel p,
  .audience-copy p,
  .contact-copy p {
    font-size: 1rem;
  }

  .hero-facts,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(var(--container), calc(100% - 1.5rem));
    padding: 3.5rem 0;
  }

  .product-media {
    min-height: 360px;
    padding: 1rem;
  }

  .audience-section,
  .contact-section {
    width: min(var(--container), calc(100% - 1.5rem));
    padding: 2rem 1rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .button,
  .contact-links a {
    width: 100%;
  }
}

/* Galleries */
section[id] { scroll-margin-top: 105px; }
.gallery-heading { max-width: 760px; margin-bottom: 2rem; }
.gallery-heading > p:last-child { color: var(--ink-soft); font-size: 1.1rem; }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.gallery-tabs button { padding: .8rem 1.25rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink-soft); cursor: pointer; font-weight: 700; }
.gallery-tabs button:hover { border-color: var(--green-dark); }
.gallery-tabs button[aria-selected="true"] { background: var(--ink); color: white; border-color: var(--ink); }
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 4px; }
.gallery-panel { display: grid; grid-template-columns: .85fr 1.15fr; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--mist); }
.gallery-panel[hidden] { display: none; }
.gallery-copy { padding: clamp(1.5rem,4vw,3.5rem); align-self: center; }
.gallery-number { color: var(--green-dark); font-size: .8rem; font-weight: 700; letter-spacing: .16em; }
.gallery-copy h3 { font-size: clamp(2rem,4vw,3rem); line-height: 1.15; margin: 1rem 0; }
.gallery-copy p { color: var(--ink-soft); margin-bottom: 2rem; }
.gallery-placeholder { min-height: 340px; padding: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #527064; background: radial-gradient(ellipse at top right,#d8e8d9,transparent 70%),#eaf0eb; border-left: 1px solid var(--line); }
.gallery-placeholder strong { margin-top: 1rem; font-size: 1.2rem; color: var(--ink-soft); }
.gallery-placeholder p { margin: .4rem 0 0; }
@media (max-width: 640px) {
 .nav-toggle { display: inline-grid; flex-shrink: 0; }
 .gallery-panel { grid-template-columns: 1fr; }
 .gallery-placeholder { min-height: 240px; border-left: 0; border-top: 1px solid var(--line); }
 .gallery-tabs { gap: .45rem; }
 .gallery-tabs button { padding: .65rem .9rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hotel-photos { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:20px; background:#eaf0eb; }
.hotel-photos a { position:relative; display:block; overflow:hidden; border-radius:12px; background:#d8e8d9; }
.hotel-photos a:first-child { grid-column:1 / -1; }
.hotel-photos img { width:100%; height:220px; object-fit:cover; }
.hotel-photos a:first-child img { height:300px; }
.photo-enlarge { position:absolute; right:10px; bottom:10px; background:#071820; color:white; border-radius:50%; width:32px; height:32px; text-align:center; line-height:32px; }
@media(max-width:640px) { .hotel-photos {padding:12px;gap:10px;} .hotel-photos img {height:170px;} .hotel-photos a:first-child img {height:250px;} }

.hotel-photos img { object-fit: contain; }

.villa-photos { grid-template-columns: 1fr; }
.villa-photos a:first-child img { height: auto; max-height: 620px; object-fit: contain; }

.managed-gallery { align-content: start; }
.managed-gallery figure { margin:0;min-width:0; }
.managed-gallery figure:first-child { grid-column:1 / -1; }
.managed-gallery figure a:first-child img { height:240px; }
.managed-gallery video { display:block;width:100%;height:240px;object-fit:contain;border-radius:12px;background:#071820; }
.managed-gallery figcaption { padding:8px 4px;color:var(--ink-soft); }

.gallery-panel:has(.managed-gallery) { grid-template-columns:1fr; }
.gallery-panel:has(.managed-gallery) .gallery-copy { padding:2rem; }
.managed-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); }
.managed-gallery figure:first-child { grid-column:auto; }
@media(max-width:960px) { .managed-gallery {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:640px) { .managed-gallery {grid-template-columns:1fr;} }

/* Evidence and customer experience */
.confidence-section { border-bottom:1px solid var(--line); }
.confidence-section h2,.testimonial-section>h2 { max-width:850px; }
.confidence-intro { max-width:850px;color:var(--ink-soft);font-size:1.1rem; }
.confidence-stats { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;margin:2rem 0; }
.confidence-stats div { padding:1.5rem;background:var(--mist);border-radius:14px; }
.confidence-stats strong { display:block;font-size:2.2rem;color:var(--green-dark);line-height:1.2;margin-bottom:.6rem; }
.confidence-stats span { display:block;color:var(--ink-soft); }
.source-link { color:var(--green-dark);text-decoration:underline;text-underline-offset:4px;font-weight:700; }
.source-note { color:var(--muted);font-size:.9rem;max-width:900px; }
.evidence-section { display:grid;grid-template-columns:1.2fr 1fr;gap:3rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line); }
.evidence-highlight { border-radius:20px;padding:2rem;background:var(--ink);color:white;align-self:start; }
.evidence-highlight>strong { font-size:4rem;color:#94e18d;line-height:1.15; }
.evidence-highlight>p { font-size:1.2rem; }
.evidence-highlight .evidence-context { font-size:.95rem;color:#d7e5e0; }
.testimonial-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;margin:2rem 0; }
.testimonial-grid article { border:1px solid var(--line);border-radius:14px;padding:1.5rem; }
.testimonial-grid h3 { font-size:1.5rem;line-height:1.2; }
.testimonial-grid .testimonial-local { background:var(--mist); }
.reference-line { padding:1rem 0;border-top:1px solid var(--line); }
.reference-line>p:nth-child(2) { font-weight:bold; }
@media(max-width:960px) { .evidence-section {grid-template-columns:1fr;gap:1.5rem;} .testimonial-grid {grid-template-columns:1fr;} }
@media(max-width:640px) { .confidence-stats {grid-template-columns:1fr;gap:.75rem;} .confidence-stats strong {font-size:2rem;} .evidence-highlight>strong {font-size:3rem;} }

/* International references, all navigation stays on NOsquito */
.international-section>h2 { max-width:900px; }
.international-layout { display:grid;grid-template-columns:1fr 1.35fr;gap:2rem;margin:2rem 0;align-items:start; }
.uae-feature { border-radius:18px;padding:2rem;background:var(--ink);color:white; }
.uae-feature .eyebrow { color:#94e18d; }
.uae-number { display:block;font-size:4.5rem;line-height:1.1;color:#94e18d;margin:.8rem 0; }
.uae-feature h3 { font-size:1.4rem;line-height:1.35; }
.uae-feature ul { padding-left:1.2rem;margin:1.5rem 0 0;color:#d7e5e0; }
.uae-feature li+li { margin-top:.65rem; }
.international-lists { display:grid;grid-template-columns:1fr 1fr;gap:1.5rem; }
.international-lists h3 { font-size:1.2rem;line-height:1.35;margin:.5rem 0 1rem; }
.reference-list { list-style:none;padding:0;margin:0; }
.reference-list li { padding:.8rem 0;border-bottom:1px solid var(--line);color:var(--ink-soft); }
@media(max-width:960px) { .international-layout {grid-template-columns:1fr;} }
@media(max-width:640px) { .international-lists {grid-template-columns:1fr;} .uae-feature {padding:1.5rem;} }

/* Complete service and connected monitoring */
.capture-figure{grid-column:1/-1;margin:0;padding:clamp(12px,2vw,24px);background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.capture-figure img{display:block;width:100%;height:auto}
.capture-figure figcaption{margin-top:14px;color:var(--ink-soft);font-size:.95rem;line-height:1.6}
.commercial-options{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}
.commercial-options article{padding:28px;border:1px solid var(--line);border-radius:16px;background:var(--mist)}
.commercial-options h3{margin:0 0 12px}.commercial-options p{margin:0;line-height:1.7;color:var(--ink-soft)}
.commercial-cta{grid-column:1/-1;justify-self:start;margin-top:24px}
@media(max-width:640px){.commercial-options{grid-template-columns:1fr;gap:16px}.commercial-options article{padding:22px}}

/* Enlarged gallery: controls remain separate from the image on every screen. */
html.photo-viewer-open { overflow:hidden; }
.photo-viewer { position:fixed; inset:0; width:min(1120px,96vw); max-width:96vw; height:min(900px,94dvh); max-height:94dvh; margin:auto; padding:16px; border:1px solid #547166; border-radius:16px; background:#102b27; color:#fff; overflow:auto; }
.photo-viewer::backdrop { background:rgba(0,0,0,.85); }
.photo-viewer[open] { display:flex; flex-direction:column; gap:12px; }
.photo-viewer-bar,.photo-viewer-navigation { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-shrink:0; }
.photo-viewer button { min-height:48px; padding:10px 18px; border:1px solid #adc5b8; border-radius:9px; background:#fff; color:#102b27; font:inherit; font-weight:700; cursor:pointer; }
.photo-viewer button:hover { background:#dcf0df; }
.photo-viewer button:focus-visible { outline:3px solid #f4c36a; outline-offset:3px; }
.photo-viewer button:disabled { opacity:.4; cursor:default; }
.photo-viewer-stage { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; }
.photo-viewer-image { display:block; width:100%; height:100%; object-fit:contain; }
.photo-viewer-caption,.photo-viewer-error { margin:0; text-align:center; flex-shrink:0; overflow-wrap:anywhere; max-height:15dvh; overflow:auto; }
.photo-viewer-caption:empty { display:none; }
@media(max-width:640px) { .photo-viewer { padding:12px; width:96vw; gap:10px; } .photo-viewer button { padding:10px 12px; } }
