/* =====================================================
   PAGE ONLY — Tratamientos
   Se activa SOLO en: <body class="page-treatments">
===================================================== */

.page-treatments .muted{ opacity:.78; }
.page-treatments .measure-70{ max-width: 70ch; }
.page-treatments .measure-80{ max-width: 80ch; }

/* ===== HERO refinamientos (no redefine tu hero global) ===== */
.page-treatments .hero-media figcaption{
  padding: .75rem 1rem;
  opacity: .75;
  font-size: .95rem;
}

/* =====================================================
   INCLUYE (como prototipo: pills compactas)
===================================================== */

.page-treatments #incluye .includes-wrap{
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(3,4,95,.05);
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(1, minmax(0,1fr));
}

@media (min-width:720px){
  .page-treatments #incluye .includes-wrap{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (min-width:1100px){
  .page-treatments #incluye .includes-wrap{
    grid-template-columns: repeat(6, minmax(0,1fr));
  }
}

.page-treatments .include-pill{
  background: #fff;
  border: 1px solid rgba(29,38,67,.10);
  border-radius: 14px;
  padding: 14px;
  display:grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  box-shadow: 0 10px 22px rgba(3,4,95,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

@media (hover:hover){
  .page-treatments .include-pill:hover{
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(3,4,95,.08);
    border-color: rgba(13,172,238,.22);
  }
}

.page-treatments .include-ico{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(13,172,238,.12);
  color: var(--polar);
  margin-top: 2px;
}

.page-treatments .include-title{
  
  font-weight: 200;
  font-size: .95rem;
  line-height: 1.15;
  margin:0;
}

.page-treatments .include-desc{
  margin-top: 6px;
  font-size: .92rem;
  line-height: 1.5;
  opacity: .72;
}

.page-treatments .include-pill--accent{
  border-color: rgba(13,172,238,.24);
  background: rgba(13,172,238,.06);
}

.page-treatments #incluye .includes-foot{
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(29,38,67,.08);
  background: rgba(255,255,255,.85);
  padding: 12px 14px;
  display:flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align:center;
}

.page-treatments #incluye .includes-foot i{
  color: var(--polar);
  opacity: .9;
}

/* =====================================================
   DARK + GLP + INFRA — scope para no chocar
===================================================== */

.page-treatments #complicaciones.section.dark{
  background: linear-gradient(180deg, #121A38, #0B1233);
  color: #fff;
}

.page-treatments #complicaciones .dark-muted{
  color: rgba(255,255,255,.78);
  opacity: 1;
}

.page-treatments #complicaciones .chip{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
}

.page-treatments #glp1.section.soft{ background: var(--snow); }

.page-treatments #infra .infra-grid{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

@media (min-width: 640px){
  .page-treatments #infra .infra-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px){
  .page-treatments #infra .infra-grid{
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

/* =========================
   TRATAMIENTOS — side cards en vertical
   (Beneficios / Post-Procedimiento)
========================= */

.page-treatments .side-grid{
  display: grid;
  grid-template-columns: 1fr; /* 👈 uno debajo del otro */
  gap: 1.25rem;               /* aire vertical */
}

/* Opcional: un poquito más de padding interno
   para que respiren mejor */
.page-treatments .mini-card{
  padding: 1.25rem 1.35rem;
}

/* =========================
   HERO — imagen grande y cuadrada
========================= */

.hero-media{
  width: 30rem;        /* 600px */
  height: 30rem;       /* 600px */
  border-radius: var(--radius-lg);
  overflow: hidden;
  justify-self: end;     /* la empuja a la derecha en desktop */
}

/* imagen interna */
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   HERO MEDIA — MOBILE FIX
========================= */

@media (max-width: 768px){

  .hero-grid{
    grid-template-columns: 1fr; /* stack vertical */
  }

  .hero-media{
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;

    margin: 2rem auto 0; /* separación y centrado */
    justify-self: center;

    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .hero-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}



/* =====================================================
   TRATAMIENTOS (tu sección dinámica) — no tocar, solo scope
===================================================== */

.page-treatments .treatments-nav-inner,
.page-treatments .treatments-panel{
  box-shadow: var(--shadow);
}



/* =====================================================
   TRATAMIENTOS ENDOSCÓPICOS — INTERACTIVO
===================================================== */

.treatments{
  display:grid;
  gap: 1.15rem;
  align-items:start;
}

@media (min-width:768px){
  .treatments{
    grid-template-columns: 360px 1fr;
    gap: 1.25rem;
  }
}

/* Left */
.treatments-nav{
  position: static;
}

@media (min-width:768px){
  .treatments-nav{
    position: sticky;
    top: 92px; /* respeta tu header sticky */
  }
}

.treatments-nav-inner{
  background:#fff;
  border: 1px solid rgba(29,38,67,.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: .95rem;
  display:grid;
  gap: .75rem;
}

.treat-pill{
  width: 100%;
  display:grid;
  grid-template-columns: 44px 1fr 18px;
  align-items:center;
  gap: .85rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29,38,67,.10);
  background: #fff;
  cursor:pointer;
  text-align:left;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.treat-pill:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(3,4,95,.10);
}

.treat-pill:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(13,172,238,.22);
}

.pill-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(13,172,238,.12);
  color: var(--polar);
}

.pill-label{
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
}

.pill-chevron{
  opacity: .7;
  color: var(--navy);
}

/* Active state: usa polar + turquesa (tu lenguaje) */
.treat-pill.is-active{
  background: linear-gradient(135deg, rgba(13,172,238,.98), rgba(106,215,222,.92));
  border-color: rgba(13,172,238,.45);
  color:#fff;
}

.treat-pill.is-active .pill-ico{
  background: rgba(255,255,255,.16);
  color:#fff;
}

.treat-pill.is-active .pill-label,
.treat-pill.is-active .pill-chevron{
  color:#fff;
  opacity: .92;
}

/* Nota inferior */
.treatments-note{
  margin-top: .9rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(29,38,67,.18);
  background: var(--snow);
}

.treatments-note p{
  margin:0;
  display:flex;
  gap: .65rem;
  align-items:flex-start;
  opacity:.85;
}

/* =====================================================
   RIGHT PANEL
===================================================== */

.treatments-panel{
  background:#fff;
  border: 1px solid rgba(29,38,67,.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  overflow:hidden;
}

@media (min-width:768px){
  .treatments-panel{ padding: 1.45rem; }
}

.panel-grid{
  display:grid;
  gap: 1.1rem;
  align-items:start;
}

@media (min-width:768px){
  .panel-grid{
    grid-template-columns: 1.15fr .85fr;
    gap: 1.15rem;
  }
}

/* Titles: usa tu tipografía existente (Unbounded ya está en .h*) */
.panel-title{
  margin: .35rem 0 .35rem;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--navy);
}

.panel-sub{
  margin: 0 0 .9rem;
  color: var(--polar);
  font-weight: 800;
  font-size: .98rem;
}

.panel-desc{
  margin: 0 0 1rem;
  opacity: .78;
  max-width: 72ch;
}

/* Duration pill */
.duration{
  display:flex;
  gap: .85rem;
  align-items:center;
  background: rgba(13,172,238,.10);
  border: 1px solid rgba(13,172,238,.22);
  border-radius: var(--radius-md);
  padding: .95rem 1rem;
  margin-bottom: 1rem;
}

.duration-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: #fff;
  border: 1px solid rgba(13,172,238,.22);
  color: var(--polar);
}

.duration-label{
  margin:0;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: .72;
}

.duration-value{
  margin: .1rem 0 0;
  font-weight: 850;
  color: var(--navy);
}

/* Accordion (si ya tienes FAQ con details, esto es extra. Aquí es button + div) */
.accordion{
  border: 1px solid rgba(29,38,67,.10);
  border-radius: var(--radius-md);
  overflow:hidden;
  background:#fff;
}

.acc-btn{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 1rem 1rem;
  background:#fff;
  border:0;
  cursor:pointer;
  font-weight: 800;
  color: var(--navy);
}

.acc-btn:focus{
  outline:none;
  box-shadow: 0 0 0 4px rgba(13,172,238,.22);
}

.acc-btn span{
  display:flex;
  gap: .65rem;
  align-items:center;
}

.acc-content{
  padding: .95rem 1rem 1.1rem;
  border-top: 1px solid rgba(29,38,67,.10);
  opacity:.82;
}

.acc-content p{ margin: 0; }

/* Right side cards */
.side-card{
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29,38,67,.10);
  padding: 1rem 1rem;
}

.side-title{
  margin: 0 0 .75rem;
  font-size: 1rem;
  font-weight: 800;
  display:flex;
  align-items:center;
  gap: .6rem;
  color: var(--navy);
}

.bullets{
  margin: 0;
  padding-left: 1.15rem;
  display:grid;
  gap: .45rem;
  opacity:.85;
}

.side-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: .9rem;
  margin-top: .9rem;
}

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

/* Mini cards: usando tus colores existentes */
.mini-card{
  border-radius: var(--radius-md);
  padding: 1rem 1rem;
  border: 1px solid rgba(29,38,67,.10);
  background: var(--snow);
}

.mini-card.is-green{
  background: rgba(106,215,222,.16);
  border-color: rgba(106,215,222,.35);
  color: var(--navy);
}

.mini-card.is-amber{
  /* No tenemos amber en tokens: usamos polar suavizado + snow para mantener el DS */
  background: rgba(13,172,238,.10);
  border-color: rgba(13,172,238,.28);
  color: var(--navy);
}

.mini-title{
  margin:0 0 .65rem;
  font-weight: 900;
  font-family:"Unbounded", system-ui, sans-serif;
  font-size: .95rem;
}

.mini-list{
  margin:0;
  padding-left: 1.15rem;
  display:grid;
  gap: .45rem;
}



/* Result card (gradiente polar + turquesa) */
.result-card{
  margin-top: .9rem;
  border-radius: var(--radius-md);
  padding: 1rem 1rem;
  color:#fff;
  background: linear-gradient(135deg, var(--polar), var(--turquesa));
  box-shadow: var(--shadow);
}

.result-label{
  margin:0 0 .55rem;
  opacity:.92;
  font-weight: 800;
  font-size: .86rem;
}

.result-value{
  margin:0;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -.01em;
}

/* Panel focus (para accesibilidad, se nota sutil) */
.treatments-panel:focus{
  outline:none;
  box-shadow: 0 0 0 4px rgba(13,172,238,.18), var(--shadow);
}

/* Micro-interaction class usada por JS */
.fade-swap{
  animation: fadeSwap .22s ease;
}
@keyframes fadeSwap{
  from{ opacity:.25; transform: translateY(2px); }
  to{ opacity:1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .fade-swap{ animation: none !important; }
  .treat-pill{ transition: none !important; }
}

/* =====================================================
   DARK SECTION (Manejo de complicaciones)
   Mapea a tu lenguaje: section-dark + h2-inverted + p-inverted
===================================================== */

/* si YA tienes .section-dark, puedes borrar este bloque */
.section-dark{
  background: linear-gradient(180deg, #121A38, #0B1233);
  color:#fff;
}

.dark-grid{
  display:grid;
  gap: 1.25rem;
  align-items:start;
}

@media (min-width:768px){
  .dark-grid{
    grid-template-columns: 1.1fr .9fr;
    gap: 1.25rem;
  }
}

.chips{
  display:flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.15rem;
}

.chip{
  display:inline-flex;
  gap: .6rem;
  align-items:center;
  padding: .65rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color:#fff;
  font-weight: 700;
  font-size: .92rem;
}

.why-card{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: none;
}

.why-title{
  margin: 0 0 .9rem;
  color:#fff;
  font-weight: 800;
  font-family:"Unbounded", system-ui, sans-serif;
}

.why-list{
  margin:0;
  padding-left: 1.15rem;
  display:grid;
  gap: .75rem;
}

.why-list span{ opacity:.8; }

/* =====================================================
   GLP-1 (usa tus cards: info-card look)
===================================================== */

.glp{
  display:grid;
  gap: 1.15rem;
  align-items:stretch;
}

@media (min-width:768px){
  .glp{
    grid-template-columns: 1.1fr .9fr;
    gap: 1.25rem;
  }
}

.glp-list{
  margin-top: 1rem;
  display:grid;
  gap: .9rem;
}

.glp-item{
  display:flex;
  gap: .85rem;
  align-items:flex-start;
  background:#fff;
  border: 1px solid rgba(29,38,67,.08);
  border-radius: var(--radius-md);
  padding: 1rem 1rem;
  box-shadow: 0 8px 22px rgba(29,38,67,.05);
}

.glp-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(13,172,238,.12);
  color: var(--polar);
}

.glp-title{
  margin: 0 0 .25rem;
  font-weight: 900;
  font-family:"Unbounded", system-ui, sans-serif;
}

.glp-card{
  background:#fff;
  border: 1px solid rgba(29,38,67,.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.checklist{
  margin: 1rem 0 0;
  padding-left: 0;
  list-style:none;
  display:grid;
  gap: .65rem;
}

.checklist li{
  display:flex;
  gap: .65rem;
  align-items:flex-start;
  opacity: .82;
}

.checklist i{
  color: var(--turquesa);
  margin-top: .2rem;
}

/* =====================================================
   CTA (si ya tienes .cta, no hace falta)
===================================================== */

.cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-actions{
  display:flex;
  gap: .9rem;
  flex-wrap: wrap;
}


/* =====================================================
   PAGE 4 – FIXES (solo overrides)
   - DARK: #complicaciones
   - INFRA: #infra (cards)
   - GLP-1 (layout estable)
===================================================== */

/* ---------- Shared helpers (sin nuevos tokens) ---------- */
.muted{ opacity: .78; }
.measure-70{ max-width: 70ch; }
.measure-80{ max-width: 80ch; }

/* =====================================================
   DARK: MANEJO COMPLICACIONES (#complicaciones)
===================================================== */

.section.dark{
  background: linear-gradient(180deg, #121A38, #0B1233);
  color: #fff;
}

.dark-grid{
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px){
  .dark-grid{
    grid-template-columns: 1.15fr .85fr;
    gap: 2.25rem;
  }
}

/* textos */
.dark-eyebrow{
  color: rgba(255,255,255,.78);
  opacity: 1;
  margin: 0 0 .75rem;
  font-weight: 500;
}

.dark-h2{
  color: #fff;
  margin: 0;
}

.dark-muted{
  color: rgba(255,255,255,.78);
  opacity: 1;
  margin-top: .9rem;
}

/* chips */
.chips{
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: .55rem;

  padding: .75rem 1rem;
  border-radius: 999px;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);

  color: rgba(255,255,255,.92);
  font-weight: 700;
  line-height: 1;
}

.chip i{
  color: rgba(255,255,255,.92);
  opacity: .92;
}

/* tarjeta “¿por qué elegir?” glassy */
.why-card{
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);

  backdrop-filter: blur(10px);
}

@media (min-width: 900px){
  .why-card{
    padding: 1.6rem 1.75rem;
  }
}

.why-title{
  margin: 0 0 1rem;
  color: #fff;
  font-weight: 800;
}

.why-list{
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: .85rem;
}

.why-list strong{
  color: #fff;
  font-weight: 800;
}

.why-list .muted{
  color: rgba(255,255,255,.66);
  opacity: 1;
}

/* =====================================================
   GLP-1 (#glp1) – estabilidad de layout
===================================================== */

.section.soft{
  background: var(--snow);
}

.glp{
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px){
  .glp{
    grid-template-columns: 1.1fr .9fr;
    gap: 1.75rem;
  }
}

.glp-copy .h2{ margin: 0; }
.glp-copy .muted{ margin-top: .75rem; }

.glp-list{
  margin-top: 1.25rem;
  display: grid;
  gap: .9rem;
}

.glp-item{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .85rem;
  align-items: start;

  background: #fff;
  border: 1px solid rgba(29,38,67,.06);
  border-radius: var(--radius-md);
  padding: 1rem 1.05rem;
  box-shadow: 0 10px 26px rgba(3,4,95,.06);
}

.glp-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(13,172,238,.12);
  color: var(--polar);
}

.glp-title{
  margin: 0;
  font-weight: 800;
}

.glp-item .muted{
  margin: .2rem 0 0;
}

.glp-card{
  background: #fff;
  border: 1px solid rgba(29,38,67,.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}

.glp-card .h3{
  margin: 0 0 .9rem;
}

.checklist{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .65rem;
}

.checklist li{
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: rgba(29,38,67,.88);
}

.checklist i{
  color: var(--turquesa);
  margin-top: .15rem;
}

/* =====================================================
   INFRA (#infra) – tarjetas como en mock (fila)
===================================================== */

#infra .stack-head{
  margin-bottom: 1.75rem;
}

#infra .stack-head .muted{
  margin: .85rem auto 0;
}

/* OJO: ya tienes un .infra-grid global para otra cosa.
   Aquí lo sobre-especifico para que SOLO aplique en #infra. */
#infra .infra-grid{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

@media (min-width: 640px){
  #infra .infra-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px){
  #infra .infra-grid{
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

#infra .infra-card{
  background: #fff;
  border: 1px solid rgba(29,38,67,.10);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(3,4,95,.06);

  padding: 1.15rem 1.15rem;
  text-align: center;

  display: grid;
  place-items: center;
  gap: .6rem;

  min-height: 96px;
}

@media (min-width: 768px){
  #infra .infra-card{
    padding: 1.25rem 1.2rem;
    min-height: 108px;
  }
}

#infra .infra-card i{
  font-size: 1.15rem;
  color: var(--polar);
}

#infra .infra-card p{
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
}

/* hover suave */
@media (hover:hover){
  #infra .infra-card:hover{
    border-color: rgba(13,172,238,.28);
    box-shadow: 0 14px 34px rgba(3,4,95,.10);
    transform: translateY(-1px);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
}



/* =========================
   Proc gallery (inside accordion)
========================= */
.proc-gallery{
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.proc-thumb{
  border: 1px solid rgba(29,38,67,.10);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(3,4,95,.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.proc-thumb:hover{
  transform: translateY(-2px);
  border-color: rgba(13,172,238,.35);
  box-shadow: 0 14px 34px rgba(3,4,95,.10);
}

.proc-thumb:focus-visible{
  outline: 3px solid rgba(13,172,238,.35);
  outline-offset: 3px;
}

.proc-thumb img{
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.proc-caption{
  grid-column: 1 / -1;
  margin: .25rem 0 0;
  font-size: .95rem;
  opacity: .72;
}

/* =========================
   Lightbox modal
========================= */
.lightbox[hidden]{ display:none; }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10,14,28,.65);
  backdrop-filter: blur(6px);
}

.lightbox__dialog{
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 24px));
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(29,38,67,.10);
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  overflow: hidden;
}

.lightbox__media{
  background: #0b0f1f;
}

.lightbox__media img{
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

.lightbox__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border-top: 1px solid rgba(29,38,67,.08);
}

.lightbox__label{
  margin: 0;
  font-weight: 700;
  opacity: .82;
  font-size: .95rem;
}

.lightbox__close{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(29,38,67,.10);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover{
  border-color: rgba(13,172,238,.35);
}
