/* Detail page hero gallery styles */

.bd-blog-hero {
  position: relative;
}

.bd-blog-hero .bd-hero-swiper {
  width: 100%;
  height: 100%;
}

.bd-blog-hero .swiper-wrapper,
.bd-blog-hero .swiper-slide {
  height: 100%;
}

.bd-blog-hero .bd-hero-image,
.bd-blog-hero .bd-hero-video-thumb,
.bd-blog-hero iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* YouTube slide overlay and play icon */
.bd-blog-hero a[data-type="youtube"] {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.bd-blog-hero a[data-type="youtube"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
  transition: background 0.25s ease;
  border-radius: 12px;
}

.bd-blog-hero a[data-type="youtube"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  z-index: 3;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* Inline SVG: dark circle + white play triangle */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76' viewBox='0 0 76 76'%3E%3Ccircle cx='38' cy='38' r='38' fill='rgba(0,0,0,0.6)'/%3E%3Cpolygon points='32,25 32,51 54,38' fill='%23ffffff'/%3E%3C/svg%3E");
}

.bd-blog-hero a[data-type="youtube"]:hover::before {
  background: rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .bd-blog-hero a[data-type="youtube"]::after {
    width: 48px;
    height: 48px;
  }
}



/* Navigation positioned vertically centered and stuck to edges */
.bd-blog-hero .navigation-field {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 15px;
  padding-right: 15px;
  pointer-events: none;
  z-index: 50;
}

.bd-blog-hero .navigation-field > .bd-hero-prev,
.bd-blog-hero .navigation-field > .bd-hero-next,
.bd-blog-hero .navigation-field > .hero-prev,
.bd-blog-hero .navigation-field > .hero-next {
  pointer-events: auto;
  position: relative;
  z-index: 100;
  background: rgb(2 97 126) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff;
}

/* Ensure buttons are sizable and clickable even if utility classes are unavailable */
.bd-blog-hero .navigation-field > .hero-prev,
.bd-blog-hero .navigation-field > .hero-next {
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
}

.bd-blog-hero .swiper-autoheight, .swiper-autoheight .swiper-slide {
    height: 630px !important;
}

.bd-blog-hero a[data-type="youtube"] {
    height: 630px !important;
}

.bd-blog-hero [class*=icon-]:before {
    color: #d9e506;
}

@media (max-width: 768px) {
  .bd-blog-hero .navigation-field {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media screen and (max-width: 768px) { 
    .bd-blog-hero .swiper-autoheight, .swiper-autoheight .swiper-slide {
        height: 230px !important;
        overflow: hidden;
    }

    .bd-blog-hero a[data-type="youtube"] {
        height: 230px !important;
        overflow: hidden;
    }

     .bd-blog-hero .bd-hero-video-thumb {
        scale: 1.2;
    }

    
}

@media screen and (min-width: 768px) and (max-width: 1024px) { 
    .bd-blog-hero .swiper-autoheight, .swiper-autoheight .swiper-slide {
        height: 500px !important;
        overflow: hidden;
    }

    .bd-blog-hero a[data-type="youtube"] {
        height: 500px !important;
        overflow: hidden;   
    }

    .bd-blog-hero {
        height: 500px !important;   
    }

    .bd-blog-hero .bd-hero-video-thumb {
        scale: 1.2;
    }

    
}
