/*
 * Guidos Travel Planner and Diary Pro – frontend views, structure.
 *
 * This file holds the layout every display style shares. Looks (cards,
 * labels, fonts) are in style-<id>.css. Fonts and text colors come from
 * the theme; the few own colors are custom properties, which the widget
 * style settings and the display styles overwrite.
 *
 * Rule: class names stay the same in every style, so settings made for
 * one style keep working in another.
 */

.gtpdp-view {
	--gtpdp-accent: var(--e-global-color-accent, #1d5c8a);
	--gtpdp-on-accent: #fff;
	--gtpdp-ink: #17222b;
	--gtpdp-on-ink: #fff;
	--gtpdp-line: rgba(128, 128, 128, 0.45);
	--gtpdp-border: rgba(128, 128, 128, 0.3);
	--gtpdp-card-bg: transparent;
	--gtpdp-radius: 10px;
	--gtpdp-gap: 36px;
	box-sizing: border-box;
}

.gtpdp-view *,
.gtpdp-view *::before,
.gtpdp-view *::after {
	box-sizing: inherit;
}

.gtpdp-view .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gtpdp-view .gtpdp-icon {
	flex: none;
	width: 1.25em;
	height: 1.25em;
	vertical-align: -0.28em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gtpdp-view .gtpdp-icon--filled {
	fill: currentColor;
	stroke: none;
}

/* ---------------------------------------------------------------------
 * Trip header
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-header__title {
	margin: 0;
	color: inherit;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-header__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
}

.gtpdp-view .gtpdp-header__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.gtpdp-view .gtpdp-header__meta {
	margin: 12px 0 0;
}

.gtpdp-view .gtpdp-header__image {
	display: block;
	max-width: none;
}

.gtpdp-view .gtpdp-header__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0 24px;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--gtpdp-border);
}

.gtpdp-view .gtpdp-header__fact {
	min-width: 0;
	padding: 22px 0;
}

.gtpdp-view .gtpdp-header__fact-label {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.72;
}

.gtpdp-view .gtpdp-header__fact-value {
	margin: 2px 0 0;
	font-size: 1.2em;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-header__text {
	max-width: 46em;
	margin-top: 1.5em;
}

.gtpdp-view .gtpdp-header__text > :first-child {
	margin-top: 0;
}

.gtpdp-view .gtpdp-header__text > :last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------
 * Destinations
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-stops {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gtpdp-view .gtpdp-stops__item {
	margin: 0;
	padding: 0;
}

.gtpdp-view .gtpdp-stops__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gtpdp-view .gtpdp-stops__title {
	font-size: 1.15em;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-stops__place,
.gtpdp-view .gtpdp-stops__meta,
.gtpdp-view .gtpdp-stops__stay {
	font-size: 0.9em;
	opacity: 0.75;
}

/* ---------------------------------------------------------------------
 * Route map
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-map {
	position: relative;
	z-index: 0;
	isolation: isolate;
}

.gtpdp-view .gtpdp-map__canvas {
	height: var(--gtpdp-map-height, 420px);
	border-radius: var(--gtpdp-radius);
	background: rgba(128, 128, 128, 0.15);
	overflow: hidden;
}

.gtpdp-view .gtpdp-map__fallback {
	margin: 10px 0 0;
	font-size: 0.9em;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-map--ready .gtpdp-map__fallback {
	display: none;
}

.gtpdp-view .gtpdp-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--gtpdp-marker-bg, var(--gtpdp-accent));
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	color: var(--gtpdp-marker-color, var(--gtpdp-on-accent));
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.gtpdp-view .gtpdp-marker--place {
	border: 3px solid var(--gtpdp-marker-bg, var(--gtpdp-accent));
	background: #fff;
}

.gtpdp-view .gtpdp-map .leaflet-popup-content {
	margin: 12px 16px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.gtpdp-view .gtpdp-map .gtpdp-popup__title {
	display: block;
	font-weight: 700;
}

/* Info panel of the route map (since 1.29.0): the diary entries of the
   destination that was clicked. Custom properties (Style tab):
   --gtpdp-info-width, --gtpdp-info-inset, --gtpdp-info-bg, --gtpdp-info-radius,
   --gtpdp-info-photo, --gtpdp-info-entry-bg, --gtpdp-info-lines. */

.gtpdp-view .gtpdp-marker {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gtpdp-view .gtpdp-marker.is-active {
	transform: scale(1.25);
	box-shadow: 0 0 0 3px #fff, 0 0 0 8px color-mix(in srgb, var(--gtpdp-marker-bg, var(--gtpdp-accent)) 45%, transparent);
}

.gtpdp-view .gtpdp-map__hint {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 1001;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - 24px);
	margin: 0;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--gtpdp-info-bg, #fff);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	pointer-events: none;
}

.gtpdp-view .gtpdp-map__hint[hidden],
.gtpdp-view .gtpdp-map__info[hidden] {
	display: none;
}

.gtpdp-view .gtpdp-map__hint .gtpdp-icon {
	flex: 0 0 auto;
	color: var(--gtpdp-accent);
}

.gtpdp-view .gtpdp-map__info {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--gtpdp-info-radius, 14px);
	background: var(--gtpdp-info-bg, #fff);
	color: var(--gtpdp-info-color, #1d2433);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gtpdp-view .gtpdp-map__info:focus {
	outline: none;
}

/* More specific than the position rules below, which also set a transform. */
.gtpdp-view .gtpdp-map .gtpdp-map__info.is-open {
	opacity: 1;
	transform: none;
}

/* On the right, over the map. */
.gtpdp-view .gtpdp-map--panel-side .gtpdp-map__info {
	position: absolute;
	top: var(--gtpdp-info-inset, 12px);
	right: var(--gtpdp-info-inset, 12px);
	bottom: var(--gtpdp-info-inset, 12px);
	z-index: 1001;
	width: min(var(--gtpdp-info-width, 380px), calc(100% - 2 * var(--gtpdp-info-inset, 12px) - 56px));
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	transform: translateX(24px);
}

/* Below the map. */
.gtpdp-view .gtpdp-map--panel-below .gtpdp-map__info {
	position: relative;
	margin-top: 16px;
	border: 1px solid var(--gtpdp-border);
	transform: translateY(16px);
}

.gtpdp-view .gtpdp-map__info-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 2px 12px;
	align-items: center;
	padding: 16px 16px 14px;
	border-bottom: 1px solid var(--gtpdp-border);
}

.gtpdp-view .gtpdp-map__info-number {
	grid-row: 1 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--gtpdp-marker-bg, var(--gtpdp-accent));
	color: var(--gtpdp-marker-color, var(--gtpdp-on-accent));
	font-weight: 800;
	line-height: 1;
}

.gtpdp-view .gtpdp-map__info .gtpdp-map__info-title {
	grid-column: 2;
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: var(--gtpdp-heading-font, inherit);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.25;
}

.gtpdp-view .gtpdp-map__info .gtpdp-map__info-sub {
	grid-column: 2;
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.35;
	opacity: 0.7;
}

.gtpdp-view .gtpdp-map__info .gtpdp-map__info-close,
.gtpdp-view .gtpdp-map__info .gtpdp-map__info-button,
.gtpdp-view .gtpdp-map__info .gtpdp-map__info-jump {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	margin: 0;
	border: 1px solid var(--gtpdp-border);
	border-radius: 999px;
	background: var(--gtpdp-info-bg, #fff);
	color: inherit;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gtpdp-view .gtpdp-map__info .gtpdp-map__info-close {
	grid-row: 1 / 3;
	grid-column: 3;
	width: 36px;
	height: 36px;
	padding: 0;
	border-color: transparent;
	background: rgba(128, 128, 128, 0.14);
	font-size: 1.1rem;
}

.gtpdp-view .gtpdp-map__info .gtpdp-map__info-button {
	width: 38px;
	height: 38px;
	padding: 0;
	font-size: 1.1rem;
}

.gtpdp-view .gtpdp-map__info .gtpdp-map__info-jump {
	min-height: 38px;
	padding: 8px 16px;
	border-color: var(--gtpdp-accent);
	background: var(--gtpdp-accent);
	color: var(--gtpdp-on-accent);
}

.gtpdp-view .gtpdp-map__info .gtpdp-map__info-jump[hidden] {
	display: none;
}

.gtpdp-view .gtpdp-map__info .gtpdp-map__info-close:hover,
.gtpdp-view .gtpdp-map__info .gtpdp-map__info-close:focus-visible,
.gtpdp-view .gtpdp-map__info .gtpdp-map__info-button:hover,
.gtpdp-view .gtpdp-map__info .gtpdp-map__info-button:focus-visible {
	border-color: var(--gtpdp-accent);
	background: rgba(128, 128, 128, 0.2);
	color: inherit;
}

.gtpdp-view .gtpdp-map__info .gtpdp-map__info-jump:hover,
.gtpdp-view .gtpdp-map__info .gtpdp-map__info-jump:focus-visible {
	border-color: var(--gtpdp-accent);
	background: var(--gtpdp-accent);
	color: var(--gtpdp-on-accent);
	filter: brightness(0.93);
}

.gtpdp-view .gtpdp-map__info-list {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 0;
	padding: 12px 16px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.gtpdp-view .gtpdp-map--panel-below .gtpdp-map__info-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gtpdp-view .gtpdp-map__info .gtpdp-map__info-entry {
	display: grid;
	grid-template-columns: var(--gtpdp-info-photo, 88px) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 10px;
	border-radius: 10px;
	background: var(--gtpdp-info-entry-bg, rgba(128, 128, 128, 0.08));
	color: inherit;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.gtpdp-view .gtpdp-map__info .gtpdp-map__info-entry:hover,
.gtpdp-view .gtpdp-map__info .gtpdp-map__info-entry:focus-visible {
	background: var(--gtpdp-info-entry-hover, rgba(128, 128, 128, 0.16));
	color: inherit;
}

.gtpdp-view .gtpdp-map__info-entry--draft {
	opacity: 0.75;
}

.gtpdp-view .gtpdp-map__info-photo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--gtpdp-info-photo, 88px);
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(128, 128, 128, 0.15);
}

.gtpdp-view .gtpdp-map__info .gtpdp-map__info-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}

.gtpdp-view .gtpdp-map__info-noimage {
	font-size: 1.5rem;
	opacity: 0.5;
}

.gtpdp-view .gtpdp-map__info-count {
	position: absolute;
	right: 4px;
	bottom: 4px;
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.6;
}

.gtpdp-view .gtpdp-map__info-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.gtpdp-view .gtpdp-map__info-meta {
	font-size: 0.75rem;
	line-height: 1.35;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-map__info-day {
	margin-right: 4px;
	color: var(--gtpdp-accent);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gtpdp-view .gtpdp-map__info-flag {
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 4px;
	background: rgba(128, 128, 128, 0.2);
	font-weight: 600;
}

.gtpdp-view .gtpdp-map__info-entrytitle {
	font-family: var(--gtpdp-heading-font, inherit);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.25;
}

.gtpdp-view .gtpdp-map__info-text {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.8125rem;
	line-height: 1.4;
	opacity: 0.85;
	-webkit-line-clamp: var(--gtpdp-info-lines, 2);
	-webkit-box-orient: vertical;
}

.gtpdp-view .gtpdp-map__info-empty {
	margin: 8px 0;
	font-size: 0.875rem;
	opacity: 0.7;
}

.gtpdp-view .gtpdp-map__info-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid var(--gtpdp-border);
}

.gtpdp-view .gtpdp-map__info-foot:empty {
	display: none;
}

.gtpdp-view .gtpdp-map__info-nav {
	display: inline-flex;
	gap: 6px;
}

@media (prefers-reduced-motion: reduce) {
	.gtpdp-view .gtpdp-map__info,
	.gtpdp-view .gtpdp-marker {
		transition: none;
	}
}

/* An entry of the timeline reached from the info panel of the map. */
.gtpdp-view .gtpdp-timeline__entry--highlight .gtpdp-timeline__card {
	animation: gtpdp-highlight 2.4s ease;
}

@keyframes gtpdp-highlight {
	0%,
	45% {
		box-shadow: 0 0 0 4px var(--gtpdp-accent);
	}

	100% {
		box-shadow: 0 0 0 4px transparent;
	}
}

/* ---------------------------------------------------------------------
 * Diary timeline
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-timeline {
	container-type: inline-size;
}

.gtpdp-view .gtpdp-timeline__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 var(--gtpdp-gap);
}

.gtpdp-view .gtpdp-timeline--sticky-nav .gtpdp-timeline__nav {
	position: sticky;
	top: var(--gtpdp-sticky-top, 0px);
	z-index: 5;
	padding: 10px 0;
	background: var(--gtpdp-nav-bg, #fff);
}

.gtpdp-view .gtpdp-timeline__navlink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--gtpdp-border);
	border-radius: 999px;
	color: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.gtpdp-view .gtpdp-timeline__navlink:hover,
.gtpdp-view .gtpdp-timeline__navlink:focus-visible {
	border-color: var(--gtpdp-accent);
	color: var(--gtpdp-accent);
}

.gtpdp-view .gtpdp-timeline__track {
	position: relative;
}

.gtpdp-view .gtpdp-timeline__day {
	scroll-margin-top: var(--gtpdp-scroll-offset, 90px);
}

.gtpdp-view .gtpdp-timeline__day[hidden] {
	display: none;
}

.gtpdp-view .gtpdp-timeline__stage {
	margin: 0 0 20px;
}

.gtpdp-view .gtpdp-timeline__stage-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.gtpdp-view .gtpdp-timeline__dayhead {
	position: relative;
	margin: 0 0 24px;
}

.gtpdp-view .gtpdp-timeline__daylabel {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 0;
	color: inherit;
}

.gtpdp-view .gtpdp-timeline__daydate-long {
	display: none;
}

.gtpdp-view .gtpdp-timeline__entry {
	position: relative;
	padding-bottom: var(--gtpdp-gap);
}

.gtpdp-view .gtpdp-timeline__marker {
	position: relative;
	z-index: 1;
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--gtpdp-marker-bg, var(--gtpdp-accent));
}

.gtpdp-view .gtpdp-timeline__cardwrap {
	position: relative;
	min-width: 0;
}

.gtpdp-view .gtpdp-timeline__card {
	display: block;
	overflow: hidden;
	border-radius: var(--gtpdp-radius);
	background: var(--gtpdp-card-bg);
	color: inherit;
	text-decoration: none;
}

.gtpdp-view .gtpdp-timeline__card:hover .gtpdp-timeline__more,
.gtpdp-view .gtpdp-timeline__card:focus-visible .gtpdp-timeline__more {
	text-decoration: underline;
}

.gtpdp-view .gtpdp-timeline__photos {
	display: flex;
	gap: 8px;
}

.gtpdp-view .gtpdp-timeline__photo {
	position: relative;
	display: block;
	overflow: hidden;
}

.gtpdp-view .gtpdp-timeline__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.gtpdp-view .gtpdp-timeline__photos--large .gtpdp-timeline__photo {
	width: 100%;
	aspect-ratio: var(--gtpdp-photo-ratio, 16 / 9);
}

.gtpdp-view .gtpdp-timeline__photos--strip {
	margin: 12px 0 0;
}

.gtpdp-view .gtpdp-timeline__photos--strip .gtpdp-timeline__photo {
	flex: 0 1 var(--gtpdp-thumb-size, 92px);
	aspect-ratio: 1;
	border-radius: 4px;
}

.gtpdp-view .gtpdp-timeline__morephotos {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.5;
}

.gtpdp-view .gtpdp-timeline__photos--strip .gtpdp-timeline__morephotos {
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.55);
	font-size: 1.05rem;
}

.gtpdp-view .gtpdp-timeline__content {
	padding: 20px 22px 22px;
}

.gtpdp-view .gtpdp-timeline__flags,
.gtpdp-view .gtpdp-timeline__meta,
.gtpdp-view .gtpdp-timeline__excerpt,
.gtpdp-view .gtpdp-timeline__info {
	margin: 0;
	padding: 0;
}

.gtpdp-view .gtpdp-timeline__flags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.gtpdp-view .gtpdp-timeline__flag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 10px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
}

.gtpdp-view .gtpdp-timeline__meta {
	font-size: 0.875rem;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-timeline__time + .gtpdp-timeline__place::before {
	content: "·";
	margin: 0 0.4em;
}

.gtpdp-view .gtpdp-timeline__title {
	margin: 6px 0 0;
	font-size: 1.4em;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-timeline__excerpt {
	margin-top: 8px;
}

.gtpdp-view .gtpdp-timeline__info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin-top: 14px;
	font-size: 0.875rem;
}

/* Destination of the entry, below weather and mood. */

.gtpdp-view .gtpdp-timeline__destination {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	color: var(--gtpdp-destination-color, var(--gtpdp-accent));
	font-size: 0.875rem;
	font-weight: 600;
}

.gtpdp-view .gtpdp-timeline__infoitem {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	opacity: 0.8;
}

.gtpdp-view .gtpdp-timeline__more {
	margin-left: auto;
	color: var(--gtpdp-link, var(--gtpdp-accent));
	font-weight: 600;
}

.gtpdp-view .gtpdp-timeline__edit {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--gtpdp-ink);
	color: var(--gtpdp-on-ink);
	text-decoration: none;
}

.gtpdp-view .gtpdp-timeline__entry--draft .gtpdp-timeline__card {
	border-style: dashed;
}

.gtpdp-view .gtpdp-timeline__loadmore {
	display: flex;
	justify-content: center;
	margin: 0;
}

.gtpdp-view .gtpdp-timeline__loadmore[hidden] {
	display: none;
}

.gtpdp-view .gtpdp-timeline__button {
	min-height: 48px;
	padding: 0 28px;
	border: 2px solid var(--gtpdp-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--gtpdp-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.gtpdp-view .gtpdp-timeline__button:hover,
.gtpdp-view .gtpdp-timeline__button:focus-visible {
	background: var(--gtpdp-accent);
	color: var(--gtpdp-on-accent);
}

/* Layout "alternating": line in the middle, cards left and right. */

.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__stage,
.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__dayhead {
	display: flex;
	justify-content: center;
	text-align: center;
}

.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__daymarker {
	display: none;
}

.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__entry {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
	align-items: start;
}

/* The line is drawn entry by entry, so it never runs through a heading. */
.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__entry::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	margin-left: -1px;
	background: var(--gtpdp-line);
}

.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__marker {
	grid-row: 1;
	grid-column: 2;
	justify-self: center;
	margin-top: 22px;
}

.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__cardwrap {
	grid-row: 1;
	grid-column: 1;
}

.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__entry--even .gtpdp-timeline__cardwrap {
	grid-column: 3;
}

@container (max-width: 700px) {
	.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__stage,
	.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__dayhead {
		justify-content: flex-start;
		text-align: left;
	}

	.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__entry {
		grid-template-columns: 30px minmax(0, 1fr);
	}

	.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__entry::before {
		left: 8px;
	}

	.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__marker {
		grid-column: 1;
		justify-self: start;
	}

	.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__cardwrap,
	.gtpdp-view .gtpdp-timeline--alternating .gtpdp-timeline__entry--even .gtpdp-timeline__cardwrap {
		grid-column: 2;
	}
}

/* Layout "left": line on the left, days marked on the line. */

.gtpdp-view .gtpdp-timeline--left .gtpdp-timeline__track {
	margin-left: 8px;
	padding-left: 30px;
	border-left: 2px solid var(--gtpdp-line);
}

.gtpdp-view .gtpdp-timeline--left .gtpdp-timeline__daymarker {
	position: absolute;
	top: 0.3em;
	left: -40px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--gtpdp-marker-bg, var(--gtpdp-accent));
}

.gtpdp-view .gtpdp-timeline--left .gtpdp-timeline__marker {
	display: none;
}

.gtpdp-view .gtpdp-timeline--left .gtpdp-timeline__entry {
	padding-bottom: calc(var(--gtpdp-gap) * 0.6);
}

.gtpdp-view .gtpdp-timeline--left .gtpdp-timeline__day {
	padding-bottom: calc(var(--gtpdp-gap) * 0.4);
}

@container (min-width: 701px) {
	.gtpdp-view .gtpdp-timeline--left.gtpdp-timeline--photos-single .gtpdp-timeline__card,
	.gtpdp-view .gtpdp-timeline--left.gtpdp-timeline--photos-both .gtpdp-timeline__card {
		display: flex;
		align-items: stretch;
	}

	.gtpdp-view .gtpdp-timeline--left .gtpdp-timeline__photos--large {
		position: relative;
		flex: 0 0 38%;
		min-height: 200px;
	}

	/* The text decides the height of the card, the photo fills its side. */
	.gtpdp-view .gtpdp-timeline--left .gtpdp-timeline__photos--large .gtpdp-timeline__photo {
		position: absolute;
		inset: 0;
		width: auto;
		aspect-ratio: auto;
	}

	.gtpdp-view .gtpdp-timeline--left.gtpdp-timeline--photos-single .gtpdp-timeline__content,
	.gtpdp-view .gtpdp-timeline--left.gtpdp-timeline--photos-both .gtpdp-timeline__content {
		flex: 1;
		min-width: 0;
	}
}

.gtpdp-view .gtpdp-timeline--left .gtpdp-timeline__excerpt {
	max-width: 46em;
}

/* Layout "horizontal": the days stand side by side on a line and are
   scrolled sideways (swiping, arrows, keyboard). Each day is a column
   with its entries below each other. */

.gtpdp-view .gtpdp-timeline--horizontal .gtpdp-timeline__track {
	display: flex;
	align-items: flex-start;
	gap: var(--gtpdp-day-gap, 28px);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	padding: 4px 2px 18px;
	scrollbar-width: thin;
}

.gtpdp-view .gtpdp-timeline--horizontal .gtpdp-timeline__day {
	display: flex;
	flex-direction: column;
	flex: 0 0 min(var(--gtpdp-day-width, 340px), 85%);
	min-width: 0;
	scroll-snap-align: start;
}

.gtpdp-view .gtpdp-timeline--horizontal .gtpdp-timeline__day[hidden] {
	display: none;
}

/* The day heading comes first, so the line runs straight through all days. */
.gtpdp-view .gtpdp-timeline--horizontal .gtpdp-timeline__dayhead {
	order: -1;
	margin: 0 0 18px;
	padding-top: 32px;
}

.gtpdp-view .gtpdp-timeline--horizontal .gtpdp-timeline__dayhead::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 0;
	right: calc(-1 * var(--gtpdp-day-gap, 28px));
	height: 2px;
	background: var(--gtpdp-line);
}

.gtpdp-view .gtpdp-timeline--horizontal .gtpdp-timeline__day:last-child .gtpdp-timeline__dayhead::before {
	right: 0;
}

.gtpdp-view .gtpdp-timeline--horizontal .gtpdp-timeline__daymarker {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--gtpdp-marker-bg, var(--gtpdp-accent));
}

.gtpdp-view .gtpdp-timeline--horizontal .gtpdp-timeline__stage {
	margin: 0 0 14px;
}

.gtpdp-view .gtpdp-timeline--horizontal .gtpdp-timeline__marker {
	display: none;
}

.gtpdp-view .gtpdp-timeline--horizontal .gtpdp-timeline__entry {
	padding-bottom: calc(var(--gtpdp-gap) * 0.6);
}

.gtpdp-view .gtpdp-timeline__scroll {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 0 12px;
}

.gtpdp-view .gtpdp-timeline__scroll[hidden] {
	display: none;
}

.gtpdp-view .gtpdp-timeline__scrollbutton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--gtpdp-border);
	border-radius: 50%;
	background: var(--gtpdp-arrow-bg, transparent);
	color: var(--gtpdp-arrow-color, inherit);
	font-size: 1.25rem;
	cursor: pointer;
}

.gtpdp-view .gtpdp-timeline__scrollbutton:hover,
.gtpdp-view .gtpdp-timeline__scrollbutton:focus-visible {
	border-color: var(--gtpdp-accent);
	color: var(--gtpdp-accent);
}

.gtpdp-view .gtpdp-timeline__scrollbutton:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Layout "scroll": the date stands opposite the entries and stays in the middle
   of the screen while its day passes by; the line fills while scrolling.
   Custom properties (all optional, set in the Style tab): --gtpdp-axis-width,
   --gtpdp-axis-width-mobile, --gtpdp-line-width, --gtpdp-line-fade, --gtpdp-dot-size,
   --gtpdp-dot-color, --gtpdp-dot-ring, --gtpdp-focus, --gtpdp-progress-start,
   --gtpdp-progress-end, --gtpdp-day-space, --gtpdp-date-dim, --gtpdp-reveal-distance,
   --gtpdp-reveal-duration. */

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__track {
	position: relative;
}

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__axis {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: var(--gtpdp-line-width, 3px);
	transform: translateX(-50%);
	background: var(--gtpdp-line);
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--gtpdp-line-fade, 80px), #000 calc(100% - var(--gtpdp-line-fade, 80px)), transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 var(--gtpdp-line-fade, 80px), #000 calc(100% - var(--gtpdp-line-fade, 80px)), transparent);
	pointer-events: none;
}

/* Grows with the scroll position (set by the script): the end color sits at
   the middle of the screen, above it the start color. */
.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__progress {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--gtpdp-progress, 0px);
	background: linear-gradient(to top, var(--gtpdp-progress-end, #e8590c) 0, var(--gtpdp-progress-start, var(--gtpdp-accent)) var(--gtpdp-focus, 50vh));
}

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__day {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--gtpdp-axis-width, 120px) minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	grid-template-areas: "stage stage stage" "date axis entries";
	padding: var(--gtpdp-day-space, 72px) 0;
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--date-right .gtpdp-timeline__day,
.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--date-alternate .gtpdp-timeline__day:nth-of-type(even) {
	grid-template-areas: "stage stage stage" "entries axis date";
}

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__stage {
	grid-area: stage;
	position: relative;
	z-index: 2;
	justify-self: center;
	margin: 0 0 calc(var(--gtpdp-day-space, 72px) / 2);
	text-align: center;
}

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__dayhead {
	display: contents;
}

/* The large date is centred on the dot; day number above, places below. */
.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__daylabel {
	grid-area: date;
	position: sticky;
	top: var(--gtpdp-focus, 50vh);
	align-self: start;
	justify-self: end;
	display: block;
	padding: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font-size: 1rem;
	line-height: 1.1;
	text-align: right;
	transform: translateY(-50%);
	transition: opacity 0.4s ease;
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--date-right .gtpdp-timeline__daylabel,
.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--date-alternate .gtpdp-timeline__day:nth-of-type(even) .gtpdp-timeline__daylabel {
	justify-self: start;
	text-align: left;
}

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__daynumber,
.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__dayplaces {
	position: absolute;
	right: 0;
	left: 0;
	font-size: 0.8125rem;
	line-height: 1.3;
}

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__daynumber {
	bottom: calc(100% + 6px);
	color: var(--gtpdp-accent);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__dayplaces {
	top: calc(100% + 8px);
	font-weight: 500;
	opacity: 0.65;
}

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__daydate {
	display: block;
	font-family: var(--gtpdp-heading-font, inherit);
	font-size: clamp(1.75rem, 3.4vw, 3rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-wrap: balance;
}

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__daymarker {
	grid-area: axis;
	position: sticky;
	top: calc(var(--gtpdp-focus, 50vh) - var(--gtpdp-dot-size, 15px) / 2);
	z-index: 2;
	align-self: start;
	justify-self: center;
	display: block;
	width: var(--gtpdp-dot-size, 15px);
	height: var(--gtpdp-dot-size, 15px);
	border-radius: 50%;
	background: var(--gtpdp-dot-color, #c8c8c8);
	box-shadow: 0 0 0 8px var(--gtpdp-dot-ring, #fff);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Without the filling line (or without the script) all dots have the marker color. */
.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--fill .gtpdp-timeline__day.is-reached .gtpdp-timeline__daymarker,
.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--fill) .gtpdp-timeline__daymarker,
.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js) .gtpdp-timeline__daymarker {
	background: var(--gtpdp-marker-bg, var(--gtpdp-progress-end, #e8590c));
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--fill.gtpdp-timeline--js .gtpdp-timeline__day.is-reached .gtpdp-timeline__daymarker {
	box-shadow: 0 0 0 8px var(--gtpdp-dot-ring, #fff), 0 0 0 14px color-mix(in srgb, var(--gtpdp-marker-bg, var(--gtpdp-progress-end, #e8590c)) 22%, transparent);
}

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__entries {
	grid-area: entries;
	display: flex;
	flex-direction: column;
	gap: var(--gtpdp-gap);
	min-width: 0;
}

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__entry {
	padding: 0;
}

.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__marker {
	display: none;
}

/* Only with the script: dim the other days, let the entries fade in. */
.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--js.gtpdp-timeline--dim .gtpdp-timeline__day:not(.is-current) .gtpdp-timeline__daylabel {
	opacity: var(--gtpdp-date-dim, 0.35);
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--js.gtpdp-timeline--reveal .gtpdp-timeline__entry {
	opacity: 0;
	transform: translateY(var(--gtpdp-reveal-distance, 48px));
	transition: opacity var(--gtpdp-reveal-duration, 0.8s) ease, transform var(--gtpdp-reveal-duration, 0.8s) cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--js.gtpdp-timeline--reveal .gtpdp-timeline__entry.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--js.gtpdp-timeline--reveal .gtpdp-timeline__entry {
		transform: none;
		transition: opacity 0.2s linear;
	}

	.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__daylabel,
	.gtpdp-view .gtpdp-timeline--scroll .gtpdp-timeline__daymarker {
		transition: none;
	}
}

/* Narrow: line on the left, date above the entries. The script sets
   gtpdp-timeline--stacked below the chosen width; without it the container decides. */

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked .gtpdp-timeline__axis {
	left: calc(var(--gtpdp-axis-width-mobile, 48px) / 2);
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked .gtpdp-timeline__day,
.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked.gtpdp-timeline--date-right .gtpdp-timeline__day,
.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked.gtpdp-timeline--date-alternate .gtpdp-timeline__day:nth-of-type(even) {
	grid-template-columns: var(--gtpdp-axis-width-mobile, 48px) minmax(0, 1fr);
	grid-template-rows: auto auto 1fr;
	grid-template-areas: "axis stage" "axis date" "axis entries";
	padding: calc(var(--gtpdp-day-space, 72px) / 2) 0;
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked .gtpdp-timeline__stage {
	justify-self: start;
	margin-bottom: 16px;
	text-align: left;
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked .gtpdp-timeline__daylabel,
.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked.gtpdp-timeline--date-right .gtpdp-timeline__daylabel,
.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked.gtpdp-timeline--date-alternate .gtpdp-timeline__day:nth-of-type(even) .gtpdp-timeline__daylabel {
	position: relative;
	top: auto;
	justify-self: start;
	margin: 0 0 20px;
	text-align: left;
	transform: none;
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked.gtpdp-timeline--js.gtpdp-timeline--dim .gtpdp-timeline__day:not(.is-current) .gtpdp-timeline__daylabel {
	opacity: 1;
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked .gtpdp-timeline__daynumber,
.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked .gtpdp-timeline__dayplaces {
	position: static;
	display: block;
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked .gtpdp-timeline__daynumber {
	margin: 0 0 4px;
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked .gtpdp-timeline__dayplaces {
	margin: 6px 0 0;
}

.gtpdp-view .gtpdp-timeline--scroll.gtpdp-timeline--stacked .gtpdp-timeline__daydate {
	font-size: 1.75rem;
}

@container (max-width: 700px) {
	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js) .gtpdp-timeline__axis {
		left: calc(var(--gtpdp-axis-width-mobile, 48px) / 2);
	}

	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js) .gtpdp-timeline__day,
	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js).gtpdp-timeline--date-right .gtpdp-timeline__day,
	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js).gtpdp-timeline--date-alternate .gtpdp-timeline__day:nth-of-type(even) {
		grid-template-columns: var(--gtpdp-axis-width-mobile, 48px) minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		grid-template-areas: "axis stage" "axis date" "axis entries";
		padding: calc(var(--gtpdp-day-space, 72px) / 2) 0;
	}

	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js) .gtpdp-timeline__stage {
		justify-self: start;
		margin-bottom: 16px;
		text-align: left;
	}

	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js) .gtpdp-timeline__daylabel,
	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js).gtpdp-timeline--date-right .gtpdp-timeline__daylabel,
	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js).gtpdp-timeline--date-alternate .gtpdp-timeline__day:nth-of-type(even) .gtpdp-timeline__daylabel {
		position: relative;
		top: auto;
		justify-self: start;
		margin: 0 0 20px;
		text-align: left;
		transform: none;
	}

	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js).gtpdp-timeline--js.gtpdp-timeline--dim .gtpdp-timeline__day:not(.is-current) .gtpdp-timeline__daylabel {
		opacity: 1;
	}

	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js) .gtpdp-timeline__daynumber,
	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js) .gtpdp-timeline__dayplaces {
		position: static;
		display: block;
	}

	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js) .gtpdp-timeline__daynumber {
		margin: 0 0 4px;
	}

	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js) .gtpdp-timeline__dayplaces {
		margin: 6px 0 0;
	}

	.gtpdp-view .gtpdp-timeline--scroll:not(.gtpdp-timeline--js) .gtpdp-timeline__daydate {
		font-size: 1.75rem;
	}
}

.gtpdp-view .gtpdp-marker--pin {
	border-width: 3px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45), inset 0 0 0 5px var(--gtpdp-marker-bg, var(--gtpdp-accent)), inset 0 0 0 20px #fff;
}

/* ---------------------------------------------------------------------
 * Diary entry: head
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-entryhead__top {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 24px;
}

.gtpdp-view .gtpdp-entryhead__back,
.gtpdp-view .gtpdp-entrynav__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--gtpdp-link, var(--gtpdp-accent));
	font-weight: 600;
	text-decoration: none;
}

.gtpdp-view .gtpdp-entryhead__back:hover,
.gtpdp-view .gtpdp-entrynav__back:hover {
	text-decoration: underline;
}

.gtpdp-view .gtpdp-entryhead__day {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--gtpdp-day-bg, var(--gtpdp-ink));
	color: var(--gtpdp-day-color, var(--gtpdp-on-ink));
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
}

.gtpdp-view .gtpdp-entryhead__flags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.gtpdp-view .gtpdp-entryhead__flag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 10px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
}

.gtpdp-view .gtpdp-entryhead__title {
	margin: 0;
	font-size: clamp(2rem, 4.6vw, 3.25rem);
	line-height: 1.1;
	overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------
 * Diary entry: date, place, weather, mood
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-info {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gtpdp-view .gtpdp-info__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.4;
}

/* ---------------------------------------------------------------------
 * Diary entry: optional heading above the content of a widget
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-block-heading {
	margin: 0 0 0.6em;
	overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------
 * Diary entry: text
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-entrytext {
	max-width: var(--gtpdp-text-width, 46em);
}

.gtpdp-view .gtpdp-entrytext > :first-child {
	margin-top: 0;
}

.gtpdp-view .gtpdp-entrytext > :last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------
 * Diary entry: photos
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-photos__item {
	margin: 0;
}

.gtpdp-view .gtpdp-photos__link {
	display: block;
	overflow: hidden;
	border-radius: var(--gtpdp-photo-radius, 8px);
}

.gtpdp-view .gtpdp-photos__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}

.gtpdp-view .gtpdp-photos__caption {
	margin: 0;
	padding: 8px 0 0;
	font-size: 0.9em;
	opacity: 0.8;
}

.gtpdp-view .gtpdp-photos__title,
.gtpdp-view .gtpdp-video__title {
	display: block;
	font-weight: 600;
}

.gtpdp-view .gtpdp-photos__text,
.gtpdp-view .gtpdp-video__text,
.gtpdp-view .gtpdp-audio__text {
	display: block;
}

.gtpdp-view .gtpdp-audio__text {
	font-weight: 400;
	opacity: 0.8;
}

/* A video between the photos plays in place. */

.gtpdp-view .gtpdp-photos__video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
	border-radius: var(--gtpdp-photo-radius, 8px);
	background: #000;
}

/* Masonry: columns of different heights. */

.gtpdp-view .gtpdp-photos--masonry .gtpdp-photos__track {
	columns: var(--gtpdp-photo-columns, 3) 220px;
	column-gap: var(--gtpdp-photo-gap, 12px);
}

.gtpdp-view .gtpdp-photos--masonry .gtpdp-photos__item {
	margin-bottom: var(--gtpdp-photo-gap, 12px);
	break-inside: avoid;
}

/* List: one photo below the other. */

.gtpdp-view .gtpdp-photos--list .gtpdp-photos__track {
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-width: var(--gtpdp-list-width, 860px);
}

/* Slider: one photo at a time. */

.gtpdp-view .gtpdp-photos--slider .gtpdp-photos__viewport {
	position: relative;
}

.gtpdp-view .gtpdp-photos--slider .gtpdp-photos__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border-radius: var(--gtpdp-photo-radius, 8px);
}

.gtpdp-view .gtpdp-photos--slider .gtpdp-photos__track::-webkit-scrollbar {
	display: none;
}

.gtpdp-view .gtpdp-photos--slider .gtpdp-photos__item {
	flex: 0 0 100%;
	scroll-snap-align: center;
}

.gtpdp-view .gtpdp-photos--slider .gtpdp-photos__link {
	aspect-ratio: var(--gtpdp-slide-ratio, 16 / 9);
	background: rgba(128, 128, 128, 0.15);
}

.gtpdp-view .gtpdp-photos--slider .gtpdp-photos__image {
	height: 100%;
	object-fit: var(--gtpdp-slide-fit, cover);
}

/* A video in the slider is never cropped. */

.gtpdp-view .gtpdp-photos--slider .gtpdp-photos__media {
	aspect-ratio: var(--gtpdp-slide-ratio, 16 / 9);
	max-height: 80vh;
	/* A tall frame is narrower than the slide: keep it in the middle. */
	margin-inline: auto;
}

.gtpdp-view .gtpdp-photos--slider .gtpdp-photos__video {
	height: 100%;
	max-height: none;
	object-fit: contain;
}

.gtpdp-view .gtpdp-photos__arrow {
	position: absolute;
	top: calc(50% - 24px);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--gtpdp-arrow-bg, #fff);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
	color: var(--gtpdp-arrow-color, var(--gtpdp-ink));
	font-size: 1.25rem;
	cursor: pointer;
}

.gtpdp-view .gtpdp-photos__arrow[hidden] {
	display: none;
}

.gtpdp-view .gtpdp-photos__arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.gtpdp-view .gtpdp-photos__arrow--previous {
	left: 14px;
}

.gtpdp-view .gtpdp-photos__arrow--next {
	right: 14px;
}

.gtpdp-view .gtpdp-photos__counter {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	padding: 3px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.5;
}

.gtpdp-view .gtpdp-photos__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.gtpdp-view .gtpdp-photos__thumb {
	position: relative;
	width: 64px;
	height: 48px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 6px;
	background: none;
	opacity: 0.6;
	cursor: pointer;
}

.gtpdp-view .gtpdp-photos__thumb.is-active {
	outline: 3px solid var(--gtpdp-accent);
	outline-offset: 1px;
	opacity: 1;
}

.gtpdp-view .gtpdp-photos__thumbimage {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.gtpdp-view .gtpdp-photos__thumbvideo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--gtpdp-ink);
	color: var(--gtpdp-on-ink);
}

/* With a preview image of the video the play sign lies on top of it. */

.gtpdp-view .gtpdp-photos__thumbimage + .gtpdp-photos__thumbvideo {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
}

/* ---------------------------------------------------------------------
 * Diary entry: video and audio
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-video,
.gtpdp-view .gtpdp-audio {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: var(--gtpdp-media-width, 860px);
}

.gtpdp-view .gtpdp-video__item,
.gtpdp-view .gtpdp-audio__item {
	margin: 0;
}

.gtpdp-view .gtpdp-video__player {
	display: block;
	width: 100%;
	max-height: 80vh;
	border-radius: var(--gtpdp-photo-radius, 8px);
	background: #000;
}

.gtpdp-view .gtpdp-video__caption {
	margin: 0;
	padding: 8px 0 0;
	font-size: 0.9em;
	opacity: 0.8;
}

.gtpdp-view .gtpdp-audio__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 20px;
	border: 1px solid var(--gtpdp-border);
	border-radius: var(--gtpdp-radius);
	background: var(--gtpdp-card-bg);
}

.gtpdp-view .gtpdp-audio__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-weight: 600;
}

.gtpdp-view .gtpdp-audio__player {
	display: block;
	width: 100%;
}

/* ---------------------------------------------------------------------
 * Diary entry: navigation
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-entrynav {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gtpdp-view .gtpdp-entrynav__pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.gtpdp-view .gtpdp-entrynav__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 22px;
	border: 1px solid var(--gtpdp-border);
	border-radius: var(--gtpdp-radius);
	background: var(--gtpdp-card-bg);
	color: inherit;
	text-decoration: none;
}

.gtpdp-view .gtpdp-entrynav__link--next {
	text-align: right;
}

.gtpdp-view .gtpdp-entrynav__link:hover,
.gtpdp-view .gtpdp-entrynav__link:focus-visible {
	border-color: var(--gtpdp-accent);
}

.gtpdp-view .gtpdp-entrynav__label {
	font-size: 0.875rem;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-entrynav__title {
	font-size: 1.2em;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------
 * Trip overview
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-trips__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	margin: 0 0 32px;
}

.gtpdp-view .gtpdp-trips__filters[hidden] {
	display: none;
}

.gtpdp-view .gtpdp-trips__statuses {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 8px;
}

.gtpdp-view .gtpdp-trips__filter {
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--gtpdp-border);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.9375rem;
	cursor: pointer;
}

.gtpdp-view .gtpdp-trips__filter.is-active {
	border-color: var(--gtpdp-filter-active-bg, var(--gtpdp-ink));
	background: var(--gtpdp-filter-active-bg, var(--gtpdp-ink));
	color: var(--gtpdp-filter-active-color, var(--gtpdp-on-ink));
	font-weight: 600;
}

.gtpdp-view .gtpdp-trips__select {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 0.9375rem;
}

.gtpdp-view .gtpdp-trips__select select {
	width: auto;
	min-height: 44px;
	padding: 0 32px 0 12px;
	font: inherit;
}

.gtpdp-view .gtpdp-trips__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--gtpdp-trip-min, 280px), 1fr));
	gap: var(--gtpdp-trip-gap, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gtpdp-view .gtpdp-trips__item {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
}

.gtpdp-view .gtpdp-trips__manage {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	min-height: 44px;
	margin-top: 8px;
	padding: 0 14px;
	border: 1px solid var(--gtpdp-border);
	border-radius: 8px;
	color: inherit;
	font-size: 0.9em;
	font-weight: 600;
	text-decoration: none;
}

.gtpdp-view .gtpdp-trips__manage:hover,
.gtpdp-view .gtpdp-trips__manage:focus-visible {
	border-color: var(--gtpdp-accent);
	color: var(--gtpdp-accent);
}

.gtpdp-view .gtpdp-trips__item[hidden] {
	display: none;
}

.gtpdp-view .gtpdp-trips__card {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--gtpdp-border);
	border-radius: var(--gtpdp-radius);
	background: var(--gtpdp-card-bg);
	color: inherit;
	text-decoration: none;
}

.gtpdp-view .gtpdp-trips__card:hover,
.gtpdp-view .gtpdp-trips__card:focus-visible {
	border-color: var(--gtpdp-accent);
}

.gtpdp-view .gtpdp-trips__media {
	aspect-ratio: var(--gtpdp-trip-ratio, 3 / 2);
	background: var(--gtpdp-hero-bg, var(--gtpdp-ink));
}

.gtpdp-view .gtpdp-trips__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.gtpdp-view .gtpdp-trips__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px 22px;
}

.gtpdp-view .gtpdp-trips__badges,
.gtpdp-view .gtpdp-trips__meta,
.gtpdp-view .gtpdp-trips__countries,
.gtpdp-view .gtpdp-trips__excerpt,
.gtpdp-view .gtpdp-trips__note {
	margin: 0;
	padding: 0;
}

.gtpdp-view .gtpdp-trips__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 4px;
}

.gtpdp-view .gtpdp-trips__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 10px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.5;
}

.gtpdp-view .gtpdp-trips__title {
	margin: 0;
	font-size: 1.35em;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-trips__meta,
.gtpdp-view .gtpdp-trips__countries {
	font-size: 0.9375rem;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-trips__note {
	margin-top: auto;
	padding-top: 8px;
	color: var(--gtpdp-link, var(--gtpdp-accent));
	font-size: 0.9375rem;
	font-weight: 600;
}

.gtpdp-view .gtpdp-trips__empty[hidden] {
	display: none;
}

/* Layout "list": photo on the left, text on the right. */

.gtpdp-view .gtpdp-trips--list .gtpdp-trips__list {
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.gtpdp-view .gtpdp-trips--list .gtpdp-trips__card {
	flex-direction: row;
}

.gtpdp-view .gtpdp-trips--list .gtpdp-trips__media {
	flex: 0 0 min(34%, 260px);
	aspect-ratio: auto;
	min-height: 140px;
}

/* ---------------------------------------------------------------------
 * Login
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-login {
	max-width: var(--gtpdp-login-width, 420px);
}

.gtpdp-view .gtpdp-login form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

.gtpdp-view .gtpdp-login form p {
	margin: 0;
}

.gtpdp-view .gtpdp-login label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
}

.gtpdp-view .gtpdp-login .login-remember label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 400;
}

.gtpdp-view .gtpdp-login input[type="text"],
.gtpdp-view .gtpdp-login input[type="email"],
.gtpdp-view .gtpdp-login input[type="password"] {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	font: inherit;
}

.gtpdp-view .gtpdp-login input[type="submit"] {
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 8px;
	background: var(--gtpdp-accent);
	color: var(--gtpdp-on-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Login link (magic link): form below the login form. */
.gtpdp-link__trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gtpdp-view .gtpdp-link__notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 8px;
	border-left: 4px solid #2e7d32;
	background-color: #edf7ed;
	color: #1e4620;
}

.gtpdp-view .gtpdp-link__notice--error {
	border-left-color: #c62828;
	background-color: #fdecea;
	color: #5f2120;
}

.gtpdp-view .gtpdp-link {
	margin: 24px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--gtpdp-border);
}

.gtpdp-view .gtpdp-link__heading {
	font-weight: 600;
}

.gtpdp-view .gtpdp-link__hint {
	color: var(--gtpdp-muted);
}

.gtpdp-view .gtpdp-login__lost,
.gtpdp-view .gtpdp-login__state {
	margin: 14px 0 0;
}

/* The two views of 1.31.0 adapt to the width of their column, not of the window. */

.gtpdp-view--destination-slider,
.gtpdp-view--next-destination {
	container-type: inline-size;
}

/* ---------------------------------------------------------------------
 * Destination slider (since 1.31.0)
 *
 * Layout "hero": large picture with a text panel, below it a row of
 * previews. Layout "cards": a row of cards. The row scrolls sideways and
 * snaps; assets/js/frontend-destinations.js adds the controls.
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-dslider {
	--gtpdp-ds-height: clamp(320px, 45vw, 520px);
	--gtpdp-ds-gap: 20px;
	--gtpdp-ds-per-view: 3.3;
	--gtpdp-ds-strip: 4;
	--gtpdp-ds-panel-bg: rgba(15, 24, 31, 0.8);
	--gtpdp-ds-panel-color: #fff;
	--gtpdp-ds-panel-width: 560px;
	--gtpdp-ds-card-bg: #fff;
	--gtpdp-ds-card-border: var(--gtpdp-border);
	--gtpdp-ds-image-ratio: 4 / 3;
	--gtpdp-ds-placeholder: rgba(128, 128, 128, 0.25);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gtpdp-view .gtpdp-dslider__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
}

.gtpdp-view .gtpdp-dslider__heading {
	min-width: 0;
}

.gtpdp-view .gtpdp-dslider__heading .gtpdp-block-heading {
	margin: 0;
}

.gtpdp-view .gtpdp-dslider__kicker {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-dslider__nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.gtpdp-view .gtpdp-dslider__counter {
	font-size: 0.9375rem;
	opacity: 0.8;
}

.gtpdp-view .gtpdp-dslider__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--gtpdp-ds-arrow-size, 48px);
	height: var(--gtpdp-ds-arrow-size, 48px);
	padding: 0;
	border: 1px solid var(--gtpdp-ds-arrow-border, rgba(128, 128, 128, 0.45));
	border-radius: 50%;
	background: var(--gtpdp-ds-arrow-bg, transparent);
	color: var(--gtpdp-ds-arrow-color, inherit);
	font-size: 1.25rem;
	cursor: pointer;
}

.gtpdp-view .gtpdp-dslider__arrow--next {
	border-color: var(--gtpdp-ds-arrow-next-bg, var(--gtpdp-accent));
	background: var(--gtpdp-ds-arrow-next-bg, var(--gtpdp-accent));
	color: var(--gtpdp-ds-arrow-next-color, var(--gtpdp-on-accent));
}

.gtpdp-view .gtpdp-dslider__arrow[hidden] {
	display: none;
}

.gtpdp-view .gtpdp-dslider__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.gtpdp-view .gtpdp-dslider__arrow:focus-visible,
.gtpdp-view .gtpdp-dslider__thumb:focus-visible,
.gtpdp-view .gtpdp-dslider__dot:focus-visible,
.gtpdp-view .gtpdp-dslider__track:focus-visible,
.gtpdp-view .gtpdp-dslider__card:focus-visible {
	outline: 3px solid var(--gtpdp-accent);
	outline-offset: 2px;
}

.gtpdp-view .gtpdp-dslider__viewport {
	position: relative;
	min-width: 0;
}

.gtpdp-view .gtpdp-dslider__track {
	display: flex;
	gap: var(--gtpdp-ds-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.gtpdp-view .gtpdp-dslider__track::-webkit-scrollbar {
	display: none;
}

/* Hero: one destination at a time. */

.gtpdp-view .gtpdp-dslider--hero .gtpdp-dslider__track {
	border-radius: var(--gtpdp-ds-radius, var(--gtpdp-radius));
}

.gtpdp-view .gtpdp-dslider__slide {
	position: relative;
	display: flex;
	flex: 0 0 100%;
	align-items: flex-end;
	min-height: var(--gtpdp-ds-height);
	margin: 0;
	overflow: hidden;
	border-radius: var(--gtpdp-ds-radius, var(--gtpdp-radius));
	background: var(--gtpdp-ds-placeholder);
	scroll-snap-align: start;
}

.gtpdp-view .gtpdp-dslider__media {
	position: absolute;
	inset: 0;
}

.gtpdp-view .gtpdp-dslider__image {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.gtpdp-view .gtpdp-dslider__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(var(--gtpdp-ds-panel-width), calc(100% - 64px));
	margin: 32px;
	padding: 26px 30px;
	border-radius: var(--gtpdp-radius);
	background: var(--gtpdp-ds-panel-bg);
	color: var(--gtpdp-ds-panel-color);
}

.gtpdp-view .gtpdp-dslider__panel > * {
	margin: 0;
}

.gtpdp-view .gtpdp-dslider__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gtpdp-view .gtpdp-dslider__badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 12px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.gtpdp-view .gtpdp-dslider__badge--number {
	border-color: #fff;
	background: #fff;
	color: var(--gtpdp-ink);
}

.gtpdp-view .gtpdp-dslider__title {
	margin: 0;
	color: inherit;
	line-height: 1.12;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-dslider__slide .gtpdp-dslider__title {
	font-size: clamp(1.75rem, 4vw, 2.875rem);
	font-weight: 700;
}

.gtpdp-view .gtpdp-dslider__meta,
.gtpdp-view .gtpdp-dslider__place,
.gtpdp-view .gtpdp-dslider__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 20px;
}

.gtpdp-view .gtpdp-dslider__panel .gtpdp-dslider__meta,
.gtpdp-view .gtpdp-dslider__panel .gtpdp-dslider__place {
	gap: 8px;
}

.gtpdp-view .gtpdp-dslider__facts {
	font-size: 0.875rem;
	opacity: 0.92;
}

.gtpdp-view .gtpdp-dslider__stay,
.gtpdp-view .gtpdp-dslider__entries {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gtpdp-view .gtpdp-dslider__text {
	opacity: 0.92;
}

.gtpdp-view .gtpdp-dslider__trip {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gtpdp-view .gtpdp-dslider__button {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-top: 6px;
	padding: 0 20px;
	border-radius: 999px;
	background: #fff;
	color: var(--gtpdp-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.gtpdp-view .gtpdp-dslider__button:hover,
.gtpdp-view .gtpdp-dslider__button:focus {
	text-decoration: none;
	opacity: 0.9;
}

/* Cards: in the layout "cards" and in the row of previews. */

.gtpdp-view .gtpdp-dslider__card,
.gtpdp-view .gtpdp-dslider--strip-cards .gtpdp-dslider__thumb {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--gtpdp-ds-card-border);
	border-radius: var(--gtpdp-radius);
	background: var(--gtpdp-ds-card-bg);
	color: var(--gtpdp-ink);
	text-align: left;
	text-decoration: none;
}

.gtpdp-view .gtpdp-dslider--cards .gtpdp-dslider__card {
	flex: 0 0 calc((100% - (var(--gtpdp-ds-per-view) - 1) * var(--gtpdp-ds-gap)) / var(--gtpdp-ds-per-view));
	scroll-snap-align: start;
}

.gtpdp-view a.gtpdp-dslider__card:hover,
.gtpdp-view a.gtpdp-dslider__card:focus {
	text-decoration: none;
	color: var(--gtpdp-ink);
}

.gtpdp-view .gtpdp-dslider__cardmedia {
	position: relative;
	display: block;
	aspect-ratio: var(--gtpdp-ds-image-ratio);
	overflow: hidden;
	background: var(--gtpdp-ds-placeholder);
}

.gtpdp-view .gtpdp-dslider__cardimage {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.gtpdp-view .gtpdp-dslider__number {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	color: var(--gtpdp-ink);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
}

.gtpdp-view .gtpdp-dslider__cardmedia .gtpdp-dslider__badge {
	position: absolute;
	top: 14px;
	right: 12px;
	border-color: transparent;
	background: rgba(15, 24, 31, 0.75);
	color: #fff;
}

.gtpdp-view .gtpdp-dslider__cardmedia .gtpdp-dslider__badge--current {
	background: var(--gtpdp-accent);
	color: var(--gtpdp-on-accent);
}

.gtpdp-view .gtpdp-dslider__cardmedia .gtpdp-dslider__badge--planned {
	background: #fff;
	color: var(--gtpdp-ink);
}

.gtpdp-view .gtpdp-dslider__cardbody {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	padding: 16px 18px 18px;
}

.gtpdp-view .gtpdp-dslider__cardbody .gtpdp-dslider__title {
	font-size: 1.3rem;
	font-weight: 700;
}

.gtpdp-view .gtpdp-dslider__cardbody .gtpdp-dslider__meta,
.gtpdp-view .gtpdp-dslider__cardbody .gtpdp-dslider__place {
	font-size: 0.9375rem;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-dslider__cardbody .gtpdp-dslider__text {
	margin-top: 6px;
	font-size: 0.9375rem;
}

.gtpdp-view .gtpdp-dslider__cardbody .gtpdp-dslider__trip {
	color: var(--gtpdp-accent);
}

.gtpdp-view .gtpdp-dslider__cardfoot {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--gtpdp-ds-card-border);
	font-size: 0.875rem;
}

.gtpdp-view .gtpdp-dslider__cardbody .gtpdp-dslider__cardfoot {
	margin-top: 10px;
}

.gtpdp-view .gtpdp-dslider__more {
	margin-left: auto;
	color: var(--gtpdp-accent);
	font-weight: 600;
}

.gtpdp-view .gtpdp-dslider--cards .gtpdp-dslider__item--current {
	border: 2px solid var(--gtpdp-ds-active-border, var(--gtpdp-accent));
}

/* Row of previews below the large picture. */

.gtpdp-view .gtpdp-dslider__strip {
	display: flex;
	gap: var(--gtpdp-ds-strip-gap, 16px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.gtpdp-view .gtpdp-dslider__strip::-webkit-scrollbar {
	display: none;
}

/* Arrows of the row of previews, at its edges over the photos. */

.gtpdp-view .gtpdp-dslider__stripwrap {
	position: relative;
	--gtpdp-ds-strip-arrow-top: calc(var(--gtpdp-ds-thumb-height, 150px) / 2);
}

.gtpdp-view .gtpdp-dslider--strip-compact .gtpdp-dslider__stripwrap {
	--gtpdp-ds-strip-arrow-top: 50%;
}

.gtpdp-view .gtpdp-dslider__striparrow {
	position: absolute;
	top: var(--gtpdp-ds-strip-arrow-top);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--gtpdp-ds-strip-arrow-size, 40px);
	height: var(--gtpdp-ds-strip-arrow-size, 40px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--gtpdp-ds-strip-arrow-bg, #fff);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
	color: var(--gtpdp-ds-strip-arrow-color, var(--gtpdp-ink));
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease;
}

.gtpdp-view .gtpdp-dslider__striparrow:hover,
.gtpdp-view .gtpdp-dslider__striparrow:focus {
	background: var(--gtpdp-ds-strip-arrow-bg, #fff);
	color: var(--gtpdp-ds-strip-arrow-color, var(--gtpdp-ink));
}

.gtpdp-view .gtpdp-dslider__striparrow:focus-visible {
	outline: 3px solid var(--gtpdp-accent);
	outline-offset: 2px;
}

.gtpdp-view .gtpdp-dslider__striparrow[hidden] {
	display: none;
}

.gtpdp-view .gtpdp-dslider__striparrow:disabled {
	opacity: 0;
	pointer-events: none;
}

.gtpdp-view .gtpdp-dslider__striparrow--previous {
	left: var(--gtpdp-ds-strip-arrow-offset, 10px);
}

.gtpdp-view .gtpdp-dslider__striparrow--next {
	right: var(--gtpdp-ds-strip-arrow-offset, 10px);
}

.gtpdp-view .gtpdp-dslider__thumb {
	flex: 0 0 calc((100% - (var(--gtpdp-ds-strip) - 1) * var(--gtpdp-ds-strip-gap, 16px)) / var(--gtpdp-ds-strip));
	margin: 0;
	padding: 0;
	font: inherit;
	line-height: 1.4;
	/* Themes give buttons nowrap and their own colors; a preview is a card. */
	white-space: normal;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	scroll-snap-align: start;
	opacity: 0.82;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gtpdp-view .gtpdp-dslider__thumb:hover,
.gtpdp-view .gtpdp-dslider__thumb.is-active {
	opacity: 1;
}

.gtpdp-view .gtpdp-dslider--strip-cards .gtpdp-dslider__thumb:hover,
.gtpdp-view .gtpdp-dslider--strip-cards .gtpdp-dslider__thumb:focus,
.gtpdp-view .gtpdp-dslider--strip-compact .gtpdp-dslider__thumb:hover,
.gtpdp-view .gtpdp-dslider--strip-compact .gtpdp-dslider__thumb:focus {
	background: var(--gtpdp-ds-card-bg);
	color: var(--gtpdp-ink);
}

.gtpdp-view .gtpdp-dslider--strip-cards .gtpdp-dslider__thumb.is-active {
	border: 2px solid var(--gtpdp-ds-active-border, var(--gtpdp-accent));
}

.gtpdp-view .gtpdp-dslider--strip-cards .gtpdp-dslider__thumb .gtpdp-dslider__cardmedia {
	aspect-ratio: auto;
	height: var(--gtpdp-ds-thumb-height, 150px);
}

.gtpdp-view .gtpdp-dslider--strip-cards .gtpdp-dslider__thumb .gtpdp-dslider__title {
	font-size: 1.125rem;
}

.gtpdp-view .gtpdp-dslider--strip-compact .gtpdp-dslider__thumb {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px;
	border: 1px solid var(--gtpdp-ds-card-border);
	border-radius: var(--gtpdp-radius);
	background: var(--gtpdp-ds-card-bg);
	color: var(--gtpdp-ink);
	text-align: left;
}

.gtpdp-view .gtpdp-dslider--strip-compact .gtpdp-dslider__thumb.is-active {
	border: 2px solid var(--gtpdp-ds-active-border, var(--gtpdp-accent));
}

.gtpdp-view .gtpdp-dslider__thumbmedia {
	flex: none;
	width: 72px;
	height: 54px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--gtpdp-ds-placeholder);
}

.gtpdp-view .gtpdp-dslider__thumbimage {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.gtpdp-view .gtpdp-dslider__thumbbody {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gtpdp-view .gtpdp-dslider__thumbsmall {
	font-size: 0.8125rem;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-dslider__thumbtitle {
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Dots. */

.gtpdp-view .gtpdp-dslider__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
}

.gtpdp-view .gtpdp-dslider__dots[hidden] {
	display: none;
}

.gtpdp-view .gtpdp-dslider__dot {
	position: relative;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.gtpdp-view .gtpdp-dslider__dot::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 7px;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--gtpdp-ds-dot, rgba(128, 128, 128, 0.45));
	transition: width 0.2s ease, left 0.2s ease;
}

.gtpdp-view .gtpdp-dslider__dot.is-active::before {
	left: 0;
	width: 24px;
	background: var(--gtpdp-ds-dot-active, var(--gtpdp-accent));
}

/* Dots only where the previews are not shown (the phone, see below). */

.gtpdp-view .gtpdp-dslider--hero:not(.gtpdp-dslider--strip-none) .gtpdp-dslider__dots {
	display: none;
}

@container (max-width: 700px) {
	.gtpdp-view .gtpdp-dslider {
		--gtpdp-ds-per-view: 1.15;
	}

	.gtpdp-view .gtpdp-dslider__slide {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		background: var(--gtpdp-ds-panel-bg);
	}

	.gtpdp-view .gtpdp-dslider__media {
		position: relative;
		height: var(--gtpdp-ds-height-mobile, 240px);
		background: var(--gtpdp-ds-placeholder);
	}

	.gtpdp-view .gtpdp-dslider__panel {
		width: auto;
		margin: 0;
		border-radius: 0;
		background: transparent;
	}

	.gtpdp-view .gtpdp-dslider__stripwrap {
		display: none;
	}

	.gtpdp-view .gtpdp-dslider--hero:not(.gtpdp-dslider--strip-none) .gtpdp-dslider__dots {
		display: flex;
	}
}

@container (min-width: 701px) and (max-width: 1000px) {
	.gtpdp-view .gtpdp-dslider {
		--gtpdp-ds-per-view: 2.2;
		--gtpdp-ds-strip: 3;
	}
}

/* ---------------------------------------------------------------------
 * Next destination (since 1.31.0)
 *
 * Layouts: "card" (photo beside the text), "band" (dark band, map on the
 * right), "compact" (photo above the text).
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-next {
	--gtpdp-next-bg: transparent;
	--gtpdp-next-color: inherit;
	--gtpdp-next-muted: inherit;
	--gtpdp-next-box: rgba(128, 128, 128, 0.12);
	--gtpdp-next-step: var(--gtpdp-accent);
	--gtpdp-next-step-line: rgba(128, 128, 128, 0.4);
	--gtpdp-next-placeholder: rgba(128, 128, 128, 0.25);
	display: grid;
	overflow: hidden;
	border: 1px solid var(--gtpdp-border);
	border-radius: var(--gtpdp-radius);
	background: var(--gtpdp-next-bg);
	color: var(--gtpdp-next-color);
}

.gtpdp-view .gtpdp-next--card.gtpdp-next--has-media {
	grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
}

.gtpdp-view .gtpdp-next__media {
	position: relative;
	min-height: var(--gtpdp-next-image-height, 260px);
	background: var(--gtpdp-next-placeholder);
}

.gtpdp-view .gtpdp-next__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.gtpdp-view .gtpdp-next__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: var(--gtpdp-next-padding, 36px 40px);
}

.gtpdp-view .gtpdp-next__body > * {
	margin: 0;
}

.gtpdp-view .gtpdp-next__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.gtpdp-view .gtpdp-next__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 14px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

.gtpdp-view .gtpdp-next__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--gtpdp-accent);
}

.gtpdp-view .gtpdp-next__trip {
	font-size: 0.9375rem;
	opacity: 0.8;
}

.gtpdp-view .gtpdp-next__kicker {
	display: block;
	margin: 0;
	color: var(--gtpdp-accent);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gtpdp-view .gtpdp-next__sentence {
	display: none;
	margin: 0;
}

.gtpdp-view .gtpdp-next__title {
	margin: 0;
	color: inherit;
	font-size: clamp(1.6rem, 3.4vw, 2.25rem);
	font-weight: 700;
	line-height: 1.12;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-next__meta,
.gtpdp-view .gtpdp-next__sub {
	margin: 0;
}

.gtpdp-view .gtpdp-next__meta {
	font-size: 1.05em;
}

.gtpdp-view .gtpdp-next__sub {
	display: block;
	font-size: 0.9375rem;
	opacity: 0.78;
}

.gtpdp-view .gtpdp-next__first {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 0;
	border-top: 1px solid var(--gtpdp-border);
	border-bottom: 1px solid var(--gtpdp-border);
}

.gtpdp-view .gtpdp-next__label {
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-next__name {
	font-size: 1.3rem;
	font-weight: 600;
}

.gtpdp-view .gtpdp-next__current {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 0.9375rem;
}

.gtpdp-view .gtpdp-next__currentmedia {
	flex: none;
	width: 64px;
	height: 48px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--gtpdp-next-placeholder);
}

.gtpdp-view .gtpdp-next__currentimage,
.gtpdp-view .gtpdp-next__tileimage,
.gtpdp-view .gtpdp-next__upimage {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.gtpdp-view .gtpdp-next__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 26px;
}

.gtpdp-view .gtpdp-next__maintext {
	display: flex;
	flex: 1 1 260px;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.gtpdp-view .gtpdp-next__maintext > * {
	margin: 0;
}

.gtpdp-view .gtpdp-next__tile {
	flex: none;
	width: 230px;
	max-width: 100%;
	height: 168px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--gtpdp-next-placeholder);
}

.gtpdp-view .gtpdp-next__countdown {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	max-width: 420px;
}

.gtpdp-view .gtpdp-next__countdown--days {
	grid-template-columns: minmax(0, 1fr);
	max-width: 160px;
}

.gtpdp-view .gtpdp-next__count {
	display: flex;
	flex-direction: column;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--gtpdp-next-box);
}

.gtpdp-view .gtpdp-next__count-value {
	color: var(--gtpdp-accent);
	font-size: 2.1rem;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.gtpdp-view .gtpdp-next__count-label,
.gtpdp-view .gtpdp-next__count-caption {
	font-size: 0.8125rem;
	opacity: 0.8;
}

.gtpdp-view .gtpdp-next__count-caption {
	margin-top: -6px;
}

.gtpdp-view .gtpdp-next__steps {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin: 0;
	padding: 6px 0 0;
	list-style: none;
}

.gtpdp-view .gtpdp-next__step {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 28px 8px 0 0;
	font-size: 0.875rem;
	line-height: 1.35;
}

.gtpdp-view .gtpdp-next__step::before {
	content: "";
	position: absolute;
	top: 9px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--gtpdp-next-step-line);
}

.gtpdp-view .gtpdp-next__step--visited::before,
.gtpdp-view .gtpdp-next__step--current::before {
	background: var(--gtpdp-next-step);
}

.gtpdp-view .gtpdp-next__step--current::before {
	background: linear-gradient(to right, var(--gtpdp-next-step) 10px, var(--gtpdp-next-step-line) 10px);
}

.gtpdp-view .gtpdp-next__step:last-child::before {
	right: auto;
	width: 0;
}

.gtpdp-view .gtpdp-next__stepdot {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	border: 2px solid var(--gtpdp-next-step);
	border-radius: 50%;
	background: var(--gtpdp-next-dot-bg, #fff);
}

.gtpdp-view .gtpdp-next__step--visited .gtpdp-next__stepdot {
	background: var(--gtpdp-next-step);
}

.gtpdp-view .gtpdp-next__step--current .gtpdp-next__stepdot {
	border-width: 5px;
}

.gtpdp-view .gtpdp-next__step--planned:not(.gtpdp-next__step--next) .gtpdp-next__stepdot {
	border-color: var(--gtpdp-next-step-line);
}

.gtpdp-view .gtpdp-next__stepname {
	display: block;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-next__step--next .gtpdp-next__stepname {
	color: var(--gtpdp-accent);
}

.gtpdp-view .gtpdp-next__stepdate {
	display: block;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-next__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	margin-top: auto;
}

.gtpdp-view .gtpdp-next__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--gtpdp-accent);
	color: var(--gtpdp-on-accent);
	font-weight: 600;
	text-decoration: none;
}

.gtpdp-view .gtpdp-next__button:hover,
.gtpdp-view .gtpdp-next__button:focus {
	color: var(--gtpdp-on-accent);
	text-decoration: none;
	opacity: 0.9;
}

.gtpdp-view .gtpdp-next__when {
	position: absolute;
	top: 14px;
	left: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--gtpdp-accent);
	color: var(--gtpdp-on-accent);
	font-size: 0.875rem;
	font-weight: 600;
}

.gtpdp-view .gtpdp-next__summary {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gtpdp-view .gtpdp-next__summary > * {
	margin: 0;
}

.gtpdp-view .gtpdp-next__summary .gtpdp-next__title {
	font-size: 1.3rem;
}

.gtpdp-view .gtpdp-next__note > :first-child {
	margin-top: 0;
}

.gtpdp-view .gtpdp-next__note > :last-child {
	margin-bottom: 0;
}

.gtpdp-view .gtpdp-next__upcoming {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--gtpdp-border);
	border-radius: var(--gtpdp-radius);
	color: inherit;
	text-decoration: none;
}

.gtpdp-view a.gtpdp-next__upcoming:hover,
.gtpdp-view a.gtpdp-next__upcoming:focus {
	color: inherit;
	text-decoration: none;
}

.gtpdp-view .gtpdp-next__upmedia {
	position: relative;
	display: block;
	height: 170px;
	background: var(--gtpdp-next-placeholder);
}

.gtpdp-view .gtpdp-next__upbody {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px 18px;
}

.gtpdp-view .gtpdp-next__uptitle {
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.15;
}

/* Band: dark, map on the right. */

.gtpdp-view .gtpdp-next--band {
	--gtpdp-next-bg: var(--gtpdp-ink);
	--gtpdp-next-color: var(--gtpdp-on-ink);
	--gtpdp-next-box: rgba(255, 255, 255, 0.1);
	--gtpdp-next-step: #8cc0e4;
	--gtpdp-next-step-line: rgba(255, 255, 255, 0.3);
	--gtpdp-next-dot-bg: var(--gtpdp-ink);
	--gtpdp-next-placeholder: rgba(255, 255, 255, 0.12);
	border: 0;
}

.gtpdp-view .gtpdp-next--band.gtpdp-next--has-media,
.gtpdp-view .gtpdp-next--band.gtpdp-next--has-map {
	grid-template-columns: minmax(0, 1fr) minmax(0, var(--gtpdp-next-side, 340px));
}

.gtpdp-view .gtpdp-next--band .gtpdp-next__media,
.gtpdp-view .gtpdp-next--band .gtpdp-next__map {
	order: 2;
	margin: 24px 24px 24px 0;
	overflow: hidden;
	border-radius: 8px;
}

.gtpdp-view .gtpdp-next--band .gtpdp-next__kicker,
.gtpdp-view .gtpdp-next--band .gtpdp-next__step--next .gtpdp-next__stepname {
	color: var(--gtpdp-next-step);
}

.gtpdp-view .gtpdp-next--band .gtpdp-next__count-value {
	color: var(--gtpdp-on-ink);
}

.gtpdp-view .gtpdp-next--band .gtpdp-next__pill {
	border-color: #fff;
	background: #fff;
	color: var(--gtpdp-ink);
}

.gtpdp-view .gtpdp-next--band .gtpdp-next__title {
	font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.gtpdp-view .gtpdp-next--band .gtpdp-next__first,
.gtpdp-view .gtpdp-next--band .gtpdp-next__upcoming {
	border-color: rgba(255, 255, 255, 0.25);
}

.gtpdp-view .gtpdp-next__map {
	position: relative;
	min-height: 300px;
}

.gtpdp-view .gtpdp-next__map .gtpdp-map__canvas {
	position: absolute;
	inset: 0;
	height: 100%;
	min-height: 0;
}

/* Compact: photo above the text. */

.gtpdp-view .gtpdp-next--compact {
	max-width: var(--gtpdp-next-compact-width, 420px);
}

.gtpdp-view .gtpdp-next--compact .gtpdp-next__media {
	min-height: 0;
	aspect-ratio: var(--gtpdp-next-ratio, 16 / 9);
}

.gtpdp-view .gtpdp-next--compact .gtpdp-next__body {
	gap: 8px;
	padding: var(--gtpdp-next-padding, 20px 20px 22px);
}

.gtpdp-view .gtpdp-next--compact .gtpdp-next__title {
	font-size: 2rem;
}

.gtpdp-view .gtpdp-next--compact .gtpdp-next__current {
	font-size: 0.875rem;
}

.gtpdp-view .gtpdp-next--compact .gtpdp-next__steps {
	grid-auto-flow: row;
	grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
}

.gtpdp-view .gtpdp-next--compact .gtpdp-next__stepdate,
.gtpdp-view .gtpdp-next--compact .gtpdp-next__step::before {
	display: none;
}

.gtpdp-view .gtpdp-next--compact .gtpdp-next__countdown {
	gap: 6px;
}

.gtpdp-view .gtpdp-next--compact .gtpdp-next__count {
	padding: 8px 10px;
}

.gtpdp-view .gtpdp-next--compact .gtpdp-next__count-value {
	font-size: 1.6rem;
}

@container (max-width: 700px) {
	.gtpdp-view .gtpdp-next--card.gtpdp-next--has-media,
	.gtpdp-view .gtpdp-next--band.gtpdp-next--has-media,
	.gtpdp-view .gtpdp-next--band.gtpdp-next--has-map {
		grid-template-columns: minmax(0, 1fr);
	}

	.gtpdp-view .gtpdp-next--card .gtpdp-next__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.gtpdp-view .gtpdp-next--band .gtpdp-next__media,
	.gtpdp-view .gtpdp-next--band .gtpdp-next__map {
		order: 0;
		margin: 0;
		border-radius: 0;
	}

	.gtpdp-view .gtpdp-next--band .gtpdp-next__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.gtpdp-view .gtpdp-next__map {
		min-height: 220px;
	}

	.gtpdp-view .gtpdp-next__body {
		padding: var(--gtpdp-next-padding-mobile, 22px 20px);
	}

	.gtpdp-view .gtpdp-next__tile {
		width: 100%;
		height: 180px;
	}

	.gtpdp-view .gtpdp-next__steps {
		grid-auto-flow: row;
		grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
		row-gap: 12px;
	}

	.gtpdp-view .gtpdp-next__stepdate,
	.gtpdp-view .gtpdp-next__step::before {
		display: none;
	}
}

.gtpdp-view .gtpdp-next--compact .gtpdp-next__meta {
	font-size: 1rem;
}

.gtpdp-view .gtpdp-next__summary .gtpdp-next__meta {
	font-size: 0.9375rem;
	opacity: 0.8;
}

/* ---------------------------------------------------------------------
 * Destination page (since 1.32.0): head, diary entries, navigation.
 * The head uses the classes of the trip head (gtpdp-header__…).
 * ------------------------------------------------------------------ */

.gtpdp-view .gtpdp-header__back-line {
	margin: 0 0 14px;
}

.gtpdp-view .gtpdp-header__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--gtpdp-back-bg, rgba(15, 24, 31, 0.55));
	color: var(--gtpdp-back-color, #fff);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.gtpdp-view .gtpdp-header__back:hover,
.gtpdp-view .gtpdp-header__back:focus {
	color: var(--gtpdp-back-color, #fff);
	text-decoration: none;
	opacity: 0.9;
}

.gtpdp-view .gtpdp-header__badge--current,
.gtpdp-view .gtpdp-header__badge--when {
	border-color: var(--gtpdp-accent);
	background: var(--gtpdp-accent);
	color: var(--gtpdp-on-accent);
}

.gtpdp-view--destination-entries,
.gtpdp-view--destination-nav {
	container-type: inline-size;
}

.gtpdp-view .gtpdp-dentries__grid {
	display: grid;
	grid-template-columns: repeat(var(--gtpdp-dentries-columns, 3), minmax(0, 1fr));
	gap: var(--gtpdp-dentries-gap, 24px);
}

.gtpdp-view .gtpdp-dentries__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--gtpdp-border);
	border-radius: var(--gtpdp-radius);
	background: var(--gtpdp-dentries-bg, transparent);
	color: inherit;
	text-decoration: none;
}

.gtpdp-view .gtpdp-dentries__card:hover,
.gtpdp-view .gtpdp-dentries__card:focus {
	color: inherit;
	text-decoration: none;
}

.gtpdp-view .gtpdp-dentries__card:focus-visible {
	outline: 3px solid var(--gtpdp-accent);
	outline-offset: 2px;
}

.gtpdp-view .gtpdp-dentries__media {
	position: relative;
	display: block;
	aspect-ratio: var(--gtpdp-dentries-ratio, 3 / 2);
	overflow: hidden;
	background: rgba(128, 128, 128, 0.2);
}

.gtpdp-view .gtpdp-dentries__image {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.gtpdp-view .gtpdp-dentries__more {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
}

.gtpdp-view .gtpdp-dentries__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px 20px;
}

.gtpdp-view .gtpdp-dentries__when {
	font-size: 0.875rem;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-dentries__title {
	margin: 0;
	color: inherit;
	font-size: 1.3rem;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-dentries__excerpt {
	font-size: 0.9375rem;
	opacity: 0.88;
}

.gtpdp-view .gtpdp-dentries__info {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 0.875rem;
	opacity: 0.85;
}

.gtpdp-view .gtpdp-dentries__weather,
.gtpdp-view .gtpdp-dentries__mood {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gtpdp-view .gtpdp-dentries__read {
	margin-top: auto;
	padding-top: 4px;
	color: var(--gtpdp-accent);
	font-size: 0.875rem;
	font-weight: 600;
}

.gtpdp-view .gtpdp-dentries__timeline {
	margin: 18px 0 0;
}

.gtpdp-view .gtpdp-dentries__timeline a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.gtpdp-view .gtpdp-dentries__empty {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 24px 26px;
	border: 1px dashed var(--gtpdp-border);
	border-radius: var(--gtpdp-radius);
	background: var(--gtpdp-dentries-empty-bg, rgba(128, 128, 128, 0.07));
}

.gtpdp-view .gtpdp-dentries__empty .gtpdp-icon {
	width: 1.8em;
	height: 1.8em;
	opacity: 0.7;
}

@container (max-width: 900px) {
	.gtpdp-view .gtpdp-dentries__grid {
		grid-template-columns: repeat(min(2, var(--gtpdp-dentries-columns, 3)), minmax(0, 1fr));
	}
}

@container (max-width: 560px) {
	.gtpdp-view .gtpdp-dentries__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.gtpdp-view .gtpdp-destnav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 16px 24px;
	align-items: center;
	padding-top: 24px;
	border-top: 1px solid var(--gtpdp-border);
}

.gtpdp-view .gtpdp-destnav__side--next {
	display: flex;
	justify-content: flex-end;
	text-align: right;
}

.gtpdp-view .gtpdp-destnav__link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}

.gtpdp-view .gtpdp-destnav__link--next {
	flex-direction: row-reverse;
}

.gtpdp-view .gtpdp-destnav__link:hover .gtpdp-destnav__title,
.gtpdp-view .gtpdp-destnav__link:focus-visible .gtpdp-destnav__title {
	color: var(--gtpdp-accent);
}

.gtpdp-view .gtpdp-destnav__media {
	flex: none;
	width: 72px;
	height: 54px;
	overflow: hidden;
	border-radius: 6px;
	background: rgba(128, 128, 128, 0.2);
}

.gtpdp-view .gtpdp-destnav__image {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.gtpdp-view .gtpdp-destnav__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gtpdp-view .gtpdp-destnav__label,
.gtpdp-view .gtpdp-destnav__end {
	font-size: 0.8125rem;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-destnav__title {
	font-size: 1.15rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-destnav__back {
	font-weight: 600;
	text-align: center;
}

@container (max-width: 600px) {
	.gtpdp-view .gtpdp-destnav {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.gtpdp-view .gtpdp-destnav__back {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.gtpdp-view .gtpdp-destnav__media {
		display: none;
	}
}

/* ---------------------------------------------------------------------
 * Galleries (since 1.33.0)
 * ------------------------------------------------------------------ */

/* Grid: even tiles with the caption below. */

.gtpdp-view .gtpdp-photos--grid .gtpdp-photos__track {
	display: grid;
	grid-template-columns: repeat(var(--gtpdp-photo-columns, 4), minmax(0, 1fr));
	gap: var(--gtpdp-photo-row-gap, 28px) var(--gtpdp-photo-gap, 20px);
}

.gtpdp-view .gtpdp-photos--grid .gtpdp-photos__link,
.gtpdp-view .gtpdp-photos--grid .gtpdp-photos__media {
	aspect-ratio: var(--gtpdp-tile-ratio, 4 / 3);
	background: rgba(128, 128, 128, 0.15);
}

.gtpdp-view .gtpdp-photos--grid .gtpdp-photos__media {
	overflow: hidden;
	border-radius: var(--gtpdp-photo-radius, 8px);
}

.gtpdp-view .gtpdp-photos--grid .gtpdp-photos__image,
.gtpdp-view .gtpdp-photos--grid .gtpdp-photos__video {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: var(--gtpdp-tile-fit, cover);
}

.gtpdp-view .gtpdp-photos--grid .gtpdp-photos__caption {
	padding-top: 10px;
	opacity: 1;
}

.gtpdp-view .gtpdp-photos--grid .gtpdp-photos__text {
	opacity: 0.8;
}

@media (max-width: 900px) {
	.gtpdp-view .gtpdp-photos--grid .gtpdp-photos__track {
		grid-template-columns: repeat(min(3, var(--gtpdp-photo-columns, 4)), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.gtpdp-view .gtpdp-photos--grid .gtpdp-photos__track {
		grid-template-columns: repeat(min(2, var(--gtpdp-photo-columns, 4)), minmax(0, 1fr));
		gap: 18px 10px;
	}
}

/* Large photo with a row of small ones: a slider whose caption lies on the photo. */

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__viewport {
	position: relative;
}

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border-radius: var(--gtpdp-photo-radius, 8px);
}

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__track::-webkit-scrollbar {
	display: none;
}

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__item {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: center;
}

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__link,
.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__media {
	height: var(--gtpdp-stage-height, min(65vh, 640px));
	background: var(--gtpdp-stage-bg, rgba(128, 128, 128, 0.15));
}

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__media {
	overflow: hidden;
	border-radius: var(--gtpdp-photo-radius, 8px);
}

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__image,
.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__video {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: var(--gtpdp-stage-fit, cover);
}

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__video {
	object-fit: contain;
}

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__item:not(.gtpdp-photos__item--video) .gtpdp-photos__caption {
	position: absolute;
	bottom: 20px;
	left: 20px;
	max-width: min(560px, calc(100% - 40px));
	padding: 12px 18px;
	border-radius: 8px;
	background: var(--gtpdp-stage-caption-bg, rgba(15, 24, 31, 0.78));
	color: var(--gtpdp-stage-caption-color, #fff);
	font-size: 0.95em;
	opacity: 1;
	pointer-events: none;
}

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__title {
	font-size: 1.15em;
}

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__thumbs {
	flex-wrap: nowrap;
	gap: var(--gtpdp-thumb-gap, 10px);
	overflow-x: auto;
	padding: 4px 2px 6px;
	scroll-behavior: smooth;
	scrollbar-width: thin;
}

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__thumb {
	flex: 0 0 auto;
	width: var(--gtpdp-thumb-width, 112px);
	height: var(--gtpdp-thumb-height, 84px);
	opacity: 0.75;
}

.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__thumb.is-active {
	opacity: 1;
}

@media (max-width: 600px) {
	.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__item:not(.gtpdp-photos__item--video) .gtpdp-photos__caption {
		bottom: 10px;
		left: 10px;
		max-width: calc(100% - 20px);
		padding: 8px 12px;
	}

	.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__thumb {
		width: var(--gtpdp-thumb-width, 72px);
		height: var(--gtpdp-thumb-height, 54px);
	}
}

/* "Show 13 more" below a long gallery. */

.gtpdp-view .gtpdp-photos__morebox {
	display: flex;
	justify-content: center;
	margin: 28px 0 0;
}

.gtpdp-view .gtpdp-photos__more {
	min-height: 46px;
	padding: 0 24px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.gtpdp-view .gtpdp-photos__more[hidden],
.gtpdp-view .gtpdp-photos__item.is-folded {
	display: none;
}

.gtpdp-view .gtpdp-photos__more:focus-visible {
	outline: 3px solid var(--gtpdp-accent);
	outline-offset: 2px;
}

/* Head of a gallery page. */

.gtpdp-view .gtpdp-ghead {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gtpdp-view .gtpdp-ghead__media {
	overflow: hidden;
	border-radius: var(--gtpdp-radius);
	aspect-ratio: var(--gtpdp-ghead-ratio, 21 / 8);
	background: rgba(128, 128, 128, 0.2);
}

.gtpdp-view .gtpdp-ghead__image {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.gtpdp-view .gtpdp-ghead__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.gtpdp-view .gtpdp-ghead__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	text-decoration: none;
}

.gtpdp-view .gtpdp-ghead__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.gtpdp-view .gtpdp-ghead__badge {
	padding: 3px 12px;
	border: 1px solid var(--gtpdp-border);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

.gtpdp-view .gtpdp-ghead__badge--place {
	border-color: var(--gtpdp-accent);
	background: var(--gtpdp-accent);
	color: var(--gtpdp-on-accent);
}

.gtpdp-view a.gtpdp-ghead__badge--place:hover,
.gtpdp-view a.gtpdp-ghead__badge--place:focus {
	color: var(--gtpdp-on-accent);
}

.gtpdp-view .gtpdp-ghead__title {
	margin: 0;
	color: inherit;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-ghead__meta {
	margin: 0;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-ghead__text {
	max-width: var(--gtpdp-ghead-text-width, 760px);
	font-size: 1.1em;
}

.gtpdp-view .gtpdp-ghead__text > :first-child {
	margin-top: 0;
}

.gtpdp-view .gtpdp-ghead__text > :last-child {
	margin-bottom: 0;
}

.gtpdp-view .gtpdp-ghead__edit {
	margin: 0;
}

.gtpdp-view .gtpdp-ghead__edit a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9em;
}

/* More galleries of the trip. */

.gtpdp-view .gtpdp-gnav {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid var(--gtpdp-border);
}

.gtpdp-view .gtpdp-gnav__top {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
}

.gtpdp-view .gtpdp-gnav__title {
	margin: 0;
	color: inherit;
	font-size: 1.5rem;
}

.gtpdp-view .gtpdp-gnav__back {
	font-weight: 600;
}

.gtpdp-view .gtpdp-gnav__list {
	display: grid;
	grid-template-columns: repeat(var(--gtpdp-gnav-columns, 2), minmax(0, 1fr));
	gap: 16px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gtpdp-view .gtpdp-gnav__link {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}

.gtpdp-view .gtpdp-gnav__link:hover .gtpdp-gnav__name,
.gtpdp-view .gtpdp-gnav__link:focus-visible .gtpdp-gnav__name {
	color: var(--gtpdp-accent);
}

.gtpdp-view .gtpdp-gnav__media {
	flex: none;
	width: 96px;
	height: 72px;
	overflow: hidden;
	border-radius: 6px;
	background: rgba(128, 128, 128, 0.2);
}

.gtpdp-view .gtpdp-gnav__image {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.gtpdp-view .gtpdp-gnav__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gtpdp-view .gtpdp-gnav__name {
	font-size: 1.15rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-gnav__count {
	font-size: 0.875rem;
	opacity: 0.75;
}

@media (max-width: 600px) {
	.gtpdp-view .gtpdp-gnav__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.gtpdp-view .gtpdp-gnav__media {
		width: 72px;
		height: 54px;
	}
}

/* Galleries of a trip as cards. */

.gtpdp-view--galleries {
	container-type: inline-size;
}

.gtpdp-view .gtpdp-galleries {
	display: grid;
	grid-template-columns: repeat(var(--gtpdp-galleries-columns, 3), minmax(0, 1fr));
	gap: var(--gtpdp-galleries-gap, 24px);
}

.gtpdp-view .gtpdp-galleries__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--gtpdp-border);
	border-radius: var(--gtpdp-radius);
	background: var(--gtpdp-galleries-bg, transparent);
	color: inherit;
	text-decoration: none;
}

.gtpdp-view .gtpdp-galleries__card:hover,
.gtpdp-view .gtpdp-galleries__card:focus {
	color: inherit;
	text-decoration: none;
}

.gtpdp-view .gtpdp-galleries__card:focus-visible {
	outline: 3px solid var(--gtpdp-accent);
	outline-offset: 2px;
}

.gtpdp-view .gtpdp-galleries__media {
	display: grid;
	aspect-ratio: var(--gtpdp-galleries-ratio, 3 / 2);
	gap: 3px;
	overflow: hidden;
	background: rgba(128, 128, 128, 0.2);
}

.gtpdp-view .gtpdp-galleries__media--collage {
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.gtpdp-view .gtpdp-galleries__media--collage .gtpdp-galleries__cell:first-child {
	grid-row: 1 / 3;
}

.gtpdp-view .gtpdp-galleries__cell {
	position: relative;
	display: block;
	min-height: 0;
	overflow: hidden;
}

.gtpdp-view .gtpdp-galleries__image {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.gtpdp-view .gtpdp-galleries__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
}

.gtpdp-view .gtpdp-galleries__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px 20px;
}

.gtpdp-view .gtpdp-galleries__place,
.gtpdp-view .gtpdp-galleries__count {
	font-size: 0.875rem;
	opacity: 0.75;
}

.gtpdp-view .gtpdp-galleries__title {
	margin: 0;
	color: inherit;
	font-size: 1.35rem;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.gtpdp-view .gtpdp-galleries__excerpt {
	font-size: 0.9375rem;
	opacity: 0.88;
}

.gtpdp-view .gtpdp-galleries__link {
	margin-top: auto;
	padding-top: 6px;
	color: var(--gtpdp-accent);
	font-size: 0.875rem;
	font-weight: 600;
}

@container (max-width: 900px) {
	.gtpdp-view .gtpdp-galleries {
		grid-template-columns: repeat(min(2, var(--gtpdp-galleries-columns, 3)), minmax(0, 1fr));
	}
}

@container (max-width: 560px) {
	.gtpdp-view .gtpdp-galleries {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Standard output of a gallery page. */

.gtpdp-gallery {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

/* A percentage height does not reach the photo through a box sized by
   aspect-ratio or a set height in every browser: the photo fills it absolutely. */

.gtpdp-view .gtpdp-photos--grid .gtpdp-photos__link,
.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__link {
	position: relative;
}

.gtpdp-view .gtpdp-photos--grid .gtpdp-photos__link .gtpdp-photos__image,
.gtpdp-view .gtpdp-photos--stage .gtpdp-photos__link .gtpdp-photos__image {
	position: absolute;
	inset: 0;
}
