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

.gallery-item {
  display: inline-block;
  vertical-align: top;
  -webkit-transition: height 500ms ease;
  -o-transition: height 500ms ease;
  transition: height 500ms ease;
}

.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; }

body {

  font-weight: 200;
  color: #555;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

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

.gallery-item .thumbnail {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  cursor: pointer; 
}

.gallery-item .thumbnail > img {
  position: absolute;
  /*top: 50%;
  margin-top: -300px;
  max-width: 300px;*/
}

.gallery-item .title {
  text-align: left;
  
  font-weight: 300;
  font-size: 40px;
  padding: 40px 0 10px;
  margin-bottom: 10px;
  color: #333;
  font-family: 'Lato', Calibri, Arial, sans-serif;
}

.gallery-contents:after { border-bottom-color: #ddd; }

.gallery-expander { background: #ddd; }

.gallery-expander-contents {
  margin: 0 auto;
  width: 1000px;
  padding: 20px 0;
}
@media (min-width: 640px) and (max-width: 999px) {

.gallery-expander-contents { width: 640px; }
}
@media (max-width: 639px) {

.gallery-expander-contents { width: 100%; }
}

.gallery-expander-contents:after {
  clear: both;
  display: table;
  content: '';
}

.gallery-expander-contents > div.col {
  float: left;
  width: 480px;
}
@media (min-width: 640px) and (max-width: 999px) {

.gallery-expander-contents > div.col { width: 310px; }
}
@media (max-width: 639px) {

.gallery-expander-contents > div.col {
  float: none;
  padding: 25px 20px 0;
  width: auto;
}
}

.gallery-expander-contents > div.col + div.col { margin-left: 40px; }
@media (min-width: 640px) and (max-width: 999px) {

.gallery-expander-contents > div.col + div.col { margin-left: 20px; }
}
@media (max-width: 639px) {

.gallery-expander-contents > div.col + div.col { margin-left: 0px; }
}

.gallery-expander-contents div.close {
	position: absolute;
	width: 40px;
	height: 40px;
	top: 20px;
	right: 20px;
    cursor: pointer;
}

.gallery-expander-contents div.close::before, .gallery-expander-contents div.close::after {
    content: '';
    position: absolute;
    width: 100%;
    top: 50%;
    height: 1px;
    background: #888;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);	
}

.gallery-expander-contents div.close::after {
	transform: rotate(-45deg);
}

.gallery-expander-contents div.contents {
  margin-top: 10px;
  border-top: 1px solid #888;
  border-bottom: 1px solid #888;
  padding: 10px 0;
  
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #999;
}

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

.gallery-expander-contents  a {
	font-weight: 700;
    font-size: 16px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    border: 3px solid #333;
    display: inline-block;
    margin: 30px 0 0;
    outline: none;
	text-align: left;
}

#.gallery-expander-contents a::before {
    content: '';
    #content: '\2192';
    display: inline-block;
    #margin-right: 10px;
}

.gallery-items {
	width: 100%;
	margin-left:-15px;
}
.gallery-item {
	width: 23%;
}
.gallery-item .thumbnail { 
	border: none;
}