$small-size: rem(40px);
$medium-size: rem(60px);
$large-size: rem(80px);
$stacking-order: (
  image: 10,
  shadow: 20,
);

.Biblio-Thumbnail {
  position: relative;
  display: block;
  overflow: hidden;
  background: color('white');
  min-width: $small-size;
  max-width: 100%;
  border-radius: border-radius();

  &::after {
    content: '';
    position: relative;
    z-index: z-index(shadow, $stacking-order);
    display: block;
    padding-bottom: 100%;
    box-shadow: inset 0 0 0 1px rgba(33, 43, 54, 0.1);
    border-radius: border-radius();
  }
}

.Biblio-Thumbnail--sizeSmall {
  width: $small-size;
}

.Biblio-Thumbnail--sizeMedium {
  width: $medium-size;
}

.Biblio-Thumbnail--sizeLarge {
  width: $large-size;
}

.Biblio-Thumbnail__Image {
  position: absolute;
  z-index: z-index(image, $stacking-order);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
}
