/* shortchode authorbox */

.author-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  --wavetop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 C8 6 17 14 25 10 S42 6 50 10 S67 14 75 10 S92 6 100 10' stroke='%23fff' stroke-width='3' fill='none' stroke-linecap='butt' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-image: var(--wavetop);
  background-repeat: repeat-x;
  background-position: top center;
  background-size: 120px 8px;
  margin-top: 24px;
  inline-size: fit-content;
  margin-inline: auto;
  padding-top: 24px;
}

.author-box__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-box__stamp {
  padding: 5px;
  height: 75px;
  width: 62px;
  background: url(/wp-content/plugins/shortcodes-guides-villes/img/timbre.svg)
    no-repeat;
  filter: drop-shadow(0.3mm 0.4mm 0.2mm #a99b95);
}

.author-box__stamp::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  mix-blend-mode: multiply;
  background-image: url(/wp-content/plugins/shortcodes-guides-villes/img/tampon-poste.png);
  background-repeat: no-repeat;
  background-size: 120%;
  background-position: -360% -883%;
}

.author-box__stamp-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.author-box__stamp-content::before {
  display: inline-block;
  position: absolute;
  content: "2,10 €";
  color: white;
  font-size: 7px;
  padding: 1px;
  top: 0;
  left: 0;
  filter: drop-shadow(0px 0px 2px grey);
}
.author-box__stamp-content::after {
  position: absolute;
  content: "LA POSTE 2025";
  color: white;
  font-size: 6px;
  writing-mode: vertical-rl;
  top: 2px;
  right: 1px;
  filter: drop-shadow(0px 0px 2px grey);
}
.author-box__stamp-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.author-box__name,
.author-box__role,
.author-box__date,
.author-box__liens {
  margin: 0;
  line-height: 1.2;
}

.author-box__name {
  font-size: 11px;
}
.author-box__date {
  font-size: 11px;
  color: #777;
}
.author-box__role {
  font-size: 11px;
}
.author-box__liens {
  font-size: 11px;
  color: #d02c00;
}
