/* Original WorkWithAI trainer carousel, adapted from logos/app/globals.css. */
.trainer-photo-carousel {
  --trainer-a: #5b5fc7; --trainer-b: #28b8f8;
  --primary: #2e2a35; --secondary: #6b6472;
  --card-strong: rgba(255,255,255,.96);
  --border-light: rgba(255,255,255,.66); --border-muted: rgba(95,89,115,.12);
  align-self: center; position: relative; overflow: hidden; border-radius: 27px;
  border: 1px solid var(--border-light);
  background: linear-gradient(145deg,rgba(211,228,255,.9),rgba(232,224,255,.78),rgba(248,200,184,.72));
  box-shadow: 0 22px 46px rgba(34,37,67,.18); outline-offset: 4px;
}
.trainer-visual:has(.trainer-photo-carousel) { padding-bottom: 0; }
.trainer-photo-viewport { position: relative; aspect-ratio: 1448 / 1086; overflow: hidden; background: color-mix(in srgb,var(--trainer-a) 8%,var(--card-strong)); touch-action: pan-y pinch-zoom; }
.trainer-slide { position: absolute; inset: 0; margin: 0; }
.trainer-slide[hidden] { display: none; }
.trainer-photo-carousel .trainer-carousel-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.trainer-photo-label { position: absolute; inset: auto 16px 16px; display: grid; gap: 2px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; color: #fff; background: rgba(17,25,55,.72); box-shadow: 0 12px 28px rgba(17,25,55,.2); backdrop-filter: blur(14px); pointer-events: none; }
.trainer-photo-label b { font-size: 14px; }
.trainer-photo-label span { color: rgba(255,255,255,.78); font-size: 11px; }
.trainer-photo-controls { min-height: 60px; display: grid; grid-template-columns: 44px auto 1fr 44px; gap: 10px; align-items: center; padding: 8px 10px; background: color-mix(in srgb,var(--card-strong) 94%,transparent); }
.trainer-photo-controls[hidden] { display: none; }
.trainer-photo-arrow,.trainer-photo-dots button { border: 1px solid var(--border-muted); color: var(--primary); background: var(--glass); cursor: pointer; }
.trainer-photo-arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font: inherit; font-size: 20px; font-weight: 900; }
.trainer-photo-arrow:hover { color: #fff; border-color: transparent; background: linear-gradient(145deg,var(--trainer-a),var(--trainer-b)); }
.trainer-photo-dots { display: flex; gap: 7px; align-items: center; }
.trainer-photo-dots button { width: 28px; height: 28px; min-width: 28px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; }
.trainer-photo-dots button::before { content: ""; width: 12px; height: 12px; border: 1px solid var(--border-muted); border-radius: 50%; background: var(--glass); }
.trainer-photo-dots button.is-active::before { border-color: transparent; background: linear-gradient(145deg,var(--trainer-a),var(--trainer-b)); box-shadow: 0 0 0 4px color-mix(in srgb,var(--trainer-a) 14%,transparent); }
.trainer-photo-counter { justify-self: end; color: var(--secondary); font-size: 11px; font-weight: 800; white-space: nowrap; }
.trainer-photo-arrow:focus-visible,.trainer-photo-dots button:focus-visible { outline: 3px solid color-mix(in srgb,var(--trainer-b) 72%,#fff); outline-offset: 3px; }
.venue-placeholder.has-photo { padding: 0; min-height: 0; aspect-ratio: 3 / 2; }
.venue-placeholder.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-controls { display: grid; grid-template-columns: 42px auto 1fr 42px; gap: 8px; }
.carousel-counter { justify-self: end; font-size: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; }
@media (max-width: 980px) { .trainer-photo-carousel { width: min(620px,100%); margin-inline: auto; } }
@media (max-width: 600px) {
  .trainer-photo-carousel { border-radius: 20px; }
  .trainer-photo-label { inset: auto 10px 10px; padding: 10px 12px; }
  .trainer-photo-label span { font-size: 10px; }
  .trainer-photo-controls { gap: 7px; padding-inline: 8px; }
  .trainer-photo-counter,.carousel-counter { font-size: 10px; }
  .carousel-dot { width: 28px; padding: 6px; }
}
@media (max-width: 370px) {
  .trainer-photo-controls { grid-template-columns: 44px 1fr 44px; }
  .trainer-photo-dots { justify-content: center; }
  .trainer-photo-counter { grid-row: 2; grid-column: 1 / -1; justify-self: center; padding-bottom: 5px; }
  .trainer-photo-controls > button:last-child { grid-column: 3; grid-row: 1; }
  .carousel-controls { grid-template-columns: 42px 1fr 42px; }
  .carousel-counter { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  #off-carousel-next { grid-column: 3; grid-row: 1; }
}
@media print { .trainer-photo-controls,.carousel-controls { display: none; } }
