/* Theme-owned identity; native Image and Heading/Post Title own the content. */
.is-style-archive-label:is(.wp-block-free-presets-slide-film,.wp-block-free-presets-preset-slide-film) {
	--fp-slide-ink-grain: url(../images/slide/ink-grain.svg);
	--fp-slide-reverse-print: url(../images/slide/processed-by-voxcolor.svg);
}

.is-style-archive-label > .slide-film-frame {
	--fp-slide-aperture-width: 84cqi;
	--fp-slide-aperture-height: 56cqi;
	--fp-slide-label-gap: 5cqi;
	isolation: isolate;

	/* Neutral paper material; ink and photograph remain separate. */
	background-image: linear-gradient(#ffffffc4, #ffffffc4), url(../images/slide/ivory-paper.webp);
	background-blend-mode: normal, luminosity;
	background-size: 100% 100%;
	text-align: start;
}

.is-style-archive-label > .slide-film-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0.22cqi 0.28cqi #fff, inset 0 -0.22cqi 0.24cqi #26394d16;
	pointer-events: none;
}

.is-style-archive-label .slide-film-content > :is(.wp-block-heading,.wp-block-post-title) {
	inline-size: 84%;
}

.is-style-archive-label .slide-film-preset-type,
.is-style-archive-label .slide-film-badge-container {
	top: 0;
	height: 22%;
	display: flex;
	align-items: center;
	transform: none;
	font: 400 2.05cqi / 1.1 var(--wp--preset--font-family--inter, sans-serif);
	letter-spacing: 0.08em;
}

.is-style-archive-label .slide-film-preset-type {
	left: 8%;
	max-inline-size: 60%;
	font-size: 3.4cqi;
	letter-spacing: 0.025em;
	text-transform: none;
}

.is-style-archive-label .slide-film-badge-container {
	right: 8%;
}

.is-style-archive-label :is(.slide-film-preset-type,.slide-film-badge-container) small {
	font-size: inherit;
}

.is-style-archive-label .slide-film-preset-type small {
	display: inline-flex;
	align-items: center;
	gap: 2.2cqi;
}

.is-style-archive-label .preset-icon {
	display: inline-block;
	flex: 0 0 6cqi;
	width: 6cqi;
	height: 6cqi;
	margin: 0;
	vertical-align: baseline;
}

.is-style-archive-label .slide-film-badge {
	padding: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-shadow: none;
}

/* Ink only. The material and photograph remain outside every print mask. */
.is-style-archive-label .slide-film-content > :is(.wp-block-heading,.wp-block-post-title),
.is-style-archive-label .preset-type-label,
.is-style-archive-label .slide-film-badge-container,
.fpj-slide-back.is-style-archive-label::after {
	mix-blend-mode: multiply;
	opacity: 0.98;
	mask-image: var(--fp-slide-ink-grain);
	mask-mode: luminance;
	mask-size: 42cqi 42cqi;
	mask-repeat: repeat;
}

/* Half-depth chamfer with the approved 0.64cqi rounded opening. */
.is-style-archive-label .slide-film-content > :is(.wp-block-image,.wp-block-post-featured-image),
.fpj-slide-back.is-style-archive-label .fpj-film {
	--edge-depth: 0.775cqi;
	overflow: visible;
	isolation: isolate;
	border-radius: 0.64cqi;
	box-shadow: none;
}

.is-style-archive-label .slide-film-content > :is(.wp-block-image,.wp-block-post-featured-image) img,
.fpj-slide-back.is-style-archive-label .fpj-film img {
	position: relative;
	z-index: 1;
	border-radius: inherit;
}

.is-style-archive-label .slide-film-content > :is(.wp-block-image,.wp-block-post-featured-image)::before,
.fpj-slide-back.is-style-archive-label .fpj-film::before {
	content: "";
	position: absolute;
	inset: calc(-1 * var(--edge-depth));
	z-index: 0;
	border-radius: calc(0.64cqi + var(--edge-depth));
	background: conic-gradient(from 0deg at 50% 50%, #d4d8dc 0deg 56.3deg, #fdfefe 56.3deg 123.7deg, #fff 123.7deg 236.3deg, #e5e8ea 236.3deg 303.7deg, #d4d8dc 303.7deg 360deg);
	box-shadow: 0 0.125cqi 0.25cqi #fff7, 0 -0.08cqi 0.15cqi #2534430f;
	pointer-events: none;
}

.is-style-archive-label .slide-film-content > :is(.wp-block-image,.wp-block-post-featured-image)::after,
.fpj-slide-back.is-style-archive-label .fpj-film::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	box-shadow: inset 0.07cqi 0.19cqi 0.225cqi -0.05cqi #0d192264, inset -0.025cqi -0.04cqi 0.06cqi #fff4;
	background: none;
	pointer-events: none;
}

.fpj-slide-back.is-style-archive-label {
	container-type: inline-size;
	isolation: isolate;
}

.fpj-slide-back.is-style-archive-label::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--fp-slide-reverse-print) center / 100% 100% no-repeat;
	pointer-events: none;
}

.fpj-slide-back.is-style-archive-label .fpj-film {
	--edge-depth: 0.4cqi;
}

.fpj-slide-back.is-style-archive-label .fpj-film::before {
	background: conic-gradient(from 0deg at 50% 50%, #d4d9dd 0deg 56.3deg, #fff 56.3deg 123.7deg, #fff 123.7deg 236.3deg, #e7eaed 236.3deg 303.7deg, #d4d9dd 303.7deg 360deg);
}

/* Focus belongs to the native Group, outside its clamped printed title. */
.preset-slide-card:focus-within {
	outline: 2px solid var(--wp--preset--color--custom-contrast, #334155);
	outline-offset: 5px;
}
