/* Premium viewer controls: compact, quiet, theme-isolated and touch friendly. */
.bvt-viewer .bvt-controls{
  position:absolute;left:50%;bottom:max(20px,env(safe-area-inset-bottom));z-index:7;
  display:flex;align-items:center;gap:10px;
  min-height:46px;padding:5px 8px;
  border:1px solid rgba(255,255,255,.12);border-radius:999px;
  background:rgba(15,15,15,.74);
  box-shadow:0 12px 32px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter:blur(16px) saturate(120%);-webkit-backdrop-filter:blur(16px) saturate(120%);
  transform:translateX(-50%);pointer-events:auto;
}
.bvt-viewer .bvt-controls__group{display:flex;align-items:center;gap:2px;margin:0;padding:0;border:0}
.bvt-viewer .bvt-controls__group+.bvt-controls__group{margin-left:4px;padding-left:0;border-left:0}

/* Hard reset protects the controls from WordPress/theme button styling. */
.bvt-viewer button.bvt-control,
.bvt-viewer button.bvt-control-float{
  -webkit-appearance:none!important;appearance:none!important;
  margin:0!important;padding:0!important;border:0!important;text-decoration:none!important;
  color:#fff!important;cursor:pointer;display:grid;place-items:center;
  font:inherit!important;line-height:1!important;
  background:transparent!important;background-image:none!important;
  box-shadow:none!important;text-shadow:none!important;
  transform:none;
  transition:background-color .16s ease,transform .16s ease,opacity .16s ease,color .16s ease;
}
.bvt-viewer button.bvt-control::before,.bvt-viewer button.bvt-control::after,
.bvt-viewer button.bvt-control-float::before,.bvt-viewer button.bvt-control-float::after{content:none!important;display:none!important}

.bvt-viewer button.bvt-control{width:34px;height:34px;min-width:34px;min-height:34px;border-radius:50%!important}
.bvt-viewer button.bvt-control:hover,
.bvt-viewer button.bvt-control:focus-visible{background-color:rgba(255,255,255,.075)!important;transform:translateY(-1px)}
.bvt-viewer button.bvt-control:active{background-color:rgba(255,255,255,.1)!important;transform:scale(.96)}
.bvt-viewer button.bvt-control:focus-visible{outline:1px solid rgba(255,255,255,.78)!important;outline-offset:2px!important}
.bvt-viewer button.bvt-control.is-active,
.bvt-viewer button.bvt-control[aria-pressed=true]{
  background-color:rgba(255,255,255,.14)!important;color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.28),0 4px 14px rgba(0,0,0,.18)!important;
}
.bvt-viewer .bvt-control__icon{display:block;width:17px;height:17px;pointer-events:none}
.bvt-viewer .bvt-control__icon svg{display:block!important;width:100%!important;height:100%!important;fill:none!important;stroke:currentColor!important;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.bvt-viewer .bvt-control__icon svg path,.bvt-viewer .bvt-control__icon svg rect,.bvt-viewer .bvt-control__icon svg circle,.bvt-viewer .bvt-control__icon svg ellipse{fill:none!important;stroke:currentColor!important}

.bvt-viewer button.bvt-control-float{
  position:absolute;z-index:8;width:38px;height:38px;min-width:38px;min-height:38px;
  border:1px solid rgba(255,255,255,.14)!important;border-radius:50%!important;
  background-color:rgba(15,15,15,.68)!important;
  box-shadow:0 9px 24px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.04)!important;
  backdrop-filter:blur(14px) saturate(115%);-webkit-backdrop-filter:blur(14px) saturate(115%);
}
.bvt-viewer button.bvt-control-float:hover,
.bvt-viewer button.bvt-control-float:focus-visible{background-color:rgba(25,25,25,.82)!important;transform:translateY(-1px)}
.bvt-viewer button.bvt-control-float:active{transform:scale(.96)}
.bvt-viewer button.bvt-control-float:focus-visible{outline:1px solid rgba(255,255,255,.78)!important;outline-offset:3px!important}
.bvt-viewer button.bvt-control-float.is-active,
.bvt-viewer button.bvt-control-float[aria-pressed=true]{
  background-color:rgba(20,20,20,.9)!important;color:#fff!important;
  border-color:rgba(255,255,255,.42)!important;
  box-shadow:0 9px 24px rgba(0,0,0,.28),0 0 0 2px rgba(255,255,255,.10),inset 0 1px 0 rgba(255,255,255,.09)!important;
}
.bvt-viewer .bvt-control-float--fullscreen{top:18px;right:18px}
.bvt-viewer .bvt-control-float--home{top:18px;right:64px}

/* Website-home control: isolated from theme button/SVG rules.
   The icon is a CSS mask rather than inline SVG so external SVG/path rules
   cannot turn it into a blank white circle. */
.bvt-viewer button.bvt-control-float.bvt-control-float--home{
  background:#151515!important;
  background-color:rgba(18,18,18,.88)!important;
  border:1px solid rgba(255,255,255,.28)!important;
  color:#fff!important;
  opacity:1!important;
  overflow:hidden!important;
}
.bvt-viewer button.bvt-control-float.bvt-control-float--home:hover,
.bvt-viewer button.bvt-control-float.bvt-control-float--home:focus-visible{
  background:#202020!important;
  background-color:rgba(28,28,28,.96)!important;
  border-color:rgba(255,255,255,.48)!important;
}
.bvt-viewer button.bvt-control-float.bvt-control-float--home .bvt-control__icon--website-home{
  display:block!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  background-color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 10.5 12 3l8.5 7.5M5.5 9.5V21h13V9.5M9.5 21v-6h5v6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 10.5 12 3l8.5 7.5M5.5 9.5V21h13V9.5M9.5 21v-6h5v6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  -webkit-mask-repeat:no-repeat!important;
  mask-repeat:no-repeat!important;
  -webkit-mask-position:center!important;
  mask-position:center!important;
  -webkit-mask-size:contain!important;
  mask-size:contain!important;
}
.bvt-viewer .bvt-control-float--reset{left:18px;bottom:max(20px,env(safe-area-inset-bottom))}
.bvt-viewer .bvt-control-float--rotate{right:18px;bottom:max(20px,env(safe-area-inset-bottom))}

.bvt-viewer.is-loading .bvt-controls,.bvt-viewer.has-error .bvt-controls,
.bvt-viewer.is-loading .bvt-control-float,.bvt-viewer.has-error .bvt-control-float{opacity:0;pointer-events:none}
.bvt-viewer.is-transitioning .bvt-controls{opacity:.48;pointer-events:none}
.bvt-viewer:fullscreen,.bvt-viewer.is-fullscreen{width:100%;height:100%;min-height:100%;background:#111}

@media(max-width:767px){
  .bvt-viewer .bvt-controls{bottom:max(10px,env(safe-area-inset-bottom));gap:5px;min-height:42px;padding:4px 6px;max-width:calc(100% - 20px)}
  .bvt-viewer .bvt-controls__group{gap:1px}
  .bvt-viewer .bvt-controls__group+.bvt-controls__group{margin-left:2px}
  .bvt-viewer button.bvt-control{width:31px;height:31px;min-width:31px;min-height:31px}
  .bvt-viewer .bvt-control__icon{width:15px;height:15px}
  .bvt-viewer button.bvt-control-float{width:34px;height:34px;min-width:34px;min-height:34px}
  .bvt-viewer .bvt-control-float--fullscreen{top:10px;right:10px}
  .bvt-viewer .bvt-control-float--home{top:10px;right:52px}
  .bvt-viewer .bvt-control-float--reset{left:10px;bottom:max(10px,env(safe-area-inset-bottom))}
  .bvt-viewer .bvt-control-float--rotate{right:10px;bottom:max(10px,env(safe-area-inset-bottom))}
}
@media(max-width:390px){
  .bvt-viewer button.bvt-control{width:29px;height:29px;min-width:29px;min-height:29px}
  .bvt-viewer .bvt-controls__group--directional .bvt-control[data-control=up],
  .bvt-viewer .bvt-controls__group--directional .bvt-control[data-control=down]{display:none}
}
@media(prefers-reduced-motion:reduce){
  .bvt-viewer button.bvt-control,.bvt-viewer button.bvt-control-float{transition:none}
}
