.pfhs-slider {
  position: relative;
  width: var(--pfhs-max-width, 1440px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.pfhs-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 500;
  overflow: hidden;
  border-radius: var(--radius, 0);
  background: #f5f5f5;
}

.pfhs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 450ms ease, visibility 450ms ease;
}

.pfhs-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.pfhs-slide-link,
.pfhs-picture,
.pfhs-image {
  display: block;
  width: 100%;
  height: 100%;
}

.pfhs-image {
  object-fit: cover;
}

.pfhs-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  max-width: 520px;
  padding: clamp(1.25rem, 4vw, 3rem);
  color: #fff;
  pointer-events: none;
}

.pfhs-content a,
.pfhs-content button {
  pointer-events: auto;
}

.pfhs-content h1,
.pfhs-content h2,
.pfhs-content h3,
.pfhs-content p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.pfhs-content h1,
.pfhs-content h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
  color: inherit;
}

.pfhs-content .button,
.pfhs-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius, 4px);
  text-decoration: none;
}

.pfhs-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #111;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.pfhs-nav::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.pfhs-prev { left: 12px; }
.pfhs-next { right: 12px; }

.pfhs-prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.pfhs-next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

.pfhs-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
}

.pfhs-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.pfhs-dot.is-active {
  background: #fff;
}

.pfhs-nav:focus-visible,
.pfhs-dot:focus-visible,
.pfhs-slide-link:focus-visible,
.pfhs-content a:focus-visible {
  outline: 3px solid #2271b1;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .pfhs-viewport {
    aspect-ratio: 1 / 1;
  }

  .pfhs-content {
    max-width: 100%;
    padding: 1.25rem;
  }

  .pfhs-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pfhs-slide {
    transition: none;
  }
}
