.metam-gallery[data-astro-cid-kufpaeqs] {
  padding-top: calc(var(--section-y) * .7);
  padding-bottom: 0;
  background: var(--alles-bg);
}

.metam-gallery__inner[data-astro-cid-kufpaeqs] {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.metam-gallery__player[data-astro-cid-kufpaeqs] {
  position: relative;
  width: 100%;
}

.metam-gallery__player-item[data-astro-cid-kufpaeqs] {
  display: none;
  flex-direction: column;
}

.metam-gallery__player-item[data-astro-cid-kufpaeqs][data-metam-active="true"] {
  display: flex;
}

.metam-gallery__frame[data-astro-cid-kufpaeqs] {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
}

.metam-gallery__video[data-astro-cid-kufpaeqs] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.metam-gallery__panel[data-astro-cid-kufpaeqs] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(3rem, 6vw, 5rem);
  row-gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.metam-gallery__info[data-astro-cid-kufpaeqs] {
  min-width: 0;
}

.metam-gallery__info-item[data-astro-cid-kufpaeqs] {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.metam-gallery__info-item[data-astro-cid-kufpaeqs][hidden] {
  display: none;
}

.metam-gallery__title[data-astro-cid-kufpaeqs] {
  margin: 0;
  max-width: 580px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.018em;
  color: var(--alles-navy);
  text-wrap: balance;
}

.metam-gallery__description[data-astro-cid-kufpaeqs] {
  margin: 0;
  max-width: 580px;
  font-family: var(--font-body);
  font-size: clamp(.95rem, 1.05vw, 1.02rem);
  line-height: 1.62;
  color: #0a0a0ab8;
}

.metam-gallery__nav[data-astro-cid-kufpaeqs] {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
  width: 100%;
  max-width: clamp(360px, 42vw, 520px);
}

.metam-gallery__nav-header[data-astro-cid-kufpaeqs] {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 1rem;
}

.metam-gallery__nav-heading[data-astro-cid-kufpaeqs] {
  margin: 0;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0324479e;
}

.metam-gallery__nav-count[data-astro-cid-kufpaeqs] {
  margin: 0;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: #0a0a0a80;
  font-variant-numeric: tabular-nums;
}

.metam-gallery__nav-count-sep[data-astro-cid-kufpaeqs] {
  margin-inline: .1em;
}

.metam-gallery__carousel[data-astro-cid-kufpaeqs] {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .4rem;
}

.metam-gallery__carousel-nav[data-astro-cid-kufpaeqs] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: none;
  border: 0;
  color: var(--alles-navy);
  cursor: pointer;
  transition: color .22s var(--ease-out), opacity .22s var(--ease-out);
}

.metam-gallery__carousel-nav[data-astro-cid-kufpaeqs]:hover, .metam-gallery__carousel-nav[data-astro-cid-kufpaeqs]:focus-visible {
  color: var(--alles-primary);
}

.metam-gallery__carousel-nav[data-astro-cid-kufpaeqs]:disabled {
  color: #03244738;
  cursor: default;
  pointer-events: none;
}

.metam-gallery__carousel-nav[data-astro-cid-kufpaeqs]:focus-visible {
  outline: 2px solid var(--alles-primary);
  outline-offset: 3px;
}

.metam-gallery__list[data-astro-cid-kufpaeqs] {
  display: flex;
  flex-wrap: nowrap;
  column-gap: .85rem;
  row-gap: 0;
  list-style: none;
  margin: 0;
  padding: .15rem .1rem .35rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.metam-gallery__list[data-astro-cid-kufpaeqs]::-webkit-scrollbar {
  display: none;
}

.metam-gallery__list[data-astro-cid-kufpaeqs]:focus-visible {
  outline: 2px solid var(--alles-primary);
  outline-offset: 3px;
}

.metam-gallery__list-item[data-astro-cid-kufpaeqs] {
  flex: 0 0 200px;
  min-width: 0;
  scroll-snap-align: start;
}

.metam-gallery__thumb[data-astro-cid-kufpaeqs] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .6rem;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.metam-gallery__thumb-frame[data-astro-cid-kufpaeqs] {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--alles-bg-muted);
}

.metam-gallery__thumb-image[data-astro-cid-kufpaeqs] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .5;
  filter: saturate(.94);
  transition: opacity .28s var(--ease-out), filter .28s var(--ease-out);
}

.metam-gallery__thumb[data-astro-cid-kufpaeqs]:hover .metam-gallery__thumb-image[data-astro-cid-kufpaeqs], .metam-gallery__thumb[data-astro-cid-kufpaeqs]:focus-visible .metam-gallery__thumb-image[data-astro-cid-kufpaeqs] {
  opacity: .78;
  filter: saturate();
}

.metam-gallery__thumb[data-astro-cid-kufpaeqs][aria-current="true"] .metam-gallery__thumb-image[data-astro-cid-kufpaeqs] {
  opacity: 1;
  filter: saturate(1.02);
}

.metam-gallery__thumb-play[data-astro-cid-kufpaeqs] {
  position: absolute;
  right: .45rem;
  bottom: .45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffffd9;
  color: var(--alles-navy);
  pointer-events: none;
  opacity: .7;
  transition: opacity .28s var(--ease-out), background-color .24s var(--ease-out), color .24s var(--ease-out);
}

.metam-gallery__thumb[data-astro-cid-kufpaeqs]:hover .metam-gallery__thumb-play[data-astro-cid-kufpaeqs], .metam-gallery__thumb[data-astro-cid-kufpaeqs]:focus-visible .metam-gallery__thumb-play[data-astro-cid-kufpaeqs] {
  opacity: 1;
}

.metam-gallery__thumb[data-astro-cid-kufpaeqs][aria-current="true"] .metam-gallery__thumb-play[data-astro-cid-kufpaeqs] {
  opacity: 1;
  background: var(--alles-navy);
  color: #fff;
}

.metam-gallery__thumb-caption[data-astro-cid-kufpaeqs] {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.metam-gallery__thumb-title[data-astro-cid-kufpaeqs] {
  display: block;
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .005em;
  color: #0a0a0a8c;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.metam-gallery__thumb[data-astro-cid-kufpaeqs][aria-current="true"] .metam-gallery__thumb-title[data-astro-cid-kufpaeqs] {
  color: var(--alles-navy);
  font-weight: 600;
}

.metam-gallery__thumb-rule[data-astro-cid-kufpaeqs] {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--alles-primary);
  transform: scaleX(0);
  transform-origin: 0;
  transition: transform .32s var(--ease-out);
}

.metam-gallery__thumb[data-astro-cid-kufpaeqs][aria-current="true"] .metam-gallery__thumb-rule[data-astro-cid-kufpaeqs] {
  transform: scaleX(1);
}

.metam-gallery__thumb[data-astro-cid-kufpaeqs]:focus-visible {
  outline: 2px solid var(--alles-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (width <= 1040px) {
  .metam-gallery__panel[data-astro-cid-kufpaeqs] {
    grid-template-columns: 1fr;
    row-gap: clamp(2.5rem, 5vw, 3.5rem);
  }

  .metam-gallery__nav[data-astro-cid-kufpaeqs] {
    max-width: 100%;
  }
}

@media (width <= 700px) {
  .metam-gallery__frame[data-astro-cid-kufpaeqs] {
    border-radius: 4px;
  }

  .metam-gallery__list-item[data-astro-cid-kufpaeqs] {
    flex: 0 0 64vw;
  }

  .metam-gallery__carousel-nav[data-astro-cid-kufpaeqs] {
    display: none;
  }

  .metam-gallery__carousel[data-astro-cid-kufpaeqs] {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .metam-gallery__thumb[data-astro-cid-kufpaeqs], .metam-gallery__thumb-image[data-astro-cid-kufpaeqs], .metam-gallery__thumb-play[data-astro-cid-kufpaeqs], .metam-gallery__thumb-rule[data-astro-cid-kufpaeqs], .metam-gallery__carousel-nav[data-astro-cid-kufpaeqs], .metam-gallery__video[data-astro-cid-kufpaeqs] {
    transition: none;
  }
}
