/* Replacements for behaviour the WordPress theme did in JavaScript. */

/* Mobile menu: the snapshot dropped the "open" state rules of the Bootstrap collapse. */
@media (max-width: 768px) {
  #main-navigation.collapse { display: none; }
  #main-navigation.collapse.in { display: block; }
  .navbar-toggle .icon-bar { transition: transform .2s, opacity .2s; }
  .navbar-toggle[aria-expanded="true"] .icon-bar:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
  .navbar-toggle[aria-expanded="true"] .icon-bar:nth-of-type(2) { opacity: 0; }
  .navbar-toggle[aria-expanded="true"] .icon-bar:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* Bootstrap 4 themes: open state of the collapsed menu (desktop layouts override it with !important). */
.navbar-collapse.collapse.show { display: block; }

/* Front theme mega menu: sub menus opened on hover by JavaScript. */
@media (min-width: 768px) {
  .hs-has-sub-menu:hover > .hs-sub-menu,
  .hs-has-sub-menu:focus-within > .hs-sub-menu { display: block; opacity: 1; visibility: visible; }
}
@media (max-width: 767.98px) {
  .u-header .navbar-collapse.show { max-height: calc(100vh - 70px); overflow-y: auto; }
  .navbar-collapse.show .hs-sub-menu { display: block !important; opacity: 1 !important; visibility: visible !important; position: static !important; box-shadow: none; }
}

/* Videos page: grid of click-to-play cards instead of the Elementor playlist widget. */
.bcc-videos-title { text-align: center; margin: 0 0 32px; }
.bcc-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}
.bcc-video { margin: 0; }
.bcc-video-play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45);
}
.bcc-video-play img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.bcc-video-play:hover img, .bcc-video-play:focus-visible img { opacity: .8; }
.bcc-video-play::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 64px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: rgba(233, 30, 99, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat;
}
.bcc-video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .75);
  color: #fff;
  font-size: 12px;
}
.bcc-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }
.bcc-video figcaption { margin-top: 10px; font-weight: 600; line-height: 1.4; }
.bcc-video figcaption a { color: inherit; }

/* Contact page: replaces the form that posted to WordPress. */
.bcc-contact-box { padding: 10px 0; }
.bcc-contact-box h3 { margin-top: 0; }
.bcc-contact-box .btn { text-transform: none; }

.bcc-404 { padding: 160px 15px 120px; text-align: center; }
