/* additions to Kirby's style.css (the migration) */

/* YouTube "click to play" (src/lib/site.ts pageText): the preview image until a click */
.yt {
  position: relative;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  background: #000 center / cover no-repeat;
  cursor: pointer;
}
.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border: 0;
  border-radius: 12px;
  background: #e1251b;
  cursor: pointer;
}
.yt-play::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 27px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

/* the inline icons (src/lib/templates.ts ICONS): Font Awesome 5's own sizing */
.svg-inline--fa {
  display: inline-block;
  height: 1em;
  overflow: visible;
  font-size: inherit;
  vertical-align: -0.125em;
}
.fa-w-8 { width: 0.5em; }
.fa-w-14 { width: 0.875em; }
.fa-w-16 { width: 1em; }
.fa-w-18 { width: 1.125em; }

/* phones: justified text leaves wide gaps in a narrow column, and long URLs ran off the screen */
@media (max-width: 40em) {
  .content p {
    text-align: left;
  }
  .content {
    overflow-wrap: anywhere;
  }
}
