/**
 * Variables
 */

/**
 * Base Styles
 * 1. Improve box model
 * 2. Enable fluid images
 */

*,
*:before,
*:after {
  box-sizing: border-box;
  /* 1 */
}

body {
  background-color: #F5F5F5;
}

img {
  max-width: 100%;
  /* 2 */
}

/**
 * Container Styles
 */

.container {
  margin: 0 auto;
  padding: 1em;
}

/**
 * Helper Styles
 */

.ir {
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}

/**
 * Gallery Styles
 * 1. Enable fluid images
 */

.gallery {
  overflow: hidden;
}

.gallery__hero {
  overflow: hidden;
  position: relative;
  padding: 2em;
  margin: 0 0 0.3333333333em;
  background: #fff;
}

.is-zoomed .gallery__hero {
  cursor: move;
}

.is-zoomed .gallery__hero img {
  max-width: none;
  position: absolute;
  z-index: 0;
  top: -50%;
  left: -50%;
}

.gallery__hero-enlarge {
  position: absolute;
  right: 0.5em;
  bottom: 0.5em;
  z-index: 1;
  width: 30px;
  height: 30px;
  opacity: 0.5;
  background-image: url(https://dl.dropboxusercontent.com/u/5308154/Codepen/Product-Gallery/icons/zoom-in.svg);
  background-repeat: no-repeat;
  transition: opacity 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.gallery__hero-enlarge:hover {
  opacity: 1;
}

.is-zoomed .gallery__hero-enlarge {
  background-image: url(https://dl.dropboxusercontent.com/u/5308154/Codepen/Product-Gallery/icons/zoom-out.svg);
}

.gallery__thumbs {
  text-align: center;
  background: #fff;
}

.gallery__thumbs a {
  display: inline-block;
  width: 20%;
  padding: 0.5em;
  opacity: 0.75;
  transition: opacity 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.gallery__thumbs a:hover {
  opacity: 1;
}

.gallery__thumbs a.is-active {
  opacity: 0.2;
}

