/* Lecture screenshots: one consistent landscape iPad frame. */
#lecture .uni-demo-shell { min-width: 0; }
.lecture-carousel { width: 100%; min-width: 0; }
.lecture-tablet {
  position: relative;
  padding: clamp(10px, 1.25vw, 17px);
  border: 2px solid #42454a;
  border-radius: clamp(20px, 2.5vw, 34px);
  background: #08090b;
  box-shadow: 0 2px 0 #6b6e73 inset, 0 -2px 0 #181a1e inset,
    0 24px 42px -22px rgba(15, 25, 43, .45), 0 3px 7px rgba(15, 25, 43, .18);
}
.lecture-tablet::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #26364b, #10141b 65%);
  box-shadow: 0 0 0 1px #1c1e23;
  transform: translateX(-50%);
}
.lecture-carousel__track {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: clamp(10px, 1.3vw, 18px);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  background: #e7eef5;
}
.lecture-carousel__track::-webkit-scrollbar { display: none; }
.lecture-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
#lecture .lecture-carousel__slide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}
.lecture-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  color: #3c5070;
}
.lecture-carousel__caption { margin: 0; font-size: 13px; font-weight: 600; }
.lecture-carousel__controls { display: flex; align-items: center; gap: 8px; }
.lecture-carousel__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(26, 46, 69, .2);
  border-radius: 50%;
  background: transparent;
  color: #1a2e45;
  cursor: pointer;
  transition: background .15s ease;
}
.lecture-carousel__arrow:hover { background: rgba(26, 46, 69, .08); }
.lecture-carousel__arrow:disabled { opacity: .3; cursor: default; }
.lecture-carousel__arrow svg { width: 17px; height: 17px; }
.lecture-carousel__dots { display: flex; align-items: center; gap: 0; }
.lecture-carousel__dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.lecture-carousel__dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(26, 46, 69, .25);
}
.lecture-carousel__dot[aria-pressed="true"]::before { background: #7c5cff; }
.lecture-carousel__arrow:focus-visible,
.lecture-carousel__dot:focus-visible,
.lecture-carousel__track:focus-visible { outline: 3px solid #7c5cff; outline-offset: 4px; }
@media (max-width: 1060px) {
  .lecture-carousel { max-width: 760px; justify-self: center; }
}
@media (max-width: 720px) {
  .lecture-carousel__nav { margin-top: 16px; gap: 8px; }
  .lecture-carousel__caption { font-size: 12px; }
  .lecture-carousel__controls { gap: 0; }
  .lecture-tablet { padding: 10px; }
}
