/* ป๊อปอัปโฆษณา */
html.bbh-pop-lock { overflow: hidden; }
.bbh-pop { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 20px; --bbh-c: #1f40e6; }
.bbh-pop *, .bbh-pop *::before { box-sizing: border-box; }
.bbh-pop-bg { position: absolute; inset: 0; background: rgba(8, 14, 35, .7); opacity: 0; transition: opacity .25s ease; }
.bbh-pop-box {
  position: relative; max-width: min(640px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .25s ease, transform .3s cubic-bezier(.2, 1.2, .4, 1);
}
.bbh-pop.is-video .bbh-pop-box { width: min(880px, 100%); max-width: none; background: #000; }
.bbh-pop.open .bbh-pop-bg { opacity: 1; }
.bbh-pop.open .bbh-pop-box { opacity: 1; transform: none; }
.bbh-pop-body { overflow: hidden; border-radius: 16px; }
.bbh-pop-body img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: 0 auto; border-radius: 0; }
.bbh-pop-body a { display: block; }
.bbh-pop-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.bbh-pop-more {
  display: block; padding: 12px 16px; text-align: center; background: var(--bbh-c); color: #fff !important;
  font: 600 15px/1.4 "IBM Plex Sans Thai", system-ui, sans-serif; text-decoration: none !important;
}
.bbh-pop-x {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; padding: 0; margin: 0; z-index: 2;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: #fff; color: #1b2333; font: 400 28px/1 Arial, sans-serif; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform .15s ease;
}
.bbh-pop-x:hover { transform: rotate(90deg); background: #fff; color: #000; }
.bbh-pop-x:focus-visible { outline: 3px solid var(--bbh-c); outline-offset: 2px; }
@media (max-width: 640px) {
  .bbh-pop { padding: 16px; }
  .bbh-pop-x { top: -12px; right: -6px; width: 36px; height: 36px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .bbh-pop-bg, .bbh-pop-box, .bbh-pop-x { transition: none; } }
