/* Container (gallery extension + standalone block) */
.wp-block-gallery.gst-center-peek,
.wp-block-c2-carousel.gst-center-peek,
.c2-carousel.gst-center-peek { position: relative; }

/* Fixed-size viewport driven by explicit width/height (if set).
   Height otherwise comes from the slide frames. */
.wp-block-gallery.gst-center-peek .gst-viewport,
.wp-block-c2-carousel.gst-center-peek .gst-viewport,
.c2-carousel.gst-center-peek .gst-viewport {
	position: relative;
	overflow: hidden;
	width: 100%; /* inherits container width unless user sets one */
}

/* Track height is driven by slides */
.wp-block-gallery.gst-center-peek .gst-track,
.wp-block-c2-carousel.gst-center-peek .gst-track,
.c2-carousel.gst-center-peek .gst-track {
	display: flex;
	align-items: center;
	will-change: transform;
	gap: 16px; /* JS syncs this; here as default */
}

/* Slides fill viewport height and are centered */
.wp-block-gallery.gst-center-peek .gst-slide,
.wp-block-c2-carousel.gst-center-peek .gst-slide,
.c2-carousel.gst-center-peek .gst-slide {
	flex: 0 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

/* Images scale to fit (letterbox/pillarbox as needed) */
.wp-block-gallery.gst-center-peek .gst-slide img,
.wp-block-c2-carousel.gst-center-peek .gst-slide img,
.c2-carousel.gst-center-peek .gst-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain; /* keep entire image visible */
	display: block;
}

/* Optional: hide default figure margins that can mess alignment */
.wp-block-gallery.gst-center-peek figure.gst-slide,
.wp-block-c2-carousel.gst-center-peek figure.gst-slide,
.c2-carousel.gst-center-peek figure.gst-slide { margin: 0; }

/* If captions exist, overlay them at the bottom */
.wp-block-gallery.gst-center-peek .gst-slide figcaption,
.wp-block-c2-carousel.gst-center-peek .gst-slide figcaption,
.c2-carousel.gst-center-peek .gst-slide figcaption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,.5);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	padding: 6px 8px;
}

/* Arrows - positioned relative to gallery container (outside viewport)
   so buttons can be placed beyond the slide area without being clipped.
   Customize with e.g.: .gst-prev { left: -40px; } .gst-next { right: -40px; } */
.wp-block-gallery.gst-center-peek .gst-nav,
.wp-block-c2-carousel.gst-center-peek .gst-nav,
.c2-carousel.gst-center-peek .gst-nav {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}

.wp-block-gallery.gst-center-peek .gst-prev,
.wp-block-gallery.gst-center-peek .gst-next,
.wp-block-c2-carousel.gst-center-peek .gst-prev,
.wp-block-c2-carousel.gst-center-peek .gst-next,
.c2-carousel.gst-center-peek .gst-prev,
.c2-carousel.gst-center-peek .gst-next {
	pointer-events: auto;
	background: rgba(0,0,0,.4);
	color: #fff;
	border: 0;
	border-radius: 3px;
	font-size: 22px;
	line-height: 1;
	padding: 8px 10px;
	margin: 0 8px;
	cursor: pointer;
	transition: background .2s ease;
}

.wp-block-gallery.gst-center-peek .gst-prev:hover,
.wp-block-gallery.gst-center-peek .gst-next:hover,
.wp-block-c2-carousel.gst-center-peek .gst-prev:hover,
.wp-block-c2-carousel.gst-center-peek .gst-next:hover,
.c2-carousel.gst-center-peek .gst-prev:hover,
.c2-carousel.gst-center-peek .gst-next:hover { background: rgba(0,0,0,.6); }

/* Dots */
.wp-block-gallery.gst-center-peek .gst-dots,
.wp-block-c2-carousel.gst-center-peek .gst-dots,
.c2-carousel.gst-center-peek .gst-dots {
	position: absolute; left: 0; right: 0; bottom: 6px;
	display: flex; justify-content: center; gap: 6px;
}

.wp-block-gallery.gst-center-peek .gst-dot,
.wp-block-c2-carousel.gst-center-peek .gst-dot,
.c2-carousel.gst-center-peek .gst-dot {
	width: 10px; height: 10px; border-radius: 50%; border: 0;
	background: rgba(255,255,255,.55); cursor: pointer; padding: 0;
}

.wp-block-gallery.gst-center-peek .gst-dot.is-active,
.wp-block-c2-carousel.gst-center-peek .gst-dot.is-active,
.c2-carousel.gst-center-peek .gst-dot.is-active { background: #fff; }

/* Focus outlines for a11y */
.wp-block-gallery.gst-center-peek .gst-prev:focus,
.wp-block-gallery.gst-center-peek .gst-next:focus,
.wp-block-gallery.gst-center-peek .gst-dot:focus,
.wp-block-c2-carousel.gst-center-peek .gst-prev:focus,
.wp-block-c2-carousel.gst-center-peek .gst-next:focus,
.wp-block-c2-carousel.gst-center-peek .gst-dot:focus,
.c2-carousel.gst-center-peek .gst-prev:focus,
.c2-carousel.gst-center-peek .gst-next:focus,
.c2-carousel.gst-center-peek .gst-dot:focus {
	outline: 2px solid #72aee6; outline-offset: 2px;
}

/* Legacy [slick-slider] replacement. The public class names stay compatible
   with existing theme customizations; no Slick/jQuery assets are required. */
.c2-legacy-slider-wrap,
.c2-legacy-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.c2-legacy-slider-track {
	display: flex;
	width: 100%;
	will-change: transform;
	transition-property: transform;
	transition-timing-function: ease;
}

.c2-legacy-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	overflow: hidden;
	text-align: center;
}

.c2-legacy-slide .wpsisac-slide-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.c2-legacy-slide .wpsisac-slider-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.c2-legacy-slide .wpsisac-slider-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .4);
}

.c2-legacy-slider.design-2 .wpsisac-slider-content {
	position: absolute;
	top: 50%;
	left: 10%;
	z-index: 2;
	width: 80%;
	color: #fff;
	text-align: center;
	transform: translateY(-50%);
}

.c2-legacy-slider .wpsisac-slider-short-content {
	margin-bottom: 15px;
}

.c2-legacy-slider .wpsisac-slider-short-content p,
.c2-legacy-slider .wpsisac-slide-title {
	color: #fff;
	text-shadow: 0 1px 2px #000;
}

.c2-legacy-slider .wpsisac-slider-readmore {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid #fff;
	background: rgba(0, 0, 0, .8);
	color: #fff;
	text-decoration: none;
}

.c2-legacy-slider .c2-legacy-prev,
.c2-legacy-slider .c2-legacy-next {
	position: absolute;
	top: 50%;
	z-index: 1001;
	width: 44px;
	height: 52px;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 28px;
	line-height: 52px;
	cursor: pointer;
	transform: translateY(-50%);
}

.c2-legacy-slider .c2-legacy-prev { left: 0; }
.c2-legacy-slider .c2-legacy-next { right: 0; }
.c2-legacy-slider .c2-legacy-prev:hover,
.c2-legacy-slider .c2-legacy-next:hover { background: rgba(0, 0, 0, .6); }
.c2-legacy-slider .c2-legacy-prev:focus-visible,
.c2-legacy-slider .c2-legacy-next:focus-visible,
.c2-legacy-slider .c2-legacy-dots button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -4px;
}

.c2-legacy-dots {
	position: absolute;
	right: 15px;
	bottom: 8px;
	left: 15px;
	z-index: 1001;
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.c2-legacy-dots button {
	display: block;
	width: 11px;
	height: 11px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	font-size: 0;
	cursor: pointer;
}

.c2-legacy-dots .slick-active button { background: #fff; }

.c2-legacy-slider.c2-legacy-fade .c2-legacy-slider-track {
	position: relative;
	display: block;
}

.c2-legacy-slider.c2-legacy-fade .c2-legacy-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition-property: opacity;
	transition-timing-function: ease;
}

.c2-legacy-slider.c2-legacy-fade .c2-legacy-slide:first-child,
.c2-legacy-slider.c2-legacy-fade .c2-legacy-slide.is-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
	.c2-legacy-slider-track,
	.c2-legacy-slide { transition-duration: 0ms !important; }
}
