/**
 *
 * https://medium.com/@jamesfuthey/simulating-the-creation-of-website-thumbnail-screenshots-using-iframes-7145269891db
 *
 */
/* Le container doit être un peu plus grand pour affecter un box-shadow */
.site-thumbnail-container {
  position: relative;
  display: block;
  overflow: hidden;
  block-size: calc(900px * 0.25);
  inline-size: calc(1440px * 0.246);
  margin-inline: auto;
}

/** Ajout d'un span pour le lien et pour masquer les liens de la page importer si le lien général n'est pas actif */
.site-thumbnail-container a,
.site-thumbnail__wrapper-overlay {
  display: inline-block;
  position: absolute;
  inset: 0;
  z-index: 9;
}

.thumbnail-caption {
  text-align: center;
  font-size: 1em;
  line-height: 1.5;
}

/* This container helps the thumbnail behave as if it were an unscaled IMG element */
.thumbnail-container {
  display: inline-block;
  overflow: hidden;
  position: relative;
  background: #f9f9f9;
}

/* Image Icon for the Background */
.thumbnail-container::before {
  display: block;
  position: absolute;
  inset-block-start: calc(50% - 18px);
  inset-inline-start: calc(50% - 16px);
  opacity: 0.2;
  zoom: 2;
  -ms-zoom: 2;
  -o-transform: scale(2);
  -moz-transform: scale(2);
  -webkit-transform: scale(2);
  transform: scale(2);
  content: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMyIDMyIiBoZWlnaHQ9IjMycHgiIGlkPSJMYXllcl8xIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAzMiAzMiIgd2lkdGg9IjMycHgiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbm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0wLjg5Ny0yLTJTMTguODk2LDgsMjAsOHoiIGZpbGw9IiMzMzMzMzMiLz48L2c+PC9zdmc+");
}

/* This is a masking container for the zoomed iframe element */
.site-thumbnail {
  display: block;
  zoom: 1;
  -moz-transform: scale(0.25);
  -moz-transform-origin: 0 0;
  -o-transform: scale(0.25);
  -o-transform-origin: 0 0;
  -webkit-transform: scale(0.25);
  -webkit-transform-origin: 0 0;
  transform: scale(0.25);
  transform-origin: 0 0;
}

/* This is our screen sizing */
.site-thumbnail,
.site-thumbnail iframe {
  block-size: 900px;
  inline-size: 1440px;
}

/* This facilitates the fade-in transition instead of flicker. It also helps us maintain the illusion that this is an image, since some webpages will have a preloading animation or wait for some images to download */
.site-thumbnail iframe {
  opacity: 0;
  transition: all 300ms ease-in-out;
}