.gallery {
  display: flex;
  justify-content: center;
  padding: 0 1em;
  transition: 0.3s;
}
/*
.gallery:hover .gallery__image {
  filter: grayscale(1);
}
*/
.gallery__column {
  display: flex;
  flex-direction: column;
  width: 50%;
}
.gallery__link {
  margin: 0;
  overflow: hidden;
}
.gallery__link:hover .gallery__image {
  filter: grayscale(0);
}
.gallery__link:hover .gallery__caption {
  opacity: 1;
}
.gallery__thumb {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.gallery__image {
  display: block;
  width: 100%;
  transition: 0.3s;
}
.gallery__image:hover {
  transform: scale(1.1);
}
.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 25px 15px 15px;
  width: 100%;
  text-transform: uppercase;
  font-size: 11px;
  color: white;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  transition: 0.3s;
  box-sizing: border-box;
}


@media screen and (min-width: 768px) {
  .gallery__column {
    display: flex;
    flex-direction: column;
    width: 25%;
  }
}


.trans
{
	transition: all 1s ease;
	-moz-transition: all 1s ease;
	-ms-transition: all 1s ease;
	-o-transition: all 1s ease;
	-webkit-transition: all 1s ease;
}

.inner-lightbox{
    /*height: 100%;*/
    /* width: 100%; */
    position: absolute;
    top: 50%;
    /* left: 50%; */
    transform: translateY(-50%);
}
.inner-lightbox-link{
  width: 100%;
  display: block;
  height: 100%;
  position: absolute;
  top: 0;

}
.lightbox .close{
  position: absolute;
  top: 0;
  padding: 1em;
  display: block;
  right: 0;
  font-size: 3em;
  line-height: 1;
  color: #FFF;
}
.lightbox .button{
  position: absolute;
  bottom: 0;
  padding: 20px 0;
  left: 0;
  width: 100%;
  font-size: 1.2em;
  letter-spacing: 0.05em;;
  line-height: 1;
  white-space: nowrap;
  margin: 0 auto;
  text-align: center;
  transform: translateX(-50%);
  left: 50%;
  text-decoration: underline;
}
.lightbox-link{
  position: relative;
}
.lightbox
{
	position: fixed;
	width: 100%;
	height: 100%;
	text-align: center;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,0.75);
	z-index: 999;
	opacity: 0;
	pointer-events: none;
}
.lightbox .inner-lightbox
{
	/*max-width: 90%;
	max-height: 80%;*/
	position: relative;
	top: -100%;
	/* Transition */
	transition: all 1s ease;
	-moz-transition: all 1s ease;
	-ms-transition: all 1s ease;
	-o-transition: all 1s ease;
	-webkit-transition: all 1s ease;

  margin: 0 auto;
}
.lightbox img
{
   margin: 0 auto;
   max-height: 768px;
   width: 80vw;
}
.lightbox:target
{
	outline: none;
	top: 0;
	opacity: 1;
	pointer-events: auto;
	transition: all 1.2s ease;
	-moz-transition: all 1.2s ease;
	-ms-transition: all 1.2s ease;
	-o-transition: all 1.2s ease;
	-webkit-transition: all 1.2s ease;
}
.lightbox:target .inner-lightbox
{
    position: relative;
	top: 0;
	top: 50%;
	transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
    width: auto;
    display: inline-block;
    width: 80vw;
}

@media screen and (min-width: 768px) {
    .lightbox img{ width: auto;}
    .lightbox:target .inner-lightbox{
        width: auto;
    }
}
