.raiden-record-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.raiden-record-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.raiden-record-card > img,
.raiden-record-card > a,
.raiden-record-card > a img {
  display: block;
  width: 100%;
}

.raiden-record-card > img,
.raiden-record-card > a img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.raiden-record-card__body {
  padding: 1.5rem;
}

.raiden-record-card__meta,
.raiden-record-card__features {
  opacity: 0.7;
}

.raiden-record-card__content > :first-child {
  margin-top: 0;
}

.raiden-record-card__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.raiden-record-card__gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.raiden-lightbox {
  max-width: min(92vw, 72rem);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.raiden-lightbox__toolbar {
  position: absolute;
  inset: 0.5rem 0.5rem auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.raiden-lightbox__toolbar button {
  min-width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 999px;
  color: white;
  background: rgb(0 0 0 / 55%);
  font-size: 1.5rem;
  line-height: 1;
}

.raiden-lightbox__toolbar button:disabled {
  opacity: 0.45;
}

.raiden-lightbox::backdrop {
  background: rgb(0 0 0 / 82%);
}

.raiden-lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
}
