/* Native eight-widget lesson card support: availability and uniform alignment.
   No content/structure replacement. Existing per-photo focal points are kept. */
.elementor-169 #yp-lesson-grid > [id^="yp-term-"] > .elementor-widget-image:first-child{
  height:200px!important;flex-shrink:0;overflow:hidden;border-radius:18px;
}
.elementor-169 #yp-lesson-grid > [id^="yp-term-"] > .elementor-widget-image:first-child img:not([src*="lesson-chihuahua-studio"]){
  display:block;width:100%;height:200px!important;object-fit:cover;
}
.elementor-169 #yp-lesson-grid > [id^="yp-term-"] > :nth-child(4){min-height:50px}
.elementor-169 #yp-lesson-grid > [id^="yp-term-"] > :nth-child(4) h3{line-height:1.25}
.elementor-169 #yp-lesson-grid > [id^="yp-term-"] > :nth-child(5){
  min-height:42px;display:flex;align-items:center;
}
.elementor-169 #yp-lesson-grid > [id^="yp-term-"] > :nth-child(6){min-height:38px}
.elementor-169 #yp-lesson-grid > [id^="yp-term-"] > :nth-child(7){margin-top:auto}
.elementor-169 #yp-lesson-grid > [id^="yp-term-"] > :nth-child(8){min-height:37px}
@media(max-width:360px){
  /* Long Czech dates need two lines on the narrowest phones. */
  .elementor-169 #yp-lesson-grid > [id^="yp-term-"] > :nth-child(3) p{min-height:82px!important}
  .elementor-169 #yp-lesson-grid > [id^="yp-term-"] > :nth-child(4){min-height:52px}
}
:is(.elementor-169,.elementor-2024) #yp-lesson-grid .yp-availability{
  display:inline-block;padding:5px 9px;margin:3px 0;
  border:1px solid #d5bbd8;border-radius:10px;background:#f7eff8;
  color:#503768;font-size:14px;font-weight:700;line-height:1.35;
}
:is(.elementor-169,.elementor-2024) #yp-lesson-grid .yp-availability-full{
  background:#f1edf2;color:#554b59;
}
