.organization-chart-page {
  background-color: #fff;
  color: var(--kpn-green-grey-grey-900);
}

.organization-chart {
  padding: clamp(48px, 7vw, 100px) clamp(20px, 6vw, 240px);
  background-color: #fff;
  font-family: "FC Minimal", sans-serif;
}

.organization-chart__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.organization-chart-container {
  margin: 0;
}

.organization-chart__brand {
  margin-bottom: 40px;
}

.organization-chart__brand img {
  width: min(210px, 48vw);
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.organization-chart__brand h3 {
  margin: 0 0 6px;
  color: var(--kpn-green-grey-grey-900);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: normal;
}

.organization-chart__brand p {
  margin: 0;
  color: var(--kpn-green-grey-grey-500);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: normal;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: inline-block;
}

.organization-chart__open {
  display: block;
  border-radius: 24px;
  text-decoration: none;
}

.organization-chart__open:focus-visible {
  outline: 3px solid var(--kpn-green-blue-blue-300);
  outline-offset: 5px;
}

.organization-chart-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}

.organization-chart-img:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.organization-chart__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--kpn-green-grey-grey-500);
  font-size: var(--fc-minimal-paragraph-detail-regular);
  line-height: normal;
}

.organization-chart__hint svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

html.chart-lightbox-open,
body.chart-lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}

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

.chart-lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  padding: 20px;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background-color: rgba(25, 25, 25, .9);
  opacity: 0;
  visibility: hidden;
  line-height: 0;
  transition: opacity .3s ease, visibility .3s ease;
}

.chart-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lb-outerContainer {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  background-color: #fff;
  opacity: 0;
  transform: scale(.97);
  transition: opacity .3s ease, transform .2s ease;
}

.chart-lightbox.is-open .lb-outerContainer {
  opacity: 1;
  transform: scale(1);
}

.lb-container {
  position: relative;
}

.lb-image {
  width: auto;
  height: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 120px);
  display: block;
  border: 4px solid #fff;
  border-radius: 3px;
  background-color: #fff;
  object-fit: contain;
}

.lb-dataContainer {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 auto;
  padding-top: 5px;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity .3s ease;
}

.chart-lightbox.is-open .lb-dataContainer {
  opacity: 1;
}

.lb-data {
  min-height: 30px;
  padding: 0 4px;
  color: #ccc;
}

.lb-data::after {
  content: "";
  display: table;
  clear: both;
}

.lb-details {
  width: 85%;
  float: left;
  text-align: left;
  line-height: 1.1em;
}

.lb-caption {
  color: #fff;
  font-family: "FC Minimal", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1em;
}

.chart-lightbox__close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 1;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: #fff;
  box-shadow: none;
  opacity: .85;
  cursor: pointer;
  transition: opacity .2s ease;
}

.chart-lightbox__close:hover {
  opacity: 1;
}

.chart-lightbox__close:focus-visible {
  outline: 3px solid var(--kpn-green-blue-blue-300);
  outline-offset: 4px;
}

.chart-lightbox__close svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 767.98px) {
  .organization-chart__brand {
    margin-bottom: 32px;
  }

  .organization-chart__brand img {
    margin-bottom: 20px;
  }

  .organization-chart-img {
    border-radius: 16px;
  }

  .organization-chart__open {
    border-radius: 16px;
  }

  .chart-lightbox {
    padding: 14px;
  }

  .lb-image {
    max-width: calc(100vw - 36px);
    max-height: calc(100dvh - 108px);
  }

  .lb-caption {
    font-size: 13px;
  }
}

@media (max-width: 575.98px) {
  .organization-chart__brand h3 {
    font-size: 20px;
  }

  .organization-chart__brand p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .organization-chart-img,
  .chart-lightbox,
  .chart-lightbox__close,
  .lb-outerContainer,
  .lb-dataContainer {
    transition: none;
  }
}
