/*
 * Photo viewer for assets/js/lightbox.js: project galleries and the mockups
 * on a quote. A native modal dialog in the top layer, so it sits above the
 * sticky header. Colors fall back for the quote page, which has no theme.
 */
.cpc-lightbox {
	background: transparent;
	border: 0;
	box-sizing: border-box;
	color: #fff;
	height: 100%;
	inset: 0;
	margin: 0;
	max-height: none;
	max-width: none;
	padding: 3.75rem 4.5rem 2.5rem;
	width: 100%;
}
.cpc-lightbox::backdrop { background: rgb(18 26 31 / 0.96); }
.cpc-lightbox__figure { align-items: center; display: flex; flex-direction: column; gap: 0.75rem; height: 100%; justify-content: center; margin: 0; }
.cpc-lightbox__img { border-radius: 4px; height: auto; max-height: calc(100% - 2.5rem); max-width: 100%; object-fit: contain; width: auto; }
.cpc-lightbox__caption { color: var(--wp--preset--color--cream, #f4f0e7); font-size: var(--wp--preset--font-size--small, 0.875rem); max-width: 40rem; text-align: center; }
.cpc-lightbox__count { font-size: var(--wp--preset--font-size--small, 0.875rem); left: 1rem; margin: 0; position: absolute; top: 1.25rem; }
.cpc-lightbox button {
	align-items: center;
	background: rgb(255 255 255 / 0.12);
	border: 1px solid rgb(255 255 255 / 0.35);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	position: absolute;
}
.cpc-lightbox button:hover { background: rgb(255 255 255 / 0.22); }
.cpc-lightbox button:focus-visible { outline: 3px solid var(--wp--preset--color--cream, #f4f0e7); outline-offset: 2px; }
.cpc-lightbox button[hidden] { display: none; }
.cpc-lightbox__close { font-weight: 600; padding: 0 1.1rem; right: 1rem; top: 0.75rem; }
.cpc-lightbox__prev,
.cpc-lightbox__next { font-size: 1.4rem; height: 3rem; top: 50%; transform: translateY(-50%); width: 3rem; }
.cpc-lightbox__prev { left: 0.75rem; }
.cpc-lightbox__next { right: 0.75rem; }
html.cpc-lightbox-open { overflow: hidden; }
@media (max-width: 599px) {
	/* Phones: the photo uses the full width; previous and next sit at the bottom. */
	.cpc-lightbox { padding: 3.75rem 0.75rem 5rem; }
	.cpc-lightbox__prev,
	.cpc-lightbox__next { bottom: 1rem; top: auto; transform: none; }
	.cpc-lightbox__prev { left: calc(50% - 3.5rem); }
	.cpc-lightbox__next { left: calc(50% + 0.5rem); right: auto; }
}
@media (prefers-reduced-motion: no-preference) {
	.cpc-lightbox[open] { animation: cpc-lightbox-in 0.15s ease-out; }
	@keyframes cpc-lightbox-in { from { opacity: 0; } }
}
