/* BLOOMPHOTO – frontend */
.bloomphoto {
	position: relative; width: 100%;
	display: flex; flex-direction: column; gap: var(--bp-gap, 12px);
	font-family: var(--bp-font, inherit);
}
.bloomphoto__frame {
	position: relative; width: 100%; height: var(--bp-h); overflow: hidden;
	background: var(--bp-bg); cursor: pointer; outline: none;
	touch-action: pan-y;
}
@media (max-width: 767px) { .bloomphoto__frame { height: var(--bp-hm); } }
.bloomphoto__frame:focus-visible { box-shadow: 0 0 0 2px var(--bp-fg); }

/* Foto iniziale: visibile subito (e senza JavaScript), poi lascia il posto al canvas */
.bloomphoto__poster {
	position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
	object-fit: cover; display: block; transition: opacity .4s;
}
.bloomphoto__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bloomphoto.is-ready .bloomphoto__poster { opacity: 0; }

.bloomphoto__bar {
	display: flex; justify-content: space-between; gap: 1.5em;
	font-family: var(--bp-font, inherit); font-size: var(--bp-fs); line-height: 1.4;
	letter-spacing: .04em; text-transform: var(--bp-tt, uppercase); color: var(--bp-fg);
	white-space: nowrap;
}
.bloomphoto__bar span { font: inherit; }
.bloomphoto__name { overflow: hidden; text-overflow: ellipsis; }
.bloomphoto__name-in { display: inline-block; animation: bpIn .7s cubic-bezier(.2,.8,.2,1) both; }
.bloomphoto__count { opacity: .45; flex: none; }
@keyframes bpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bloomphoto__name-in { animation: none; } }
