.topics-and-classes {
  padding: 60px 0;
}

.tac__inner {
  width: 90%;
  margin: 0 auto;
}

.tac__title {
  font-size: 40px;
  font-weight: 900;
  margin: 0 !important;
  color: #000;
}

.tac__copy {
  font-size: 20px;
  line-height: 28px;
  margin: 0;
}

/* KEEP TABS IN ONE ROW */
.tac__tabs {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  background: #efeaf6;
  border-radius: 18px;
  padding: 14px;
  margin-top: 40px;
  align-items: stretch;
}

.tac__tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 14px 8px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  gap: 8px;
  transition: background 160ms ease, box-shadow 160ms ease;
  min-width: 0;
  width: 100%;
}

.tac__tab:hover {
  background: rgba(127, 17, 224, 0.1);
}

.tac__tab.is-active {
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.tac__tab-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}

.tac__tab-label {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
  color: #000;
  text-transform: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.tac__hint {
  margin: 12px 0 22px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}

/* Speaker + classes wrapper */
.tac__speaker {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
  background: #fff;
  position: relative;
  z-index: 999;
  bottom: -50px;
  left: 20px;
  padding-right: 20px;
}

.tac__speaker-photo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #52287e;
  background: #fff;
  object-position: top;
}

.tac__speaker-name {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: #000;
}

.tac__speaker-creds {
  margin: 0;
  font-weight: 900;
  color: #000;
}

.tac__speaker-link {
  font-weight: 900;
  color: #52287e;
  text-decoration: none;
}

.tac__speaker-link:hover {
  color: #52287e;
}

.schedule-description {
  margin: 0;
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100%;
}

.tac__class-list {
  border: 2px solid #52287e;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  padding-top: 50px;
}

.tac__class {
  padding: 18px 20px;
  background: #fff;
}

.tac__class.is-alt {
  background: #f1edf8;
}

.tac__class-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: #52287e;
}

.tac__class-copy {
  font-size: 20px;
  line-height: 32px;
  color: #000;
}

.tac__placeholder {
  padding: 14px 16px;
  border: 1px dashed #bbb;
  border-radius: 12px;
  opacity: 0.8;
}

.tac__speaker-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}


.tac__speaker-link--video {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
  text-transform: none;
	color: #52287E;
  font-weight: 900;
}

.tac__speaker-link--video:hover, .tac__speaker-link--video:focus {
  background: none;
  color: #52287E;
}

.tac__speaker-video-icon img {
	width: 18px;
	height: 18px;
	display: block;
}

.tac-video-lightbox:not(.is-open) {
  display: none !important;
}

.tac-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  /* Prevents a visual "low" bias */
  padding: 0;
  transform: none !important;
}

.tac-video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.tac-video-lightbox__dialog {
  position: relative;
  z-index: 2;

  width: min(1000px, 90vw);
  max-width: 1000px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  /* Remove any margin pushing it down */
  margin: 0;

  /* Make sure it never exceeds screen */
  max-height: 90vh;

  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.tac-video-lightbox__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  border: 0;
  background: #52287E;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0;
}

.tac-video-lightbox__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.tac-video-lightbox__frame-wrap iframe,
.tac-video-lightbox__frame-wrap video,
.tac-video-lightbox__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

html.tac-video-lightbox-open,
body.tac-video-lightbox-open {
  overflow: hidden;
}

/* tighten progressively but KEEP one row */
@media (max-width: 1500px) {
  .tac__tabs {
    gap: 4px;
    padding: 12px;
  }

  .tac__tab {
    padding: 12px 6px;
  }

  .tac__tab-icon {
    width: 48px;
    height: 48px;
  }

  .tac__tab-label {
    font-size: 13px;
  }
}

@media (max-width: 1280px) {
  .tac__tab-icon {
    width: 42px;
    height: 42px;
  }

  .tac__tab-label {
    font-size: 12px;
    line-height: 1.1;
  }
}

/* only stack on actual mobile */
@media (max-width: 768px) {
  .topics-and-classes {
    padding-top: 40px;
  }

  .tac__title {
    font-size: 22px !important;
    margin-bottom: 15px !important;
  }

  .tac__tabs {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .tac__tab {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 14px;
    gap: 12px;
  }

  .tac__tab-icon {
    width: 40px;
    height: 40px;
  }

  .tac__tab-label {
    font-size: 15px;
    text-align: left;
  }

  .tac__speaker {
    align-items: flex-start;
  }

  .tac__copy {
    font-size: 16px;
  }

  .tac__hint {
    font-size: 14px;
  }

  .tac__speaker-name {
    font-size: 18px;
  }

  .tac__speaker-creds {
    font-size: 15px;
    max-width: 200px;
  }

  .tac__speaker-link {
    font-size: 14px;
  }

  .tac__class-title {
    font-size: 15px;
  }

  .tac__class-copy {
    font-size: 16px;
    line-height: 1.6;
  }

  .tac__speaker-photo {
    width: 60px;
    height: 60px;
  }
}