/**
 * Group Trips product composition on top of JM Digital System.
 * Global identity, typography, buttons, surfaces, status, timeline, price,
 * FAQ, CTA, focus and reduced-motion behavior remain JMDS-owned.
 */

.jmgt-departure--digital,
.jmgt-departures-list--digital,
.jmgt-mother-page {
	min-width: 0;
	color: var(--jm-color-text);
	background: var(--jm-color-bg);
}

.jmgt-departure--digital *,
.jmgt-departure--digital *::before,
.jmgt-departure--digital *::after,
.jmgt-departures-list--digital *,
.jmgt-departures-list--digital *::before,
.jmgt-departures-list--digital *::after,
.jmgt-mother-page *,
.jmgt-mother-page *::before,
.jmgt-mother-page *::after {
	box-sizing: border-box;
}

/* Blocksy's transparent header overlays the first product section. Reserve
 * its measured mobile/tablet height without modifying the global header. */
.jmgt-departure--digital .jm-hero__inner {
	padding-block-start: clamp(7.5rem, 10vw, 9rem);
}

.jmgt-departure--digital .jm-hero--no-media .jm-hero__content {
	max-width: 68rem;
}

.jmgt-departure--digital .jmgt-departure__back {
	border-bottom: var(--jm-border-width) solid var(--jm-color-border);
	background: var(--jm-color-surface);
}

.jmgt-departure--digital .jmgt-back-link {
	min-height: 3rem;
	display: inline-flex;
	align-items: center;
	color: var(--jm-color-accent-text);
	font-size: var(--jm-type-small);
	font-weight: var(--jm-font-weight-bold);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.jmgt-departure--digital .jmgt-section__header {
	max-width: var(--jm-reading-width);
	margin-bottom: var(--jm-space-7);
}

.jmgt-departure--digital .jmgt-section__lead {
	max-width: var(--jm-reading-width);
	margin-bottom: var(--jm-space-7);
}

.jmgt-departure--digital .jmgt-panel-grid,
.jmgt-departure--digital .jmgt-fit-grid {
	--jm-grid-space: var(--jm-space-5);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.jmgt-departure--digital .jmgt-panel-grid--compact {
	margin-top: var(--jm-space-6);
}

.jmgt-departure--digital .jmgt-panel {
	min-width: 0;
	border: var(--jm-border-width) solid var(--jm-color-border);
	border-radius: var(--jm-radius-md);
	padding: var(--jm-space-6);
	background: var(--jm-color-surface);
}

.jmgt-departure--digital .jmgt-panel > :first-child,
.jmgt-departure--digital .jmgt-panel .jm-prose > :first-child {
	margin-top: 0;
}

.jmgt-departure--digital .jmgt-panel > :last-child,
.jmgt-departure--digital .jmgt-panel .jm-prose > :last-child {
	margin-bottom: 0;
}

.jmgt-departure--digital .jmgt-fit__closing {
	max-width: var(--jm-reading-width);
	margin-top: var(--jm-space-7);
}

.jmgt-departure--digital .jmgt-services-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--jm-space-7) var(--jm-space-6);
}

.jmgt-departure--digital .jmgt-service-stack {
	display: grid;
	gap: var(--jm-space-4);
}

.jmgt-departure--digital .jmgt-service-item {
	padding: var(--jm-space-5);
}

.jmgt-departure--digital .jmgt-definition-list {
	display: grid;
	grid-template-columns: minmax(6rem, max-content) minmax(0, 1fr);
	gap: var(--jm-space-3) var(--jm-space-5);
	margin: 0;
}

.jmgt-departure--digital .jmgt-definition-list dt {
	color: var(--jm-color-text-strong);
	font-weight: var(--jm-font-weight-bold);
}

.jmgt-departure--digital .jmgt-definition-list dd {
	min-width: 0;
	margin: 0;
	color: var(--jm-color-text-muted);
}

.jmgt-departure--digital .jmgt-accommodation {
	margin-top: var(--jm-space-7);
}

.jmgt-departure--digital .jmgt-section--value > .jm-container > h2 {
	color: var(--jm-color-warm-white);
}

.jmgt-departure--digital .jmgt-section--value .jm-price {
	margin-top: var(--jm-space-6);
}

.jmgt-departure--digital .jm-notice {
	width: min(100% - (2 * var(--jm-gutter)), var(--jm-container));
	margin: var(--jm-space-5) auto;
}

.jmgt-departure--digital .jmgt-section .jm-notice {
	width: 100%;
	margin-top: var(--jm-space-6);
}

.jmgt-departures-list--digital {
	padding-block: clamp(2.5rem, 6vw, 5rem);
}

.jmgt-departures-list--digital .jmgt-departures-list__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 2.5rem);
}

.jmgt-departures-list--digital .jm-product-card {
	height: 100%;
}

.jmgt-departures-list--digital .jmgt-departure-card:only-child {
	max-width: 46rem;
}

.jmgt-departure-card .jm-product-card__media {
	aspect-ratio: 16 / 9;
}

.jmgt-departure-card__fallback {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: end start;
	padding: var(--jm-space-5);
	color: var(--jm-color-on-dark-muted);
	background:
		linear-gradient(145deg, transparent 25%, rgba(252, 250, 246, 0.08) 25% 27%, transparent 27% 48%, rgba(252, 250, 246, 0.07) 48% 50%, transparent 50%),
		var(--jm-color-night-surface);
}

.jmgt-departure-card__fallback span {
	font-family: var(--jm-font-display);
	font-size: var(--jm-type-h3);
}

.jmgt-departure-card__identity {
	display: grid;
	gap: var(--jm-space-2);
}

.jmgt-departure-card__identity .jm-eyebrow,
.jmgt-departure-card__summary,
.jmgt-departure-card__price {
	margin: 0;
}

.jmgt-departure-card__summary {
	color: var(--jm-color-text-muted);
	font-size: var(--jm-type-body-large);
}

.jmgt-departure-card__commercial {
	display: flex;
	flex-wrap: wrap;
	gap: var(--jm-space-3) var(--jm-space-5);
	align-items: center;
	justify-content: space-between;
	border-block: var(--jm-border-width) solid var(--jm-color-border);
	padding-block: var(--jm-space-4);
}

.jmgt-departure-card__price {
	display: grid;
	gap: 0.2rem;
}

.jmgt-departure-card__price strong {
	color: var(--jm-color-text-strong);
	font-size: var(--jm-type-h4);
}

.jmgt-departure-card__price span {
	color: var(--jm-color-text-muted);
	font-size: var(--jm-type-small);
}

.jmgt-departure-card__cta {
	align-self: flex-start;
	margin-top: auto;
}

.jmgt-departures-list--digital .jmgt-departures-list__empty {
	max-width: var(--jm-reading-width);
	border: var(--jm-border-width) solid var(--jm-color-border);
	border-left: 4px solid var(--jm-color-accent);
	border-radius: var(--jm-radius-md);
	margin: 0;
	padding: var(--jm-space-6);
	color: var(--jm-color-text-muted);
	background: var(--jm-color-surface);
}

.jmgt-departures-list--digital .jmgt-departures-list__empty > :last-child {
	margin-bottom: 0;
}

.jmgt-departures-list--digital .jmgt-departures-list__empty-title {
	margin-bottom: var(--jm-space-2);
	color: var(--jm-color-text-strong);
	font-weight: var(--jm-font-weight-bold);
}

.jmgt-departures-list--embedded {
	padding-block: 0;
}

/* Commercial mother Page. The approved copy and licensed media stay editable
 * in the WordPress Page; this file only composes them on public JMDS variables. */
.jmgt-mother-page {
	width: 100%;
	max-width: none;
	overflow: clip;
}

.jmgt-mother-page .jm-hero__inner {
	padding-block-start: clamp(6.75rem, 9vw, 8.5rem);
	padding-block-end: clamp(4rem, 8vw, 7rem);
}

.jmgt-mother-page .jmgt-mother-hero .jm-hero__content {
	max-width: 42rem;
	gap: var(--jm-space-3);
}

.jmgt-mother-page .jmgt-mother-hero .jm-hero__title {
	font-size: clamp(3.5rem, 6vw, 5.25rem);
}

.jmgt-mother-page .jmgt-mother-hero .jm-hero__claim {
	font-size: clamp(1.65rem, 2.6vw, 2rem);
}

.jmgt-mother-page .jmgt-mother-hero .jm-hero__support {
	display: grid;
	gap: var(--jm-space-3);
	font-size: var(--jm-type-body);
}

.jmgt-mother-page .jmgt-mother-hero .jm-hero__support p {
	margin: 0;
}

.jmgt-mother-page .jm-hero__microcopy {
	max-width: var(--jm-reading-width);
	margin: var(--jm-space-2) 0 0;
	color: var(--jm-color-on-dark-muted);
	font-size: var(--jm-type-small);
}

.jmgt-mother-page .jmgt-mother-hero .jm-hero__media {
	aspect-ratio: 3 / 2;
	border-color: rgba(252, 250, 246, 0.22);
}

.jmgt-mother-page .jmgt-mother-hero .jm-hero__image {
	object-position: 66% 55%;
}

.jmgt-mother-page .jmgt-mother-hero .jm-button--secondary {
	color: var(--jm-color-warm-white);
	background: transparent;
	border-color: rgba(252, 250, 246, 0.68);
}

.jmgt-mother-page .jmgt-mother-hero .jm-button--secondary:hover {
	color: var(--jm-color-night);
	background: var(--jm-color-warm-white);
}

.jmgt-mother-page .jmgt-mother-section {
	position: relative;
}

.jmgt-mother-page .jmgt-section-heading {
	max-width: 52rem;
	margin-bottom: var(--jm-space-7);
}

.jmgt-mother-page .jmgt-section-heading > :last-child {
	margin-bottom: 0;
}

.jmgt-mother-page .jmgt-five-days-layout,
.jmgt-mother-page .jmgt-group-layout,
.jmgt-mother-page .jmgt-need-layout,
.jmgt-mother-page .jmgt-fit-grid,
.jmgt-mother-page .jmgt-format-grid,
.jmgt-mother-page .jmgt-route-grid,
.jmgt-mother-page .jmgt-final-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.jmgt-mother-page .jmgt-five-days-layout {
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: start;
}

.jmgt-mother-page .jmgt-five-days-layout .jmgt-copy-column {
	grid-column: 1 / span 7;
}

.jmgt-mother-page .jmgt-five-days-visual {
	grid-column: 1 / -1;
	aspect-ratio: 2.1 / 1;
}

.jmgt-mother-page .jmgt-copy-column {
	max-width: var(--jm-reading-width);
}

.jmgt-mother-page .jmgt-copy-column > :last-child {
	margin-bottom: 0;
}

.jmgt-mother-page .jmgt-media-frame {
	position: relative;
	min-width: 0;
	margin: 0;
	border: var(--jm-border-width) solid var(--jm-color-border);
	border-radius: var(--jm-radius-lg);
	overflow: hidden;
	background: var(--jm-color-bg-soft);
}

.jmgt-mother-page .jmgt-media-frame--portrait {
	aspect-ratio: 4 / 5;
}

.jmgt-mother-page .jmgt-media-frame--landscape {
	aspect-ratio: 16 / 10;
}

.jmgt-mother-page .jmgt-media-frame img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.jmgt-mother-page .jmgt-five-days-visual img {
	object-position: 50% 52%;
}

.jmgt-mother-page .jmgt-highlight {
	border-left: 4px solid var(--jm-color-accent);
	margin: var(--jm-space-6) 0 0;
	padding-left: var(--jm-space-5);
	color: var(--jm-color-text-strong);
	font-family: var(--jm-font-display);
	font-size: var(--jm-type-h3);
	font-weight: var(--jm-font-weight-semibold);
	line-height: var(--jm-leading-heading);
}

.jmgt-mother-page .jmgt-story-intro {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: end;
	margin-bottom: var(--jm-space-7);
}

.jmgt-mother-page .jmgt-story-intro .jmgt-highlight {
	margin: 0;
}

.jmgt-mother-page .jmgt-story-sequence {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--jm-space-4);
	align-items: start;
}

.jmgt-mother-page .jmgt-story-image {
	position: relative;
	min-width: 0;
	margin: 0;
	border-radius: var(--jm-radius-md);
	overflow: hidden;
	background: var(--jm-color-night-surface);
}

.jmgt-mother-page .jmgt-story-image--breakfast {
	grid-column: 1 / -1;
	aspect-ratio: 2.1 / 1;
}

.jmgt-mother-page .jmgt-story-image--tatio {
	grid-column: span 7;
	aspect-ratio: 16 / 9;
	max-width: 1024px;
}

.jmgt-mother-page .jmgt-story-image--astronomy {
	grid-column: span 5;
	aspect-ratio: 3 / 4;
}

.jmgt-mother-page .jmgt-story-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.jmgt-mother-page .jmgt-story-image--breakfast img {
	object-position: 50% 52%;
}

.jmgt-mother-page .jmgt-story-image--tatio img {
	object-position: 50% 50%;
}

.jmgt-mother-page .jmgt-story-image--astronomy img {
	object-position: 50% 55%;
}

.jmgt-mother-page .jmgt-group-panel,
.jmgt-mother-page .jmgt-fit-card,
.jmgt-mother-page .jmgt-format-card,
.jmgt-mother-page .jmgt-criterion-card,
.jmgt-mother-page .jmgt-product-line {
	min-width: 0;
	border: var(--jm-border-width) solid var(--jm-color-border);
	border-radius: var(--jm-radius-md);
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--jm-color-surface);
}

.jmgt-mother-page .jmgt-group-panel {
	display: grid;
	gap: var(--jm-space-3);
	border-top: 4px solid var(--jm-color-accent);
	background: var(--jm-color-bg-soft);
}

.jmgt-mother-page .jmgt-group-visual,
.jmgt-mother-page .jmgt-format-visual {
	display: grid;
	min-width: 0;
}

.jmgt-mother-page .jmgt-group-photo {
	aspect-ratio: 4 / 3;
}

.jmgt-mother-page .jmgt-group-photo img {
	object-position: 42% 60%;
}

.jmgt-mother-page .jmgt-group-visual .jmgt-group-panel {
	position: relative;
	z-index: 1;
	width: min(88%, 31rem);
	margin: clamp(-4.5rem, -5vw, -2.5rem) 0 0 auto;
	box-shadow: 0 0.6rem 1.8rem rgba(25, 28, 31, 0.08);
}

.jmgt-mother-page .jmgt-group-stat {
	margin: 0;
	color: var(--jm-color-accent-text);
	font-family: var(--jm-font-display);
	font-size: clamp(3rem, 5vw, 4.75rem);
	font-weight: var(--jm-font-weight-medium);
	line-height: 0.9;
}

.jmgt-mother-page .jmgt-group-panel p:last-child {
	margin-bottom: 0;
}

.jmgt-mother-page .jmgt-fit-card h3,
.jmgt-mother-page .jmgt-format-card h3,
.jmgt-mother-page .jmgt-criterion-card h3,
.jmgt-mother-page .jmgt-product-line h3 {
	margin-bottom: var(--jm-space-3);
	font-size: var(--jm-type-h4);
}

.jmgt-mother-page .jmgt-fit-card ul,
.jmgt-mother-page .jmgt-check-list {
	display: grid;
	gap: var(--jm-space-3);
	margin: 0;
	padding-left: 1.25rem;
}

.jmgt-mother-page .jmgt-fit-card--quiet {
	background: transparent;
}

.jmgt-mother-page .jmgt-fit-card li::marker,
.jmgt-mother-page .jmgt-check-list li::marker {
	color: var(--jm-color-accent);
}

.jmgt-mother-page .jmgt-need-statement {
	max-width: 26ch;
	margin: var(--jm-space-7) 0;
	color: var(--jm-color-text-strong);
	font-family: var(--jm-font-display);
	font-size: var(--jm-type-h2);
	font-weight: var(--jm-font-weight-medium);
	line-height: var(--jm-leading-heading);
}

.jmgt-mother-page .jmgt-need-layout {
	grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
}

.jmgt-mother-page .jmgt-need-visual {
	aspect-ratio: 3 / 2;
}

.jmgt-mother-page .jmgt-need-visual img {
	object-position: 66% 52%;
}

.jmgt-mother-page .jmgt-section-note {
	max-width: var(--jm-reading-width);
	margin: var(--jm-space-6) 0 0;
	font-size: var(--jm-type-body-large);
}

.jmgt-mother-page .jmgt-format-card {
	border-top: 4px solid var(--jm-color-accent);
}

.jmgt-mother-page .jmgt-format-visual {
	gap: var(--jm-space-4);
}

.jmgt-mother-page .jmgt-format-photo {
	aspect-ratio: 1 / 1;
}

.jmgt-mother-page .jmgt-format-photo img {
	object-position: 54% 52%;
}

.jmgt-mother-page .jmgt-route-visual {
	aspect-ratio: 16 / 9;
}

.jmgt-mother-page .jmgt-route-visual img {
	object-position: 43% 60%;
}

.jmgt-mother-page .jmgt-route-note {
	border: var(--jm-border-width) solid rgba(252, 250, 246, 0.22);
	border-left: 4px solid var(--jm-color-accent-on-dark);
	border-radius: var(--jm-radius-md);
	margin-top: var(--jm-space-6);
	padding: var(--jm-space-5);
	color: var(--jm-color-on-dark-muted);
}

.jmgt-mother-page .jmgt-route-note strong {
	display: block;
	margin-bottom: var(--jm-space-2);
	color: var(--jm-color-warm-white);
	font-family: var(--jm-font-display);
	font-size: var(--jm-type-h3);
}

.jmgt-mother-page .jmgt-process {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	counter-reset: jmgt-step;
	list-style: none;
}

.jmgt-mother-page .jmgt-process li {
	position: relative;
	min-width: 0;
	border: 1px solid rgba(252, 250, 246, 0.24);
	border-radius: var(--jm-radius-md);
	padding: var(--jm-space-6);
	color: var(--jm-color-on-dark-muted);
	background: var(--jm-color-night-surface);
	counter-increment: jmgt-step;
}

.jmgt-mother-page .jmgt-process li::before {
	content: counter(jmgt-step, decimal-leading-zero);
	display: block;
	margin-bottom: var(--jm-space-4);
	color: var(--jm-color-accent-on-dark);
	font-size: var(--jm-type-label);
	font-weight: var(--jm-font-weight-bold);
	letter-spacing: 0.08em;
}

.jmgt-mother-page .jmgt-process li::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3rem;
	height: 3px;
	background: var(--jm-color-accent-on-dark);
}

.jmgt-mother-page .jmgt-process-closing {
	max-width: var(--jm-reading-width);
	margin: var(--jm-space-7) 0 0;
	color: var(--jm-color-on-dark-muted);
	font-size: var(--jm-type-body-large);
}

.jmgt-mother-page .jmgt-departures-list--embedded {
	margin-top: var(--jm-space-7);
}

.jmgt-mother-page .jmgt-criteria-grid,
.jmgt-mother-page .jmgt-product-lines {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--jm-space-5);
}

.jmgt-mother-page .jmgt-criterion-card p:last-child,
.jmgt-mother-page .jmgt-product-line p:last-child {
	margin-bottom: 0;
}

.jmgt-mother-page .jmgt-product-line--active {
	border-top: 4px solid var(--jm-color-accent);
	background: var(--jm-color-bg-soft);
}

.jmgt-mother-page .jmgt-product-line__state {
	width: fit-content;
	border-radius: var(--jm-radius-pill);
	margin: var(--jm-space-4) 0 0;
	padding: 0.35rem 0.7rem;
	color: var(--jm-color-accent-text);
	background: var(--jm-color-accent-soft);
	font-size: var(--jm-type-small);
	font-weight: var(--jm-font-weight-bold);
}

.jmgt-mother-page .jmgt-faq-intro {
	max-width: var(--jm-reading-width);
	margin-bottom: var(--jm-space-7);
}

.jmgt-mother-page .jmgt-final-cta {
	border-radius: 0;
	padding-block: clamp(3.5rem, 8vw, 7rem);
}

.jmgt-mother-page .jmgt-final-cta .jm-final-cta__content {
	max-width: var(--jm-reading-width);
	margin: 0;
	text-align: left;
}

.jmgt-mother-page .jmgt-final-cta .jm-final-cta__text {
	margin-inline: 0;
}

.jmgt-mother-page .jmgt-final-cta .jm-button {
	margin-top: var(--jm-space-4);
}

.jmgt-mother-page .jmgt-final-cta .jm-final-cta__microcopy {
	max-width: var(--jm-reading-width);
	margin-inline: 0;
	color: var(--jm-color-on-dark-muted);
}

.jmgt-mother-page .jmgt-final-visual {
	aspect-ratio: 3 / 2;
	margin: 0;
	border-radius: var(--jm-radius-lg);
	overflow: hidden;
}

.jmgt-mother-page .jmgt-final-visual img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: 36% 55%;
}

.jmgt-mother-page .jmgt-final-lines {
	margin-block: var(--jm-space-5);
	color: var(--jm-color-warm-white);
	font-family: var(--jm-font-display);
	font-size: var(--jm-type-h3);
	line-height: var(--jm-leading-heading);
}

@media (max-width: 48rem) {
	.jmgt-departures-list--digital .jmgt-departures-list__grid,
	.jmgt-departure--digital .jmgt-services-grid,
	.jmgt-mother-page .jmgt-five-days-layout,
	.jmgt-mother-page .jmgt-group-layout,
	.jmgt-mother-page .jmgt-need-layout,
	.jmgt-mother-page .jmgt-fit-grid,
	.jmgt-mother-page .jmgt-format-grid,
	.jmgt-mother-page .jmgt-route-grid,
	.jmgt-mother-page .jmgt-final-grid,
	.jmgt-mother-page .jmgt-story-intro,
	.jmgt-mother-page .jmgt-process,
	.jmgt-mother-page .jmgt-criteria-grid,
	.jmgt-mother-page .jmgt-product-lines {
		grid-template-columns: 1fr;
	}

	.jmgt-mother-page .jmgt-five-days-layout .jmgt-copy-column,
	.jmgt-mother-page .jmgt-five-days-visual {
		grid-column: 1;
	}

	.jmgt-mother-page .jmgt-five-days-visual {
		aspect-ratio: 4 / 3;
	}

	.jmgt-mother-page .jmgt-story-sequence {
		grid-template-columns: 1fr;
	}

	.jmgt-mother-page .jmgt-story-image--breakfast,
	.jmgt-mother-page .jmgt-story-image--tatio,
	.jmgt-mother-page .jmgt-story-image--astronomy {
		grid-column: 1;
	}

	.jmgt-mother-page .jmgt-story-image--breakfast {
		aspect-ratio: 16 / 9;
	}

	.jmgt-mother-page .jmgt-story-image--tatio {
		aspect-ratio: 4 / 3;
	}

	.jmgt-mother-page .jmgt-story-image--astronomy {
		aspect-ratio: 3 / 4;
	}

	.jmgt-mother-page .jmgt-story-intro .jmgt-highlight {
		margin-top: 0;
	}

	.jmgt-mother-page .jmgt-mother-hero .jm-hero__media {
		aspect-ratio: 4 / 5;
	}

	.jmgt-mother-page .jmgt-mother-hero .jm-hero__image {
		object-position: 64% 55%;
	}

	.jmgt-mother-page .jmgt-group-photo,
	.jmgt-mother-page .jmgt-format-photo {
		aspect-ratio: 1 / 1;
	}

	.jmgt-mother-page .jmgt-group-visual .jmgt-group-panel {
		width: calc(100% - var(--jm-space-4));
		margin-top: calc(-1 * var(--jm-space-6));
	}

	.jmgt-mother-page .jmgt-need-visual,
	.jmgt-mother-page .jmgt-route-visual,
	.jmgt-mother-page .jmgt-final-visual {
		aspect-ratio: 4 / 5;
	}

	.jmgt-mother-page .jmgt-need-visual img {
		object-position: 62% 52%;
	}

	.jmgt-mother-page .jmgt-route-visual img {
		object-position: 24% 60%;
	}

	.jmgt-mother-page .jmgt-final-visual img {
		object-position: 34% 55%;
	}
}

@media (min-width: 48rem) and (max-width: 64rem) {
	.jmgt-mother-page .jmgt-mother-hero .jm-hero__inner {
		grid-template-columns: 1fr;
	}

	.jmgt-mother-page .jmgt-mother-hero .jm-hero__media {
		aspect-ratio: 16 / 9;
	}
}

@media (min-width: 64rem) {
	.jmgt-mother-page .jmgt-mother-hero .jm-hero__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
	}
}

@media (max-width: 25rem) {
	.jmgt-departure--digital .jm-hero__inner {
		padding-block-start: 7.75rem;
		padding-block-end: 3.5rem;
	}

	.jmgt-mother-page .jm-hero__inner {
		padding-block-start: 7.75rem;
		padding-block-end: 3.5rem;
	}

	.jmgt-departure--digital .jm-hero__title,
	.jmgt-mother-page .jm-hero__title {
		overflow-wrap: anywhere;
	}

	.jmgt-departure--digital .jmgt-panel {
		padding: var(--jm-space-5);
	}

	.jmgt-departure--digital .jmgt-definition-list {
		grid-template-columns: 1fr;
		gap: var(--jm-space-1);
	}

	.jmgt-departure--digital .jmgt-definition-list dd + dt {
		margin-top: var(--jm-space-3);
	}

	.jmgt-mother-page .jmgt-fit-card,
	.jmgt-mother-page .jmgt-group-panel,
	.jmgt-mother-page .jmgt-format-card,
	.jmgt-mother-page .jmgt-criterion-card,
	.jmgt-mother-page .jmgt-product-line,
	.jmgt-mother-page .jmgt-process li,
	.jmgt-departures-list--digital .jmgt-departures-list__empty {
		padding: var(--jm-space-5);
	}

	.jmgt-mother-page .jm-hero__actions,
	.jmgt-mother-page .jm-hero__actions .jm-button,
	.jmgt-mother-page .jmgt-final-cta .jm-button {
		width: 100%;
	}

	.jmgt-departure-card__commercial {
		align-items: flex-start;
		flex-direction: column;
	}

	.jmgt-departure-card__cta {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jmgt-mother-page *,
	.jmgt-departures-list--digital * {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
