* {
  box-sizing: border-box;
}

body {
  box-sizing: border-box;
  font-family: 'Roboto Condensed', sans-serif;
  color: #565656;
  background-color: #F8F8F8;
}

h1, h2 {
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
  margin: 0;
  padding: 0;
}

h1 { margin: 1em; }
h2 { margin-bottom: 1.5em; }

.thumbnails {
  text-align: center;
  max-width: 100em;
  margin: 0 auto;
}

.thumbnail {
  width: 20%;
  display: inline-block;
  padding: 0.5em;
}

.thumbnail__wrapper {
  position: relative;
  height: 12em;
  overflow: hidden;
  padding-bottom: 56.25%;
  background: rgba(0,0,0);
  box-shadow: 0 2px 4px #c3c3c3;
}

.thumbnail__name {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1em;
  right: 0;
  background: rgba(0,0,0,0.5);
  text-align: left;
}

.thumbnail__name::after {
  content: ' ';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4em;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.5));
}

.thumbnail__name span {
  transition-duration: 0.3s;
  background: transparent;
  color: white;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumbnail__image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  transition-duration: 0.3s;
}

.thumbnail:hover .thumbnail__image {
  transform: scale(1.25);
}
.thumbnail:hover .thumbnail__name span {
  font-size: 1.1em;
}

.entry-overlay {
  display: none;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10;
  overflow: hidden;
}

.entry-overlay--visible {
  display: block;
}

.entry-overlay iframe {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
}

.entry-overlay .btn-close {
  position: absolute;
  right: 32px;
  top: 32px;
  width: 32px;
  height: 32px;
  opacity: 0.6;
  z-index: 10;
}

.entry-overlay .btn-close:hover {
  opacity: 1;
}

.entry-overlay .btn-close:before, .entry-overlay .btn-close:after {
  position: absolute;
  left: 15px;
  content: ' ';
  height: 33px;
  width: 2px;
  background-color: #333;
}

.entry-overlay .btn-close:before {
  transform: rotate(45deg);
}

.entry-overlay .btn-close:after {
  transform: rotate(-45deg);
}

.btn-back {
  position: absolute;
  left: 32px;
  top: 48px;
  width: 32px;
  height: 32px;
  opacity: 0.6;
  z-index: 10;
}

.btn-back:hover {
  opacity: 1;
}

.btn-back:before, .btn-back:after {
  position: absolute;
  left: 15px;
  content: ' ';
  height: 16px;
  width: 2px;
  background-color: #333;
  overflow: hidden;
}

.btn-back:before {
  transform: rotate(45deg) translate(-8px, -8px);
}

.btn-back:after {
  transform: rotate(-45deg);
}

@media (max-width: 1200px) {
  .thumbnail__name {
  	padding: 0.5em;
    font-size: 0.8em;
  }
}

@media (max-width: 800px) {
	.thumbnail {
		width: 100%;
	}
  .thumbnail__name {
  	padding: 1em;
    font-size: 1.1em;
  }
}
