.gallery-items { 
  font-size: 0;
  padding: 0;
}

.gallery-item {
  display: inline-block;
  vertical-align: top;
  -webkit-transition: height 500ms ease;
  -o-transition: height 500ms ease;
  transition: height 500ms ease;
  width: 25%;
  background-color: #006580;
}

.gallery-expander {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  max-height: 0;
  -webkit-transition: max-height 500ms ease;
  -o-transition: max-height 500ms ease;
  transition: max-height 500ms ease;
}

.gallery-contents { 
  position: relative; 
}

.gallery-contents:after {
  display: block;
  position: absolute;
  bottom: 0px;
  left: 50%;
  margin-left: -30px;
  width: 0;
  height: 0;
  content: '';
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom-style: solid;
  border-bottom-width: 0px;
  -webkit-transition: border-bottom-width 500ms ease;
  -o-transition: border-bottom-width 500ms ease;
  transition: border-bottom-width 500ms ease;
}

.gallery-item.active .gallery-contents:after { border-bottom-width: 30px; }

.gallery-item {
  text-align: left;
  font-size: 15px;
  margin: 0;
  padding: 0;
}

.gallery-item p {
  font-family: 'Roboto', sans-serif;
  font-weight:500;
  font-size: 15px;
}

.gallery-item .thumbnail {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item .thumbnail > img {
  position: absolute;
  max-width: 100%;
  width: 100%;
}

.gallery-item .thumbnail img {
  margin: auto;
}

.gallery-item .title {
  text-align: center;
  margin-top: 20px;
  padding-bottom: 20px;
}

.thumbnail {
    display: block;
    padding: 0;
    margin-bottom: 0;
    background-color: #FFFFFF;
    border: none;
    border-radius: 0;
    -webkit-transition: border .2s ease-in-out;
    -o-transition: border .2s ease-in-out;
    transition: border .2s ease-in-out;
}

.gallery-item:hover .thumbnail {
  opacity: 0.3;
  filter: alpha(opacity=30);
  -webkit-transition: opacity 1s ease;
  -o-transition: opacity 1s ease;
  transition: opacity 1s ease;
}

.work-slideshow li {
    background-color: #FFFFFF!important;
    text-align: center;
    color: #FFF;
    padding: 0 80px;
}

.image-slider a.prev {
    position: absolute;
    left:0;
    top: 50%;
    margin-top: -30px;
    bottom: 0;
    z-index: 100;
    width: 60px;
    background-image: url('../img/controls@2x.png');
    background-size: 120px 110px;
    background-position: 0 0;
    background-repeat: no-repeat;
    text-indent: -9999px;
}
.image-slider a.next {
    position: absolute;
    right:0;
    top: 50%;
    margin-top: -30px;
    bottom: 0;
    z-index: 100;
    width: 60px;
    background-image: url('../img/controls@2x.png');
    background-size: 120px 110px;
    background-position: -60px 0;
    background-repeat: no-repeat;
    text-indent: -9999px;
}

.gallery-contents:after { border-bottom-color: #FFFFFF; }
.gallery-expander { background: #FFFFFF; }

.gallery-expander-contents {
  margin: 0 auto;
  width: 100%;
  padding: 20px;
  border-bottom:1px solid #EAEAEA; 
  border-top:1px solid #EAEAEA;
  position: relative;
}
.gallery-expander-contents .textbox h3 {
    color:#006580;
    margin-bottom: 10px;
}

@media (max-width: 639px) {
.gallery-expander-contents { width: 100%; }
}
.gallery-expander-contents:after {
  clear: both;
  display: table;
  content: '';
}
}

.gallery-expander-contents div.close {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 100;
}

.gallery-expander-contents div.contents {
  margin-top: 10px;
  border-top: 1px solid #BCB098;
  border-bottom: 1px solid #BCB098;
  padding: 10px 0;
  font-size: 14px;
  line-height: 24px;
  color: #797262;
}

.gallery-expander-contents div.image > img {
  width: 100%;
  display: block;
}


/*xs*/
@media (max-width: 767px) {
.gallery-item {
  display: inline-block;
  vertical-align: top;
  -webkit-transition: height 500ms ease;
  -o-transition: height 500ms ease;
  transition: height 500ms ease;
  width: 50%;
}
.work-slideshow li {
    padding: 0 0;
}
}

/*xs - mobile*/
@media (max-width: 320px) {
.gallery-expander-contents .textcol {
  min-height: 100px;
}
.gallery-expander-contents .textbox {
  position: relative;
}
.work-slideshow li {
    padding: 0 0;
}
.image-slider a.prev {
    position: absolute;
    left:0;
    top: 50%;
    margin-top: -30px;
    bottom: 0;
    z-index: 100;
    width: 30px;
    background-image: url('../img/controls@2x.png');
    background-size: 60px 55px;
    background-position: 0 0;
    background-repeat: no-repeat;
    text-indent: -9999px;
}
.image-slider a.next {
    position: absolute;
    right:0;
    top: 50%;
    margin-top: -30px;
    bottom: 0;
    z-index: 100;
    width: 30px;
    background-image: url('../img/controls@2x.png');
    background-size: 60px 55px;
    background-position: -30px 0;
    background-repeat: no-repeat;
    text-indent: -9999px;
}
}

/*xs - mobile*/
@media (max-width: 480px) {
.work-slideshow li {
    padding: 0 0;
}
.image-slider a.prev {
    position: absolute;
    left:0;
    top: 50%;
    margin-top: -30px;
    bottom: 0;
    z-index: 100;
    width: 30px;
    background-image: url('../img/controls@2x.png');
    background-size: 60px 55px;
    background-position: 0 0;
    background-repeat: no-repeat;
    text-indent: -9999px;
}
.image-slider a.next {
    position: absolute;
    right:0;
    top: 50%;
    margin-top: -30px;
    bottom: 0;
    z-index: 100;
    width: 30px;
    background-image: url('../img/controls@2x.png');
    background-size: 60px 55px;
    background-position: -30px 0;
    background-repeat: no-repeat;
    text-indent: -9999px;
}
}

/*sm*/
@media (min-width: 768px) {
.gallery-item {
  display: inline-block;
  vertical-align: top;
  -webkit-transition: height 500ms ease;
  -o-transition: height 500ms ease;
  transition: height 500ms ease;
  width: 25%;
}
.work-slideshow li {
    padding: 0 60px;
}
}

/*md*/
@media (min-width: 992px) {
.gallery-item {
  display: inline-block;
  vertical-align: top;
  -webkit-transition: height 500ms ease;
  -o-transition: height 500ms ease;
  transition: height 500ms ease;
  width: 25%;
}
.gallery-expander-contents .textcol {
  min-height: 350px;
}
.gallery-expander-contents .textbox {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  padding-right: 50px;
}
.work-slideshow li {
    padding: 0 60px;
}
.image-slider a.prev {
    position: absolute;
    left:0;
    top: 50%;
    margin-top: -30px;
    bottom: 0;
    z-index: 100;
    width: 60px;
    background-image: url('../img/controls@2x.png');
    background-size: 120px 110px;
    background-position: 0 0;
    background-repeat: no-repeat;
    text-indent: -9999px;
}
.image-slider a.next {
    position: absolute;
    right:0;
    top: 50%;
    margin-top: -30px;
    bottom: 0;
    z-index: 100;
    width: 60px;
    background-image: url('../img/controls@2x.png');
    background-size: 120px 110px;
    background-position: -60px 0;
    background-repeat: no-repeat;
    text-indent: -9999px;
}
}

/*lg*/
@media (min-width: 1200px) {
.gallery-item {
  display: inline-block;
  vertical-align: top;
  -webkit-transition: height 500ms ease;
  -o-transition: height 500ms ease;
  transition: height 500ms ease;
  width: 25%;
}
.gallery-expander-contents .textcol {
  height: 100%;
  min-height: 440px;
}
.gallery-expander-contents .textbox {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  padding-right: 100px;
}
.work-slideshow {
    z-index: 0;
}
.work-slideshow li {
    padding: 0 80px;
}
.image-slider a.prev {
    position: absolute;
    left:0;
    top: 50%;
    margin-top: -30px;
    bottom: 0;
    z-index: 100;
    width: 60px;
    background-image: url('../img/controls@2x.png');
    background-size: 120px 110px;
    background-position: 0 0;
    background-repeat: no-repeat;
    text-indent: -9999px;
}
.image-slider a.next {
    position: absolute;
    right:0;
    top: 50%;
    margin-top: -30px;
    bottom: 0;
    z-index: 100;
    width: 60px;
    background-image: url('../img/controls@2x.png');
    background-size: 120px 110px;
    background-position: -60px 0;
    background-repeat: no-repeat;
    text-indent: -9999px;
}
}