/*
 * Post Carousel Images — Kadence Child Theme
 * Override any --pci-* variable in child style.css to restyle.
 */

:root {
	--pci-overlay: rgba(0, 0, 0, .46);
	--pci-ease:    .35s ease;
}

/* Break out of Kadence's .site-container to span full viewport width */
.pci-carousel {
	position: relative;
	outline: none;
	border-bottom: 1px solid #f5e8ee;
	border-right: 1px solid #f5e8ee;
}

@media (min-width: 768px) { 
	.pci-carousel { 
		padding: 2rem 2rem 2rem 0; 
	}
}

/* ── Stage ── */
.pci-stage  { position: relative; background: #1c1c1c; overflow: hidden; border-radius: 0px; }
.pci-slides { position: relative; }

/* Inactive slides sit absolutely behind the active one */
.pci-slide {
	position: absolute; top: 0; left: 0; right: 0;
	opacity: 0; visibility: hidden;
	transition: opacity var(--pci-ease), visibility var(--pci-ease);
	z-index: 0;
	border-radius: 0px;
}
.pci-slide--active { position: relative; opacity: 1; visibility: visible; z-index: 1; }
.pci-slide img     { display: block; width: 100%; max-height: 72vh; object-fit: cover; border-radius: 0px; border: 1px solid #3A2D35; border-radius: 0px; }

/* ── Arrows — tall rectangles, flush to stage edges ── */
.pci-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	z-index: 3; width: 38px; height: 72px;
	display: flex; align-items: center; justify-content: center;
	background: var(--pci-overlay); border: none; cursor: pointer;
	transition: background .18s;
}
.pci-arrow:hover,
.pci-arrow:focus-visible { background: rgba(0, 0, 0, .72); outline: none; }
.pci-arrow svg {
	width: 20px; height: 20px; fill: none;
	stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.pci-arrow img,
.pci-zoom img {
	max-width: unset;
	border: 1px solid #3A2D35;
	border-radius: 0px;
}
.pci-prev { left: 0;  border-radius: 0 4px 4px 0; }
.pci-next { right: 0; border-radius: 4px 0 0 4px; }

/* ── Bottom overlay bar: slide counter (left) + zoom button (right) ── */
.pci-bar {
	position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
	display: flex; justify-content: space-between; align-items: flex-end;
	padding: 12px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .22));
}
.pci-counter {
	display: flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	background: var(--pci-overlay);
	color: #fff; font-size: 15px; font-weight: 700; font-family: sans-serif; border-radius: 3px;
}
.pci-zoom {
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; background: var(--pci-overlay);
	border: none; border-radius: 3px; cursor: pointer; transition: background .18s;
}
.pci-zoom:hover,
.pci-zoom:focus-visible { background: rgba(0, 0, 0, .72); outline: none; }
.pci-zoom svg {
	width: 18px; height: 18px; fill: none;
	stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Thumbnail strip ── */
.pci-strip {
	display: flex; gap: 3px; overflow-x: auto;
	padding: 3px 0 0; scrollbar-width: none;
	justify-content: center;
}
.pci-strip::-webkit-scrollbar { display: none; }
.pci-thumb {
	flex: 0 0 auto; padding: 0; overflow: hidden; cursor: pointer;
	border: 2px solid transparent; background: none;
	opacity: .65; transition: opacity .2s, border-color .2s;
	border-radius: 0px;
}
.pci-thumb img     { display: block; width: 72px; height: 72px; object-fit: cover; border: 1px solid #3A2D35; border-radius: 0px; }
.pci-thumb--active { opacity: 1; border-color: #fff; }
.pci-thumb:hover   { opacity: .88; }

/* ── Responsive ── */
@media (max-width: 640px) {
	.pci-thumb img { width: 56px; height: 56px; border: 1px solid #3A2D35; border-radius: 0px; }
	.pci-arrow     { width: 30px; height: 56px; }
	.pci-arrow svg { width: 16px; height: 16px; }
}

/* ── Lightbox ── */
.pci-lb {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .88); padding: 20px; cursor: zoom-out;
	opacity: 0; visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}
.pci-lb--open { opacity: 1; visibility: visible; }
.pci-lb__close {
	position: absolute; top: 16px; right: 20px;
	background: none; border: none; color: #fff;
	font-size: 40px; line-height: 1; padding: 0; cursor: pointer;
	opacity: .75; transition: opacity .15s;
}
.pci-lb__close:hover,
.pci-lb__close:focus-visible { opacity: 1; outline: none; }
.pci-lb__img {
	max-width: 100%; max-height: calc(100vh - 80px);
	object-fit: contain; display: block; cursor: default;
	box-shadow: 0 4px 32px rgba(0, 0, 0, .6);
	border: 1px solid #3A2D35;
	border-radius: 0px;
}
