/* Estado activo del link de navegación de la página actual (sitio multipágina) */
.nav-desktop a.is-active,
.mobile-menu a.is-active {
  color: var(--white);
}

.nav-desktop a.is-active::after {
  right: 0;
}

.site-header.is-scrolled .nav-desktop a.is-active {
  color: var(--green-700);
}

/* Lightbox for galería */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 10, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 82vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--white);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--dur-fast) var(--ease-out);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close {
  top: var(--sp-4);
  right: var(--sp-4);
}

.lightbox__prev {
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
