//  ==========
//  = Images/thumbnails/galleries for the Carpress HTML template =
//  ==========

// placeholders
%overlay {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.picture {
  position: relative;
  border-radius: 3px;
  overflow: hidden;

  img {
    width: 100%;
  }

  .img-overlay {
    @extend %overlay;
    background-color: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.15s linear;

    .vertically-centered,
    .icons-zoom {
      position: absolute;
      left: 50%;
      top: 50%;
    }
    .vertically-centered {
      text-align: center;
      display: block;
      margin-top: -18px;
      left: 0;
      right: 0;
    }
    .btn {
      filter: none;
      background: #000;
      box-shadow: none;
    }
    .icons-zoom {
      margin-left: -8px;
      margin-top: -8px;
    }
  }

  a:hover {
    .img-overlay {
      opacity: 1;
    }
  }
}





// wp images and classes
.aligncenter {
  display: block;
  margin: $baseLineHeight auto;
  clear: both;
}
.alignleft,
.attachment-post-thumbnail {
  float: left;
  margin-right: $baseLineHeight;
  margin-bottom: 5px;
}
.alignright {
  float: right;
  margin-left: $baseLineHeight;
  margin-bottom: 5px;
}
.alignnone {
  display: inline;
}
.wp-caption-text,
.gallery-caption {
  text-align: center;
  font-style: italic;
}
.gallery-caption {
  font-size: ($baseFontSize/1.1);
  line-height: ($baseLineHeight/1.2);
}



