/**
 * Rasa June – Web Presentation
 *
 * Scoped under .rjcs-webpres. Four variants (see
 * class-web-presentation-widget.php): desktop, mobile, desktop+mobile,
 * full-width screenshot. Presentation width uses the same
 * .rjcs-width-contained / .rjcs-width-wide / .rjcs-width-full_bleed
 * pattern as Project Hero and Case Study Images.
 */

.rjcs-webpres,
.rjcs-webpres *,
.rjcs-webpres *::before,
.rjcs-webpres *::after {
	box-sizing: border-box;
}

.rjcs-webpres {
	width: 100%;
	max-width: 100%;
}

.rjcs-webpres__inner {
	width: 100%;
}

.rjcs-webpres img {
	display: block;
	width: 100%;
	height: auto;
}

.rjcs-webpres__mobile-only {
	max-width: 320px;
	margin: 0 auto;
}

.rjcs-webpres--desktop-mobile .rjcs-webpres__row {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 40px;
}

.rjcs-webpres--desktop-mobile .rjcs-webpres__desktop {
	flex: 1 1 74%;
	min-width: 0;
}

.rjcs-webpres--desktop-mobile .rjcs-webpres__mobile {
	flex: 0 0 26%;
	max-width: 26%;
	min-width: 0;
}

/* Presentation width utility — identical pattern to Project Hero /
   Case Study Images. */
.rjcs-width-contained {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.rjcs-width-wide {
	width: min(calc(100dvw - 48px), 1600px) !important;
	max-width: 1600px !important;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: clamp(24px, 5vw, 80px) !important;
	padding-right: clamp(24px, 5vw, 80px) !important;
}

.rjcs-width-full_bleed {
	width: 100dvw !important;
	max-width: 100dvw !important;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.rjcs-webpres--width-wide,
.rjcs-webpres--width-full_bleed {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

@media (max-width: 767px) {
	.rjcs-webpres--desktop-mobile .rjcs-webpres__row {
		flex-direction: column;
		align-items: center;
		gap: 24px;
	}

	.rjcs-webpres--desktop-mobile .rjcs-webpres__desktop,
	.rjcs-webpres--desktop-mobile .rjcs-webpres__mobile {
		flex-basis: 100%;
		max-width: 100%;
	}

	.rjcs-webpres--desktop-mobile .rjcs-webpres__mobile {
		max-width: 50%;
	}

	.rjcs-width-wide {
		width: calc(100dvw - 40px) !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}
