.tvk-cf {
  --tvk-cf-background: #faf9f7;
  --tvk-cf-text: #241c1a;
  --tvk-cf-accent: #c52126;
  --tvk-cf-white: #fff;
  /*padding: 76px 24px 88px;*/
  padding: 0 16px;
  color: var(--tvk-cf-text);
  /* background: var(--tvk-cf-background); */
}

.tvk-cf,
.tvk-cf * {
  box-sizing: border-box;
}

.tvk-cf__inner {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.tvk-cf__heading {
  margin: 0 0 34px;
  color: inherit;
  font-family: "Prata", serif;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tvk-cf__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tvk-cf-card {
  min-width: 0;
}

.tvk-cf-card__link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  color: var(--tvk-cf-text);
  background: #ddd6d2;
  font: inherit;
  text-align: inherit;
  text-decoration: none;
  isolation: isolate;
}

button.tvk-cf-card__link {
  cursor: pointer;
}

.tvk-cf-card__image {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 320ms ease;
}

.tvk-cf-card__caption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 11px 16px 10px;
  color: var(--tvk-cf-text);
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
  backdrop-filter: blur(2px);
  transition: color 220ms ease, background-color 220ms ease;
}

.tvk-cf-card__title {
  margin: 0;
  color: inherit;
  font-family: "Prata", serif;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 400;
  line-height: 1.22;
}

.tvk-cf-card__type {
  margin: 5px 0 0;
  color: inherit;
  font-family: var(--e-global-typography-367ba92-font-family), sans-serif;
  font-size: 13px;
  line-height: 1.25;
}

.tvk-cf-card:hover .tvk-cf-card__caption,
.tvk-cf-card:focus-within .tvk-cf-card__caption {
  color: var(--tvk-cf-white);
  background: rgba(197, 33, 38, 0.92);
}

.tvk-cf-card:hover .tvk-cf-card__image,
.tvk-cf-card:focus-within .tvk-cf-card__image {
  transform: scale(1.025);
}

.tvk-cf-card__link:focus-visible {
  outline: 3px solid var(--tvk-cf-accent);
  outline-offset: 4px;
}

body.tvk-cf-modal-open {
  overflow: hidden;
}

.tvk-cf-modal[hidden] {
  display: none;
}

.tvk-cf-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 72px 28px 28px;
}

.tvk-cf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 13, 12, 0.88);
  cursor: pointer;
}

.tvk-cf-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  border-radius: 10px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.tvk-cf-modal__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tvk-cf-modal__close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  color: var(--tvk-cf-white);
  background: rgba(0, 0, 0, 0.28);
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.tvk-cf-modal__close:hover,
.tvk-cf-modal__close:focus-visible {
  border-color: var(--tvk-cf-accent);
  color: var(--tvk-cf-white);
  background: var(--tvk-cf-accent);
  outline: none;
}

.tvk-cf-modal__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
}

.tvk-cf-modal__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 980px) {
  .tvk-cf__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tvk-cf-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 20px) / 2);
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .tvk-cf {
    /*padding: 40px 20px 48px;*/
  }

  .tvk-cf__heading {
    margin-bottom: 28px;
    text-align: center;
    font-size: 32px;
  }

  .tvk-cf__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tvk-cf-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .tvk-cf-card__caption {
    min-height: 70px;
    padding-inline: 12px;
  }

  .tvk-cf-card__title {
    font-size: 18px;
  }

  .tvk-cf-modal {
    padding: 62px 14px 20px;
  }

  .tvk-cf-modal__dialog {
    border-radius: 7px;
  }

  .tvk-cf-modal__close {
    bottom: calc(100% + 10px);
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tvk-cf-card__image,
  .tvk-cf-card__caption,
  .tvk-cf-modal__close {
    transition: none;
  }
}
