/* breakpoints */
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
  -webkit-transition: all 500ms ease-in-out;
  -moz-transition: all 500ms ease-in-out;
  -ms-transition: all 500ms ease-in-out;
  -o-transition: all 500ms ease-in-out;
  transition: all 500ms ease-in-out;
}


#wrapper {
  max-width: 1400px;
  padding: 0;
  margin: 0 auto;
}

#gallery-theater {
  line-height: 0;
}
#gallery-theater .close-theater {
  width: 100%;
  padding: 0;
  display: inline-block;
}
#gallery-theater .close-theater a {
  display: none;
  float: right;
  text-align: right;
  color: #000;
  text-decoration: underline;
  font-family: arial;
  font-size: .875em;
  line-height: 100%;
  line-height: 30px;
}
#gallery-theater .close-theater a:hover, #gallery-theater .close-theater a:focus {
  text-decoration: none;
}
#gallery-theater .close-theater a:hover:after, #gallery-theater .close-theater a:focus:after {
  background-color: green;
}
#gallery-theater .close-theater a:after {
  float: right;
  content: 'x';
  background-color: #000;
  color: #fff;
  width: 40px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  margin-left: 7px;
  font-size: 1.250em;
  font-weight: bold;
}
#gallery-theater .close-theater.active {
  padding: 10px 20px;
}
#gallery-theater .close-theater.active a {
  display: inline-block;
}
#gallery-theater .theater-wrapper {
  display: block;
  max-width: 760px;
  margin: 0 auto;
}
#gallery-theater .theater {
  padding-top: 0;
  height: 0;
  position: relative;
  padding-bottom: 0%;
}
#gallery-theater .theater.active {
  padding-top: 25px;
  padding-bottom: 56.25%;
}
#gallery-theater .theater iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
#gallery-theater .gallery {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-align-content: stretch;
  -ms-flex-line-pack: stretch;
  align-content: stretch;
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
}
#gallery-theater .gallery > div {
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  -webkit-flex: 0 1 auto;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
  -webkit-align-self: auto;
  -ms-flex-item-align: auto;
  align-self: auto;
  width: 100%;
  margin: 15px auto;
}
@media (min-width: 760px) {
  #gallery-theater .gallery > div {
    width: calc(100% / 4 - 15px);
  }
}
#gallery-theater .gallery a {
  display: inline-block;
  position: relative;
  border: solid 2px #fff;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 18px;
}
#gallery-theater .gallery a:after {
  z-index: 1;
  margin: auto;
  content: "";
  display: inline-block;
  font-family: 'Material Icons';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  border-radius: 50px;
  height: 54px;
  width: 54px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 84'%3E%3Ccircle cx='42' cy='42' r='42'/%3E%3Cpath d='M59 42L31 26v32z' fill='%23fff'/%3E%3C/svg%3E");
}
#gallery-theater .gallery a img {
  max-width: 100%;
}
#gallery-theater .gallery a.active {
  border: solid 2px #003366;
}
#gallery-theater .gallery a.active span {
  background-color: #003366;
}
#gallery-theater .gallery a:hover:after, #gallery-theater .gallery a:focus:after {
  opacity: .6;
}
#gallery-theater .gallery a:hover img, #gallery-theater .gallery a:focus img {
  opacity: .6;
  filter: grayscale(20%);
}
#gallery-theater .gallery a span {
  display: inline-block;
  width: 100%;
  text-align: center;
  color: #fff;
  background-color: #F7A221;
  line-height: 115%;
  padding: 15px;
}