.royal-profile-page .royal-staff-gallery {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.royal-staff-gallery__stage {
  aspect-ratio: 3 / 4;
  background: #10090b;
  border: 1px solid rgba(200, 162, 76, 0.4);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.royal-staff-gallery__stage picture {
  display: block;
  height: 100%;
  width: 100%;
}

.royal-staff-gallery__stage img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
}

.royal-staff-gallery__thumbnails {
  display: none;
  gap: 12px;
  grid-template-columns: repeat(var(--gallery-count, 3), minmax(0, 1fr));
}

.royal-staff-gallery[data-gallery-ready] .royal-staff-gallery__thumbnails {
  display: grid;
}

.royal-staff-gallery__thumbnail {
  appearance: none;
  background: #210a10;
  border: 1px solid rgba(200, 162, 76, 0.35);
  border-radius: 6px;
  cursor: pointer;
  height: 124px;
  min-width: 0;
  overflow: hidden;
  padding: 4px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.royal-staff-gallery__thumbnail img {
  border-radius: 2px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.royal-staff-gallery__thumbnail:hover,
.royal-staff-gallery__thumbnail[aria-pressed="true"] {
  border-color: var(--royal-gold, #c8a24c);
  box-shadow: inset 0 0 0 1px var(--royal-gold, #c8a24c);
}

.royal-staff-gallery__thumbnail:focus-visible {
  outline: 2px solid var(--royal-gold, #c8a24c);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .royal-profile-page .royal-staff-gallery {
    gap: 12px;
  }

  .royal-staff-gallery__thumbnails {
    gap: 10px;
  }

  .royal-staff-gallery__thumbnail {
    height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .royal-staff-gallery__thumbnail {
    transition: none;
  }
}
