.has-bdphotos-frame:not(.is-style-grid) {
	--bdphotos-frame-paper: var(--wp--preset--color--on-dark);
	--bdphotos-frame-ink: var(--wp--preset--color--shade);
	--bdphotos-frame-ink-soft: color-mix(in srgb, var(--bdphotos-frame-ink) 62%, var(--bdphotos-frame-paper));
	--bdphotos-frame-rule: color-mix(in srgb, var(--bdphotos-frame-ink) 22%, transparent);
	--bdphotos-frame-edge: clamp(5px, 0.75vw, 10px);
	--bdphotos-frame-shadow:
		0 0 0 1px var(--wp--preset--color--line),
		0 0.5rem 1.25rem -0.75rem color-mix(in srgb, var(--wp--preset--color--shade) 45%, transparent);
}

@media (min-width: 601px) {
	.wp-block-gallery.has-nested-images.has-bdphotos-frame:not(.is-style-grid) {
		--bdphotos-gap: calc(var(--wp--style--unstable-gallery-gap, 0.75rem) * 1.5);
	}
}

.has-bdphotos-frame:not(.is-style-grid) .bdphotos-print {
	container-type: inline-size;
	box-sizing: border-box;
	border: var(--bdphotos-frame-edge) solid var(--bdphotos-frame-paper);
	background: var(--bdphotos-frame-paper);
	box-shadow: var(--bdphotos-frame-shadow);
	color: var(--bdphotos-frame-ink);
}

.has-bdphotos-frame:not(.is-style-grid) .bdphotos-print img {
	width: 100%;
}

.has-bdphotos-frame.bdphotos-frame-bar:not(.is-style-grid) {
	--bdphotos-frame-strip: 100px;
}

.has-bdphotos-frame.bdphotos-frame-mat:not(.is-style-grid) {
	--bdphotos-frame-strip: 78px;
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) {
	--bdphotos-frame-strip: 94px;
}

.has-bdphotos-frame.bdphotos-frame-film:not(.is-style-grid) {
	--bdphotos-frame-strip: 28px;
}

.has-bdphotos-frame.bdphotos-frame-slide:not(.is-style-grid) {
	--bdphotos-frame-strip: 28px;
}

.has-bdphotos-frame:not(.is-style-grid) .bdphotos-print:has(.bdphotos-print__strip)::before {
	content: none;
}

.has-bdphotos-frame:not(.is-style-grid) .bdphotos-print .bdphotos-print__strip {
	gap: 0;
	margin: 0;
	padding: 0;
	color: var(--bdphotos-frame-ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(10px, 2.4cqi, 16px);
	line-height: 1.2;
	text-align: start;
}

.has-bdphotos-frame:not(.is-style-grid) .bdphotos-print__strip > * {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.has-bdphotos-frame:not(.is-style-grid) .bdphotos-print__strip a {
	color: inherit;
	text-decoration: none;
}

.has-bdphotos-frame.bdphotos-frame-bar:not(.is-style-grid) .bdphotos-print__strip {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-content: center;
	align-items: center;
	column-gap: clamp(8px, 2.4cqi, 20px);
	min-height: clamp(40px, 11cqi, 96px);
	padding-inline: clamp(2px, 1cqi, 8px);
}

.has-bdphotos-frame.bdphotos-frame-bar:not(.is-style-grid) .bdphotos-print__label {
	grid-row: 1 / span 2;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(12px, 3.3cqi, 24px);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
}

.has-bdphotos-frame.bdphotos-frame-bar:not(.is-style-grid) .bdphotos-print__main,
.has-bdphotos-frame.bdphotos-frame-bar:not(.is-style-grid) .bdphotos-print__date {
	grid-column: 2;
	padding-inline-start: clamp(8px, 2.2cqi, 18px);
	border-inline-start: 1px solid var(--bdphotos-frame-rule);
	white-space: nowrap;
}

.has-bdphotos-frame.bdphotos-frame-bar:not(.is-style-grid) .bdphotos-print__main {
	align-self: end;
	padding-block-end: 0.2em;
	font-size: clamp(10.5px, 2.5cqi, 18px);
	font-weight: 500;
}

.has-bdphotos-frame.bdphotos-frame-bar:not(.is-style-grid) .bdphotos-print__date {
	align-self: start;
	padding-block-start: 0.2em;
	color: var(--bdphotos-frame-ink-soft);
	font-size: clamp(9.5px, 2cqi, 14px);
}

.has-bdphotos-frame.bdphotos-frame-bar:not(.is-style-grid) .bdphotos-print__main:last-child,
.has-bdphotos-frame.bdphotos-frame-bar:not(.is-style-grid) .bdphotos-print__label + .bdphotos-print__date {
	grid-row: 1 / span 2;
	align-self: center;
	padding-block: 0;
}

.has-bdphotos-frame.bdphotos-frame-bar:not(.is-style-grid) .bdphotos-camera__setting + .bdphotos-camera__setting {
	margin-inline-start: 0.55em;
}

.has-bdphotos-frame.bdphotos-frame-mat:not(.is-style-grid) {
	--bdphotos-frame-edge: clamp(10px, 1.6vw, 22px);
}

.has-bdphotos-frame.bdphotos-frame-mat:not(.is-style-grid) .bdphotos-print__strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: clamp(3px, 1cqi, 8px) 0.5em;
	padding-block: clamp(10px, 3.4cqi, 26px) clamp(0px, 0.6cqi, 6px);
	color: var(--bdphotos-frame-ink-soft);
	font-size: clamp(10px, 2.3cqi, 16px);
	text-align: center;
}

.has-bdphotos-frame.bdphotos-frame-mat:not(.is-style-grid) .bdphotos-print__label {
	flex-basis: 100%;
	color: var(--bdphotos-frame-ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(9px, 2cqi, 14px);
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1;
	text-transform: uppercase;
}

.has-bdphotos-frame.bdphotos-frame-mat:not(.is-style-grid) .bdphotos-print__main + .bdphotos-print__date::before {
	content: "·" / "";
	margin-inline-end: 0.5em;
}

.has-bdphotos-frame.bdphotos-frame-mat:not(.is-style-grid) .bdphotos-camera__setting + .bdphotos-camera__setting {
	margin-inline-start: 0.9em;
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) .bdphotos-print__strip {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	padding-block: clamp(8px, 2.4cqi, 18px) clamp(0px, 0.4cqi, 4px);
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) .bdphotos-print__strip > * {
	overflow: hidden;
	padding-inline: clamp(5px, 1.6cqi, 14px);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(12px, 3.6cqi, 21px);
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.1;
	text-transform: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) .bdphotos-print__strip > * + * {
	border-inline-start: 1px solid var(--bdphotos-frame-rule);
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) .bdphotos-camera {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	row-gap: clamp(6px, 2cqi, 14px);
	color: var(--bdphotos-frame-ink-soft);
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) figcaption.bdphotos-camera > * {
	padding-inline: 0;
	border: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(9px, 1.9cqi, 13px);
	font-weight: 400;
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) .bdphotos-camera__body {
	padding-inline-start: clamp(5px, 1.6cqi, 14px);
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) figcaption.bdphotos-camera .bdphotos-camera__settings {
	display: grid;
	flex: 1 0 100%;
	order: -1;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	color: var(--bdphotos-frame-ink);
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) .bdphotos-camera__setting {
	display: flex;
	flex-direction: column;
	gap: clamp(2px, 0.8cqi, 6px);
	padding-inline: clamp(5px, 1.6cqi, 14px);
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) .bdphotos-camera__setting + .bdphotos-camera__setting {
	border-inline-start: 1px solid var(--bdphotos-frame-rule);
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) figcaption.bdphotos-camera .bdphotos-camera__label {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip-path: none;
	color: var(--bdphotos-frame-ink-soft);
	font-size: clamp(7.5px, 1.6cqi, 11px);
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.1;
	text-transform: uppercase;
	white-space: normal;
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) .bdphotos-camera__value {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(11px, 3cqi, 21px);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) .bdphotos-camera__body ~ .bdphotos-camera__date::before {
	content: "·" / "";
	margin-inline: 0.4em;
}

.has-bdphotos-frame.bdphotos-frame-spec:not(.is-style-grid) .bdphotos-camera__settings:first-child + .bdphotos-camera__date {
	padding-inline-start: clamp(5px, 1.6cqi, 14px);
}

.has-bdphotos-frame.bdphotos-frame-film:not(.is-style-grid) {
	--bdphotos-frame-paper: var(--wp--preset--color--shade);
	--bdphotos-frame-ink: #f0a43c;
	--bdphotos-frame-edge: clamp(4px, 0.6vw, 8px);
	
	--bdphotos-frame-edge-block: clamp(11px, 1.3vw, 20px);
}

.has-bdphotos-frame.bdphotos-frame-film:not(.is-style-grid) .bdphotos-print {
	border-block-width: 0;
}

.has-bdphotos-frame.bdphotos-frame-film:not(.is-style-grid) .bdphotos-print::before,
.has-bdphotos-frame.bdphotos-frame-film:not(.is-style-grid) .bdphotos-print::after {
	content: "";
	position: static;
	display: block;
	height: clamp(11px, 1.3vw, 20px);
	max-height: none;
	backdrop-filter: none;
	background: color-mix(in srgb, var(--wp--preset--color--on-dark) 88%, transparent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18'%3E%3Crect x='7' y='4' width='10' height='10' rx='2'/%3E%3C/svg%3E") repeat-x center / auto 100%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18'%3E%3Crect x='7' y='4' width='10' height='10' rx='2'/%3E%3C/svg%3E") repeat-x center / auto 100%;
}

.has-bdphotos-frame.bdphotos-frame-film:not(.is-style-grid) .bdphotos-print__strip {
	display: flex;
	gap: 1.2em;
	overflow: hidden;
	padding: clamp(3px, 1cqi, 8px) clamp(2px, 1cqi, 8px) 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: clamp(8px, 1.9cqi, 13px);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.has-bdphotos-frame.bdphotos-frame-film:not(.is-style-grid) .bdphotos-print__main::before {
	content: "▸ " / "";
}

.has-bdphotos-frame.bdphotos-frame-film:not(.is-style-grid) .bdphotos-camera__setting + .bdphotos-camera__setting {
	margin-inline-start: 0.7em;
}

.has-bdphotos-frame.bdphotos-frame-film:not(.is-style-grid) .bdphotos-print__date {
	margin-inline-start: auto;
	opacity: 0.75;
}

.has-bdphotos-frame.bdphotos-frame-slide:not(.is-style-grid) {
	--bdphotos-frame-paper: color-mix(in srgb, var(--wp--preset--color--on-dark) 93%, var(--wp--preset--color--muted));
	--bdphotos-frame-ink: color-mix(in srgb, var(--wp--preset--color--shade) 80%, var(--wp--preset--color--on-dark));
	--bdphotos-frame-edge: clamp(9px, 1.3vw, 18px);
	--bdphotos-frame-shadow:
		0 0 0 1px color-mix(in srgb, var(--wp--preset--color--shade) 10%, transparent),
		0 0.6rem 1.2rem -0.7rem color-mix(in srgb, var(--wp--preset--color--shade) 55%, transparent);
}

.has-bdphotos-frame.bdphotos-frame-slide:not(.is-style-grid) .bdphotos-print,
.has-bdphotos-frame.bdphotos-frame-slide:not(.is-style-grid) .bdphotos-pile {
	border-radius: 9px;
}

.has-bdphotos-frame.bdphotos-frame-slide:not(.is-style-grid) .bdphotos-print img {
	border-radius: 5px;
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.2);
}

.has-bdphotos-frame.bdphotos-frame-slide:not(.is-style-grid) .bdphotos-print__strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.3em 1em;
	padding-block-start: clamp(6px, 2cqi, 12px);
	font-size: clamp(8px, 1.9cqi, 11px);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.has-bdphotos-frame.bdphotos-frame-slide:not(.is-style-grid) .bdphotos-print__main,
.has-bdphotos-frame.bdphotos-frame-slide:not(.is-style-grid) .bdphotos-print__date {
	color: var(--bdphotos-frame-ink-soft);
}

.has-bdphotos-frame.bdphotos-frame-slide:not(.is-style-grid) .bdphotos-camera__setting + .bdphotos-camera__setting {
	margin-inline-start: 0.8em;
}

.has-bdphotos-frame:not(.is-style-grid) .bdphotos-camera__model {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
}

.has-bdphotos-cards .bdphotos-stack {
	position: relative;
	isolation: isolate;
}

.has-bdphotos-cards .wp-block-post-title,
.has-bdphotos-cards .bdphotos-count {
	position: relative;
	z-index: 1;
}

.has-bdphotos-cards .bdphotos-stack,
.has-bdphotos-cards .bdphotos-tilt-1 {
	--bdphotos-pile-1-a: -2.6;
	--bdphotos-pile-1-x: -3;
	--bdphotos-pile-1-y: 3;
	--bdphotos-pile-2-a: 1.8;
	--bdphotos-pile-2-x: 4;
	--bdphotos-pile-2-y: 1;
	--bdphotos-pile-3-a: -4.6;
	--bdphotos-pile-3-x: -7;
	--bdphotos-pile-3-y: 6;
	--bdphotos-pile-4-a: 3.8;
	--bdphotos-pile-4-x: 8;
	--bdphotos-pile-4-y: 4;
	--bdphotos-fan-1-a: -9;
	--bdphotos-fan-1-x: -14;
	--bdphotos-fan-1-y: -4;
	--bdphotos-fan-2-a: 8;
	--bdphotos-fan-2-x: 14;
	--bdphotos-fan-2-y: -5;
}

.has-bdphotos-cards .bdphotos-tilt-2 {
	--bdphotos-pile-1-a: 2.2;
	--bdphotos-pile-1-x: 3;
	--bdphotos-pile-1-y: 2;
	--bdphotos-pile-2-a: -1.6;
	--bdphotos-pile-2-x: -4;
	--bdphotos-pile-2-y: 3;
	--bdphotos-pile-3-a: 4.2;
	--bdphotos-pile-3-x: 6;
	--bdphotos-pile-3-y: 5;
	--bdphotos-pile-4-a: -3.4;
	--bdphotos-pile-4-x: -8;
	--bdphotos-pile-4-y: 4;
	--bdphotos-fan-1-a: -7;
	--bdphotos-fan-1-x: -12;
	--bdphotos-fan-1-y: -5;
	--bdphotos-fan-2-a: 10;
	--bdphotos-fan-2-x: 15;
	--bdphotos-fan-2-y: -3;
}

.has-bdphotos-cards .bdphotos-tilt-3 {
	--bdphotos-pile-1-a: -1.4;
	--bdphotos-pile-1-x: -2;
	--bdphotos-pile-1-y: 4;
	--bdphotos-pile-2-a: 2.8;
	--bdphotos-pile-2-x: 5;
	--bdphotos-pile-2-y: 2;
	--bdphotos-pile-3-a: -3.6;
	--bdphotos-pile-3-x: -6;
	--bdphotos-pile-3-y: 7;
	--bdphotos-pile-4-a: 4.4;
	--bdphotos-pile-4-x: 9;
	--bdphotos-pile-4-y: 3;
	--bdphotos-fan-1-a: -10;
	--bdphotos-fan-1-x: -15;
	--bdphotos-fan-1-y: -3;
	--bdphotos-fan-2-a: 6;
	--bdphotos-fan-2-x: 12;
	--bdphotos-fan-2-y: -5;
}

.has-bdphotos-cards .bdphotos-tilt-4 {
	--bdphotos-pile-1-a: 3;
	--bdphotos-pile-1-x: 4;
	--bdphotos-pile-1-y: 3;
	--bdphotos-pile-2-a: -2.4;
	--bdphotos-pile-2-x: -3;
	--bdphotos-pile-2-y: 2;
	--bdphotos-pile-3-a: 1.2;
	--bdphotos-pile-3-x: 7;
	--bdphotos-pile-3-y: 6;
	--bdphotos-pile-4-a: -4.8;
	--bdphotos-pile-4-x: -8;
	--bdphotos-pile-4-y: 5;
	--bdphotos-fan-1-a: -7;
	--bdphotos-fan-1-x: -12;
	--bdphotos-fan-1-y: -4;
	--bdphotos-fan-2-a: 9;
	--bdphotos-fan-2-x: 14;
	--bdphotos-fan-2-y: -4;
}

.has-bdphotos-cards .bdphotos-tilt-5 {
	--bdphotos-pile-1-a: -3.2;
	--bdphotos-pile-1-x: -4;
	--bdphotos-pile-1-y: 2;
	--bdphotos-pile-2-a: 1.2;
	--bdphotos-pile-2-x: 3;
	--bdphotos-pile-2-y: 4;
	--bdphotos-pile-3-a: 4;
	--bdphotos-pile-3-x: 8;
	--bdphotos-pile-3-y: 5;
	--bdphotos-pile-4-a: -2.8;
	--bdphotos-pile-4-x: -7;
	--bdphotos-pile-4-y: 6;
	--bdphotos-fan-1-a: -8;
	--bdphotos-fan-1-x: -13;
	--bdphotos-fan-1-y: -6;
	--bdphotos-fan-2-a: 7;
	--bdphotos-fan-2-x: 13;
	--bdphotos-fan-2-y: -2;
}

.has-bdphotos-cards .bdphotos-tilt-6 {
	--bdphotos-pile-1-a: 1.6;
	--bdphotos-pile-1-x: 2;
	--bdphotos-pile-1-y: 3;
	--bdphotos-pile-2-a: -3;
	--bdphotos-pile-2-x: -5;
	--bdphotos-pile-2-y: 1;
	--bdphotos-pile-3-a: -4.2;
	--bdphotos-pile-3-x: -6;
	--bdphotos-pile-3-y: 6;
	--bdphotos-pile-4-a: 2.4;
	--bdphotos-pile-4-x: 9;
	--bdphotos-pile-4-y: 4;
	--bdphotos-fan-1-a: -11;
	--bdphotos-fan-1-x: -16;
	--bdphotos-fan-1-y: -4;
	--bdphotos-fan-2-a: 8;
	--bdphotos-fan-2-x: 12;
	--bdphotos-fan-2-y: -5;
}

.bdphotos-cards-stack .bdphotos-stack {
	margin-block-end: 1rem;
}

.bdphotos-pile {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--bdphotos-frame-paper, var(--wp--preset--color--surface));
	box-shadow: var(--bdphotos-frame-shadow, 0 0 0 1px var(--wp--preset--color--line));
	transform: rotate(calc(var(--bdphotos-a) * var(--bdphotos-tilt-scale, 1) * 1deg)) translate(calc(var(--bdphotos-x) * 1px), calc(var(--bdphotos-y) * 1px));
	transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.bdphotos-pile:nth-child(1) {
	--bdphotos-a: calc(var(--bdphotos-pile-1-a) + var(--bdphotos-nudge-1-a, 0) * 0.8);
	--bdphotos-x: calc(var(--bdphotos-pile-1-x) + var(--bdphotos-nudge-1-x, 0) * 2);
	--bdphotos-y: calc(var(--bdphotos-pile-1-y) + var(--bdphotos-nudge-1-y, 0) * 1.5);
}

.bdphotos-pile:nth-child(2) {
	--bdphotos-a: calc(var(--bdphotos-pile-2-a) + var(--bdphotos-nudge-2-a, 0) * 0.8);
	--bdphotos-x: calc(var(--bdphotos-pile-2-x) + var(--bdphotos-nudge-2-x, 0) * 2);
	--bdphotos-y: calc(var(--bdphotos-pile-2-y) + var(--bdphotos-nudge-2-y, 0) * 1.5);
}

.bdphotos-pile:nth-child(3) {
	--bdphotos-a: calc(var(--bdphotos-pile-3-a) + var(--bdphotos-nudge-3-a, 0) * 0.8);
	--bdphotos-x: calc(var(--bdphotos-pile-3-x) + var(--bdphotos-nudge-3-x, 0) * 2);
	--bdphotos-y: calc(var(--bdphotos-pile-3-y) + var(--bdphotos-nudge-3-y, 0) * 1.5);
}

.bdphotos-pile:nth-child(4) {
	--bdphotos-a: calc(var(--bdphotos-pile-4-a) + var(--bdphotos-nudge-4-a, 0) * 0.8);
	--bdphotos-x: calc(var(--bdphotos-pile-4-x) + var(--bdphotos-nudge-4-x, 0) * 2);
	--bdphotos-y: calc(var(--bdphotos-pile-4-y) + var(--bdphotos-nudge-4-y, 0) * 1.5);
}

.wp-block-post:hover .bdphotos-pile {
	transform: rotate(calc(var(--bdphotos-a) * var(--bdphotos-tilt-scale, 1) * 1.9deg)) translate(calc(var(--bdphotos-x) * 2.4px), calc(var(--bdphotos-y) * 1.6px));
}

.bdphotos-frame-film .bdphotos-pile {
	background: color-mix(in srgb, var(--wp--preset--color--shade) 88%, var(--wp--preset--color--on-dark));
}

.bdphotos-cards-fan .bdphotos-stack {
	margin: 0.9rem 11% 0.5rem;
}

.bdphotos-fan {
	position: absolute;
	inset: 0;
	z-index: -1;
	transform: rotate(calc(var(--bdphotos-a) * var(--bdphotos-tilt-scale, 1) * 1deg)) translate(calc(var(--bdphotos-x) * var(--bdphotos-tilt-scale, 1) * 1%), calc(var(--bdphotos-y) * 1%)) scale(0.86);
	transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.bdphotos-fan:nth-child(1) {
	--bdphotos-a: calc(var(--bdphotos-fan-1-a) + var(--bdphotos-nudge-1-a, 0) * 1.5);
	--bdphotos-x: calc(var(--bdphotos-fan-1-x) + var(--bdphotos-nudge-1-x, 0) * 2);
	--bdphotos-y: calc(var(--bdphotos-fan-1-y) + var(--bdphotos-nudge-1-y, 0) * 1.5);
	--bdphotos-spread: -1;
}

.bdphotos-fan:nth-child(2) {
	--bdphotos-a: calc(var(--bdphotos-fan-2-a) + var(--bdphotos-nudge-2-a, 0) * 1.5);
	--bdphotos-x: calc(var(--bdphotos-fan-2-x) + var(--bdphotos-nudge-2-x, 0) * 2);
	--bdphotos-y: calc(var(--bdphotos-fan-2-y) + var(--bdphotos-nudge-2-y, 0) * 1.5);
	--bdphotos-spread: 1;
}

.wp-block-post:hover .bdphotos-fan {
	transform: rotate(calc((var(--bdphotos-a) + var(--bdphotos-spread) * 4) * var(--bdphotos-tilt-scale, 1) * 1deg)) translate(calc((var(--bdphotos-x) + var(--bdphotos-spread) * 5) * var(--bdphotos-tilt-scale, 1) * 1%), calc((var(--bdphotos-y) - 1) * 1%)) scale(0.86);
}

.bdphotos-fan .bdphotos-print {
	display: block;
	box-sizing: border-box;
	height: 100%;
}

.bdphotos-fan img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.has-bdphotos-cards .bdphotos-print {
	--bdphotos-peek-gap: 4px;
}

.has-bdphotos-cards .bdphotos-print > .wp-block-post-featured-image {
	margin-block-end: 0;
}

.has-bdphotos-cards .bdphotos-print > .bdphotos-peek {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--bdphotos-peek-gap);
	margin-block-start: var(--bdphotos-peek-gap);
}

.bdphotos-peek__photo {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
}

.bdphotos-peek__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bdphotos-peek__more {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--wp--preset--color--shade) 55%, transparent);
	color: var(--wp--preset--color--on-dark);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.bdphotos-cards-overlay .wp-block-post-featured-image {
	position: relative;
}

.bdphotos-print__title {
	position: absolute;
	inset: auto 0 0;
	padding: 2.2rem 0.8rem 0.7rem;
	background: linear-gradient(transparent, color-mix(in srgb, var(--wp--preset--color--shade) 70%, transparent));
	color: var(--wp--preset--color--on-dark);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.1;
	pointer-events: none;
}

.bdphotos-cards-overlay .wp-block-post-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wp-block-post-template.bdphotos-shape-original {
	display: block;
	columns: 3 16rem;
	column-gap: var(--wp--preset--spacing--40);
}

.wp-block-post-template.bdphotos-shape-original > .wp-block-post {
	margin-block-end: var(--wp--preset--spacing--40);
	break-inside: avoid;
}

.wp-block-post-template.has-bdphotos-cards:not(.bdphotos-shape-original) > .wp-block-post {
	display: flex;
	flex-direction: column;
}

.has-bdphotos-cards:not(.bdphotos-shape-original) > .wp-block-post > .wp-block-group,
.has-bdphotos-cards:not(.bdphotos-shape-original) .bdphotos-stack,
.has-bdphotos-cards:not(.bdphotos-shape-original) .bdphotos-print {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.has-bdphotos-cards:not(.bdphotos-shape-original) .bdphotos-print > .wp-block-post-featured-image {
	flex: 1 1 auto;
}

.has-bdphotos-cards:not(.bdphotos-shape-original) .bdphotos-print > .wp-block-post-featured-image > a {
	display: block;
	height: 100%;
}

.has-bdphotos-cards:not(.bdphotos-shape-original) .bdphotos-print > .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-post-template.has-bdphotos-featured > .wp-block-post:nth-child(1 of :not(.post-password-required)) {
	--bdphotos-tilt-scale: 0.3;
	grid-column: 1 / -1;
	container-type: inline-size;
}

.has-bdphotos-featured > .wp-block-post:nth-child(1 of :not(.post-password-required)) .bdphotos-print > .wp-block-post-featured-image img {
	height: auto;
	aspect-ratio: var(--bdphotos-shape-ratio, 4/3);
	object-fit: cover;
}

.bdphotos-cards-fan.has-bdphotos-featured > .wp-block-post:nth-child(1 of :not(.post-password-required)) .bdphotos-stack {
	margin-inline: 1.5%;
}

@container (min-width: 34rem) {
	.has-bdphotos-featured > .wp-block-post:nth-child(1 of :not(.post-password-required)) .bdphotos-print > .wp-block-post-featured-image img {
		aspect-ratio: 16/9;
	}

	.has-bdphotos-featured > .wp-block-post:nth-child(1 of :not(.post-password-required)) .bdphotos-print > .bdphotos-peek {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}
}

@container (min-width: 56rem) {
	.has-bdphotos-featured > .wp-block-post:nth-child(1 of :not(.post-password-required)) .bdphotos-print > .wp-block-post-featured-image img {
		aspect-ratio: 2/1;
	}

	.has-bdphotos-featured > .wp-block-post:nth-child(1 of :not(.post-password-required)) .bdphotos-print > .bdphotos-peek {
		grid-template-columns: repeat(10, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.bdphotos-pile,
	.bdphotos-fan {
		transition: none;
	}
}

@container (width < 250px) {
	.has-bdphotos-frame:not(.is-style-grid) .bdphotos-print .bdphotos-print__strip {
		display: none;
	}
}

@container (width < 420px) {
	.has-bdphotos-frame.bdphotos-frame-film:not(.is-style-grid) figcaption.bdphotos-camera .bdphotos-print__date {
		display: none;
	}
}
