.pht-history-layout {
	--pht-photo-width: 24%;
	--pht-photo-gap: 80px;
	--pht-photo-ratio: 0.58;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: var(--pht-photo-gap);
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
}

.pht-history-layout,
.pht-history-layout * {
	box-sizing: border-box;
}

.pht-history-layout--has-image {
	grid-template-columns: minmax(0, 1fr) minmax(0, var(--pht-photo-width));
}

.pht-history-layout--has-image > .pht-history {
	grid-column: 1;
	grid-row: 1;
}

.pht-history-layout > .pht-history-photo {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.pht-history-layout .pht-history-photo__image {
	display: block;
	position: static;
	inset: auto;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: var(--pht-photo-ratio);
	object-fit: cover;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.pht-history {
	--pht-columns: 2;
	--pht-column-gap: 96px;
	--pht-row-gap: 44px;
	--pht-description-spacing: 18px;
	--pht-text-side-padding: 0px;
	--pht-line-color: #777;
	--pht-title-color: #203b63;
	--pht-year-color: #00aeef;
	--pht-year-background: #ebf8fd;
	--pht-description-color: #555;
	display: grid;
	grid-template-columns: repeat(var(--pht-columns), minmax(0, 1fr));
	column-gap: var(--pht-column-gap);
	row-gap: var(--pht-row-gap);
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0 var(--pht-text-side-padding);
}

.pht-history .pht-history__item {
	display: block;
	min-width: 0;
	max-width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.pht-history .pht-history__header {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	min-width: 0;
	margin: 0;
	padding: 0 0 10px;
	border: 0;
	border-bottom: 1px solid var(--pht-line-color);
	background: transparent;
}

.pht-history .pht-history__header::after {
	content: "";
	position: absolute;
	inset-inline-end: 0;
	bottom: -4px;
	width: 1px;
	height: 8px;
	background: var(--pht-line-color);
	pointer-events: none;
}

.pht-history .pht-history__title,
.pht-history .pht-history__year,
.pht-history .pht-history__description {
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-style: normal;
	text-decoration: none;
	text-shadow: none;
	overflow-wrap: anywhere;
}

.pht-history .pht-history__title {
	order: 1;
	flex: 0 1 auto;
	color: var(--pht-title-color);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: uppercase;
}

.pht-history .pht-history__year {
	order: 2;
	flex: 0 1 auto;
	margin-inline-start: auto;
	padding: 4px 8px;
	border-radius: 3px;
	background: var(--pht-year-background);
	color: var(--pht-year-color);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0;
	text-align: end;
	text-transform: none;
}

.pht-history .pht-history__description {
	margin-top: var(--pht-description-spacing);
	color: var(--pht-description-color);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0;
	text-transform: none;
}

.pht-history .pht-history__description:first-child {
	margin-top: 0;
}

@media (max-width: 1024px) {
	.pht-history-layout {
		--pht-photo-gap: 32px;
		--pht-photo-ratio: 1.8;
		grid-template-columns: minmax(0, 1fr);
	}

	.pht-history-layout > .pht-history-photo,
	.pht-history-layout--has-image > .pht-history {
		grid-column: auto;
		grid-row: auto;
	}

	.pht-history {
		--pht-columns: 2;
		--pht-column-gap: 40px;
		--pht-row-gap: 40px;
	}
}

@media (max-width: 767px) {
	.pht-history-layout {
		--pht-photo-gap: 32px;
		--pht-photo-ratio: 1.5;
	}

	.pht-history {
		--pht-columns: 1;
		--pht-column-gap: 24px;
		--pht-row-gap: 32px;
		--pht-description-spacing: 8px;
		--pht-text-side-padding: 20px;
	}

	.pht-history .pht-history__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding-bottom: 0;
		border-bottom: 0;
	}

	.pht-history .pht-history__header::after {
		content: none;
	}

	.pht-history .pht-history__year {
		order: 0;
		margin-inline-start: 0;
		text-align: start;
	}

	.pht-history .pht-history__title {
		font-size: 18px;
	}

	.pht-history .pht-history__description {
		font-size: 14px;
	}
}
