.pressify-artwork {
	margin: 1.5em 0;
	padding: 1em 1.1em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.015);
}

.pressify-artwork__head {
	font-weight: 600;
}

.pressify-artwork__toggle {
	display: flex;
	gap: 0.6em;
	align-items: center;
	cursor: pointer;
}

.pressify-artwork__hint {
	font-size: 0.8em;
	font-weight: 400;
	opacity: 0.72;
	margin: 0.4em 0 0;
}

.pressify-artwork__body {
	margin-top: 1em;
}

.pressify-viewer {
	display: flex;
	flex-direction: column;
	gap: 0.9em;
}

.pressify-viewer__stage {
	position: relative;
	width: 100%;
	max-width: 620px;
	margin-inline: auto;
	background: linear-gradient(180deg, #f8f8f8 0%, #eeeeee 100%);
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 10px;
	overflow: hidden;
}

.pressify-viewer__side {
	width: 100%;
	max-width: 680px;
	margin-inline: auto;
}

@media (min-width: 861px) {
	.pressify-viewer__side {
		display: grid;
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: 1.2em;
		align-items: start;
	}

	.pressify-views {
		margin-bottom: 0;
	}
}

.pressify-viewer__stage canvas {
	display: block;
	width: 100%;
	height: auto;
}

/* Enlarge / close pill, top-right of the stage. */
.pressify-zoom {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.42em 0.75em;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: inherit;
	font-size: 0.72em;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	transition: background 0.15s ease, transform 0.15s ease;
}

.pressify-zoom,
.pressify-zoom:hover,
.pressify-zoom:focus,
.pressify-zoom:active {
	/* Themes (Astra included) restyle <button>; keep the pill readable. */
	background: rgba(255, 255, 255, 0.96);
	color: #111;
}

.pressify-zoom:hover {
	background: #fff;
	transform: translateY(-1px);
}

.pressify-zoom:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.pressify-zoom__icon {
	font-size: 1.15em;
	line-height: 1;
}

.pressify-stage__caption {
	display: none;
	margin: 0;
}

/* Fullscreen preview: the stage leaves the page flow, the canvas is fitted by JS. */
.pressify-artwork.is-zoomed .pressify-viewer__stage {
	position: fixed;
	inset: 0;
	width: auto;
	max-width: none;
	margin: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3.4em 1.4em 3.4em;
	background: rgba(16, 16, 16, 0.84);
	border: 0;
	border-radius: 0;
	overflow: auto;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.pressify-artwork.is-zoomed .pressify-viewer__stage canvas {
	width: auto;
	height: auto;
	background: #f2f2f2;
	border-radius: 12px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.pressify-artwork.is-zoomed .pressify-zoom {
	top: 1.1em;
	right: 1.2em;
	font-size: 0.8em;
	padding: 0.55em 0.95em;
}

.pressify-artwork.is-zoomed .pressify-stage__caption {
	display: block;
	position: absolute;
	bottom: 1.15em;
	left: 0;
	right: 0;
	padding: 0 1em;
	text-align: center;
	font-size: 0.8em;
	color: rgba(255, 255, 255, 0.82);
}

body.pressify-no-scroll {
	overflow: hidden;
}

@media (max-width: 600px) {
	.pressify-artwork.is-zoomed .pressify-viewer__stage {
		padding: 3em 0.5em;
	}

	.pressify-artwork.is-zoomed .pressify-zoom {
		top: 0.7em;
		right: 0.7em;
	}

	.pressify-artwork.is-zoomed .pressify-zoom__label {
		display: none;
	}
}

.pressify-views {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-bottom: 1em;
}

@media (max-width: 600px) {
	.pressify-views {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 0.35em;
		-webkit-overflow-scrolling: touch;
	}

	.pressify-thumb {
		flex: 0 0 auto;
	}
}

.pressify-thumb {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25em;
	padding: 0.35em;
	border: 2px solid transparent;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 0.68em;
	line-height: 1.1;
	color: inherit;
	max-width: 96px;
}

.pressify-thumb img,
.pressify-thumb canvas {
	width: 74px;
	height: 95px;
	object-fit: cover;
	border-radius: 4px;
	background: #f5f5f5;
	display: block;
}

.pressify-thumb span {
	text-align: center;
	opacity: 0.8;
}

.pressify-thumb.is-active {
	border-color: #111;
}

.pressify-thumb__dot {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #1d7a3c;
}

.pressify-view-title {
	font-weight: 600;
	font-size: 0.9em;
	margin: 0 0 0.7em;
}

.pressify-field {
	display: block;
	font-size: 0.85em;
	margin: 0 0 0.8em;
}

.pressify-field input[type="file"] {
	display: block;
	margin-top: 0.35em;
	max-width: 100%;
}

.pressify-field input[type="range"] {
	width: 100%;
	margin-top: 0.35em;
}

.pressify-field output {
	font-weight: 700;
}

.pressify-artwork__status {
	min-height: 1.5em;
	font-size: 0.82em;
	margin: 0.3em 0 0;
}

.pressify-artwork__status.is-ok {
	color: #1d7a3c;
}

.pressify-artwork__status.is-warn {
	color: #8a6100;
}

.pressify-artwork__status.is-error {
	color: #b32d2e;
	font-weight: 600;
}
