/* Service facts sections (block theme). Card specs reuse listing.css. */

.pt-facts__title {
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--large, 1.375rem);
}

.pt-facts .pt-card__specs {
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	font-size: 1rem;
}

.pt-facts .pt-card__specs .pt-icon {
	color: var(--wp--preset--color--brand-dark, #c99400);
}

.pt-facts__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pt-facts__list li {
	display: flex;
	gap: 0.5rem;
}

.pt-facts__list .pt-icon {
	flex: 0 0 auto;
	margin-top: 0.2em;
	color: #2e7d32;
}

.pt-facts__dl {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2.5rem;
	margin: 0;
}

.pt-facts__dl dt {
	color: var(--wp--preset--color--muted, #5f5f5a);
	font-size: 0.875rem;
}

.pt-facts__dl dd {
	margin: 0;
	font-weight: 600;
}

.pt-facts__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
	gap: 0.5rem;
}

.pt-facts__gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 10px;
}

.pt-facts__faq {
	border-bottom: 1px solid var(--wp--preset--color--line, #e6e6e0);
}

.pt-facts__faq summary {
	padding: 0.9rem 0;
	font-weight: 600;
	cursor: pointer;
}

.pt-facts__faq > div {
	padding-bottom: 0.75rem;
}

.pt-block-empty {
	padding: 1rem;
	border: 1px dashed #c3c4c7;
	color: #646970;
	font-size: 13px;
}

/* Service page head */

.pt-facts--highlights .pt-card__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin: 0;
	color: var(--wp--preset--color--muted, #5f5f5a);
}

.pt-photos {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: repeat(2, 11.5rem);
	overflow: hidden;
	border-radius: 20px;
}

.pt-photos a {
	position: relative;
	display: block;
	min-height: 0;
	overflow: hidden;
	background: #f6f5f1;
}

.pt-photos a:first-child {
	grid-row: span 2;
}

.pt-photos a img {
	position: absolute;
	box-sizing: border-box;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.pt-photos--1 {
	grid-template-columns: 1fr;
	grid-template-rows: 21rem;
}

.pt-photos--1 a:first-child {
	grid-row: auto;
}

.pt-photos--1 a img {
	padding: 1rem;
	object-fit: contain;
}

.pt-photos--2 {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 24rem;
}

.pt-photos--2 a:first-child {
	grid-row: auto;
}

.pt-photos--3 {
	grid-template-columns: 2fr 1fr;
}

.pt-photos--4 a:first-child {
	grid-row: span 2;
}

.pt-photos--4 a:last-child {
	grid-column: span 2;
}

@media (max-width: 781px) {
	/* A swipeable strip keeps the first screen short. */
	.pt-photos,
	.pt-photos--1,
	.pt-photos--2,
	.pt-photos--3 {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		border-radius: 14px;
	}

	.pt-photos a {
		flex: 0 0 88%;
		height: 15rem;
		scroll-snap-align: start;
	}

	.pt-photos--1 a {
		flex-basis: 100%;
	}
}

/* Lightbox (assets/lightbox.js) */
.pt-photos a,
.pt-facts__gallery a {
	cursor: zoom-in;
}
html.pt-lightbox-open {
	overflow: hidden;
}
.pt-lightbox {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(12, 12, 12, 0.96);
	color: #fff;
}
.pt-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.6);
}
.pt-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	height: 100%;
	margin: 0;
	padding: 3.5rem 4rem;
	box-sizing: border-box;
}
.pt-lightbox__figure img {
	max-width: 100%;
	max-height: calc(100dvh - 8rem);
	object-fit: contain;
	border-radius: 6px;
}
.pt-lightbox__figure figcaption {
	font-size: 0.875rem;
	opacity: 0.8;
}
.pt-lightbox button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}
.pt-lightbox button:hover,
.pt-lightbox button:focus-visible {
	background: rgba(255, 255, 255, 0.3);
}
.pt-lightbox__close {
	top: 1rem;
	right: 1rem;
}
.pt-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
}
.pt-lightbox__prev {
	left: 1rem;
}
.pt-lightbox__next {
	right: 1rem;
}
@media (max-width: 600px) {
	.pt-lightbox__figure {
		padding: 3.5rem 0.5rem;
	}
	.pt-lightbox__nav {
		top: auto;
		bottom: 1rem;
		transform: none;
	}
}
