.ggpw-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.ggpw-track {
  display: flex;
  align-items: stretch;
  will-change: transform;
}

.ggpw-horizontal .ggpw-track {
  flex-direction: row;
  width: max-content;
}

.ggpw-vertical {
  max-height: 720px;
}

.ggpw-vertical .ggpw-track {
  flex-direction: column;
}

.ggpw-card {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.ggpw-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.ggpw-card-image {
  width: 100%;
  overflow: hidden;
  background: #f4f4f4;
}

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

.ggpw-card-body {
  padding: 16px;
}

.ggpw-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.ggpw-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ggpw-card-content,
.ggpw-card-acf {
  margin: 0;
  line-height: 1.45;
}

.ggpw-card-content {
  font-size: 14px;
  opacity: .82;
}

.ggpw-card-acf {
  font-size: 13px;
  opacity: .78;
}

.ggpw-3d {
  overflow: visible;
  perspective: 1200px;
}

.ggpw-3d-stage {
  --ggpw-depth: 260px;
  --ggpw-oval: .68;
  width: 100%;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1200px;
  overflow: visible;
}

.ggpw-3d-ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.ggpw-3d .ggpw-card {
  max-width: 90vw;
  transform-style: preserve-3d;
}

.ggpw-3d-card {
  backface-visibility: hidden;
}

.ggpw-3d .ggpw-card-link {
  transform-style: preserve-3d;
}

.ggpw-split-flap {
  overflow: visible;
  perspective: 900px;
}

.ggpw-split-flap-stage {
  position: relative;
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 900px;
}

.ggpw-split-flap-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.ggpw-split-flap-card {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.ggpw-split-flap-card .ggpw-card {
  width: 100%;
  height: 100%;
}

.ggpw-split-flap-card .ggpw-card-link {
  height: 100%;
}

.ggpw-split-flap-stage::before,
.ggpw-split-flap-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  pointer-events: none;
  z-index: 9;
}

.ggpw-split-flap-stage::before {
  top: 0;
}

.ggpw-split-flap-stage::after {
  bottom: 0;
}

.ggpw-split-flap-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ggpw-split-flap-content,
.ggpw-split-flap-acf {
  margin: 0;
  line-height: 1.45;
}

.ggpw-split-flap-content {
  font-size: 14px;
  opacity: .82;
}

.ggpw-split-flap-acf {
  font-size: 13px;
  opacity: .78;
}

.ggpw-perspective {
  height: 80vh;
  overflow: hidden;
  perspective: 1300px;
  background: transparent;
}

.ggpw-perspective-stage {
  width: 120%;
  min-height: calc(100% + var(--ggpw-perspective-adjustment, 180px));
  margin-left: -10%;
  transform-style: preserve-3d;
  transform: rotateZ(var(--ggpw-perspective-rotate, -40deg)) rotateX(var(--ggpw-perspective-tilt-tb, 48deg)) rotateY(var(--ggpw-perspective-tilt-lr, 0deg)) translateY(calc(var(--ggpw-perspective-adjustment, 180px) * -1));
  transform-origin: center center;
  will-change: transform;
}

.ggpw-perspective .ggpw-track,
.ggpw-perspective-track {
  flex-direction: column;
  align-items: center;
  width: max-content;
  min-width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.ggpw-perspective .ggpw-card {
  max-width: 90vw;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.ggpw-perspective .ggpw-card-image img {
  transform: translateZ(0);
}

.ggpw-isometric-cube {
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
}

.ggpw-isometric-stage {
  --ggpw-iso-width: 900px;
  --ggpw-iso-side-height: 430px;
  --ggpw-iso-top-height: 0px;
  --ggpw-iso-angle: 28deg;
  --ggpw-iso-rotate: 0deg;
  --ggpw-iso-adjustment: 0px;
  --ggpw-iso-seam-shift: 0px;
  position: relative;
  width: min(var(--ggpw-iso-width), 96vw);
  height: var(--ggpw-iso-side-height);
  transform: translateY(var(--ggpw-iso-adjustment)) rotateZ(var(--ggpw-iso-rotate));
  transform-style: preserve-3d;
}

.ggpw-isometric-top { display: none !important; }

.ggpw-isometric-side {
  position: absolute;
  top: 0;
  width: 50%;
  height: var(--ggpw-iso-side-height);
  overflow: hidden;
border: 1px solid rgba(0,0,0,.14);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  box-sizing: border-box;
}

/* Vertical widget full-height fix */
.ggpw-wrap[data-ggpw-axis="vertical"],
.ggpw-wrap[data-ggpw-axis="vertical"] .ggpw-marquee {
    height: 100%;
    min-height: inherit;
}

.ggpw-wrap[data-ggpw-axis="vertical"] .ggpw-track {
    min-height: 100%;
}
