/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */
/* ================================
=             Gallery             =
================================ */
@layer sdc {
  .gallery {
    --button-color: var(--color-black-soft);
    --arrow-color: var(--color-white);
    --viewport-width: calc(100vw - var(--scrollbar-width));
    padding-block: var(--component-inner-space);
  }
  .gallery__intro {
    padding-bottom: 1rem;
  }
  .gallery__inner {
    overflow: hidden;
    width: var(--viewport-width);
  }
  .gallery__teaser {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 1.5rem;
    column-gap: 2rem;
    scrollbar-color: var(--color-action) var(--color-black-light);
    scrollbar-width: thin;
  }
  .gallery__teaser::-webkit-scrollbar {
    height: 0.375rem;
  }
  .gallery__teaser::-webkit-scrollbar-track {
    border-radius: 0.25rem;
    background-color: var(--color-grey-2);
  }
  .gallery__teaser::-webkit-scrollbar-thumb {
    border-radius: 0.25rem;
    background-color: var(--color-action);
  }
  .gallery__teaser__content {
    flex-shrink: 0;
    width: 16.875rem;
    height: 11.25rem;
    background-color: var(--color-black-light);
  }

  /* Only gallery page. */
  .gallery__teaser--page {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
  }
  .gallery__teaser--page__content {
    width: 100%;
    height: auto;
  }
  @media (min-width: 30em) {
    .gallery__teaser--page__content {
      max-width: 34.375rem;
    }
  }
  .gallery__teaser--page img {
    max-width: 100%;
    height: auto;
  }
  @media (min-width: 42.5em) {
    .gallery__teaser--page {
      display: grid;
      grid-template-columns: repeat(2, calc(50% - 0.5rem));
    }
  }
  @media (min-width: 64em) {
    .gallery__teaser--page {
      grid-template-columns: repeat(3, calc(33.33333% - 0.66667rem));
      padding: 1rem 2rem;
    }
  }

  /* End Gallery page. */
  .gallery__teaser img {
    transition: opacity 0.3s ease-in-out;
  }
  .gallery__teaser img:hover {
    cursor: pointer;
    opacity: 0.8;
  }

  /* Gallery Full */
  .gallery__slides {
    align-items: center;
  }
  .gallery__slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .gallery__close {
    position: relative;
    position: absolute;
    z-index: 100;
    top: 6rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    transition: background-color 0.3s ease-out;
    color: transparent;
    border: none;
    border-radius: 3rem;
    outline: transparent;
    background-color: var(--color-grey-1);
  }
  .gallery__close:after,
  .gallery__close:before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.25rem;
    height: 0.25rem;
    content: "";
    transition: background-color 0.3s ease-out;
    background-color: var(--button-color);
  }
  .gallery__close:before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .gallery__close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  .gallery__close:hover {
    --button-color: #{var(--color-action)};
    cursor: pointer;
    background-color: var(--color-white);
  }
  .gallery__full {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--viewport-width);
    max-width: 90rem;
    transform: translate(-50%, -50%);
  }
  .gallery__full img {
    display: block;
    width: 100%;
    height: auto;
  }
  .gallery__overlay {
    position: fixed;
    overflow: hidden;
    height: 0;
    transition: none;
  }
  .gallery__overlay.is-open {
    z-index: 501;
    top: 0;
    left: 0;
    overflow-y: auto;
    width: 100vw;
    height: 100vh;
    padding: 2rem;
    transition: height 0.2s ease-in-out;
    background-color: hsl(0, 0%, 20%, 0.95);
  }
  .gallery .media-content__info {
    padding: 1rem;
    color: var(--color-text);
    background-color: hsl(0, 0%, 100%, 0.95);
    font-size: 1rem;
    line-height: 1.4em;
  }
  .gallery .media-content__info__copyright {
    padding-top: 0.5rem;
  }
  .gallery .glide__track {
    overflow: unset;
  }
  .gallery .glide__customcount {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    color: var(--color-black-light);
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 300;
  }
  .gallery .glide__customcount--active:after {
    padding: 0 0.3rem;
    content: "/";
  }
}
