/*! Pegboard (pegboard 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/pegboard */
/* Pegboard. Every rule is scoped to .pgb so the gem drops into any page. Give it a width and a height (about 520 px). */
.pgb {
  --pgb-board: #1b1c20;
  --pgb-size: 26px;
  --pgb-pitch: 28px;
  --pgb-h: 78px;
  --pgb-hole: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  min-height: 280px;
  background: var(--pgb-board);
  color: #eef0f3;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}
/* the root sizes itself the same whatever the host page's reset says */
.pgb, .pgb *, .pgb *::before, .pgb *::after { box-sizing: border-box; }
.pgb-content { position: relative; z-index: 2; padding: clamp(24px, 5vw, 48px) 20px 0; text-align: center; }
.pgb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  /* the board: punched holes on a grid, lit from the top left */
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.62) 0 2.1px, rgba(255, 255, 255, 0.07) 2.6px, rgba(255, 255, 255, 0) 3.4px) 0 0 / var(--pgb-pitch) var(--pgb-pitch);
  touch-action: pan-y;
}
.pgb-tags { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.pgb-tag {
  --c: #ece6da;
  --i: #1d1c1a;
  --sx: calc(var(--pgb-size) * 0.22);
  --sy: calc(var(--pgb-size) * 0.42);
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  height: var(--pgb-h);
  transform-origin: 50% var(--pgb-hole);
}
.pgb-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--pgb-size) * 0.32);
  height: 100%;
  padding: calc(var(--pgb-size) * 1.08) calc(var(--pgb-size) * 0.85) calc(var(--pgb-size) * 0.2);
  border-radius: calc(var(--pgb-size) * 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.1)), var(--c);
  color: var(--i);
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    var(--sx) var(--sy) calc(var(--pgb-size) * 0.5) rgba(0, 0, 0, 0.42),
    calc(var(--sx) * 0.3) calc(var(--sy) * 0.3) 2px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  outline: none;
}
/* the eyelet: a punched hole with a metal ring, the peg goes through it */
.pgb-face::before {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--pgb-hole);
  width: calc(var(--pgb-size) * 0.5);
  height: calc(var(--pgb-size) * 0.5);
  margin: calc(var(--pgb-size) * -0.25) 0 0 calc(var(--pgb-size) * -0.25);
  border-radius: 50%;
  background: radial-gradient(circle, #0b0b0d 0 52%, #b9bcc4 56%, #f4f5f7 66%, #8d9099 80%, rgba(0, 0, 0, 0.3) 92%);
}
.pgb-face svg { display: block; flex: none; width: calc(var(--pgb-size) * 0.8); height: calc(var(--pgb-size) * 0.8); }
.pgb-face b { font-size: calc(var(--pgb-size) * 0.84); font-weight: 650; font-style: normal; letter-spacing: -0.02em; line-height: 1; }
.pgb-face img { display: block; height: var(--pgb-size); width: auto; }
a.pgb-face:focus-visible { box-shadow: 0 0 0 2px var(--pgb-board), 0 0 0 4px #f4f5f7, var(--sx) var(--sy) calc(var(--pgb-size) * 0.5) rgba(0, 0, 0, 0.42); }
.pgb-pegs { position: absolute; inset: 0; pointer-events: none; }
/* the peg's head, in front of the tag */
.pgb-peg {
  position: absolute;
  width: calc(var(--pgb-size) * 0.3);
  height: calc(var(--pgb-size) * 0.3);
  margin: calc(var(--pgb-size) * -0.15) 0 0 calc(var(--pgb-size) * -0.15);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #c9ccd3 35%, #6f727b 75%, #3a3c42);
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.55);
}
.pgb-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #eef0f3;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.pgb-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.pgb-btn:focus-visible { outline: 2px solid #eef0f3; outline-offset: 2px; }
.pgb-btn svg { width: 14px; height: 14px; }
.pgb-ico-play { display: none; }
.pgb-paused .pgb-ico-play { display: block; }
.pgb-paused .pgb-ico-pause { display: none; }
@media (prefers-reduced-motion: reduce) {
  .pgb-btn { transition: none; }
}
