.ps-show-card--divine-intimacy {
  --ps-show-card-bg: #f6f2ec;
  --ps-show-card-fg: #1c2b33;
}

.ps-show-card--devil-details {
  --ps-show-card-bg: #efe3c8;
  --ps-show-card-fg: #1c2b33;
}

.ps-show-card--your-best-yes {
  --ps-show-card-bg: #3d3f44;
  --ps-show-card-fg: var(--ps-white);
  background-color: #3d3f44;
}

.ps-show-cards,
.ps-show-card,
.ps-show-cards a.ps-show-card__link,
.ps-show-card__picture {
  min-width: 0;
  max-width: 100%;
}

.ps-show-card__picture {
  display: block;
  margin: 0;
}

.ps-show-cards a.ps-show-card__link,
.ps-show-cards a.ps-show-card__link:hover,
.ps-show-cards a.ps-show-card__link:focus {
  text-decoration: none;
}

.ps-show-cards a.ps-show-card__link:focus-visible {
  outline: 3px solid #0e5477;
  outline-offset: 3px;
}

.ps-show-cards .ps-show-card--your-best-yes a.ps-show-card__link,
.ps-show-cards .ps-show-card--your-best-yes .ps-show-card__picture,
.ps-show-cards .ps-show-card--your-best-yes img.ps-show-card__media {
  background-color: #3d3f44;
}

.ps-show-cards .ps-show-card--your-best-yes a.ps-show-card__link,
.ps-show-cards .ps-show-card--your-best-yes .ps-show-card__body,
.ps-show-cards .ps-show-card--your-best-yes .ps-button-arrow {
  color: var(--ps-white);
}

.ps-show-card .ps-button-arrow {
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  text-decoration: none;
}

.ps-show-card__body p {
  max-width: min(32ch, 100%);
  margin-inline: auto;
  overflow-wrap: break-word;
  text-align: center;
}

.ps-show-card__body img,
img.ps-show-card__logo {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1183px) {
  div.ps-show-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ps-show-cards a.ps-show-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .ps-show-cards img.ps-show-card__media,
  .ps-show-cards picture.ps-show-card__picture img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: 80% center;
  }

  .ps-show-cards .ps-show-card--your-best-yes img.ps-show-card__media,
  .ps-show-cards .ps-show-card--your-best-yes picture.ps-show-card__picture img {
    object-position: right center;
  }

  .ps-show-cards div.ps-show-card__body {
    position: static;
    inset: auto;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 20px 16px 24px;
    background: var(--ps-show-card-bg, transparent);
    color: var(--ps-show-card-fg, inherit);
  }
}

@media (min-width: 768px) and (max-width: 1183px) {
  div.ps-show-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  div.ps-show-cards > .ps-show-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1184px) {
  div.ps-show-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
  }

  div.ps-show-cards > .ps-show-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 24px) / 2);
    justify-self: center;
  }

  .ps-show-card {
    position: relative;
  }

  .ps-show-cards a.ps-show-card__link {
    display: block;
    position: relative;
  }

  .ps-show-cards img.ps-show-card__media,
  .ps-show-cards picture.ps-show-card__picture img {
    display: block;
    width: 100%;
    height: 370px;
    min-height: 370px;
    max-height: 370px;
    object-fit: cover;
    object-position: center center;
  }

  .ps-show-cards .ps-show-card--your-best-yes img.ps-show-card__media,
  .ps-show-cards .ps-show-card--your-best-yes picture.ps-show-card__picture img {
    object-position: right center;
  }

  .ps-show-cards div.ps-show-card__body {
    position: absolute;
    top: 100px;
    left: 24px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  .ps-show-cards .ps-show-card--your-best-yes div.ps-show-card__body {
    max-width: min(210px, 32%);
    background: transparent;
    color: var(--ps-white);
  }
}
