/* =========================================================
   editor.css - Solutio house content styles

   Rotator link (Solutio Styles #427, "Add a Rotator link to
   Clarity Swipers"). Loaded in the article editor and on the
   front end. The .linkable-swiper block at the bottom keeps a
   slide's overlay link invisible, so the two uses do not fight.
   ========================================================= */

/* --- the rotator link as authors see it, and on the article page --- */
a.rotator-link {
  background-color: rgba(241, 241, 241, 0.75);
  background-size: cover;
  background-repeat: no-repeat;
  display: grid;
  justify-content: center;
  align-items: center;
  aspect-ratio: 16 / 9;
  width: 50%;
  max-width: 28rem;
  border: 2px solid rgb(0, 0, 0);
  border-radius: 1rem;
  backdrop-filter: blur(2px);
  font-size: 1.75rem;
  margin: 2rem auto 1rem auto;
  text-align: center;
}

/* --- "Rotator Link" marker, so authors can see what they made --- */
.mce-content-body .rotator-link::after {
  content: 'Rotator Link';
  position: absolute;
  top: 10%;
  left: 5%;
  font-size: clamp(2rem, 2vw, 4rem);
  color: red;
}

/* --- inside a linkable swiper the anchor is the invisible full-slide
       click target, so none of the card styling above may apply --- */
.linkable-swiper a.rotator-link {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  font-size: inherit;
  text-align: left;
  color: transparent !important;
}

/* --- keep the "Rotator Link" marker inside the card in TinyMCE --- */
.mce-content-body a.rotator-link {
  position: relative;
}
