.assessment-platform [data-site-gallery] .site-gallery__controls {
  display: contents;
}

.assessment-platform [data-site-gallery] .thumbnails > button {
  appearance: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

[data-site-gallery] .site-carousel-arrow[hidden],
[data-site-gallery] :is(.site-gallery__pagination, .pagination, .control-pagination-wrapper)[hidden],
[data-site-gallery] [data-gallery-pagination][hidden] {
  display: none !important;
}

[data-site-gallery] .site-gallery__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:is(.assessment-platform.case-assessment,
    .corporate-identity.case-identity,
    .bedrijfswebsite.case-corporate) [data-site-gallery] .pagination,
:is(.assessment-platform.case-assessment,
    .corporate-identity.case-identity,
    .bedrijfswebsite.case-corporate) [data-site-gallery] .control-pagination-wrapper {
  z-index: 2;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
}

:is(.assessment-platform.case-assessment,
    .corporate-identity.case-identity,
    .bedrijfswebsite.case-corporate) [data-site-gallery] .thumbnail,
.bedrijfswebsite.case-corporate .thumbnail:has([data-gallery-modal-only]) {
  aspect-ratio: 16 / 9;
}

:is(.assessment-platform.case-assessment,
    .corporate-identity.case-identity,
    .bedrijfswebsite.case-corporate) [data-site-gallery] .site-gallery__open,
.bedrijfswebsite.case-corporate .thumbnail:has([data-gallery-modal-only]) .site-gallery__open {
  appearance: none;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  cursor: zoom-in;
}

:is(.assessment-platform.case-assessment,
    .corporate-identity.case-identity,
    .bedrijfswebsite.case-corporate) [data-site-gallery] .site-gallery__open [data-gallery-image],
.bedrijfswebsite.case-corporate .site-gallery__open [data-gallery-modal-only] {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
}

[data-site-gallery] .site-gallery__transition-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

[data-site-gallery] .site-gallery__pagination {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

[data-site-gallery] .site-gallery__dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

[data-site-gallery] .site-gallery__dot:not(.site-gallery__dot--marker)::before {
  content: "";
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 1px solid var(--colors-neutral-400);
  background: var(--colors-neutral-0);
}

[data-site-gallery] .site-gallery__dot[aria-current="true"]:not(.site-gallery__dot--marker)::before {
  border-color: var(--colors-red-500);
  background: var(--colors-red-500);
}

[data-site-gallery] .site-gallery__dot:not(.site-gallery__dot--marker)::before,
[data-site-gallery] [data-gallery-pagination] .rectangle-5,
[data-site-gallery] [data-gallery-pagination] .rectangle-6 {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border-radius: 0;
  box-shadow: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

[data-site-gallery] .site-gallery__dot:not(.site-gallery__dot--marker)::before,
[data-site-gallery] [data-gallery-pagination] .rectangle-6 {
  border: 1px solid var(--colors-neutral-400);
  background: var(--colors-neutral-0);
}

[data-site-gallery] .site-gallery__dot[aria-current="true"]:not(.site-gallery__dot--marker)::before,
[data-site-gallery] [data-gallery-pagination] .rectangle-5 {
  border: 1px solid var(--colors-red-500);
  background: var(--colors-red-500);
}

[data-site-gallery] .site-gallery__dot:not([aria-current="true"]):hover::before,
[data-site-gallery] [data-gallery-pagination] > button:not([aria-current="true"]):hover .rectangle-6 {
  border-color: var(--colors-red-500);
  background: var(--colors-neutral-0);
}

:is(.assessment-platform.case-assessment,
    .corporate-identity.case-identity,
    .bedrijfswebsite.case-corporate) [data-site-gallery] :is(.pagination, .control-pagination-wrapper) {
  gap: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

:is(.assessment-platform.case-assessment,
    .corporate-identity.case-identity,
    .bedrijfswebsite.case-corporate) [data-site-gallery] [data-gallery-pagination] {
  gap: 0;
  box-shadow: none;
}

.site-gallery__open {
  touch-action: pan-y pinch-zoom;
}

.site-gallery__open:focus-visible {
  outline-offset: -3px;
}

:is(.assessment-platform, .corporate-identity, .bedrijfswebsite) [data-site-gallery] .site-gallery__open:focus-visible,
.bedrijfswebsite.case-corporate .thumbnail:has([data-gallery-modal-only]) .site-gallery__open:focus-visible {
  border-radius: var(--foundations-radius-12);
}

.site-gallery__open:focus-visible::after {
  position: absolute;
  inset: 3px;
  z-index: 2;
  border: var(--indicator-width) solid var(--indicator-color);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.site-gallery__thumbnail-scroll-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: var(--foundations-radius-full);
  background: rgb(0 0 0 / 76%);
  color: var(--colors-neutral-0);
  font-family: var(--desktop-caption-default-font-family);
  font-size: 13px;
  font-weight: var(--desktop-caption-default-font-weight);
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.site-gallery__thumbnail-scroll-hint[hidden] {
  display: none;
}

.site-gallery__thumbnail-scroll-hint > span,
.site-gallery__modal-scroll-hint > span {
  font-size: 16px;
  line-height: 1;
}

.site-gallery__thumbnail-scroll-hint > span {
  font-size: 14px;
}

.site-gallery__dialog {
  box-sizing: border-box;
  width: min(96vw, 1280px);
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
  height: min(92vh, calc(64vw + 120px), 900px);
  height: min(92dvh, calc(64vw + 120px), 900px);
  padding: 0;
  border: 0;
  border-radius: var(--foundations-radius-12);
  background: var(--colors-neutral-100);
  color: var(--colors-neutral-1000);
  overflow: hidden;
}

.site-gallery__dialog::backdrop {
  background: rgb(0 0 0 / 72%);
}

.site-gallery__modal-shell {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.site-gallery__modal-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  min-height: 52px;
  padding: 4px 8px 4px 12px;
  background: var(--colors-neutral-100);
}

.site-gallery__modal-close {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--colors-neutral-1000);
  cursor: pointer;
}

.site-gallery__modal-close:focus-visible {
  outline-offset: 0;
}

.site-gallery__close-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 3px;
  background: transparent;
  color: inherit;
  transition: color 150ms ease;
}

.site-gallery__close-icon::before,
.site-gallery__close-icon::after {
  position: absolute;
  left: 0;
  width: 24px;
  height: 3px;
  background: currentColor;
  content: "";
}

.site-gallery__close-icon::before {
  transform: rotate(45deg);
}

.site-gallery__close-icon::after {
  transform: rotate(-45deg);
}

.site-gallery__modal-close:hover .site-gallery__close-icon {
  color: var(--colors-red-500);
}

.site-gallery__modal-close:focus-visible .site-gallery__close-icon {
  color: var(--indicator-color);
}

.site-gallery__modal-media {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--colors-neutral-100);
}

.site-gallery__modal-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.site-gallery__modal-scroll {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--colors-neutral-600) var(--colors-neutral-200);
  scrollbar-width: auto;
  touch-action: pan-y pinch-zoom;
}

.site-gallery__modal-scroll:focus-visible {
  outline-offset: -3px;
}

.site-gallery__modal-scroll::-webkit-scrollbar {
  width: 12px;
}

.site-gallery__modal-scroll::-webkit-scrollbar-track {
  background: var(--colors-neutral-200);
}

.site-gallery__modal-scroll::-webkit-scrollbar-thumb {
  border: 3px solid var(--colors-neutral-200);
  border-radius: var(--foundations-radius-full);
  background: var(--colors-neutral-600);
}

.site-gallery__modal-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
}

.site-gallery__modal-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.site-gallery__modal-arrow--previous {
  left: 12px;
}

.site-gallery__modal-arrow--next {
  right: 12px;
}

.site-gallery__modal-arrow[hidden] {
  display: none !important;
}

.site-gallery__modal-pagination {
  position: absolute;
  z-index: 3;
  bottom: var(--foundations-spacing-12);
  left: 50%;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

.site-gallery__modal-pagination[hidden] {
  display: none !important;
}

.site-gallery__modal-scroll-hint {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  background: var(--colors-neutral-200);
  color: var(--colors-neutral-1000);
  font-family: var(--desktop-caption-default-font-family);
  font-size: var(--desktop-caption-default-font-size);
  font-weight: var(--desktop-caption-default-font-weight);
  line-height: var(--desktop-caption-default-line-height);
  text-align: center;
}

.site-gallery__modal-scroll-hint[hidden] {
  display: none !important;
}

.site-gallery__modal-dot {
  appearance: none;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: end center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-gallery__modal-dot::before {
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 1px solid var(--colors-neutral-400);
  background: var(--colors-neutral-0);
  content: "";
  transition: border-color 150ms ease, background-color 150ms ease;
}

.site-gallery__modal-dot[aria-current="true"]::before {
  border-color: var(--colors-red-500);
  background: var(--colors-red-500);
}

.site-gallery__modal-dot:not([aria-current="true"]):hover::before {
  border-color: var(--colors-red-500);
  background: var(--colors-neutral-0);
}

.site-gallery__modal-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  min-height: 0;
  max-height: min(28dvh, 220px);
  padding: 12px 20px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--colors-neutral-100);
  color: var(--colors-neutral-1000);
}

.site-gallery__modal-caption {
  margin: 0;
  color: var(--colors-neutral-1000);
  font-family: var(--desktop-body-default-font-family);
  font-size: var(--desktop-body-default-font-size);
  font-weight: var(--desktop-body-default-font-weight);
  letter-spacing: var(--desktop-body-default-letter-spacing);
  line-height: var(--desktop-body-default-line-height);
  font-style: var(--desktop-body-default-font-style);
  text-align: left;
  overflow-wrap: anywhere;
}

.site-gallery__modal-caption[hidden] {
  display: none !important;
}

.site-gallery__modal-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-gallery-modal-open .scroll-window {
  overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-site-gallery] .site-gallery__transition-image {
    animation-duration: 0.01ms !important;
  }

  .site-gallery__dialog,
  .site-gallery__modal-close,
  .site-gallery__modal-dot,
  .site-gallery__modal-dot::before,
  [data-site-gallery] .site-gallery__dot::before,
  [data-site-gallery] [data-gallery-pagination] .rectangle-5,
  [data-site-gallery] [data-gallery-pagination] .rectangle-6,
  .site-gallery__close-icon {
    transition: none !important;
  }
}

@media (max-width: 440px) {
  .assessment-platform [data-site-gallery] .site-gallery__controls {
    display: contents;
  }

  .assessment-platform [data-site-gallery] .site-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
  }

  .assessment-platform [data-site-gallery] .site-gallery__arrow--previous {
    left: -12px;
  }

  .assessment-platform [data-site-gallery] .site-gallery__arrow--next {
    right: -12px;
  }

  .assessment-platform [data-site-gallery] .site-gallery__pagination {
    position: absolute;
    z-index: 1;
    bottom: 12px;
    left: 50%;
    display: flex;
    gap: 12px;
    transform: translateX(-50%);
  }

  .assessment-platform [data-site-gallery] .site-gallery__dot {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .assessment-platform [data-site-gallery] .site-gallery__dot:not(.site-gallery__dot--marker)::before {
    content: "";
    width: 10px;
    height: 10px;
    box-sizing: border-box;
    border: 1px solid var(--colors-neutral-800);
    background: var(--colors-neutral-0);
  }

  .assessment-platform [data-site-gallery] .site-gallery__dot[aria-current="true"]:not(.site-gallery__dot--marker)::before {
    border-color: var(--colors-red-500);
    background: var(--colors-red-500);
  }

  .site-gallery__dialog,
  .site-gallery__modal-shell {
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
  }

  .site-gallery__dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    border-radius: var(--foundations-radius-8);
  }

  .site-gallery__modal-toolbar {
    min-height: 52px;
    padding: 4px 8px 4px 12px;
  }

  .site-gallery__modal-caption {
    font-family: var(--mobile-body-default-font-family);
    font-size: var(--mobile-body-default-font-size);
    font-weight: var(--mobile-body-default-font-weight);
    letter-spacing: var(--mobile-body-default-letter-spacing);
    line-height: var(--mobile-body-default-line-height);
    font-style: var(--mobile-body-default-font-style);
  }

  .site-gallery__modal-footer {
    max-height: min(30dvh, 220px);
    padding: 10px 12px 12px;
  }

  .site-gallery__modal-arrow--previous {
    left: 6px;
  }

  .site-gallery__modal-arrow--next {
    right: 6px;
  }

  .site-gallery__modal-scroll-hint {
    font-family: var(--mobile-caption-default-font-family);
    font-size: var(--mobile-caption-default-font-size);
    font-weight: var(--mobile-caption-default-font-weight);
    line-height: var(--mobile-caption-default-line-height);
  }

  .site-gallery__thumbnail-scroll-hint {
    font-family: var(--mobile-caption-default-font-family);
    font-size: 13px;
    font-weight: var(--mobile-caption-default-font-weight);
    line-height: 1.2;
  }
}
