
/* gallery content */

.gallery-content {
  -webkit-column-count:1;
  -webkit-column-gap:1em;
  -moz-column-count:2;
  -moz-column-gap:1em;
  column-count:1;
  column-gap:1em;
  float: left;
  width:100%
}

.gallery--container a {
  page-break-after: avoid;
  display:block;   
}

.gallery--container img {
  width:100%;
  height:auto;
}

.gallery--description{
  font-size:.9em;
  margin:.5em 0 1em;
}

.gallery--thumbnail {
  margin-bottom:1em;
}

/* lightbox background */

#overlay {
  background-color:rgba(0,0,0,.7);
  width:100%;
  position:absolute;
  top:0;
  left:0;
  display:none;
  text-align:center;
  z-index:11;
}

#overlay img {
  box-sizing:border-box;
  background-color:#fff;
  margin:5% auto 5%;
  padding:1.5em;
  z-index:12;
  width:100%;
  max-width:760px;
}

/* lightbox container */

.lightbox--container {
  position:fixed;
  top:0;
  width: 100%;
  height: 100%;
  z-index:600;
  overflow-y:scroll;
}

.lightbox--name {
  display:none;
}

.name__show {
  display:block;
}

a#next {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 7em;
  font-size: 3em;
  width: 1em;
  color: #000;
}

a#next:hover {
  cursor:pointer;
  transform: translateY(-50%) scale(1.3);
}

a#prev {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 7em;
  font-size: 3em;
  width: 1em;
  color: #000;
}

.lightbox__flex {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  transition:.1s background-color ease;
}

a#prev:hover {
  cursor:pointer;
  transform: translateY(-50%) scale(1.3);
}

.lightbox--close {
  font-weight: 100;
  font-size: 4em;
  display: inline-block;
  transform: rotate(45deg);
  float: right;
  color: #333;
  position: fixed;
  top: 0;
  right: 2%;
}

.lightbox--close:hover {
  cursor:pointer;
}

.lightbox--container img {
  float: none;
  width: auto;
  height: auto;
  margin: 2em auto 0;
  padding: 0;
  max-width: 80%;
  display: block;
  opacity: 1;
}

.lightbox--content {
  width: 100%;
  padding: 1em 5% 0em;
}

.lightbox--title {
  font-size:1.2em;
  font-weight:600;
  text-transform:uppercase;
}

.lightbox--sub-title {
  font-weight:300;
  font-size:.85em;
}

.lightbox--description {
  font-size:.95em;
  margin:1em auto;
  width:80%;
  max-width:310px;
  text-align:center;
}

#overlay {
  display:none;
  width: 100%;
  height: 100%;
  top: 0;
  position: fixed;
  background: rgba(255,255,255,.9);
  left: 0;
  text-align: center;
  overflow: overlay;
  z-index: 600;
  opacity:1;
}

@media (max-width:679px) {
  #overlay {
    top:auto;
    bottom:0;
    height:100%;
  }
  
  #overlay img {
    position:absolute;
    bottom: 0;
    left: 0;
  }

}

@media (min-width:680px) {
  
  .gallery-content {
    -webkit-column-count:3;
    -moz-column-count:3;
    column-count:3;
    width: 75%;
  }
    
  a#next, a#prev {
    height:5em;
  }
  
  .lightbox__flex:hover {
    background-color:rgba(100,100,100,.1);
  }
}

@media (min-width: 980px) {
    .lightbox {
    float:left;
  }
  
  .lightbox--container {
    position:fixed;
    width: 100%;
    height: 100%;
    z-index:600;
  }
  
  .lightbox--container img {
    margin: 0 auto;
    padding: 2em 5em 4em;
    top: 0;
    order: 1;
  }
  
  a#next, a#prev {
    width: 1.5em;
    font-size: 4em;
  }
  
  
  .lightbox--description {
    display:block;
    margin:1em;
  }
  
  .lightbox--content {
    display:flex;
    order:2;
    width: 35%;
    position: initial;
    padding:0;
  }
  
  .lightbox--name {
    text-align:left;
    width:70%;
  }
  
  .name__show {
    display:flex !important;
    justify-content:center;
    flex-direction:column;
  }
  
  .lightbox--close {
    color:#444;
    top: 0;
  }
  
  .right-column--thumbnails {
    overflow-y: visible;
    height:auto;
    overflow-x: visible;
    position: relative;
    margin-top:0;
  }
  
  .right-column--thumbnails a {
    display: block;
    margin:0;
  }
}