.wpb-gallery-item {
  position: relative;
  overflow: hidden;
  display: block;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
.wpb-gallery-item .wpb-gallery-text {
  width: auto;
}
.wpb-gallery-item img {
  vertical-align: bottom !important;
  max-width: 100%;
  height: auto;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  width: 100%;
}
.wpb-gallery-item .wpb-gallery-overlay {
  opacity: 0;
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  -webkit-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}
.wpb-gallery-item:hover .wpb-gallery-overlay {
  opacity: 0.9;
}
