.container {
  padding-top: 32px;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}

img {
  width: 100%;
}

/* ----- SLIDER CODE ---- */
.slider {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 100%;
  max-width: 100%;
  position: relative;
  width: 100%;
}

.slider--cards {
  outline: 1px solid;
  overflow: hidden;
}

.slider--card-container {
  height: 100%;
  left: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}
.slider--card-container.next {
  opacity: 1;
  z-index: 1;
}
.slider--card-container.prev {
  opacity: 1;
  z-index: 2;
}
.slider--card-container.fade-out {
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s linear;
  visibility: hidden;
}

.slider-controls {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-columns: max-content;
  column-gap: 16px;
  margin-top: 32px;
}

.image-content-text-wrapper > .progress-bar {
  position: absolute;
  margin-bottom: 16px;
}

.progress-bar {
  background: #888d97;
  border-radius: 12px;
  height: 6px;
  width: 5em;
  padding: 0px;
  cursor: pointer;
}

.slider--card {
  position: relative;
  text-align: center;
  color: white;
}
.slider--card:before {
  content: "";
  border-radius: 16px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
}

.image-content--text-wrapper {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 1;
}

.image-content--text {
  bottom: 32px;
  left: 32px;
  font-size: 2rem;
  margin-right: 32px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 2px;
  text-align: left;
  margin-top: 16px;
  z-index: 1;
}
.image-content--text:before {
  content: "";
  position: absolute;
  bottom: 64px;
  left: 32px;
  font-size: 3rem;
}

.progress-bar_active:after {
  content: "";
  display: block;
  background: #ed020f;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  transform-origin: left;
  animation: progress-animation 4s infinite;
}

.slider-controls-wrapper {
  display: flex;
  margin-top: 16px;
  width: 100%;
  height: 24px;
  align-items: center;
  justify-content: center;
}

.navigation-button {
  line-height: 40px;
  min-width: 64px;
  display: flex;
  align-items: center;
}

.image-content--image {
  border-radius: 16px;
}

@keyframes progress-animation {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}
/* navigatio input buttons */
[type=radio]:checked,
[type=radio]:not(:checked) {
  position: absolute;
  left: -9999px;
}

[type=radio]:checked + label,
[type=radio]:not(:checked) + label {
  position: relative;
  width: 100%;
  cursor: pointer;
  height: 64px;
  display: flex;
  align-items: center;
  color: #666;
}

[type=radio]:checked + label:before,
[type=radio]:not(:checked) + label:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 6px;
  border-radius: 16px;
  background: #efefef;
}

[type=radio]:checked + label:after,
[type=radio]:not(:checked) + label:after {
  content: "";
  background: red;
  position: absolute;
  width: 100%;
  height: 6px;
  border-radius: 16px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

[type=radio]:not(:checked) + label:after {
  opacity: 0;
  -webkit-transform: scale(0);
  transform: scale(0);
}

[type=radio]:checked + label:after {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

/** --- TEST --- */
.slide-cards-wrapper {
  height: 300px;
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 12px;
}

.slide-cards-wrapper .slide-card {
  height: 100%;
  left: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}

.slide-cards-wrapper .slide-card.next {
  opacity: 1;
  z-index: 1;
}

.slide-cards-wrapper .slide-card.prev {
  opacity: 1;
  z-index: 2;
}

.slide-cards-wrapper .slide-card.fade-out {
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s linear;
  visibility: hidden;
}

.slide-card {
  outline: 1px solid;
  height: 100%;
  width: 100%;
}
.slide-card:before {
  content: "";
  border-radius: 16px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
}