/* =========================================================
   WFLG – Swiper Video Slider + Centered YouTube Popup
   ---------------------------------------------------------
   ✔ Multiple sliders supported
   ✔ Full image clickable
   ✔ Official red YouTube play button
   ✔ Popup perfectly centered (Flexbox)
   ✔ No border radius anywhere
   ✔ Accessible focus styles
   ========================================================= */


/* =========================
   Swiper container safety
   ========================= */
.wflg-testimonial-swiper {
  position: relative;
  overflow: hidden;
	padding: 0 15px 50px 15px;
}

/* Ensure Swiper height behaves */
.wflg-testimonial-swiper .swiper-wrapper,
.wflg-testimonial-swiper .swiper-slide {
  height: auto;
}

.swiper-pagination-bullet-active {
	background: #b14233;
}
.swiper-button-next, .swiper-button-prev {
	color: #b14233;
}

/* =========================
   Slide image container
   ========================= */
.wflg-testimonial-swiper .hm-attorney-sctn-rgt-img {
  position: relative;
  overflow: hidden;
}

/* Responsive images */
.wflg-testimonial-swiper img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   Full-image clickable overlay
   ========================= */
.wflg-testimonial-swiper .hm-attorney-sctn-rgt-video {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Anchor covers entire image */
.wflg-testimonial-swiper .hm-attorney-sctn-rgt-video a {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
  text-indent: -9999px; /* hide "video" text */
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

/* Keyboard focus (accessibility) */
.wflg-testimonial-swiper .hm-attorney-sctn-rgt-video a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}


/* =========================
   Official YouTube Play Button
   ========================= */
.wflg-testimonial-swiper .hm-attorney-sctn-rgt-video a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: #ff0000;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* White triangle */
.wflg-testimonial-swiper .hm-attorney-sctn-rgt-video a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-45%, -50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #ffffff;
}

/* Hover state */
.wflg-testimonial-swiper .hm-attorney-sctn-rgt-video a:hover::before {
  background: #e60000;
}


/* =========================
   Remove ALL border radius
   ========================= */
.wflg-testimonial-swiper .hm-attorney-sctn-rgt-img,
.wflg-testimonial-swiper img,
.wflg-modal__dialog,
.wflg-modal__ratio {
  border-radius: 0 !important;
}


/* =========================================================
   Vanilla Modal – Centered YouTube Popup
   ========================================================= */
.wflg-no-scroll {
  overflow: hidden;
}

.wflg-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.wflg-modal.is-open {
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
}

/* Dark overlay */
.wflg-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

/* Modal dialog */
.wflg-modal__dialog {
  position: relative;
  width: min(920px, 92vw);
  background: #000000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Close button */
.wflg-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  border: 0;
  background: none;
  padding: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
  z-index: 2;
}

.wflg-modal__close:hover, .wflg-modal__close:focus {
  background: none;
}

/* Responsive 16:9 iframe */
.wflg-modal__ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.wflg-modal__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile spacing */
@media (max-width: 768px) {
  .wflg-modal__dialog {
    width: 94vw;
  }
}
