/* Hide the automatic page post title */
h1.wp-block-post-title {
  display: none !important;
}

/* Force container layout */
.wt-grid-container {
  width: 100% !important;
  max-width: 1100px !important;
  margin: -40px auto 40px auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
}

/* Force 3-column sizing */
.wt-card {
  flex: 0 0 31.5% !important;
  width: 31.5% !important;
  margin-bottom: 30px !important;
  text-align: left !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: block !important;
}

.wt-card-inner {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #181716 !important;
  border: 4px solid #282624 !important;
  box-shadow: 8px 10px 0px 0px rgba(25, 23, 21, 0.85), 14px 18px 25px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.wt-card:hover .wt-card-inner {
  transform: translateY(-4px) !important;
}

.wt-card img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: none !important;
  pointer-events: none !important;
}

.wt-play-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.wt-play-btn {
  width: 55px !important;
  height: 55px !important;
  background: #e024c3 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0px 4px 12px rgba(224, 36, 195, 0.5) !important;
  pointer-events: none !important;
}

.wt-play-triangle {
  width: 0 !important;
  height: 0 !important;
  border-top: 8px solid transparent !important;
  border-bottom: 8px solid transparent !important;
  border-left: 14px solid #ffffff !important;
  margin-left: 3px !important;
  pointer-events: none !important;
}

/* Lightbox Modal */
#wt-lightbox-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
}

#wt-lightbox-modal.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.wt-lightbox-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(5px) !important;
}

.wt-lightbox-content {
  position: relative !important;
  width: 90% !important;
  max-width: 420px !important;
  background: #181716 !important;
  border: 4px solid #282624 !important;
  border-radius: 25px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
  z-index: 10 !important;
}

.wt-lightbox-close {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  background: #282624 !important;
  border: 2px solid #383532 !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 12 !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wt-lightbox-player-wrapper {
  position: relative !important;
  padding-top: 177.78% !important;
  height: 0 !important;
}

.wt-lightbox-player-wrapper > div,
.wt-lightbox-player-wrapper > video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .wt-card {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}

/* Allow header dropdowns to overflow past container bounds */
header, .site-header, .main-navigation, .wp-block-navigation {
  overflow: visible !important;
}
/* Force all header wrappers, navigation containers, and dropdown lists to allow overflow */
header *, .site-header *, .wp-block-navigation *, .wp-block-navigation__submenu-container, .is-layout-flex, .is-layout-flow {
  overflow: visible !important;
}

/* Ensure the submenu dropdown container floats above everything else with no clipping */
.wp-block-navigation__submenu-container {
  clip: auto !important;
  clip-path: none !important;
  max-height: none !important;
}

/* Ensure the submenu dropdown container hangs below properly with full height and overflow */
.wp-block-navigation__submenu-container {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  position: absolute !important.
  top: 100% !important;
  left: 0 !important;
  z-index: 999999 !important;
  background-color: #fff !important; /* Adjust if your dropdown background differs */
}

/* Make sure individual links inside the dropdown aren't clipped */
.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block !important;
  white-space: nowrap !important;
  overflow: visible !important;
}
/* Force the site header and navigation to have a massive stacking layer */
header, .site-header, .wp-block-template-part.site-header {
  position: relative !important;
  z-index: 99999 !important;
}

/* Ensure the dropdown menu itself is right on top */
.wp-block-navigation__submenu-container {
  z-index: 100000 !important;
}

/* Keep the media reel section underneath the header layers */
.wt-video-grid, .media-reel-section {
  position: relative !important;
  z-index: 1 !important;
}
/* Force the main content container and group blocks on the homepage to never clip dropdowns */
.home .wp-site-blocks,
.home .site-content,
.home .entry-content,
.home main {
  overflow: visible !important;
}

/* Ensure the header container itself has a high stack and visible overflow */
header, .site-header, .wp-block-template-part.site-header {
  overflow: visible !important;
  z-index: 999999 !important;
  position: relative !important;
}
/* Force the header container and all parent wrappers to break out of layout containment */
header, .site-header, .wp-block-template-part.site-header, .wp-block-group {
  contain: none !important;
  overflow: visible !important;
}

/* Force the navigation block wrapper to stop clipping absolute dropdowns */
.wp-block-navigation__responsive-container,
.wp-block-navigation__responsive-container-content {
  overflow: visible !important;
}

/* Force the homepage template wrappers to never clip absolute dropdowns */
body.home,
body.home .site-content,
body.home .wp-site-blocks,
body.home .wp-block-group,
body.home .wp-block-template-part {
  overflow: visible !important;
  max-height: none !important;
}

/* Ensure the homepage custom HTML block container doesn't trap layers */
body.home div[style*="max-width: 900px"] {
  overflow: visible !important;
}

/* Force the site header and dropdown to absolute maximum priority */
header, .site-header, .wp-block-template-part.site-header {
  position: relative !important;
  z-index: 999999 !important;
  overflow: visible !important;
}

.wp-block-navigation__submenu-container {
  z-index: 1000000 !important;
}

/* Force your homepage custom content block to a lower stacking context */
body.home .homepage-main-wrap {
  position: relative !important;
  z-index: 1 !important;
}