@import url(https://fonts.googleapis.com/css?family=Open+Sans:300);
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans';
	background: black;
	color: white;
}

h1 {
  font-weight: 100;
  margin: 0;
  position: relative;
}

section {
  column-width: 300px;
  column-gap: 5px;
  padding: 5px;
}

section img {
  width: 100%;
  cursor: pointer;
	border-radius: 3px;
}

section div {
	border-radius: 3px;
  position: relative;
}

section div::before {
  content: attr(data-tooltip);
  position:absolute;
  bottom: 20px;
  padding: 0 10px;
  border-radius: 3px;
  line-height: 200%;
  left: 50%;
  transform: translateX(-50%) rotateY(0deg);
  background: rgba(0,0,0, 0.4);
  color: white;
  display: none;
}
section div:hover:before  {
  display:block;
}


.lightbox {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  display: none;
  background: #7f8c8d;
  perspective: 1000;
}

.filter {
  position: absolute;
  width: 100%;
  height: 100%;
  filter: blur(20px);
  opacity: 0.5;
  background-position: center;
  background-size: cover;
}

.lightbox img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateY(0deg);
  max-height: 100vh;
  max-width: calc(100vw - 100px);
  transition: 0.8s cubic-bezier(0.7, 0, 0.4, 1);
  transform-style: preserve-3d;
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
	/* border-radius: 3px; */
	/* border: 10px solid rgba(0, 0, 0, 0); */
}


/*.lightbox:hover img{
  transform: translate(-50%, -50%) rotateY(180deg);
}*/

[class^="arrow"] {
  height: 200px;
  width: 50px;
  background: rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

[class^="arrow"]:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 15px;
  height: 15px;
}

.arrowr {
  right: 0;
	border-radius: 3px 0 0 3px;
}

.arrowr:after {
  border-right: 1px solid white;
  border-bottom: 1px solid white;
}

.arrowl {
  left: 0;
	border-radius: 0 3px 3px 0;
}

.arrowl:after {
  border-left: 1px solid white;
  border-top: 1px solid white;
}

.close {
  position: absolute;
  right: 0;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.4);
  margin: 20px;
  cursor: pointer;
}

.close:after,
.close:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 100%;
  background: #e74c3c;
}

.close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.title {
  font-size: 20px;
  color: #000;
  z-index: 1000;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 20px 0;
	text-align: center;
}
.title h1 {
	margin-bottom: 10px;
	text-shadow:
		1px 0 1px rgba(255,255,255,0.4),
		-1px 0 1px rgba(255,255,255,0.4),
		0 1px 1px rgba(255,255,255,0.4),
		0 -1px 1px rgba(255,255,255,0.4),
		1px 1px 1px rgba(255,255,255,0.4),
		-1px -1px 1px rgba(255,255,255,0.4),
		1px -1px 1px rgba(255,255,255,0.4),
		-1px 1px 1px rgba(255,255,255,0.4)
	;
}
.title h2 {
	font-size: 16px;
	margin: 10px 0;
	text-shadow:
		1px 0 1px rgba(255,255,255,0.2),
		-1px 0 1px rgba(255,255,255,0.2),
		0 1px 1px rgba(255,255,255,0.2),
		0 -1px 1px rgba(255,255,255,0.2),
		1px 1px 1px rgba(255,255,255,0.2),
		-1px -1px 1px rgba(255,255,255,0.2),
		1px -1px 1px rgba(255,255,255,0.2),
		-1px 1px 1px rgba(255,255,255,0.2)
	;
}

h1.main {
	font-size: 32px;
	margin: 40px 0;
	line-height: 1.7em;
	text-align: center;
}

@media (max-width: 919px) {
  section {
    column-width: 250px;
  }
}

@media (max-width: 769px) {
  section {
    column-width: 200px;
  }
}

@media (max-width: 619px) {
  section {
    column-width: 150px;
  }
  h1.main {
    font-size: 21px;
  }
  .title {
    font-size: 13px;
  }
  .title h2 {
    font-size: 11px;
  }
  section div::before {
    left: 20%;
    transform: translateX(-10%) rotateY(0deg);
    font-size: 11px;
  }
}

@media (max-width: 469px) {
  section {
    column-width: 120px;
  }
}

@media (max-width: 379px) {
  section {
    column-width: 100px;
  }
}