/* Loaded only by the engineering video list template. */
.page-banner .swiper-container,
.page-banner .banner-slide,
.page-banner .banner-slide > a > div { height: 180px !important; background-size: cover !important; }
.video-library { padding-top: 36px; padding-bottom: 40px; }
.video-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.video-library-heading h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.4; font-weight: 700; color: #24352d; }
.video-library-heading p { margin: 0; color: #758078; line-height: 1.7; }
.video-library-hint { color: #7b857f; font-size: 13px; white-space: nowrap; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.video-card { min-width: 0; border: 1px solid #e4eae6; border-radius: 8px; background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.video-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #173e2514; }
.video-card-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.video-card-button:focus-visible { outline: 3px solid var(--first_color, #009944); outline-offset: -3px; }
.video-card-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #173e30; }
.video-card-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, #0006); z-index: 2; }
.video-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .25s; }
.video-card-cover img[hidden] { display: none; }
.video-card:hover img { transform: scale(1.035); }
.video-cover-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 46px; background: linear-gradient(135deg, #234b3b, #0b2b22); color: #fff8; font-size: 22px; letter-spacing: 4px; }
.video-cover-fallback > span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: 2px; color: #ffffff70; }
.video-play-icon { position: absolute; left: 50%; top: 54%; width: 52px; height: 52px; transform: translate(-50%, -50%); border: 1px solid #ffffffa6; border-radius: 50%; background: #0005; z-index: 3; transition: background .2s; }
.video-play-icon::after { content: ''; position: absolute; top: 16px; left: 21px; border-left: 13px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.video-card-button:hover .video-play-icon { background: var(--first_color, #009944); }
.video-card-action { position: absolute; bottom: 12px; right: 14px; color: #fff; font-size: 12px; z-index: 3; }
.video-card-info { display: block; padding: 17px 18px; }
.video-card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 3.2em; overflow: hidden; font-size: 17px; font-weight: 600; line-height: 1.6; color: #293d31; overflow-wrap: anywhere; }
.video-card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: #8b958e; font-size: 12px; line-height: 1.6; }
.video-card-button:disabled { cursor: default; }
.video-card-button:disabled .video-play-icon { display: none; }
.video-modal { box-sizing: border-box; position: fixed; inset: 0; width: min(1000px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 0; border-radius: 10px; background: #101713; color: #fff; overflow: auto; box-shadow: 0 20px 80px #0008; }
.video-modal:not([open]) { display: none; }
.video-modal::backdrop { background: #000c; }
.video-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.video-modal-header h2 { margin: 0; color: #fff; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.video-modal-close { flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 4px; background: #ffffff14; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.video-modal-close:hover { background: #ffffff30; }
.video-modal-close:focus-visible { outline: 2px solid #fff; }
.video-modal-player { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 70dvh; background: #000; }
.video-modal-player video,
.video-modal-player iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: 70dvh; border: 0; object-fit: contain; }
.video-modal-note { margin: 0; padding: 10px 20px; font-size: 12px; color: #a6b4ac; }
.video-modal-error { padding: 12px 20px; margin: 0; color: #ffd6b2; }
.video-modal-error[hidden] { display: none; }
.video-modal-error a { color: #fff; text-decoration: underline; }
body.video-modal-open { overflow: hidden; }
@media (max-width: 991px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 575px) {
  .online { display: none; }
  .page-banner .swiper-container,
  .page-banner .banner-slide,
  .page-banner .banner-slide > a > div { height: 90px !important; }
  .video-library { padding-top: 24px; padding-bottom: 24px; }
  .video-library-heading { display: block; margin-bottom: 20px; }
  .video-library-heading h1 { font-size: 24px; }
  .video-library-hint { display: none; }
  .video-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .video-card-info { padding: 15px 16px; }
  .video-modal { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 6px; }
  .video-modal-header { padding: 10px 12px; }
  .video-modal-header h2 { font-size: 15px; }
  .video-modal-note { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-card, .video-card-cover img { transition: none; transform: none; }
}
