/**
 * Shared block layout CSS — loaded on live themes and editor canvas so preview matches published site.
 */

/* ── Block frames: content blocks vs section containers ── */
.pp-block-wrap,
.pp-block-container.pp-section,
.pp-block-container.pp-group {
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.pp-site .pp-section:not(.pp-block-container) {
  padding: var(--pp-section-padding-y, 64px) 0;
}

/* Default vertical rhythm between root blocks */
.pp-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Service list cards + cover styles (sync with dashboard/assets/css/site-blocks.css) */
.pp-card {
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: visible;
}

.pp-card-cover {
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
}

.pp-card-cover img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.pp-service-list .pp-card-cover img {
  height: auto !important;
  max-height: none !important;
  object-fit: cover !important;
}

.pp-service-list .pp-card.pp-cover-natural .pp-card-cover img,
.pp-service-list .pp-card-cover.pp-cover-natural img {
  aspect-ratio: 3 / 4 !important;
}

.pp-service-list .pp-card.pp-cover-square .pp-card-cover img,
.pp-service-list .pp-card-cover.pp-cover-square img {
  aspect-ratio: 1 / 1 !important;
}

.pp-service-list .pp-card.pp-cover-portrait .pp-card-cover img,
.pp-service-list .pp-card-cover.pp-cover-portrait img {
  aspect-ratio: 3 / 4 !important;
}

.pp-service-list .pp-card.pp-cover-landscape .pp-card-cover img,
.pp-service-list .pp-card-cover.pp-cover-landscape img {
  aspect-ratio: 16 / 10 !important;
}

.pp-service-list .pp-card.pp-cover-circle,
.pp-service-list .pp-card.pp-cover-circle:hover {
  overflow: visible !important;
  border: none !important;
  box-shadow: none !important;
}

.pp-service-list .pp-card-cover.pp-cover-circle,
.pp-service-list .pp-card.pp-cover-circle .pp-card-cover {
  width: 72% !important;
  margin: 16px auto 0 !important;
  border-radius: 50% !important;
}

.pp-service-list .pp-card-cover.pp-cover-circle img,
.pp-service-list .pp-card.pp-cover-circle .pp-card-cover img {
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
}

.pp-service-list .pp-card {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.pp-service-list .pp-card:hover {
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.pp-service-list .pp-card-body {
  border-top: none !important;
}

.pp-card-body {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.pp-card-desc {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--pp-text-muted, rgba(0, 0, 0, 0.62));
}

.pp-card-meta {
  margin: 6px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--pp-text-muted, rgba(0, 0, 0, 0.5));
}

.pp-service-carousel-card {
  height: auto;
  display: flex;
  flex-direction: column;
}

.pp-service-carousel .swiper-slide {
  height: auto;
}

/* ── Swiper nav: CSS chevrons (no swiper-icons font) ── */
.pp-site .pp-carousel-swiper .swiper-button-prev::after,
.pp-site .pp-carousel-swiper .swiper-button-next::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  font-size: 0;
  line-height: 0;
  font-family: inherit;
}

.pp-site .pp-carousel-swiper .swiper-button-prev::after {
  transform: rotate(-135deg);
  margin-left: 2px;
}

.pp-site .pp-carousel-swiper .swiper-button-next::after {
  transform: rotate(45deg);
  margin-right: 2px;
}

/* ── Carousel: natural height when not user-resized ── */
.wb-carousel-resize-target:not(.is-sized) .pp-carousel-swiper,
.wb-carousel-resize-target:not(.is-sized) .pp-carousel-swiper.swiper,
.wb-carousel-resize-target:not(.is-sized) .swiper-wrapper,
.pp-site .pp-carousel--cards .swiper-wrapper,
.pp-site .pp-carousel--cards .swiper {
  height: auto !important;
}

.pp-site .pp-carousel-swiper .swiper-wrapper {
  height: auto;
}

.pp-site .pp-carousel-swiper .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  position: relative;
  display: block;
}

.pp-site .pp-carousel-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Match editor preview caps (not viewport vh) */
.pp-site .pp-carousel--hero .pp-carousel-main .swiper-slide img {
  max-height: 420px;
}

.pp-site .pp-carousel--thumbnails .pp-carousel-main .swiper-slide img {
  max-height: 360px;
}

.pp-site .pp-carousel--thumbnails .pp-carousel-thumbs {
  margin-top: 10px;
}

.pp-site .pp-carousel--thumbnails .pp-carousel-thumbs .swiper-slide img {
  height: 56px;
}

.pp-site .pp-carousel--coverflow {
  padding: 16px 0 32px;
}

.pp-site .pp-carousel--coverflow .swiper-slide {
  width: 70%;
}

/* ── User-resized carousel / media: fill the saved box ── */
.wb-carousel-resize-target {
  max-width: 100%;
  box-sizing: border-box;
}

.wb-carousel-resize-target.is-sized {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.wb-carousel-resize-target.is-sized .wb-selectable-el-inner,
.wb-carousel-resize-target.is-sized > div:first-child {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wb-carousel-resize-target.is-sized .pp-carousel,
.wb-carousel-resize-target.is-sized .swiper {
  height: 100% !important;
  min-height: 0;
  max-width: 100% !important;
  box-sizing: border-box;
}

.wb-carousel-resize-target.is-sized .pp-carousel-swiper .swiper-slide,
.wb-carousel-resize-target.is-sized .pp-carousel-swiper .swiper-wrapper {
  height: 100%;
}

.wb-carousel-resize-target.is-sized .pp-carousel-swiper .swiper-slide img,
.wb-carousel-resize-target.is-sized img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: none;
}

/* Sized images / video on public site */
.wb-selectable-el.is-sized,
.wb-carousel-resize-target.is-sized {
  overflow: hidden;
}

.wb-selectable-el.is-sized .wb-selectable-el-inner img,
.wb-selectable-el.is-sized img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
