/* Hero slideshow. Layout (height, logo, text, socials) comes from the theme's .top-section styles;
   this file only adds the slides. Selectors start with .ptb.pths to win over the theme's resets. */

.ptb.pths { overflow: hidden; background: #111; }

.ptb.pths .pths__slides { overflow: hidden; }

.ptb.pths .pths__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.4s ease;
}
.ptb.pths .pths__slide.is-active { opacity: 1; z-index: 2; }
.ptb.pths .pths__slide.is-leaving { opacity: 0; z-index: 1; }

.ptb.pths .pths__single,
.ptb.pths .pths__pair {
  position: absolute;
  inset: 0;
}
.ptb.pths .pths__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ptb.pths .pths__half {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.ptb.pths .pths__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--pths-pos, center center);
  z-index: auto;
}

/* Slow zoom while a slide is showing */
.ptb.pths.pths--zoom .pths__img { transform: scale(1.06); transition: transform 0s linear 1.4s; }
.ptb.pths.pths--zoom .pths__slide.is-active .pths__img {
  transform: scale(1);
  transition: transform calc(var(--pths-duration, 5s) + 1.4s) cubic-bezier(.2, .6, .35, 1);
}
.ptb.pths.pths--zoom .pths__slide.is-leaving .pths__img { transform: scale(1); }

/* Montage: show either the single photo or the side-by-side pair */
.ptb.pths .pths__montage .pths__pair { display: none; }
.ptb.pths .pths__montage.is-pair .pths__pair { display: grid; }
.ptb.pths .pths__montage.is-pair .pths__single { display: none; }

/* Phone photo, when a slide has one */
.ptb.pths .pths__mobile { display: none; }
@media (max-width: 767px) {
  .ptb.pths .pths__slide.has-mobile .pths__desktop { display: none; }
  .ptb.pths .pths__slide.has-mobile .pths__mobile { display: block; }
}

/* Slide dots, bottom right */
.ptb.pths .pths__dots {
  position: absolute;
  right: 40px;
  bottom: 44px;
  z-index: 6;
  display: flex;
  gap: 10px;
}
.ptb.pths .pths__dot {
  width: 28px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.ptb.pths .pths__dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, .45);
  transition: background .3s, height .3s;
}
.ptb.pths .pths__dot.is-active::before { background: #fff; height: 2px; }
.ptb.pths .pths__dot:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
@media (max-width: 767px) {
  .ptb.pths .pths__dots { right: 50%; transform: translateX(50%); bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ptb.pths .pths__slide { transition: none; }
  .ptb.pths.pths--zoom .pths__img,
  .ptb.pths.pths--zoom .pths__slide.is-active .pths__img { transform: none; transition: none; }
}

/* Editor */
.ptb.pths.pths--preview { min-height: 520px; height: 520px; }
.ptb.pths .pths__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
