.event-gallery {
  min-width: 0;
  align-self: start;
}

.event-gallery-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: #10141a;
  touch-action: pan-y;
}

.event-gallery-panel {
  width: 100%;
  height: 100%;
}

.event-gallery-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
}

.event-gallery-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080b10;
}

.event-gallery-caption-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
}

.event-gallery-caption {
  margin: 0;
  padding: 10px 0;
  color: #4c5967;
  font-size: 12px;
  line-height: 1.5;
}

.event-gallery-caption > span {
  display: block;
}

.event-gallery-note {
  margin-top: 3px;
  font-size: 11px;
}

.event-gallery-arrows {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.event-gallery-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #1a2632;
  font-size: 27px;
  line-height: 1;
}

.event-gallery-arrow:hover {
  background: #f0f4f7;
}

.event-gallery-counter {
  padding: 0 2px;
  color: #677582;
  font-size: 11px;
  white-space: nowrap;
}

.event-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.event-gallery-thumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid #e5e9ed;
  border-radius: 8px;
  background: #fff;
  color: #44515e;
  text-align: center;
}

.event-gallery-thumb[aria-pressed="true"] {
  border-color: #008cf1;
  background: #f0f8ff;
  color: #102639;
}

.event-gallery-thumb > img,
.event-gallery-video-thumb {
  display: block;
  width: 100%;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 60%;
}

.event-gallery-thumb-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 54px;
  padding: 8px 6px;
}

.event-gallery-thumb-name {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.event-gallery-thumb-place {
  display: block;
  font-size: 11px;
  line-height: 1.4;
}

.event-gallery-video-thumb {
  position: relative;
}

.event-gallery-video-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.event-gallery-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / .15);
  color: #fff;
  font-size: 23px;
  text-shadow: 0 1px 3px rgb(0 0 0 / .5);
}

@media (max-width: 720px) {
  .event-gallery-caption {
    font-size: 11px;
  }
}
