

html, body {
  -webkit-font-smoothing: antialiased;
}

.content-width {
  margin: 0 auto;
  width: 75%;
}

.slideshow {
  width: 100%;
  height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  
}

.slideshow-items {
  position: relative;
  width: 100%;
}

.item {
  position: absolute;
  width: 100%;
  height: auto;
}

.item-image-container {
  position: relative;
  width: 60%;
}

.item-image-container::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 100%;
  background: #22222A;
  opacity: 0;
  z-index: 1;
}

.item-image {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: block;
  transition: opacity .3s ease-out .45s;
}

.item.active .item-image {
  opacity: 1;
}

.item-description {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  line-height: 1.8;
}
.slideshow-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.item-image-container {
  flex: 1 1 auto;
  margin: 10px;
  width: calc(33.333% - 15px); /* Example for a 3-column layout */
}

.item-image {
  border: 2px outset #670000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border-radius: 0.5rem;
}

.item-header {
  position: absolute;
  top: auto;
  z-index: 100;
}

.item-header .vertical-part {
  -webkit-font-smoothing: auto;
  font-size: 2.5vw;
  color: #000;
}

.vertical-part {
  overflow: hidden;
  display: inline-block;
}

.vertical-part b {
  display: inline-block;
  transform: translateY(100%);
}

.item-header .vertical-part b {
  transition: .5s;
}

.item-description .vertical-part b {
  transition: .21s;
}

.item.active .item-header .vertical-part b {
  transform: translateY(0);
}

.item.active .item-description .vertical-part b {
  transform: translateY(0);
}

.controls {
  position: relative;
  text-align: right;
  z-index: 1000;
}

.controls ul {
  list-style: none;
}

.controls ul li {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 3px;
  background:#bdbdd5;;
  cursor: pointer;
}

.controls ul li.active {
  background:#6a6a77;;
}

@media (max-width: 768px) {
  .item-image-container img{
    width: 250px;
    height: auto;
  }
  .item-description {
    display: none;
  }
  .slideshow{
    height: 450px;
  }
  .controls{
    margin-top: 2rem;
  }
  .item-header .vertical-part{
    font-size: 1rem;
  }
}