body.is-recipe-slideshow {
  overflow: hidden;
  height: 100vh;
}

body.is-recipe-slideshow .prt-site-header,
body.is-recipe-slideshow .prt-site-footer {
  display: none;
}

.prt-slideshow {
  position: fixed;
  inset: 0;
  height: 100dvh;
  overflow: hidden;
  padding: 0.75rem 0.75rem 8rem;
  background: #1b1814;
  color: #f8f2e6;
  z-index: 100;
}

.prt-slideshow__quick-exit {
  position: fixed;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  background: rgba(27, 24, 20, 0.75);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  backdrop-filter: blur(4px);
}

.prt-slideshow__topbar {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-right: 5.2rem;
}

.prt-slideshow__progress {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

.prt-slides {
  position: relative;
}

.prt-slide {
  display: none;
  background: #26211c;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prt-slide.is-active {
  display: grid;
  min-height: calc(100vh - 210px);
  animation: prtFadeIn 250ms ease-out;
}

.prt-slide__timerbar {
  grid-column: 1 / -1;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.prt-slide__timerbar .prt-step-timer {
  width: 100%;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.prt-slide__media {
  min-height: 30vh;
  max-height: 38vh;
  background: #0b0a09;
}

.prt-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prt-slide__content {
  padding: 1rem;
  max-height: 38vh;
  overflow: auto;
}

@media (max-width: 979px) and (orientation: portrait) {
  .prt-slide.is-active {
    grid-template-columns: 1fr;
  }

  .prt-slide__content {
    order: 1;
    max-height: 42vh;
  }

  .prt-slide__media {
    order: 2;
    min-height: 22vh;
    max-height: 30vh;
  }
}

.prt-slide__content h1 {
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 5vw, 2.3rem);
}

.prt-slide__body {
  font-size: 1.1rem;
  line-height: 1.55;
}

.prt-slide__tip,
.prt-slide__duration {
  margin-top: 0.8rem;
  color: #ffcc94;
}

.prt-slideshow__controls {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(96vw, 560px);
  bottom: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem;
  background: rgba(27, 24, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  z-index: 115;
}

.prt-slideshow__controls .prt-button {
  min-height: 56px;
  font-size: 1rem;
}

.prt-slideshow__controls .prt-button.is-hidden {
  display: none !important;
}

.prt-slideshow__controls--single .prt-button[data-action="prev"] {
  grid-column: 1 / -1;
}

@keyframes prtFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 980px) {
  .prt-slideshow__quick-exit {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .prt-slide.is-active {
    grid-template-columns: 1.2fr 1fr;
    min-height: calc(100vh - 200px);
  }

  .prt-slide__media {
    min-height: 0;
    max-height: calc(100vh - 240px);
  }

  .prt-slide__content {
    max-height: calc(100vh - 260px);
  }
}
