/* UltralinX mood board — dark gallery (DFL internal) */

.ux-moodboard-page .ux-mb-hero {
  min-height: min(42vh, 28rem);
}

.ux-moodboard-page .ux-cab-page-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: #9aa8c0;
  text-decoration: none;
  font-size: 0.85rem;
}

.ux-moodboard-page .ux-cab-page-back:hover,
.ux-moodboard-page .ux-cab-page-back:focus-visible {
  color: #fdab53;
}

.ux-mb-count {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a7382;
}

.ux-mb-content {
  padding-bottom: 4rem;
}

.ux-mb-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0 0 2.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ux-mb-toc a {
  font-size: 0.78rem;
  color: #9aa8c0;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.ux-mb-toc a:hover,
.ux-mb-toc a:focus-visible {
  color: #fdab53;
}

.ux-mb-section + .ux-mb-section {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ux-mb-section-head {
  max-width: 42rem;
  margin-bottom: 1.35rem;
}

.ux-mb-section-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 650;
  color: #f2f4f8;
  letter-spacing: 0.01em;
}

.ux-mb-section-head p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #9aa8c0;
}

.ux-mb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem 1rem;
}

.ux-mb-tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ux-mb-tile-btn {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: #0a0c10;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.ux-mb-tile-btn:hover,
.ux-mb-tile-btn:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  outline: none;
}

.ux-mb-tile-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.ux-mb-tile-btn:hover img,
.ux-mb-tile-btn:focus-visible img {
  transform: scale(1.03);
}

.ux-mb-tile figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.1rem;
}

.ux-mb-tile figcaption strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e8ecf2;
}

.ux-mb-tile figcaption span {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #7a8494;
}

/* Lightbox */
body.ux-mb-lightbox-open {
  overflow: hidden;
}

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

.ux-mb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.ux-mb-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.92);
  cursor: zoom-out;
}

.ux-mb-lightbox-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
}

.ux-mb-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #080a0e;
}

.ux-mb-lightbox-caption {
  margin-top: 0.85rem;
  max-width: 40rem;
  text-align: center;
}

.ux-mb-lightbox-caption strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: #f2f4f8;
}

.ux-mb-lightbox-caption span {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #9aa8c0;
}

.ux-mb-lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: rgba(12, 14, 18, 0.9);
  color: #f2f4f8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ux-mb-lightbox-close:hover,
.ux-mb-lightbox-close:focus-visible {
  border-color: #fdab53;
  color: #fdab53;
}

.ux-mb-lightbox-nav {
  position: absolute;
  top: 40%;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: rgba(12, 14, 18, 0.85);
  color: #f2f4f8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.ux-mb-lightbox-prev {
  left: -0.25rem;
}

.ux-mb-lightbox-next {
  right: -0.25rem;
}

.ux-mb-lightbox-nav:hover,
.ux-mb-lightbox-nav:focus-visible {
  border-color: #d4af37;
  color: #d4af37;
}

@media (max-width: 640px) {
  .ux-mb-grid {
    grid-template-columns: 1fr;
  }

  .ux-mb-lightbox-prev {
    left: 0.15rem;
  }

  .ux-mb-lightbox-next {
    right: 0.15rem;
  }
}
