.participant-gallery {
  background: transparent;
}

.participant-gallery:focus-visible {
  outline: 2px solid #a83324;
  outline-offset: 4px;
}

.participant-gallery__viewport {
  overflow: hidden;
  background: #171615;
}

.participant-gallery__track {
  display: flex;
  gap: 10px;
  padding: 10px;
  will-change: transform;
}

.participant-gallery__slide {
  flex: 0 0 calc((100% - 20px) / 3);
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: #22201d;
}

.participant-gallery__open {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #22201d;
  cursor: zoom-in;
}

.participant-gallery__open:focus-visible {
  outline: 2px solid #faf8f5;
  outline-offset: -4px;
}

.participant-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
  transition: transform 350ms ease;
}

.participant-gallery__open:hover .participant-gallery__image {
  transform: scale(1.025);
}

.participant-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 0;
}

.participant-gallery__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 248, 245, 0.35);
  color: #faf8f5;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.participant-gallery__button:hover,
.participant-gallery__button:focus-visible {
  border-color: #faf8f5;
  color: #171615;
  background: #faf8f5;
  outline: none;
}

.participant-gallery__button svg {
  width: 18px;
  height: 18px;
}

.participant-gallery__counter {
  color: rgba(250, 248, 245, 0.68);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.participant-gallery__counter strong {
  color: #a83324;
  font-weight: 500;
}

.participant-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 24px;
  border: 0;
  color: #faf8f5;
  background: rgba(23, 22, 21, 0.96);
}

.participant-lightbox::backdrop {
  background: rgba(23, 22, 21, 0.82);
}

.participant-lightbox__inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  height: 100%;
}

.participant-lightbox__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.participant-lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 248, 245, 0.35);
  cursor: pointer;
}

.participant-lightbox__close:hover,
.participant-lightbox__close:focus-visible {
  color: #171615;
  background: #faf8f5;
  outline: none;
}

.participant-lightbox__close svg {
  width: 20px;
  height: 20px;
}

.participant-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

@media (max-width: 767px) {
  #hero-practice-label {
    flex-shrink: 0;
    font-size: 10px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  #hero-subline {
    display: none;
  }

  #hero-section > .relative > .flex.flex-wrap.items-center.justify-between {
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 28px;
  }

  #hero-short-facts {
    height: auto;
    min-height: 0;
  }

  #hero-short-facts > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 14px 18px;
  }

  #hero-short-facts > div > span {
    display: none;
  }

  #hero-short-facts > div > div:last-of-type {
    grid-column: 1 / -1;
  }

  .participant-gallery__slide {
    flex-basis: 100%;
  }

  .participant-gallery__controls {
    padding: 12px 0 0;
  }

  .participant-lightbox {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .participant-gallery__image,
  .participant-gallery__button {
    transition: none;
  }
}
