/*
 * The ArtSee Talk pages (components/TalkPage.tsx + TalkEpisodes.tsx), 2026-11-05. The Elementor pages' loop grids
 * showed no episodes; here the sections sit in one column (the intro's logo beside its text), and the episodes are
 * video cards that play in a window with their description. The hero is the program pages' (programs.css).
 */

.acm-tk {
  --accent: var(--acm-purple);
  --accent-soft: color-mix(in srgb, var(--accent) 6%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 18%, #fff);
  --tk-soft: var(--accent-soft);
}

.acm-tk-sec + .acm-tk-sec {
  margin-top: 56px;
}
.acm-tk-sec--side {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: 48px;
}
.acm-tk-sec__aside {
  margin: 0;
}
.acm-tk-sec__aside img {
  display: block;
  width: 100%;
  height: auto;
}
.acm-tk-sec__text {
  font-family: var(--font-body);
  font-size: 16.2px;
  line-height: 1.55;
  color: var(--acm-text);
}
.acm-tk-sec__text p {
  margin: 0 0 1em;
}
.acm-tk-sec__text p:last-child {
  margin-bottom: 0;
}
.acm-tk-sec__text a {
  color: var(--accent);
  overflow-wrap: anywhere;
}
.acm-tk-sec__wide {
  margin: 28px 0 0;
}
.acm-tk-sec__wide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card-hover);
}

/* episodes */
.acm-tk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.acm-tk .acm-tk-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.acm-tk-card__img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--acm-ink);
  box-shadow: var(--sh-card);
}
.acm-tk-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* YouTube's still is 4:3 with bars; the crop drops them */
  transition: transform 0.4s ease;
}
.acm-tk-card:hover .acm-tk-card__img img {
  transform: scale(1.05);
}
.acm-tk-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s, background-color 0.25s, color 0.25s;
}
.acm-tk-card:hover .acm-tk-card__play {
  background: var(--accent);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}
.acm-tk-card__num {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--accent);
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
}
.acm-tk-card__title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--acm-ink);
}
.acm-tk .acm-tk-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--r-md);
}

.acm-tk-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.acm-tk .acm-tk-more__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px var(--accent);
}

/* the video window */
.acm-tk-modal__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  width: min(1280px, 100%);
}
.acm-tk-modal__video {
  position: relative;
  align-self: center;
  aspect-ratio: 16 / 9;
  background: #000;
}
.acm-tk-modal__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.acm-tk-modal__side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 22px 18px;
  overflow: auto;
}
.acm-tk-modal__title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
}
.acm-tk-modal__text {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--acm-text);
  overflow-wrap: anywhere;
}
.acm-tk-modal__text p {
  margin: 0 0 0.8em;
}
.acm-tk-modal__nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--accent-line);
}
.acm-tk-modal .acm-tk-modal__close {
  position: absolute;
}

@media (max-width: 1024px) {
  .acm-tk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .acm-tk-modal__box {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    overflow: auto;
  }
  .acm-tk-modal__side {
    overflow: visible;
  }
}

@media (max-width: 767px) {
  .acm-tk-sec + .acm-tk-sec {
    margin-top: 44px;
  }
  .acm-tk-sec--side {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .acm-tk-sec__aside {
    max-width: 260px;
    margin: 0 auto;
  }
  .acm-tk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .acm-tk-card__title {
    font-size: 14px;
  }
  .acm-tk-card__play {
    width: 40px;
    height: 40px;
  }
  .acm-tk-modal {
    padding: 64px 10px 10px;
  }
  .acm-tk-modal__box {
    max-height: calc(100vh - 74px);
  }
}
