﻿/* === Video karta === */


.sp-videoCard{
  font-family: inherit;
  color: #111;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 10px 22px rgba(0,0,0,0.06);
  overflow: hidden;
  max-width: 100%;
  margin: 16px 40px;
}


/* Poměr 16:9 */
.sp-videoCard__media{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}


/* Iframe vyplní celý media box */
.sp-videoCard__iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* Textová část */
.sp-videoCard__body{
  padding: 18px 28px 20px;
}


/* Nadpis */
.sp-videoCard__heading{
  margin: 0;
  font-family: "Grenze", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
}


/* Odkaz v nadpisu */
.sp-videoCard__heading a{
  font-family: "Grenze", serif;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: normal;
}


.sp-videoCard__heading a:hover{
  text-decoration-thickness: 3px;
}


/* Text – defaultně jen 4 řádky */
.sp-videoCard__text{
  margin: 10px 0 0;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(17,17,17,0.78);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}


/* Desktop */
.sp-videoCard:hover .sp-videoCard__text{
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}


/* Mobil / tablet / klávesnice */
.sp-videoCard:focus .sp-videoCard__text,
.sp-videoCard:focus-within .sp-videoCard__text,
.sp-videoCard:active .sp-videoCard__text{
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}


/* Viditelný focus */
.sp-videoCard:focus{
  outline: 2px solid rgba(0,0,0,0.2);
  outline-offset: 2px;
}


/* Mobil */
@media (max-width: 860px){
  .sp-videoCard{
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
  }


  .sp-videoCard__body{
    padding: 14px 16px 16px;
  }
}