/* MGH Milestones widget – horizontal scroll row of image + year + description */
/* Title: H3 desktop / Mobile H4. Year: H5 / Mobile H5. Description: Paragraph / Mobile Paragraph. */
/* Image: 323×200 desktop, 300×186 mobile. Gap 20px image→year, 10px year→description. 20px between items. */

.mgh-milestones {
	padding: 60px 0 0;
	max-width: 884px;
	margin-left: 20px;
	margin-right: 20px;
}

.mgh-milestones__title {
	margin: 0 0 20px 0;
	line-height: 1.2;
}

.mgh-milestones__track {
	display: flex;
	flex-direction: row;
	gap: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
}

.mgh-milestones__track::-webkit-scrollbar {
	display: none;
}

.mgh-milestones__track.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.mgh-milestones__item {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.mgh-milestones__link {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	margin-bottom: 20px;
}

.mgh-milestones__image-wrap {
	width: 300px;
	height: 186px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.mgh-milestones__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	vertical-align: middle;
	transition: transform 300ms ease-out;
	transform: scale(1);
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.mgh-milestones__link:hover .mgh-milestones__img,
.mgh-milestones__link:focus .mgh-milestones__img {
	transform: scale(1.1);
}

.mgh-milestones__placeholder {
	width: 300px;
	height: 186px;
	background: #eee;
	border-radius: 8px;
	flex-shrink: 0;
	margin-bottom: 20px;
}

.mgh-milestones__year {
	margin: 0 0 10px 0;
	line-height: 1.2;
	font-family: Poppins, sans-serif;
	font-weight: 600;
	font-size: 20px;
	color: #2c3a60;
	width: 300px;
}

.mgh-milestones__description {
	margin: 0;
	line-height: 1.4;
	font-family: Poppins, sans-serif;
	font-weight: 300;
	font-size: 14px;
	color: #242424;
	width: 300px;
}

/* Desktop: image 323×200, margin 50px left/right, padding top 100px */
@media (min-width: 1280px) {
	.mgh-milestones {
		max-width: 100%;
		padding: 100px 0 0;
		margin-left: 50px;
		margin-right: 50px;
	}

	.mgh-milestones__image-wrap,
	.mgh-milestones__placeholder {
		width: 323px;
		height: 200px;
	}

	.mgh-milestones__year {
		font-size: 21px;
		width: 323px;
	}

	.mgh-milestones__description {
		font-size: 14px;
		width: 323px;
	}
}
