/* Container */
.wp-block-gallery.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 {
	position: relative;
	overflow: hidden;
	width: 100%; /* inherits container width unless user sets one */
	/* aspect-ratio REMOVED: it is now applied per-slide */
}

/* Track height is driven by slides */
.wp-block-gallery.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 {
	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 {
	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 { margin: 0; }

/* If captions exist, overlay them at the bottom; remove if undesired */
.wp-block-gallery.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 */
.wp-block-gallery.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 {
	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 { background: rgba(0,0,0,.6); }

/* Dots */
.wp-block-gallery.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 {
	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 { 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 {
	outline: 2px solid #72aee6; outline-offset: 2px;
}
