/*! Loupe (loupe 1.0.0) by Frontier Templates. Styles for the vanilla build.
Licensed gem: Licensed with Full Access, for the sites you build; do not resell the gem itself. https://frontiertemplates.com/gems/loupe */
/* Loupe. Every rule is scoped to .lpe so the gem drops into any page. Size the element; the gem fills it. */
.lpe {
  --lpe-ink: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 320px;
  background: #0c0e12;
  color: var(--lpe-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* the root sizes itself the same whatever the host page's reset says */
.lpe, .lpe *, .lpe *::before, .lpe *::after { box-sizing: border-box; }
.lpe-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: none;
  outline: none;
  touch-action: pan-y;
}
.lpe-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.lpe-stage:focus-visible { box-shadow: inset 0 0 0 3px var(--lpe-ink); }
/* a soft scrim keeps overlaid copy and the controls readable on any picture */
.lpe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0) 55%, rgba(8, 10, 14, 0.5) 100%);
}
.lpe-content {
  position: relative;
  z-index: 2;
  height: 100%;
  pointer-events: none;
}
.lpe-content a, .lpe-content button { pointer-events: auto; }
.lpe-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3vw, 32px);
  pointer-events: none;
}
.lpe-caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  opacity: 0.92;
  max-width: 46ch;
}
.lpe-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  pointer-events: auto;
}
.lpe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.32);
  color: var(--lpe-ink);
  font: 500 13px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s, border-color 0.2s;
}
.lpe-arrow { padding: 0; width: 40px; }
.lpe-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.7); }
.lpe-btn[aria-pressed="true"] { background: var(--lpe-ink); color: #0c0e12; border-color: var(--lpe-ink); }
.lpe-btn:focus-visible { outline: 2px solid var(--lpe-ink); outline-offset: 3px; }
.lpe-btn svg { width: 18px; height: 18px; flex: none; }
.lpe-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 639px) {
  .lpe-caption { font-size: 13px; }
}
@media (hover: none) {
  .lpe-stage { cursor: default; }
}
@media (prefers-reduced-motion: reduce) {
  .lpe-btn { transition: none; }
}
