/* Grid Pages */

.header-grid,
.footer-grid {
  padding-left: 15px;
}

.image-grid {
  width: 100%;
  margin: 0 auto;
  padding: 10px 10px 8px 10px;
}

.image-grid .title p {
  line-height: 1.2;
  margin-bottom: 0;
}

.image__cell {
  float: left;
  position: relative;
}

.image--basic {
  padding: 0 5px;
}

.basic__img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.image__cell.is-collapsed .arrow--up {
  display: block;
  height: 10px;
  width: 100%;
}

.image--large {
  max-width: 100%;
  height: auto;
  padding: 40px;
  margin: 0 auto;
  box-sizing: border-box;
}

.image--thumb {
  height: auto;
}

.image--thumb img {
  max-height: 500px;
}

.image--info {
  float: right;
  height: auto;
  padding-left: 20px;
}

.image--info h2,
.image--info h2 > a {
  color: #fff;
}
.image--thumb p,
.image--info p {
  color: #7d7d7d;
}

.child {
  width: 20%;
  height: auto;
  padding: 10px;
}

.child:hover {
  border: 1px solid #fff;
}

.image__cell.is-collapsed .image--basic {
  cursor: pointer;
}

.image__cell.is-expanded .image--expand {
  min-height: 600px;
  margin-bottom: 10px;
  z-index: 98;
}

.image--expand {
  position: absolute;
  left: 0px;
  padding: 0 5px;
  box-sizing: content-box;
  overflow: hidden;
  background: #222;
  max-height: 0;
  transition: max-height .3s ease-in-out,
              margin-bottom .1s .2s;
  width: 395%;
  z-index: 98;
}

.image__cell:nth-of-type(4n+2) .image--expand {
  margin-left: -100%;
}

.image__cell:nth-of-type(4n+3) .image--expand {
  margin-left: -200%;
}

.image__cell:nth-of-type(4n+4) .image--expand {
  margin-left: -300%;
}

.image__cell:nth-of-type(4n+5) {
  clear: left;
}

.image__cell.is-expanded .arrow--up {
  display: block;
  border-bottom: 8px solid #222;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  height: 0;
  width: 0;
  margin: 2px auto 0;
}

.expand__close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #454545;
  font-size: 50px;
  line-height: 50px;
  text-decoration: none !important;
  z-index: 99;
}

.expand__close:before {
  content: '×';
}

.expand__close:hover {
  color: #fff;
}

@media only screen and (max-width: 575px) {

    .image--expand {
      width: 100%;
    }

    .image__cell:nth-of-type(4n+2) .image--expand,
    .image__cell:nth-of-type(4n+3) .image--expand,
    .image__cell:nth-of-type(4n+4) .image--expand {
      margin-left: 0;
    }

    .expand__close {
      right: 30px;
    }
}