/**
 * Journey pages: departures note, day-by-day notice, text-only included panel
 * (inc/features/journey-sections.php) and the journey gallery (nb-photo-story).
 */

/* ------------------------------------------------------------------ */
/* Dates and prices: note under the table                             */
/* ------------------------------------------------------------------ */

.nb-departures__note {
	margin-top: 56px;
}

@media (max-width: 1024px) {
	.nb-departures__note {
		margin-top: 40px;
	}
}

/* ------------------------------------------------------------------ */
/* Day by day: notice box                                             */
/* ------------------------------------------------------------------ */

.nb-itinerary__notice {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 56px;
	padding: 16px 20px;
	border: 1px solid var(--nb-line);
	border-radius: 12px;
	color: var(--nb-muted);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
}

.nb-itinerary__notice .nb-icon {
	flex: none;
	color: var(--nb-heading);
}

@media (max-width: 1024px) {
	.nb-itinerary__notice {
		margin-bottom: 40px;
	}
}

/* ------------------------------------------------------------------ */
/* Included kit without photos: full-width text panel                 */
/* ------------------------------------------------------------------ */

.nb-included--text {
	display: block;
	min-height: 0;
}

.nb-included--text .nb-included__panel {
	width: min(var(--nb-max), 100% - 2 * var(--nb-gutter));
	margin-inline: auto;
	padding: var(--nb-pad-t, 48px) 0 var(--nb-pad-b, 48px);
}

@media (max-width: 1024px) {
	.nb-included--text .nb-included__panel {
		padding-bottom: var(--nb-pad-b, 56px);
	}
}

@media (max-width: 767px) {
	.nb-included--text .nb-included__panel {
		padding: var(--nb-pad-t, 40px) 0 var(--nb-pad-b, 48px);
	}
}

/* ------------------------------------------------------------------ */
/* Journey gallery                                                    */
/* ------------------------------------------------------------------ */

.nb-photo-story {
	--nb-story-gap: 64px;
}

.nb-photo-story__bar {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 20;
	background: var(--nb-bg);
	border-bottom: 1px solid var(--nb-line);
}

.nb-photo-story__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
	padding-block: 10px;
}

.nb-photo-story__heading {
	min-width: 0;
}

.nb-photo-story__count {
	margin-top: 2px;
	color: var(--nb-muted);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
}

.nb .nb-photo-story__close {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--nb-c-border);
	border-radius: 8px;
	color: var(--nb-heading);
	transition: border-color 0.2s ease;
}

.nb .nb-photo-story__close:hover {
	border-color: var(--nb-heading);
}

.nb-photo-story__list {
	display: flex;
	flex-direction: column;
	gap: var(--nb-story-gap);
	padding-top: var(--nb-pad-t, 48px);
	padding-bottom: var(--nb-story-gap);
}

.nb-photo-story__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: 12px;
	background: var(--nb-line);
}

.nb .nb-photo-story__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.nb-photo-story__item--portrait .nb-photo-story__media,
.nb-photo-story__item--portrait-side .nb-photo-story__media {
	width: 50%;
	aspect-ratio: 2 / 3;
}

.nb-photo-story__caption {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 16px;
	margin-top: 16px;
}

.nb-photo-story__item--portrait .nb-photo-story__caption {
	margin-top: 40px;
}

.nb-photo-story__num {
	color: var(--nb-muted);
	font-family: var(--nb-font-display);
	font-size: 20px;
	line-height: 24px;
	font-weight: 500;
}

.nb-photo-story__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nb-photo-story__desc {
	color: var(--nb-text);
}

.nb-photo-story__credit {
	color: var(--nb-muted);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
}

/* Tall photo with its caption beside it, aligned to the bottom. */
.nb-photo-story__item--portrait-side .nb-photo-story__figure {
	display: grid;
	grid-template-columns: 50% minmax(0, 1fr);
	column-gap: 40px;
	align-items: end;
}

.nb-photo-story__item--portrait-side .nb-photo-story__media {
	width: 100%;
}

.nb-photo-story__item--portrait-side .nb-photo-story__caption {
	margin-top: 0;
}

.nb-photo-story__end {
	padding-bottom: var(--nb-pad-b, 96px);
}

.nb .nb-photo-story__back {
	min-height: 48px;
	padding: 0 24px;
}

@media (max-width: 1024px) {
	.nb-photo-story {
		--nb-story-gap: 56px;
	}

	.nb-photo-story__list {
		padding-top: var(--nb-pad-t, 40px);
	}

	.nb-photo-story__item--portrait .nb-photo-story__media,
	.nb-photo-story__item--portrait-side .nb-photo-story__media {
		width: min(560px, 100%);
	}

	.nb-photo-story__item--portrait-side .nb-photo-story__figure {
		display: block;
	}

	.nb-photo-story__item--portrait .nb-photo-story__caption,
	.nb-photo-story__item--portrait-side .nb-photo-story__caption {
		margin-top: 16px;
	}

	.nb-photo-story__end {
		padding-bottom: var(--nb-pad-b, 80px);
	}
}

@media (max-width: 767px) {
	.nb-photo-story {
		--nb-story-gap: 40px;
	}

	.nb-photo-story__bar-inner {
		min-height: 64px;
		padding-block: 8px;
	}

	.nb-photo-story__list {
		padding-top: var(--nb-pad-t, 24px);
	}

	.nb-photo-story__item--portrait .nb-photo-story__media,
	.nb-photo-story__item--portrait-side .nb-photo-story__media {
		width: 100%;
	}

	.nb-photo-story__num {
		font-size: 18px;
		line-height: 22px;
	}

	.nb-photo-story__end {
		padding-bottom: var(--nb-pad-b, 64px);
	}

	.nb .nb-photo-story__back {
		width: 100%;
	}
}
