.ycc-flip-card {
  --ycc-flip-card-height: 320px;
  position: relative;
  width: 100%;
}

.ycc-flip-card:hover .ycc-flip-card__meta {
  color: var(--alt-color);
}

.ycc-flip-card__link,
.ycc-flip-card__content {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ycc-flip-card__media {
  position: relative;
  width: 100%;
  height: var(--ycc-flip-card-height);
  min-height: 140px;
  perspective: 1200px;
}

.ycc-flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.ycc-flip-card:hover .ycc-flip-card__inner,
.ycc-flip-card:focus-within .ycc-flip-card__inner,
.ycc-flip-card__link:hover .ycc-flip-card__inner,
.ycc-flip-card__link:focus .ycc-flip-card__inner {
  transform: rotateY(180deg);
}

.ycc-flip-card__face {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  overflow: hidden;
}

.ycc-flip-card__face--back {
  transform: rotateY(180deg);
}

.ycc-flip-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ycc-flip-card__image--circle {
  /* width: min(85%, 320px); */
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
}

.ycc-flip-card__html {
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1 / 1;
  text-align: center;
  display: flex;
  justify-content: center;
}

.ycc-flip-card__html div {
  width: 100%;
}

.ycc-flip-card__meta {
  margin-top: 20px;
  padding: 12px 8px 0;
  text-align: center;
}

body#body .ycc-flip-card__title {
  margin-bottom: 10px;
}

.is-circle {
  background-position: center;
  border-radius: 50%;
  width: 210px;
  height: 210px;
  background-size: cover;
}
.ycc-flip-card__html-content {
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  height: var(--ycc-flip-card-height);
  display: flex;
  /* background-color: var(--wp--preset--color--grey); */
  color: var(--alt-color);
}

.ycc-flip-card__face--back {
  & .ycc-flip-card__html-content {
    background-color: var(--wp--preset--color--grey);
  }
}

body #body .ycc-flip-card__subtitle {
  margin-top: 4px;
}

.ycc-flip-card__placeholder {
  text-align: center;
}

.ycc-flip-card__link:focus-visible {
  outline: 2px solid #b8860b;
  outline-offset: 3px;
}

@media (max-width: 782px) {
  .ycc-flip-card__media {
    min-height: 220px;
  }
}
