.rotator {
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s;
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

.showing {
  opacity: 1;
  z-index: 2;
}

.wp-block-group.rotator {
  height: 30rem;
  overflow: hidden;
  position: relative;
}

.wp-block-group.rotator figure {
  position: absolute;
  top: 0;
  left: 0;
}

.wp-block-group.rotator figure,
.wp-block-group.rotator figure img {
  width: 100%;
  height: 100%;
}

.wp-block-group.rotator figure img {
  object-fit: cover;
}

.wp-block-group.rotator figure figcaption {
  position: absolute;
  font-size: var(--font-size-h3);
  line-height: var(--font-line-height-h3);
  bottom: 0;
  left: 0;
  display: inline-block;
  padding: 0.5rem 0.8rem;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  margin: var(--font-line-height) 0;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-family-header);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  border-bottom: 0.4em;
}

.wp-block-group.rotator figure figcaption:after {
  font-size: inherit;
  position: absolute;
  display: block;
  content: " ";
  top: calc(100% - 0.4rem);
  left: 0;
  width: 100%;
  height: 0.4rem;
  background-color: var(--color-orange);
  z-index: 100;
  margin: 0;
}
