/* Vertical module only; the shared engine and controls remain common. */
.d5gc-vertical-carousel {width:100%;max-width:100%;min-width:0;min-height:0;height:auto}
.d5gc-vertical-carousel > .et_pb_module_inner,
.d5gc-vertical-carousel .d5gc-module-inner {height:auto;min-height:0}
.d5gc-shell[data-axis="y"] {
  --d5gc-paint-left:min(var(--d5gc-shadow-room),var(--d5gc-page-left,0px));
  --d5gc-paint-right:min(var(--d5gc-shadow-room),var(--d5gc-page-right,0px));
  --d5gc-viewport-height:var(--d5gc-viewport-height-desktop,600px);
  --d5gc-viewport-height-tablet:initial;--d5gc-viewport-height-phone:initial;
  height:max(1px,var(--d5gc-viewport-height));min-height:0;
  grid-template-rows:[pages-top] auto [arrows-top] auto [stage] minmax(0,1fr) [arrows-bottom] auto [pages-bottom] auto [end];
}
.d5gc-shell[data-axis="y"]:not(.d5gc-builder-all) > .d5gc-viewport {
  height:100%;min-height:0;width:calc(100% + var(--d5gc-paint-left) + var(--d5gc-paint-right));
  padding-block:0;margin-block:0;padding-left:var(--d5gc-paint-left);padding-right:var(--d5gc-paint-right);margin-left:calc(0px - var(--d5gc-paint-left));margin-right:calc(0px - var(--d5gc-paint-right));
  touch-action:pan-x pinch-zoom;
}
.d5gc-shell[data-axis="y"]:not(.d5gc-builder-all) > .d5gc-viewport::before {inset:0 var(--d5gc-paint-right) 0 var(--d5gc-paint-left)}
.d5gc-shell[data-axis="y"] > .d5gc-viewport > .d5gc-track {
  height:100%;min-height:0;width:100%;grid-auto-flow:row;grid-template-rows:none;
  grid-template-columns:minmax(0,1fr);grid-auto-columns:auto;
  grid-auto-rows:calc(var(--d5gc-column-width) + var(--d5gc-gap));
  align-items:start;justify-items:var(--d5gc-item-align,stretch);
}
.d5gc-shell[data-axis="y"] > .d5gc-viewport > .d5gc-track > :not(style):not(script):not(link):not(template) {
  height:calc(100% - var(--d5gc-gap))!important;max-height:none!important;min-height:0!important;
  max-width:100%;min-width:0;box-sizing:border-box;position:relative;
  margin:0 0 var(--d5gc-gap)!important;
}
.d5gc-shell[data-axis="y"].d5gc-finite-row > .d5gc-viewport > .d5gc-track > .d5gc-last-item {margin-bottom:0!important}
.d5gc-shell[data-axis="y"]:not(.is-ready):not(.d5gc-builder-all) > .d5gc-viewport {overflow-x:hidden;overflow-y:auto;scroll-snap-type:y mandatory}
.d5gc-shell[data-axis="y"][data-fade-type="transparent"]:is([data-fade-edges="both"],[data-fade-edges="left"],[data-fade-edges="right"]) > .d5gc-viewport {
  --d5gc-mask:linear-gradient(to bottom,rgba(0,0,0,var(--d5gc-fade-edge-alpha)),#000 var(--d5gc-fade-left),#000 calc(100% - var(--d5gc-fade-right)),rgba(0,0,0,var(--d5gc-fade-edge-alpha)));
}
.d5gc-shell[data-axis="y"][data-fade-type="color"] > .d5gc-viewport::after {
  inset:0 var(--d5gc-paint-right) 0 var(--d5gc-paint-left);
  background:linear-gradient(to bottom,var(--d5gc-fade-color),transparent var(--d5gc-fade-left),transparent calc(100% - var(--d5gc-fade-right)),var(--d5gc-fade-color));
}
.d5gc-shell[data-axis="y"] > .d5gc-controls .d5gc-prev svg {transform:rotate(-90deg)}
.d5gc-shell[data-axis="y"] > .d5gc-controls .d5gc-next svg {transform:rotate(90deg)}
.d5gc-shell[data-axis="y"] > .d5gc-controls .d5gc-next {order:0}
.d5gc-shell[data-axis="y"] > .d5gc-controls .d5gc-custom-icon {transform:none}
.d5gc-shell[data-axis="y"] > .d5gc-hint .d5gc-hint-art > svg {transform:rotate(90deg)}
.d5gc-shell[data-axis="y"]:is([data-arrow-row="ends"],[data-arrow-row="side-left"],[data-arrow-row="side-right"]) > .d5gc-controls > .d5gc-arrow-layer {
  flex-direction:column;justify-content:space-between;justify-self:center;align-self:stretch;
  height:100%;padding:var(--d5gc-arrow-inset) 0;width:max-content;
}
.d5gc-shell[data-axis="y"][data-arrow-row="side-left"] > .d5gc-controls > .d5gc-arrow-layer {justify-self:start;margin-left:var(--d5gc-arrow-inset)}
.d5gc-shell[data-axis="y"][data-arrow-row="side-right"] > .d5gc-controls > .d5gc-arrow-layer {justify-self:end;margin-right:var(--d5gc-arrow-inset)}
.d5gc-shell[data-axis="y"][data-arrow-row="outside-ends"] > .d5gc-controls > .d5gc-arrow-layer {display:contents}
.d5gc-shell[data-axis="y"][data-arrow-row="outside-ends"] > .d5gc-controls .d5gc-arrow {grid-column:stage;justify-self:center;transform:translate(var(--d5gc-arrow-x),var(--d5gc-arrow-y))}
.d5gc-shell[data-axis="y"][data-arrow-row="outside-ends"] > .d5gc-controls .d5gc-prev {grid-row:arrows-top;margin-bottom:var(--d5gc-arrow-inset)}
.d5gc-shell[data-axis="y"][data-arrow-row="outside-ends"] > .d5gc-controls .d5gc-next {grid-row:arrows-bottom;margin-top:var(--d5gc-arrow-inset)}
.d5gc-shell[data-axis="y"]:is([data-pagination-row="inside-left"],[data-pagination-row="inside-right"]) > .d5gc-controls > .d5gc-pagination {align-self:stretch;flex-flow:column nowrap;max-height:100%;padding:var(--d5gc-pagination-inset);width:max-content}
.d5gc-shell[data-axis="y"][data-pagination-row="inside-left"] > .d5gc-controls > .d5gc-pagination {justify-self:start}
.d5gc-shell[data-axis="y"][data-pagination-row="inside-right"] > .d5gc-controls > .d5gc-pagination {justify-self:end}
.d5gc-shell[data-axis="y"]:is([data-pagination-row="inside-left"],[data-pagination-row="inside-right"]) > .d5gc-controls .d5gc-progress {width:var(--d5gc-bar-height);height:var(--d5gc-bar-width);max-height:100%}
.d5gc-shell[data-axis="y"]:is([data-pagination-row="inside-left"],[data-pagination-row="inside-right"]) > .d5gc-controls .d5gc-progress-fill {transform:scaleY(var(--d5gc-progress));transform-origin:top}
/* Edit mode always exposes every original child at its authored size. */
.d5gc-shell[data-axis="y"].d5gc-builder-all {height:auto}
.d5gc-shell[data-axis="y"].d5gc-builder-all > .d5gc-viewport > .d5gc-track {height:auto;grid-auto-rows:auto;gap:20px}
.d5gc-shell[data-axis="y"].d5gc-builder-all > .d5gc-viewport > .d5gc-track > .d5gc-item {height:auto!important;margin:0!important}
@media(max-width:980px){.d5gc-shell[data-axis="y"] {--d5gc-viewport-height:var(--d5gc-viewport-height-tablet,var(--d5gc-viewport-height-desktop,520px))}}
@media(max-width:767px){.d5gc-shell[data-axis="y"] {--d5gc-viewport-height:var(--d5gc-viewport-height-phone,var(--d5gc-viewport-height-tablet,var(--d5gc-viewport-height-desktop,440px)))}}

/* Every vertical item keeps its intrinsic block height, including loaded images. */
.d5gc-shell[data-axis="y"] {height:auto;grid-template-rows:[pages-top] auto [arrows-top] auto [stage] auto [arrows-bottom] auto [pages-bottom] auto [end]}
.d5gc-shell[data-axis="y"]:not(.d5gc-builder-all) > .d5gc-viewport {height:var(--d5gc-natural-height,var(--d5gc-viewport-height))}
.d5gc-shell[data-axis="y"] > .d5gc-viewport > .d5gc-track {height:100%;grid-auto-rows:max-content}
.d5gc-shell[data-axis="y"] > .d5gc-viewport > .d5gc-track > :not(style):not(script):not(link):not(template) {height:auto!important;min-height:0!important;align-self:start}
.d5gc-shell[data-axis="y"].d5gc-builder-all > .d5gc-viewport {height:auto}
