/* EPC Photo Highlights — matches the "Bold Civic" homepage concept. Scoped with .epc- prefix so it won't collide with theme styles. */

.epc-gallery-outer {
	--epc-navy: #003566;
	--epc-navy-deep: #001d3d;
	--epc-gold: #ffcc00;
	--epc-cream: #faf7f0;
	--epc-gallery-caption-color: rgba(250, 247, 240, 0.85);

	max-width: 320px;
	margin: 0 auto;
	font-family: 'DM Sans', Helvetica, Arial, sans-serif;
}

.epc-gallery {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
	transform: rotate(2deg);
	background: var(--epc-navy-deep);
}

.epc-gallery-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease;
}
.epc-gallery-slide.is-active {
	opacity: 1;
}
.epc-gallery-slide a,
.epc-gallery-slide img {
	display: block;
	width: 100%;
	height: 100%;
}
.epc-gallery-slide img {
	object-fit: cover;
}

.epc-gallery-pause {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(0, 20, 39, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 0.7rem;
	line-height: 1;
	padding: 0;
	transition: background 0.2s ease;
}
.epc-gallery-pause:hover {
	background: rgba(0, 20, 39, 0.8);
}
.epc-gallery-pause .epc-gallery-icon-play {
	display: none;
}
.epc-gallery-pause[aria-pressed="true"] .epc-gallery-icon-pause {
	display: none;
}
.epc-gallery-pause[aria-pressed="true"] .epc-gallery-icon-play {
	display: inline;
}

.epc-gallery-footer {
	height: 72px !important; /* hard fixed — everything inside is clipped to this, so nothing can ever push the card's total height around */
	overflow: hidden !important;
}

.epc-gallery-caption {
	margin: 14px 0 0;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--epc-gallery-caption-color);
	height: 2.8em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.epc-gallery-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
}
.epc-gallery-dots .epc-gallery-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(250, 247, 240, 0.35);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.epc-gallery-dots .epc-gallery-dot.is-active {
	background: var(--epc-gold);
	transform: scale(1.2);
}

@media (max-width: 900px) {
	.epc-gallery-outer {
		max-width: 220px;
	}
}
