@charset "UTF-8";
/* ==========================================================================
   UI Components – aggregate stylesheet
   Compiled via compilerconfig.json → wwwroot/dist/ui/ui-components.css

   Add @use directives here as new UI components are created.
   ========================================================================== */
/*
 * UI Layout
 *
 * Shared layout styles for the UI component library.
 * This file should contain grid systems, spacing utilities,
 * and structural layout primitives used across Forms, Units,
 * and Components.
 *
 * Individual component styles live in their own folders.
 */
/* ==========================================================================
   SelectPick – dropdown replacement for bui-select-pick
   Reuses the existing --selectPick* CSS custom properties from config.css.
   Both single-select and multi-select use a custom dropdown with trigger
   button and options list.
   ========================================================================== */
.select-pick {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: var(--fontFamily, inherit);
}

.select-pick__label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: var(--primaryColorWeb);
}

/* Positioning anchor for the Control - absolute options dropdown & wrapper - icons 
Labels, errors and chips sit outside this so they don't affect top:100%. */
.select-pick__control, .select-pick__select-wrapper {
  position: relative;
}

.select-pick__trigger,
.select-pick__select {
  width: 100%;
  padding: 0.85em 2.5em 0.85em 0.85em;
  cursor: pointer;
  border-radius: var(--borderRadiusContainer, 0);
  border: 1px solid var(--selectPickBorderColor, #767676);
}
.select-pick__trigger:focus-visible,
.select-pick__select:focus-visible {
  outline: 2px solid var(--selectPickFocusOutline, var(--primaryColorWeb));
  outline-offset: 1px;
}

.select-pick__caret {
  position: absolute;
  right: 0.75em;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
  Trigger button (shared by single-select and multi-select)
========================================================================== */
.select-pick__trigger {
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-align: left;
  position: relative;
  background: var(--selectPickTriggerBgColor, #fff);
}
.select-pick__trigger .select-pick__caret {
  transition: transform 0.4s ease;
}

.select-pick__title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-pick--open .select-pick__trigger .select-pick__caret {
  transform: translateY(-50%) rotateX(180deg);
}

/* ==========================================================================
   Options dropdown (shared by single-select and multi-select)
   ========================================================================== */
.select-pick__options {
  display: none;
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--selectPickOptionBgColorBase, var(--mainWhiteColor, #fff));
  color: var(--primaryColorWeb);
  border: 1px solid var(--selectPickBorderColor, #767676);
  border-radius: var(--borderRadiusContainer, 0);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.select-pick__options-scroll {
  max-height: 240px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: opacity 0.4s ease;
}
.select-pick__options-scroll::-webkit-scrollbar {
  width: 8px;
  background: var(--scrollbarTrackColor, #e0e0e0);
  border-radius: var(--borderRadiusContainer, 0);
}
.select-pick__options-scroll::-webkit-scrollbar-thumb {
  background: var(--scrollbarThumbColor, var(--primaryColorWeb, #293952));
  border-radius: var(--borderRadiusContainer, 0);
}

.select-pick--open .select-pick__options {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   Individual option (shared by single-select and multi-select)
   ========================================================================== */
.select-pick__option {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: 100%;
  padding: 0.75em 1.5em;
  border: none;
  border-bottom: 1px solid var(--selectPickOptionBorderBottomColorBase, #ddd);
  background: transparent;
  font-size: 1em;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.select-pick__option:last-child {
  border-bottom: none;
}
.select-pick__option:hover, .select-pick__option--focused, .select-pick__option:focus-visible {
  background: color-mix(in srgb, var(--selectPickHoverBgColorBase, var(--primaryColorWeb, #414b57)) 10%, transparent);
}
.select-pick__option--focused, .select-pick__option:focus-visible {
  outline: 2px solid var(--primaryColorWeb);
  outline-offset: -2px;
}
.select-pick__option[aria-selected=true] {
  font-weight: 600;
}
.select-pick__option[aria-disabled=true] {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}
.select-pick__option--checkbox {
  gap: 0.75em;
}
.select-pick__option--checkbox input[type=checkbox] {
  flex-shrink: 0;
  width: 1.125em;
  height: 1.125em;
  accent-color: var(--selectPickCaretColorBase, var(--primaryColorWeb, #293952));
}

.select-pick__options--has-icons .select-pick__option {
  padding: 0.75em;
}

.select-pick__option-icon--spacer {
  visibility: hidden;
}

/* ==========================================================================
   hearing portal variant – matches old bui-select-pick hearing portal 
   Overrides: 
   ========================================================================== */
.hearing-portal-select {
  --borderRadiusContainer: 8px;
  --scrollbarThumbColor: var(--selectPickBorderColorBase, var(--primaryColorWeb));
}

.hearing-portal-select .select-pick__trigger {
  border: 2px solid var(--selectPickBorderColorBase, var(--primaryColorWeb));
  background: var(--selectPickBgColorBase, #f9f9f9);
  color: var(--selectPickTextColorBase, var(--primaryColorWeb));
}

.hearing-portal-select .select-pick__options {
  border-color: var(--selectPickBorderColorBase, var(--primaryColorWeb));
  color: var(--selectPickTextColorOption, #000);
}

/* ==========================================================================
 website variant – matches old bui-select-pick hasWrapper/website look
 Overrides: fixed height, website-specific font/bg
 ========================================================================== */
.select-pick--website {
  --selectPickBorderColor: var(--primaryColorWeb);
}
.select-pick--website :is(.select-pick__trigger, .select-pick__select) {
  color: var(--primaryColorWeb, var(--selectPickTextColorBase, #293952));
  font-size: var(--selectpickWebsiteSelectedFontSize, 18px);
  font-weight: var(--selectpickWebsiteSelectedFontWeight, 600);
  background-color: var(--selectpickWebsiteSelectedBgColor, #fff);
  margin-bottom: 0;
}
.select-pick--website .select-pick__options {
  top: 0;
  padding: 0.5em 0.5em 0.5em 0;
}
.select-pick--website .select-pick__option {
  padding: 0.25em 1em;
  font-size: var(--selectpickWebsiteSelectedFontSize, 18px);
  border-bottom: none;
}
.select-pick--website .select-pick__option:hover, .select-pick--website .select-pick__option--focused, .select-pick--website .select-pick__option:focus-visible {
  background: var(--primaryColorWeb);
  color: #fff;
}
.select-pick--website .select-pick__options-scroll {
  padding-right: 1em;
}
.select-pick--website .select-pick__options-scroll::-webkit-scrollbar {
  width: 1em;
  border-radius: 0.5em;
}
.select-pick--website .select-pick__options-scroll::-webkit-scrollbar-thumb {
  border-radius: 0.5em;
}

/* ==========================================================================
 dropdown-links variant – simplified look for link-redirect dropdowns
 Differences: no border-radius on trigger, options use CSS height transition
 instead of display:none/block toggle (always rendered, animated via max-height).
 ========================================================================== */
.dropdown-links .select-pick__trigger {
  border-radius: 0;
  border: none;
}
.dropdown-links .select-pick__options {
  border-radius: 0;
}

/* ==========================================================================
 is-web-form-layout-input variant – matches old bui-select-field form layout
 Differences: transparent bg, bold label, shorter trigger with outline/border-bottom
 focus style, and custom caret color.
 ========================================================================== */
.is-web-form-layout-input .select-pick__label {
  font-weight: 700;
  color: var(--webFormImputLabelColor, var(--primaryColorWeb, #293952));
}
.is-web-form-layout-input :is(.select-pick__trigger, .select-pick__select) {
  height: 3.25em;
  padding: 0.375em 2.5em 0.375em 0.75em;
  background-color: var(--inputBgColor, var(--bbaWhiteColor, #fff));
  color: var(--inputTextColor, var(--bbaDarkBlueColor, var(--primaryColorWeb, #293952)));
  font-size: 0.9375em;
  font-weight: 400;
  line-height: 1.625;
  border: none;
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;
  border-radius: 5px;
  outline: 1px solid var(--primaryColorWeb);
  outline-offset: -1px;
  margin-bottom: 0;
}
.is-web-form-layout-input :is(.select-pick__trigger, .select-pick__select):focus-visible, .is-web-form-layout-input :is(.select-pick__trigger, .select-pick__select):focus {
  outline: 1px solid var(--primaryColorWeb);
  outline-offset: -1px;
  border-bottom-color: var(--border-bottom-focus-color, var(--bbaDarkBlueColor, var(--primaryColorWeb, #293952)));
  border-radius: 12px 12px 0 0;
}

/* ==========================================================================
is-web-form-layout-input multiselect – options styled closer to native select
Differences: no border-radius, lighter box-shadow, thin border, smaller/lighter
option text, and accent-color keyed to primaryColorWeb instead of caret color.
========================================================================== */
.is-web-form-layout-input.select-pick--multiple .select-pick__options {
  --borderRadiusContainer: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 0.5px solid var(--primaryColorWeb);
  outline: 0;
  margin-top: 0;
}
.is-web-form-layout-input.select-pick--multiple.select-pick--open .select-pick__trigger {
  border-bottom-color: var(--border-bottom-focus-color, var(--bbaDarkBlueColor, var(--primaryColorWeb, #293952)));
  border-radius: 12px 12px 0 0;
}
.is-web-form-layout-input.select-pick--multiple .select-pick__option {
  padding: 0.5em 0.75em;
  font-size: 0.9375em;
  font-weight: 400;
  line-height: 1.625;
  color: var(--inputTextColor, var(--bbaDarkBlueColor, var(--primaryColorWeb, #293952)));
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.is-web-form-layout-input.select-pick--multiple .select-pick__option:hover, .is-web-form-layout-input.select-pick--multiple .select-pick__option--focused, .is-web-form-layout-input.select-pick--multiple .select-pick__option:focus-visible {
  background: color-mix(in srgb, var(--primaryColorWeb, #293952) 10%, transparent);
  color: var(--inputTextColor, var(--bbaDarkBlueColor, var(--primaryColorWeb, #293952)));
}
.is-web-form-layout-input.select-pick--multiple .select-pick__option--focused, .is-web-form-layout-input.select-pick--multiple .select-pick__option:focus-visible {
  outline: 2px solid var(--primaryColorWeb, #293952);
  outline-offset: -2px;
}
.is-web-form-layout-input.select-pick--multiple .select-pick__option--checkbox input[type=checkbox] {
  accent-color: var(--primaryColorWeb, #293952);
}

/*Chips*/
.select-pick__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  padding: 0.4em 0 0;
}
.select-pick__chips:empty {
  display: none;
}
.select-pick__chips .select-pick__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.25em 0.6em;
  background: var(--primaryColorWeb, #293952);
  color: #fff;
  --select-pick__icon-color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.875em;
  font-family: inherit;
  line-height: 1.4;
  min-height: 24px;
  max-width: 100%;
  cursor: pointer;
}
.select-pick__chips .select-pick__chip .select-pick__chip-label {
  word-break: break-word;
}
.select-pick__chips .select-pick__chip .select-pick__chip-remove-icon {
  font-size: 1.1em;
}

/* ==========================================================================
Native <select> variant (select-pick--native)
Styled to match the custom trigger button appearance.
========================================================================== */
.select-pick--native .select-pick__caret {
  pointer-events: none;
}
.select-pick--native .select-pick__select {
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.select-pick--native.select-pick--hasIcon .select-pick__icon {
  pointer-events: none;
  position: absolute;
  left: 0.75em;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
}
.select-pick--native.select-pick--hasIcon .select-pick__select {
  padding-left: 2.5em;
}

/* ==========================================================================
   Datepicker – <duet-date-picker> replacement for bui-datepicker in
   Date.cshtml only. Matches the visual language of other
   is-web-form-layout-input fields (see ../SelectPick/SelectPick.scss for the
   pattern this mirrors).

   Scoping is deliberate (R-5): every rule here lives under
   .moliri-form-datepicker so it cannot reach the existing, unclassed
   <duet-date-picker> usages in Functionrooms.cshtml/FunctionroomDetail.cshtml.
   Duet has no shadow DOM, so plain descendant selectors reach its BEM classes
   directly — no ::part() needed.
   ========================================================================== */
.moliri-form-datepicker {
  display: block;
  width: 100%;
  position: relative;
  --duet-color-primary: #005fcc;
  --duet-color-text: #333;
  --duet-color-text-active: #fff;
  --duet-color-placeholder: #666;
  --duet-color-surface: #fff;
  --duet-color-overlay: rgba(0, 0, 0, 0.8);
  --duet-font-normal: 400;
  --duet-font-bold: 600;
  --duet-radius: 4px;
  --duet-z-index: 10;
}
.moliri-form-datepicker .duet-date__input-wrapper {
  height: 3.25em;
  width: 100%;
}
.moliri-form-datepicker .duet-date__input {
  pointer-events: none;
  height: 100%;
  padding: 0.375em 2.5em 0.375em 0.75em;
  background-color: var(--inputBgColor, var(--bbaWhiteColor, #fff));
  color: var(--inputTextColor, var(--bbaDarkBlueColor, var(--primaryColorWeb, #293952)));
  font-size: 0.9375em;
  font-weight: 400;
  line-height: 1.625;
  border: none;
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;
  border-radius: 5px;
  outline: 1px solid var(--primaryColorWeb);
  outline-offset: -1px;
}
.moliri-form-datepicker .duet-date__input:focus-visible, .moliri-form-datepicker .duet-date__input:focus {
  outline: 1px solid var(--primaryColorWeb);
  outline-offset: -1px;
  border-bottom-color: var(--border-bottom-focus-color, var(--bbaDarkBlueColor, var(--primaryColorWeb, #293952)));
  border-radius: 12px 12px 0 0;
}
.moliri-form-datepicker .duet-date__toggle {
  color: var(--primaryColorWeb);
  left: 0;
  width: 100%;
  justify-content: flex-end;
  padding-right: 0.75em;
}
.moliri-form-datepicker .duet-date__toggle-icon {
  flex-basis: auto;
}

/*
 * ImageFigure
 *
 * Styling for `<figure class="moliri-image-figure">` wrappers emitted by
 * imagepicker.cshtml and the random branch of multipleimagepicker.cshtml
 * when an editor has supplied a billedtekst (caption). The wrapper makes
 * the caption a semantic part of the image via `<figcaption>`.
 *
 * Slider-mode caption styling lives in MoImageSlider.razor.css alongside
 * the rest of the slider's scoped styles (`swiper-image-caption`).
 *
 * Low specificity so tenant theme overrides win without `!important`.
 */
.moliri-image-figure {
  margin: 0;
  padding: 0;
}
.moliri-image-figure figcaption {
  margin-top: 0.5em;
  font-style: italic;
  font-size: 0.875em;
  color: var(--captionColor, currentColor);
}

/*
 * MedallionHeader
 *
 * Styling for the plain-HTML/CSS hero-header design rendered by
 * Views/Partials/ComponentTypes/Hero/Shared/medallionheader.cshtml — a new
 * design option for the hero-header picker, alongside the existing ones.
 * B-Medallion layout: logo positioned right, contained within its box
 * (never cropped).
 *
 * Title/subtitle font-size/line-height/margin come from bui-heading's own
 * H1 and .manchet rules via slotted h1/p — not set here.
 *
 * Breakpoints are the closest match from BleauComponentsUI/src/shared/styles/
 * _mediaQueries-variables.scss ($mobile-width:576, $desktop-width:992,
 * $desktop-width-XL:1400), used mobile-first per that file's own convention.
 */
.medallionheader {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--medallionheader-bg);
  color: var(--medallionheader-color);
  --customHeadingColor: var(--medallionheader-color);
  --textDataTypeColor: var(--medallionheader-color);
}
.medallionheader * {
  box-sizing: border-box;
}
.medallionheader__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  min-height: 220px;
  padding: 28px var(--basePadding, 4vw);
}
.medallionheader__text {
  width: 100%;
}
.medallionheader__sub {
  opacity: 0.92;
}
.medallionheader__mark {
  order: -1;
  flex: none;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  /* No shared shadow token exists yet for plain CSS use: BleauComponentsUI's
     shadow-sm..shadow-2xl are SCSS mixins (compile-time, not usable here),
     and moliriCDN/wwwroot/moliripublic/dist/helpers.css has no shadow
     variable either — only hardcoded one-off box-shadow values. Hardcoding
     for now; worth a shared helpers.css token if this pattern repeats. */
  border-radius: var(--borderRadiusContainer, 0px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}
.medallionheader__mark img {
  display: block;
  width: 80%;
  height: 80%;
  object-fit: contain;
}
@media (min-width: 576px) {
  .medallionheader .medallionheader__row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    min-height: 240px;
    padding: 0 var(--basePadding, 4vw);
  }
  .medallionheader .medallionheader__text {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .medallionheader .medallionheader__mark {
    order: 0;
    width: 150px;
    height: 150px;
    border-radius: var(--borderRadiusContainer, 0px);
  }
}
@media (min-width: 992px) {
  .medallionheader .medallionheader__row {
    gap: 32px;
    min-height: 280px;
  }
  .medallionheader .medallionheader__mark {
    width: 220px;
    height: 220px;
    border-radius: var(--borderRadiusContainer, 0px);
  }
}
@media (min-width: 1400px) {
  .medallionheader .medallionheader__row {
    min-height: 340px;
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

/* Print must come after the responsive breakpoints above — a real print
   layout's content width is typically <=992px, so one of the breakpoints
   above also matches during printing; being last in source order is what
   makes these rules win instead of theirs. Font-size here needs !important:
   bui-heading's own ::slotted(h1/p) rules use !important, and per the CSS
   Scoping spec an outer-tree !important rule beats an inner shadow-tree
   !important rule (the reverse of how normal-importance rules resolve) —
   so without !important, bui-heading's screen sizing would win even here. */
@media print {
  .medallionheader {
    background: none;
    color: #000;
    overflow: visible;
  }
  .medallionheader__row {
    flex-direction: row;
    align-items: center;
    min-height: auto;
    height: auto;
    padding: 0 0 24px;
    border-bottom: 3px solid var(--medallionheader-bg);
    break-inside: avoid;
  }
  .medallionheader__title {
    color: var(--medallionheader-bg);
    --customHeadingColor: var(--medallionheader-bg);
  }
  .medallionheader__sub {
    margin-top: 8px;
    color: #020202;
    --textDataTypeColor: #020202;
  }
  .medallionheader__mark {
    order: 0;
    width: 26mm;
    height: 26mm;
    background: none;
    border-radius: 0;
    box-shadow: none;
  }
  .medallionheader__mark img {
    width: 100%;
    height: 100%;
  }
}
.comment-container__body {
  flex: 1 1 auto;
  min-width: 0;
}

.comment-container__delete {
  --commentDeleteColor: var(--toastItemErrorBgColorBase, #b71c1c);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background-color: transparent;
  color: var(--commentDeleteColor);
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease-in-out, background-color 120ms ease-in-out, color 120ms ease-in-out;
}
.comment-container__delete:hover, .comment-container__delete:focus-visible {
  background-color: var(--commentDeleteColor);
  color: var(--white-color, #ffffff);
}
.comment-container__delete:focus-visible {
  outline: 2px solid var(--commentDeleteColor);
  outline-offset: 2px;
}

.comment-container:hover .comment-container__delete,
.comment-container:focus-within .comment-container__delete {
  opacity: 1;
}

@media (max-width: 576px) {
  .comment-container {
    flex-wrap: wrap;
  }
  .comment-container__body {
    flex: 1 1 100%;
  }
  .comment-container__delete {
    margin-inline-start: auto;
  }
}
@media (hover: none) {
  .comment-container__delete {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .comment-container__delete {
    transition: none;
  }
}
/* ============================================================
   MoImageSlider – Lightbox overlay styles
   Included via ui-components.scss (UmbracoWeb) and
   distributed to BlazingStory/wwwroot/js/ for the story runner.
   ============================================================ */
/* --- Overlay --- */
.mo-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000000;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(6px);
}

.mo-lightbox-overlay.active {
  display: flex;
  overflow: hidden;
}

/* --- Image --- */
.mo-lightbox-overlay img {
  max-width: 90vw;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* --- Caption --- */
.mo-lightbox-caption {
  color: white;
  text-align: center;
  padding: 12px 20px;
  font-size: 1em;
  max-width: 90vw;
  font-family: var(--fontFamily, sans-serif);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mo-lightbox-caption.visible {
  opacity: 1;
}

/* --- Toolbar (open-in-tab + close) --- */
.mo-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0.5em;
  width: 100%;
}

.mo-lightbox-close,
.mo-lightbox-open-tab {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  transition: color 0.3s;
}

.mo-lightbox-close svg,
.mo-lightbox-open-tab svg {
  display: block;
}

.mo-lightbox-close:hover svg,
.mo-lightbox-open-tab:hover svg {
  opacity: 0.7;
}

/* --- Navigation arrows (matches slider .swiper-button-navigation style) --- */
.mo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 0;
  cursor: pointer;
  width: 30px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s ease-out, background 0.25s ease-out;
  padding: 12px 0;
  z-index: 10;
}

.mo-lightbox-nav:hover,
.mo-lightbox-nav:focus {
  width: 44px;
  background: rgba(255, 255, 255, 0.85);
}

.mo-lightbox-nav.prev {
  left: 0;
}

.mo-lightbox-nav.next {
  right: 0;
}

/* --- Pagination dots --- */
.mo-lightbox-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 8px;
  background: #fff;
  border-radius: 1000px;
  margin-block: 12px 50px;
}

.mo-lightbox-bullet {
  width: var(--swiper-pagination-bullet-size, 11px);
  height: var(--swiper-pagination-bullet-size, 11px);
  border-radius: 50%;
  border: 1px solid var(--primaryColorWeb, #141969);
  /* color-mix() used instead of rgb(from ...) for Dart Sass compatibility */
  background: color-mix(in srgb, var(--primaryColorWeb, #141969) 35%, transparent);
  opacity: var(--swiper-pagination-bullet-inactive-opacity, 1);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}

.mo-lightbox-bullet.active {
  background: var(--primaryColorWeb, #141969);
}

/* --- Focus indicators (WCAG 2.4.7) --- */
.mo-lightbox-close:focus-visible,
.mo-lightbox-open-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

.mo-lightbox-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.mo-lightbox-bullet:focus-visible {
  outline: 2px solid var(--primaryColorWeb, #141969);
  outline-offset: 2px;
}

/* --- Live region for screen readers (visually hidden) --- */
.mo-lightbox-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lbx-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.lbx-img-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lbx-img-wrapper img {
  flex-shrink: 1;
  min-height: 0;
}

.lbx-img-wrapper .mo-lightbox-caption {
  flex-shrink: 0;
}

.lbx-pagination-wrapper {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.lbx-pagination-wrapper .mo-lightbox-pagination {
  flex-grow: 0;
}

/* --- Reduced motion (WCAG 2.3.3) --- */
@media (prefers-reduced-motion: reduce) {
  .mo-lightbox-overlay,
  .mo-lightbox-overlay img,
  .mo-lightbox-nav,
  .mo-lightbox-open-tab,
  .mo-lightbox-bullet,
  .mo-lightbox-caption {
    transition: none !important;
  }
}
