/* GALERY **********************************************************************/

.galery {
  overflow: hidden;
  position:relative;
}

.galery figure {
  width: 100%;
  height: 15rem;
  margin:0;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.galery figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.5rem;
  text-align: center;
  color: #FFF;
  background-color: rgba(7, 7, 7, 0.4);
  font-family: "prototype";
  font-size: 1.1rem;
}

.photo {
  position: absolute;
  top: 0;
  left: 0;
  display:block;
}

.showPhoto {
  width: 100%;
  transition: 4s;
  z-index:100;
  border-right: solid 200px rgba(0,0,0,0.7);
}

.showPhoto figcaption {
  opacity: 1;
  transition: 1s;
  transition-delay: 2s;
  transition-timing-function: ease-out;
}

.transitionPhoto{
  width: 100%;
}

.hiddenPhoto {
  width: 0;
}

.hiddenPhoto figcaption {
  opacity: 0;
}

@media only screen and (min-width:520px) {

}

/* INDEX ***********************************************************************/
#banner {width:100%;}

.galery {
  width:auto;
  height: 15rem;
}

#second_banner {
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content: space-between;
}

#second_banner > div {
  flex:1;
  overflow:hidden;
  background: #b30000;
  color: #FFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 6.8rem;
  margin-bottom: 1rem;
}

#second_banner img {
  width:9rem;
  height: auto;
}

#second_banner p {
  font-family:"prototype";
  font-size:1.5rem;
  text-align:center;
  padding: 0 1rem;
  text-indent:0;
  width: 100%;
}

#phones {
  text-align: center;
}

#phones > div {
  display: table;
  width: 100%;
}
#phones div figure:first-child {
  float: left;
  margin-right: 1.5rem;
}

#phones h2 {
  margin-top: 7rem;
  margin-bottom: 7rem;
}

#phones table {
  margin: auto;
  margin-top: 2.5rem;
}

#phones div:last-child figure{
  margin: auto;
  width: 100%;
  margin-top: 4rem;
}
#phones div:last-child img{
  margin-left:2rem;
}

#contact p{
  text-align: center;
  font-family: "prototype";
}
#contact p:first-child{
  font-size: 2.3rem;
  color: #000066;
}
#contact p:last-child {
  font-size: 1.09375em;
  color: #b30000;
}

#location, #phones {
  margin-top: 6rem;
}

#location p {
  text-indent: 0;
  margin-bottom: 2rem;
}

@media only screen and (min-width:425px) {
  #phones h2 {
    margin-top:0;
    margin-bottom:0;
  }
}
@media only screen and (min-width:520px) {

  .galery {height:18rem}
  .galery figure {height:18rem}

  #services ul{
    -webkit-column-count:2;
    -moz-column-count:2;
    column-count:2;
  }
}

@media only screen and (min-width: 700px) {
  #banner {
    display:flex;
    height:21.875rem;
  }
  .galery {
    flex:3;
    height:100%;
  }
  .galery figure {
    height:21.875rem;
  }

  #second_banner > div {
    margin-bottom: 0;
    margin-left: 1.3rem;
  }

  #services ul{
    -webkit-column-count:1;
    -moz-column-count:1;
    column-count:1;
  }

  .enterprise {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
  }
  #enterprise {
    margin-right:2rem;
  }

  #enterprise p {
    max-width: 20rem;
  }

  #phones .lineBreak:after {
    content: "_";
    display: inline-block;
    color: #FFF;
  }
}

@media only screen and (min-width:752px) {

  #services ul{
    -webkit-column-count:2;
    -moz-column-count:2;
    column-count:2;
  }
}

@media only screen and (min-width:920px) {

  #phones {
    display: flex;
  }

  #phones > div {
    flex:1;
    display: block;
  }

  #phones div:last-child figure {
    margin-top: 0;
  }
}

@media only screen and (min-width:1024px) {
  #services ul {
    -webkit-column-gap:5rem;
    -moz-column-gap:5rem;
    column-gap:5rem;
  }
}
