/**
 * Copyright 2014 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.pic-1 {
  position: relative;
  display: block;
  width: 100%;
  height: 168px;
  margin: 4px 0;
  background: $color-primary center center no-repeat;
  background-size: cover;
}

.pic-2 {
  position: relative;
  float: right;
  display: block;
  width: calc(50% - 2px);
  margin-left: 2px;
  height: 168px;
  background: $color-primary center -40px no-repeat;
  background-size: cover;
}

.pic-3 {
  position: relative;
  float: right;
  display: none;
  width: calc(50% - 2px);
  height: 240px;
  background: $color-primary left top no-repeat;
  background-size: cover;
}

.loaded .pic-1 {
  background-image: url(../images/pic-1.jpg);
}

.loaded .pic-2 {
  background-image: url(../images/pic-2.jpg);
}

.loaded .pic-3 {
  background-image: url(../images/pic-3.jpg);
}

@media (min-resolution: 2.0dppx), (-webkit-min-device-pixel-ratio: 2), (min-width: 600px) {

  .loaded .pic-1 {
    background-image: url(../images/pic-1@2x.jpg);
  }

  .loaded .pic-2 {
    background-image: url(../images/pic-2@2x.jpg);
  }

  .loaded .pic-3 {
    background-image: url(../images/pic-3@2x.jpg);
  }
}

@media (min-width: 475px) {
  .pic-1 {
    height: 240px;
  }

  .pic-2 {
    height: 210px;
  }
}

@media (min-width: 600px) {
  .pic-1 {
    margin: 0 0 4px 0;
    width: calc(50% - 2px);
    float: left;
  }
}

@media (min-width: 600px) {
  .pic-2 {
    margin: 0 0 4px 0;
    width: calc(50% - 2px);
    float: left;
    height: 484px;
    clear: both;
  }

  .pic-3 {
    display: block;
  }
}

@media (min-width: 800px) {
  .pic-1 {
    margin: 0 2px 4px 4px;
    width: calc(25% - 4px);
    float: right;
    background-position: 55% center;
  }

  .pic-2 {
    clear: none;
    float: left;
    width: calc(25% - 2px);
    background-position: top center;
  }

  .pic-3 {
    margin-top: 4px;
    width: calc(25% - 4px);
  }
}

@media (min-width: 960px) {
  .pic-2 {
    width: calc(25% - 6px);
    margin-left: 4px;
  }

  .pic-3 {
    width: calc(25% - 8px);
    margin-right: 4px;
  }
}
