/* rp-social-videos (snippets/rp-social-videos.liquid). */
rp-social-videos.rp-sv {
  display: block;
  margin: 0 0 16px;
  text-align: center;
  --rp-sv-ink: #2b1720;
}

.rp-sv__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 25px 0 20px;
  padding: 0;
  font-family: "RP Awesome Serif Trial", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
  color: var(--rp-sv-1);
}

.rp-sv__title {
  display: inline-block;
  padding: .04em .08em .12em;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .8) 0 .6px, transparent 1.3px),
    radial-gradient(circle, rgba(255, 255, 255, .45) 0 .5px, transparent 1.1px),
    linear-gradient(100deg, var(--rp-sv-1) 0%, var(--rp-sv-2) 45%, var(--rp-sv-3) 75%, var(--rp-sv-2) 100%);
  background-size: 7px 7px, 11px 11px, 220% 100%;
  background-position: 0 0, 3px 5px, 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: rp-sv-shimmer 7s ease-in-out infinite alternate;
}

.rp-sv__title em,
.rp-sv__title i {
  font-family: inherit;
  font-style: italic;
  font-weight: 400;
  color: inherit;
  -webkit-text-fill-color: inherit;
}

.rp-sv__spark {
  flex: none;
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
  color: #b5914f;
  -webkit-text-fill-color: #b5914f;
  animation: rp-sv-twinkle 2.8s ease-in-out infinite;
}

.rp-sv__spark--late { animation-delay: 1.4s; }

@keyframes rp-sv-shimmer {
  from { background-position: 0 0, 3px 5px, 0% 50%; }
  to { background-position: 7px 7px, 14px 16px, 100% 50%; }
}

@keyframes rp-sv-twinkle {
  0%, 100% { opacity: .35; transform: scale(.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(45deg); }
}

.rp-sv__track {
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  text-align: left;
}

.rp-sv__track::-webkit-scrollbar { display: none; }
.rp-sv__track:focus-visible { outline: 2px solid var(--rp-sv-1); outline-offset: 2px; }
.rp-sv__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }

.rp-sv__item {
  flex: 0 0 135px;
  scroll-snap-align: start;
}

.rp-sv .rp-sv__card {
  position: relative;
  display: block;
  width: 135px;
  height: 240px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f7eef0;
  box-shadow: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.rp-sv .rp-sv__card:focus-visible { outline: 2px solid var(--rp-sv-1); outline-offset: 2px; }

.rp-sv .rp-sv__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
}

.rp-sv__play,
.rp-sv__pause {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .08);
  transition: opacity .3s, transform .3s;
}

.rp-sv__play {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rp-sv__play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--rp-sv-ink);
}

.rp-sv__pause {
  bottom: 10px;
  left: 10px;
  z-index: 3;
  opacity: 0;
  transform: scale(.8);
}

.rp-sv__pause::before,
.rp-sv__pause::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 4px;
  height: 12px;
  border-radius: 1px;
  background: var(--rp-sv-ink);
}

.rp-sv__pause::before { left: 10px; }
.rp-sv__pause::after { right: 10px; }

.rp-sv__card.is-playing .rp-sv__play { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.rp-sv__card.is-playing .rp-sv__pause { opacity: 1; transform: scale(1); }

.rp-sv__sound {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .08);
  color: var(--rp-sv-ink);
  transition: transform .2s;
}

.rp-sv__icon { display: block; }
.rp-sv__icon--on { display: none; }

.rp-sv.is-autoplaying .rp-sv__play,
.rp-sv.is-autoplaying .rp-sv__pause { display: none; }
.rp-sv.is-autoplaying .has-sound .rp-sv__sound { display: flex; animation: rp-sv-pop .25s ease-out; }
.rp-sv.is-autoplaying .has-sound .rp-sv__icon--off { display: none; }
.rp-sv.is-autoplaying .has-sound .rp-sv__icon--on { display: block; }

@keyframes rp-sv-pop {
  from { opacity: 0; transform: scale(.7); }
  to { opacity: 1; transform: scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  .rp-sv__card:hover .rp-sv__play { transform: translate(-50%, -50%) scale(1.08); }
  .rp-sv__card.is-playing:hover .rp-sv__pause { transform: scale(1.1); }
}

.rp-sv__bar {
  position: relative;
  height: 4px;
  margin: 15px 0 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, .1);
  cursor: pointer;
  touch-action: none;
}

.rp-sv__bar[hidden] { display: none; }

.rp-sv__drag {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--rp-sv-1), var(--rp-sv-2));
}

.rp-sv--hint {
  padding: 12px 15px;
  border: 1px dashed #e9e1df;
  border-radius: 10px;
  font-size: 12px;
  text-align: left;
  opacity: .6;
}

.rp-sv--hint p { margin: 0; }

@media (max-width: 749px) {
  .rp-sv__heading { font-size: 26px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-sv__title,
  .rp-sv__spark { animation: none; }
  .rp-sv__play,
  .rp-sv__pause { transition: none; }
}
