.gallery {
  width: 100%;
}

.gallery-item .content {
  -webkit-transition: all .3s ease-in-out;
  -moz-transition:    all .3s ease-in-out;
  -o-transition:      all .3s ease-in-out;
  -ms-transition:     all .3s ease-in-out;
  transition:         all .3s ease-in-out;
  text-align: center;
  color: white;
  padding: 0 20px 20px 20px;
  position: absolute;
  bottom: 0;
}
.gallery-item:not(.gallery-item-selected) .content{
  height: 35px;
  left: 0;
  right: 0;
}
.gallery-item .content .title{
  font-weight: bold;
  font-size: 11pt;
}
.gallery-item.gallery-item-selected .title{
  font-size: 18pt;
}
.gallery-item .content a.more{
  color: white;
  font-weight: bold;

}
.gallery-item .content .description {
  opacity: 0;
  font-size: 9pt;
  -webkit-transition: all .3s ease-in-out;
  -moz-transition:    all .3s ease-in-out;
  -o-transition:      all .3s ease-in-out;
  -ms-transition:     all .3s ease-in-out;
  transition:         all .3s ease-in-out;
}
.gallery-item.gallery-item-selected .content .description {
  opacity: 1;
}
.gallery-item.gallery-item-selected .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
/*.gallery-item.gallery-item-selected .content .description {
  display: block;
}*/

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

.gallery-item {
  height: 150px;
  opacity: .4;
  position: absolute;
  transition: all 0.3s ease-in-out;
  width: 150px;
  z-index: 0;
    -webkit-transition: all .3s ease-in-out;
  -moz-transition:    all .3s ease-in-out;
  -o-transition:      all .3s ease-in-out;
  -ms-transition:     all .3s ease-in-out;
  transition:         all .3s ease-in-out;
}

.gallery-item.gallery-item-selected {
  box-shadow: 0 0 30px rgba(42, 42, 42, 0.82), 0 0 60px rgba(42, 42, 42, 0.45), 0 0 110px rgba(42, 42, 42, 0.25), 0 0 100px rgba(42, 42, 42, 0.1);
  height: 300px;
  opacity: 1;
  left: 50%;
  transform: translateX(-52%);
  width: 500px;
  z-index: 2;
  margin: auto;
}
.gallery-item.gallery-item-selected:hover {
  transform: scale(1.05) translateX(-50%);
}

.gallery-item.gallery-item-previous,
.gallery-item.gallery-item-next {
  height: 200px;
  opacity: 1;
  width: 200px;
  z-index: 1;
}

.gallery-item:not(.gallery-item-previous):not(.gallery-item-next):not(.gallery-item-selected) {
  display: none;
}

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

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

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

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

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

.gallery-controls button {
  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: solid #000;
  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: solid #000;
  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 {
    background: #ccc;
    height: 5px;
    margin: 0 5px;
    width: 44px;
       -webkit-transition: all .3s ease-in-out;
  -moz-transition:    all .3s ease-in-out;
  -o-transition:      all .3s ease-in-out;
  -ms-transition:     all .3s ease-in-out;
  transition:         all .3s ease-in-out;
}
.gallery-nav li.gallery-item-selected {
  background: #E76A2A;
}
