/* White photographic prints; copyright captions sit on the paper, outside the gloss. */
.bp-postcard {
	--bp-paper: 12px;
	--bp-rx: 0deg;
	--bp-ry: 0deg;
	--bp-gloss-x: 30%;
	--bp-gloss-y: 20%;
	box-sizing: border-box;
	position: relative;
	isolation: isolate;
	display: block;
	max-width: 100%;
	padding: var(--bp-paper) !important;
	background: #fff;
	border: 1px solid #e7e7e2;
	border-radius: 3px;
	box-shadow:
		0 2px 3px #0b29420a,
		0 12px 28px -18px #0b29424d;
	transform: perspective(1100px) rotateX(var(--bp-rx)) rotateY(var(--bp-ry));
	transform-origin: center;
	transition:
		transform 0.35s ease,
		box-shadow 0.35s ease;
}
.bp-postcard::after {
	content: "";
	position: absolute;
	pointer-events: none;
	z-index: 1;
	left: var(--bp-paper);
	top: var(--bp-paper);
	right: var(--bp-paper);
	height: var(--bp-print-height, calc(100% - 50px));
	background:
		radial-gradient(
			ellipse at var(--bp-gloss-x) var(--bp-gloss-y),
			#ffffff30,
			transparent 65%
		),
		linear-gradient(
			125deg,
			#ffffff12 5%,
			#ffffff32 26%,
			#ffffff05 45%,
			transparent 70%
		);
	border-radius: 1px;
	box-shadow: inset 0 0 0 1px #ffffff38;
}
.bp-postcard img {
	display: block;
	border: 0 !important;
	border-radius: 1px !important;
	box-shadow: none !important;
}
.bp-postcard figcaption,
.bp-destination-photo.bp-postcard figcaption {
	position: relative;
	z-index: 2;
	display: block;
	color: #56616d;
	text-align: left;
	font-family: var(--bp-font);
	font-size: 10px !important;
	line-height: 1.65 !important;
	margin: 10px 1px 1px !important;
	overflow-wrap: anywhere;
}
.bp-postcard figcaption a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.bp-postcard figcaption a:hover {
	color: var(--bp-blue);
}
.bp-postcard figcaption a:focus-visible {
	outline: 2px solid var(--bp-blue);
	outline-offset: 3px;
}
.bp-person .bp-postcard {
	--bp-paper: 7px;
	width: 134px;
	margin: 0 !important;
}
.bp-person .bp-postcard img {
	width: 100% !important;
	height: 125px !important;
	object-fit: cover;
}
.bp-person .bp-postcard figcaption {
	font-size: 9px !important;
	line-height: 1.5 !important;
	margin-top: 7px !important;
}
.bp-interior-agence .bp-content > .bp-people .bp-postcard {
	width: 172px;
	--bp-paper: 9px;
}
.bp-interior-agence .bp-content > .bp-people .bp-postcard img {
	height: 164px !important;
}
@media (hover: hover) and (pointer: fine) and (
		prefers-reduced-motion: no-preference
	) {
	.bp-postcard[data-tilting] {
		transition:
			transform 0.12s ease-out,
			box-shadow 0.25s ease;
		box-shadow:
			0 3px 6px #0b294210,
			0 21px 35px -22px #0b294270;
	}
}
@media (max-width: 781px) {
	.bp-postcard {
		--bp-paper: 9px;
	}
	.bp-postcard figcaption {
		font-size: 10px !important;
	}
	.bp-person .bp-postcard {
		width: 120px;
		--bp-paper: 6px;
	}
	.bp-person .bp-postcard img {
		height: 110px !important;
	}
	.bp-interior-agence .bp-content > .bp-people .bp-postcard {
		width: 100%;
		max-width: 160px;
		--bp-paper: 7px;
	}
	.bp-interior-agence .bp-content > .bp-people .bp-postcard img {
		height: 140px !important;
	}
	.bp-photo-pair {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.bp-photo-pair .bp-postcard:first-child img {
		height: 285px;
	}
	.bp-photo-pair .bp-postcard:last-child img {
		height: 230px;
	}
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
	.bp-postcard {
		transform: none !important;
		transition: none !important;
	}
}
/* Photo credits are a discreet printed inscription on the white postcard border. */
.bp-postcard figcaption,
.bp-destination-photo.bp-postcard figcaption,
.bp-photo-pair .bp-postcard figcaption {
	font-family: var(--bp-accent) !important;
	font-size: 9px !important;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	line-height: 1.65 !important;
	color: #64707b;
	margin: 9px 3px 2px !important;
}
.bp-postcard figcaption a {
	text-decoration: none;
}
.bp-postcard figcaption a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}
@media (max-width: 781px) {
	.bp-postcard figcaption,
	.bp-destination-photo.bp-postcard figcaption,
	.bp-photo-pair .bp-postcard figcaption {
		font-size: 8px !important;
		letter-spacing: 0.075em;
		margin: 8px 2px 1px !important;
	}
}
/* Credits are printed within the existing bottom border, without adding height. */
.bp-postcard figcaption,
.bp-destination-photo.bp-postcard figcaption,
.bp-photo-pair .bp-postcard figcaption {
	position: absolute;
	left: var(--bp-paper);
	right: var(--bp-paper);
	bottom: 0;
	margin: 0 !important;
	height: var(--bp-paper);
	display: flex;
	align-items: center;
	gap: 0.25em;
	white-space: nowrap;
	overflow: hidden;
	line-height: 1 !important;
	font-size: 8px !important;
	letter-spacing: 0.04em;
}
@media (max-width: 781px) {
	.bp-postcard figcaption,
	.bp-destination-photo.bp-postcard figcaption,
	.bp-photo-pair .bp-postcard figcaption {
		font-size: 8px !important;
		letter-spacing: 0.02em;
		margin: 0 !important;
	}
}

/* Readable credits remain inside the existing white print border. */
.bp-postcard figcaption {
	letter-spacing: 0 !important;
	gap: 0.15em;
}
