/*! Aperture (aperture 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/aperture */
/* Aperture. Every rule is scoped to .apt so the gem drops into any page. Give it a width and a height (about 640 px). */
.apt {
  --apt-bg: #0e0f12;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  min-height: 420px;
  background: var(--apt-bg);
  color: #eceae4;
  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 */
.apt, .apt *, .apt *::before, .apt *::after { box-sizing: border-box; }
.apt-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 32px);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.4vw, 64px);
  list-style: none;
}
.apt-card { margin: 0; padding: 0; min-width: 0; }
.apt-hit { display: block; color: inherit; text-decoration: none; border-radius: 10px; outline: none; }
.apt-hit:focus-visible { box-shadow: 0 0 0 2px var(--apt-bg), 0 0 0 4px #eceae4; }
.apt-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - 140px);
  overflow: hidden;
  border-radius: 10px;
  background: #050506;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 50px rgba(0, 0, 0, 0.45);
}
.apt-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-select: none; }
.apt-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.apt-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 2px 0; }
.apt-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.apt-f { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.3; letter-spacing: 0.02em; color: #a8a6a0; font-variant-numeric: tabular-nums; }
.apt-open .apt-f { color: #eceae4; }
/* phones: the cards scroll sideways, one and a bit at a time */
@media (max-width: 640px) {
  .apt-row { grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .apt-row::-webkit-scrollbar { display: none; }
  .apt-card { scroll-snap-align: center; }
}
