@font-face{font-family:Fraunces;src:url("fonts/Fraunces.ttf") format("truetype");font-weight:100 900;font-display:swap}
/* Original restful.cz archive styling, scoped to this plugin. */

.rhm-archive,
.rhm-archive * {
  box-sizing: border-box;
}
.rhm-archive {
  --rg-bg: #1b1815;
  --rg-card: #242019;
  --rg-ink: #f3ead9;
  --rg-muted: #a89a86;
  --rg-gold: #b6884a;
  --rg-gold-dim: rgba(182, 136, 74, 0.28);
  --rg-line: rgba(243, 234, 217, 0.12);

  position: relative;
  width: 100%;
  padding: 64px 20px 56px;
  overflow: hidden;
  background: var(--rg-bg);

  color: var(--rg-ink);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rhm-archive .rg-eyebrow {
  margin: 0 0 8px;
  color: var(--rg-gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}
.rhm-archive .rg-heading {
  margin: 0 0 44px;
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
}
.rhm-archive .rg-stage-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
}
.rhm-archive .rg-rail {
  position: absolute;
  top: 50%;
  right: 8%;
  left: 8%;
  z-index: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--rg-line) 15%,
    var(--rg-line) 85%,
    transparent
  );
  transform: translateY(-50%);
}
.rhm-archive .rg-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(65vw, 580px);
  max-height: 580px;
  overflow: hidden;
}
.rhm-archive .rg-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 690px;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background: var(--rg-card);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  overflow: visible;
  transition:
    width 0.4s ease,
    height 0.4s ease,
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.5s ease,
    filter 0.5s ease;
  user-select: none;
}
.rhm-archive .rg-card.is-active {
  cursor: default;
}
.rhm-archive .rg-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 3px;
  touch-action: none;
}
.rhm-archive .rg-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--rg-card);
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}
.rhm-archive .rg-after {
  clip-path: inset(0 0 0 50%);
}
.rhm-archive .rg-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14%;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(182, 136, 74, 0.35),
      transparent 60%
    ),
    linear-gradient(160deg, #332a1f, #1b1815 70%);
  color: var(--rg-ink);
  font-family: 'Fraunces', serif;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
.rhm-archive .rg-card.rg-img-fallback .rg-fallback {
  display: flex;
}
.rhm-archive .rg-card.rg-img-fallback img {
  opacity: 0;
}
.rhm-archive .rg-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 0;
}
.rhm-archive .rg-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rg-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  touch-action: none;
}
.rhm-archive .rg-grip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #1b1815;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rhm-archive .rg-bracket {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--rg-gold);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.rhm-archive .rg-card.is-active .rg-bracket {
  opacity: 1;
}
.rhm-archive .rg-bracket.tl {
  top: -8px;
  left: -8px;
  border-right: 0;
  border-bottom: 0;
}
.rhm-archive .rg-bracket.tr {
  top: -8px;
  right: -8px;
  border-left: 0;
  border-bottom: 0;
}
.rhm-archive .rg-bracket.bl {
  bottom: -8px;
  left: -8px;
  border-right: 0;
  border-top: 0;
}
.rhm-archive .rg-bracket.br {
  right: -8px;
  bottom: -8px;
  border-left: 0;
  border-top: 0;
}
.rhm-archive .rg-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  color: var(--rg-ink);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  transition: opacity 0.35s ease;
}
.rhm-archive .rg-card.is-active .rg-tag {
  opacity: 0.85;
}
.rhm-archive .rg-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
}
.rhm-archive .rg-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--rg-line);
  border-radius: 50%;
  background: transparent;
  color: var(--rg-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}
.rhm-archive .rg-btn:hover {
  border-color: var(--rg-gold);
  background: var(--rg-gold-dim);
}
.rhm-archive .rg-btn:focus-visible {
  outline: 2px solid var(--rg-gold);
  outline-offset: 2px;
}
.rhm-archive .rg-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rhm-archive .rg-dots {
  display: flex;
  gap: 7px;
}
.rhm-archive .rg-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rg-line);
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}
.rhm-archive .rg-dot.is-current {
  background: var(--rg-gold);
  transform: scale(1.35);
}
.rhm-archive .rg-info {
  min-height: 76px;
  max-width: 420px;
  margin-top: 26px;
  text-align: center;
}
.rhm-archive .rg-subtext {
  margin: 0 0 6px;
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.rhm-archive .rg-hypertext {
  display: inline-block;
  color: var(--rg-gold);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 1px solid var(--rg-gold-dim);
  padding-bottom: 2px;
  opacity: 0;
  transition:
    opacity 0.4s ease,
    border-color 0.25s ease;
}
.rhm-archive .rg-hypertext:hover {
  border-color: var(--rg-gold);
}
.rhm-archive .rg-info.is-in .rg-subtext,
.rhm-archive .rg-info.is-in .rg-hypertext {
  opacity: 1;
  transform: none;
}
.rhm-archive .rg-hint {
  margin: 7px 0 0;
  color: var(--rg-muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
.rhm-archive {
    padding-top: 44px;
  }
.rhm-archive .rg-heading {
    margin-bottom: 30px;
  }
.rhm-archive .rg-card {
    
width: min(320px, 76vw);
  }
.rhm-archive .rg-stage {
    
height: min(86vw, 460px);
  }
}
.rhm-archive {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.rhm-archive .rg-stage-wrap {
  width: min(1180px, 100%);
  max-width: 1180px;
}




.rhm-archive .rg-stage{height:clamp(260px,48vw,580px);overflow:visible;perspective:1200px}
.rhm-archive .rg-card{width:min(47%,570px);height:92%;aspect-ratio:auto;transform-origin:center;will-change:transform}
.rhm-archive .rg-card:focus-visible{outline:2px solid var(--rg-gold);outline-offset:6px}
.rhm-archive .rg-frame{touch-action:pan-y}
.rhm-archive .rg-frame img{background:var(--rg-card)}
.rhm-archive .rg-handle{border-left:1px solid var(--rg-gold);pointer-events:none}
.rhm-archive .rg-grip{pointer-events:auto;padding:0;border:0;color:#1b1815;font-size:19px;touch-action:none}
.rhm-archive .rg-card:not(.is-active) .rg-handle{visibility:hidden}
.rhm-archive .rg-nav{flex-wrap:wrap}
.rhm-archive .rg-dots{flex-wrap:wrap;justify-content:center;max-width:60%}
.rhm-archive .rg-dot{width:20px;height:20px;background:transparent;position:relative}
.rhm-archive .rg-dot:after{content:"";position:absolute;inset:7px;border-radius:50%;background:var(--rg-line)}
.rhm-archive .rg-dot.is-current:after{background:var(--rg-gold)}
.rhm-archive .rg-empty{text-align:center;color:var(--rg-muted)}
.rhm-video{width:100%;aspect-ratio:16/9;background:#1b1815;color:#f3ead9;position:relative}
.rhm-video iframe{width:100%;height:100%;border:0}
.rhm-video button{position:absolute;inset:0;width:100%;background:transparent;color:inherit;border:1px solid #b6884a;cursor:pointer;font:inherit;padding:24px}
.rhm-video button span{display:block;margin-top:12px;font-size:12px;color:#a89a86}
@media(max-width:640px){.rhm-archive .rg-card{width:65%;height:90%}.rhm-archive .rg-heading{margin-bottom:20px}.rhm-archive .rg-stage{height:86vw;max-height:460px}}
@media(prefers-reduced-motion:reduce){.rhm-archive *{transition:none!important;animation:none!important}}

.rhm-archive:not([data-rhm-ready]) .rg-card:not(.is-active){display:none}
.rhm-archive:not([data-rhm-ready]) .rg-card.is-active{transform:translate(-50%,-50%)}

/* Selected-video poster; only the player waits for a click. */
.rhm-video{overflow:hidden}
.rhm-video .rhm-video-thumbnail{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;margin:0}
.rhm-video.has-thumbnail button{background:linear-gradient(0deg,rgba(0,0,0,.72),rgba(0,0,0,.04) 65%);text-shadow:0 1px 4px #000}
.rhm-video button .rhm-video-play{display:flex;align-items:center;justify-content:center;width:72px;height:72px;margin:0 auto 18px;padding-left:5px;border-radius:50%;background:#b6884a;color:#1b1815;font-size:28px;text-shadow:none;box-shadow:0 4px 20px #0006;transition:transform .2s ease,background .2s ease}
.rhm-video button:hover .rhm-video-play{transform:scale(1.08);background:#cda264}
.rhm-video button .rhm-video-caption{font-size:clamp(15px,2vw,20px);color:#fff;margin:0}
.rhm-video button .rhm-video-note{font-size:12px;color:#eee;margin-top:8px}
.rhm-video button:focus-visible{outline:3px solid #f3ead9;outline-offset:-6px}
@media(prefers-reduced-motion:reduce){.rhm-video button .rhm-video-play{transition:none}}
