.gallery {
  width: 100%;
}

.gallery-container {
  align-items: center;
  display: flex;
  height: 400px;
  margin: 0 auto;
  max-width: 1500px;
  position: relative;
}

.gallery-item {
  height: 210px;
  opacity: 0;
  position: absolute;
  transition: all 0.3s ease-in-out;
  width: 210px;
  z-index: 0;
    background-color: #D95027;
    color: white;
    padding: 20px;
    border-radius: 0!important;
    border: solid 1px white;
}


.gallery-item-1 {
    left: 15%;
    opacity: .4;
    transform: translateX(-50%);
}

.gallery-item hr{
  "margin-top: -2%; margin-bottom: 0%; margin-right: 70%; height: 2px; color:white; border-color:white; background-color:white
}

.gallery-item-2,
.gallery-item-4 {
  background-color: #D63F31;
  color:white; padding: 10px;
  height: 300px;
  opacity: 1;
  width: 300px;
  z-index: 1;
}

.gallery-item-1,
.gallery-item-5 {
    font-size: 0.7em;
}

.gallery-item-2 {
  left: 30%;
  transform: translateX(-50%);
}

.gallery-item-3 {
  background-color: #EF4536; color:white; padding: 20px;
  height: 400px;
  opacity: 1;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  z-index: 2;
}

.gallery-item-4 {
  left: 70%;
  transform: translateX(-50%);
}

.gallery-item-5 {
  left: 85%;
  opacity: .3;
  transform: translateX(-50%);
}

.gallery-controls {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.gallery-controls button {
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  margin: 0 20px;
  padding: 0 12px;
  text-transform: capitalize;
}

.gallery-controls button:focus {
  outline: none;
}

.gallery-controls-previous {
  position: relative;
}

.gallery-controls-previous::before {
  border: none;
  border-width: 0 2px 2px 0;
  content: '';
  display: inline-block;
  height: 4px;
  left: -10px;
  padding: 2px;
  position: absolute;
  top: 0;
  transform: rotate(135deg) translateY(-50%);
  transition: left 0.15s ease-in-out;
  width: 4px;
}

.gallery-controls-previous:hover::before {
  left: -18px;
}

.gallery-controls-next {
  position: relative;
}

.gallery-controls-next::before {
  border: none;
  border-width: 0 2px 2px 0;
  content: '';
  display: inline-block;
  height: 4px;
  padding: 2px;
  position: absolute;
  right: -10px;
  top: 50%;
  transform: rotate(-45deg) translateY(-50%);
  transition: right 0.15s ease-in-out;
  width: 4px;
}

.gallery-controls-next:hover::before {
  right: -18px;
}

.gallery-nav {
  bottom: -15px;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  position: absolute;
  width: 100%;
}

.gallery-nav li {
  background: #ccc;
  border-radius: 50%;
  height: 10px;
  margin: 0 16px;
  width: 10px;
}

.gallery-nav li.gallery-item-selected {
  background: #555;
}

@media screen and (max-width: 1000px) {
    .gallery {
        width: 10%;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery-item-3 {
        width: 370px;
        height: 370px;
    }

    .gallery-item-2,
    .gallery-item-4 {
        opacity: 0.2;
        width: 260px;
        height: 260px;
    }

    .gallery-item-2 {
        left: 200%;
    }

    .gallery-item-4 {
        left: -200%;
    }

    .gallery-item-1 {
        opacity: 0;
    }

    .gallery-item-5 {
        opacity: 0;
    }
}

  @media screen and (max-width: 370px) {
    .gallery{
      width: 5%;
      margin-left: auto;
      margin-right: auto;
    }
    .gallery-item-3 {
      width: 300px;
      height: 300px;
    }
}

.gallery-item-1 h1{
    font-size: 2em!important;
}

.gallery-item-1 h3{
    font-size: 1.5em!important;
}

.gallery-item-1 svg{
    width: 40px!important;
    margin-top: -15px!important;
}
