/* Local overrides */

.media-gallery-item-heart-rate
	.typography-media-card-gallery-headline
	.nowrap.custom-large {
	white-space: wrap;
}

.custom-caption-copy,
.custom-caption-copy a {
	font-size: 12px;
	line-height: 1.3333733333;
	font-weight: 400;
	letter-spacing: -0.01em;
	font-family:
		SF Pro Text,
		SF Pro Icons,
		Helvetica Neue,
		Helvetica,
		Arial,
		sans-serif;
	color: #6e6e73;
	padding-top: 1.2em;
}
.custom-caption-copy {
	display: inline-block;
}

@media only screen and (min-width: 1069px) {
	.media-gallery-item-heart-rate .typography-media-card-gallery-headline {
		max-width: 19rem;
	}
	.media-gallery-item-heart-rate
		.typography-media-card-gallery-headline
		.nowrap.custom-large {
		white-space: nowrap;
	}
	.media-gallery-item-acoustic .typography-media-card-gallery-headline {
		max-width: 25rem;
	}
	.media-gallery-item-live-translation
		.typography-media-card-gallery-headline {
		max-width: 29rem;
	}
	.media-gallery-item-active-noise-cancellation
		.typography-media-card-gallery-headline {
		max-width: 29rem;
	}
	.tour-heart-rate.expanded .control-item-content-inner {
		max-width: 24rem;
	}
	.product-tile-airpods-pro-3 .typography-product-tile-positioning {
		max-width: 15rem;
	}
}

@media only screen and (min-width: 768px) {
	#highlights-gallery-item-4 .tile-rounded .caption-container .caption {
		min-width: 510px;
	}
}

@media only screen and (min-width: 735px) and (max-width: 1068px) {
	.media-gallery-item-live-translation
		.typography-media-card-gallery-headline {
		max-width: 25rem;
	}
	.section-welcome
		.typography-marquee-detail-reduced
		.typography-marquee-headline-base {
		max-width: 39rem;
	}
	.media-gallery-item-noise-cancellation
		.typography-media-card-gallery-headline {
		max-width: 30rem;
	}
	.media-gallery-item-acoustic .typography-media-card-gallery-headline {
		max-width: 25rem;
	}
	.media-gallery-item-active-noise-cancellation
		.typography-media-card-gallery-headline {
		max-width: 25rem;
	}
	.section-magical .product-stories-header .typography-headline-standalone {
		max-width: 27rem;
		display: flex;
		justify-content: center;
		margin-left: auto;
		margin-right: auto;
	}
}

@media only screen and (max-width: 734px) {
	.section-battery .product-stories-header .typography-headline-standalone {
		max-width: 10rem;
		display: flex;
		justify-content: center;
		margin-left: auto;
		margin-right: auto;
	}

	.section-values .typography-section-header-headline {
		max-width: 13rem;
	}
	.custom-caption-copy {
		font-size: 12px;
		line-height: 1.3333733333;
		font-weight: 400;
		letter-spacing: -0.01em;
	}
}

/* hero */

@media only screen and (max-width: 734px) {
	.section-welcome .viewport-content {
		justify-content: center;
	}
}

@media only screen and (max-width: 374px) {
	.section-welcome .viewport-content {
		width: 100%;
	}
	.typography-marquee-headline-base {
		font-size: 30px;
	}
	.media-gallery-item-heart-rate
		.tile
		.caption-container
		.typography-media-card-gallery-headline {
		margin-left: 20px;
		margin-right: 20px;
	}
}

@media only screen and (max-width: 335px) {
	.typography-marquee-headline-base {
		font-size: 29px;
	}
}

/* location */

@media only screen and (min-width: 1320px) and (max-width: 1378px) {
	.section-battery .find-my .tile .copy-content {
		padding-bottom: 87px;
	}
}

@media only screen and (min-width: 1165px) and (max-width: 1319px) {
	.section-battery .find-my .tile .copy-content {
		padding-bottom: 64px;
	}
}

@media only screen and (min-width: 1087px) and (max-width: 1164px) {
	.section-battery .find-my .tile .copy-content {
		padding-bottom: 41px;
	}
}

@media only screen and (min-width: 1069px) and (max-width: 1086px) {
	.section-battery .find-my .tile .copy-content {
		padding-bottom: 18px;
	}
}

/* Fitness */

@media only screen and (min-width: 1069px) {
	.fitness-copy-container .callouts .subsection-copy-block {
		padding-right: 62px;
	}
}

/* Why Apple */

#feature-card-incentive-delivery
	.typography-utility-modal-block-inline-headline {
	padding-top: 25px;
}

/* Audio Performance enhanced custom  */
@media only screen and (max-height: 670px) and (max-width: 414px) {
	html.enhanced
		.section-audio-performance
		.scroll-item-acoustics.custom_scroll-item
		.scroll-copy {
		top: -25px;
	}
}

@media only screen and (max-height: 570px) and (max-width: 414px) {
	html.enhanced
		.section-audio-performance
		.scroll-item-acoustics.custom_scroll-item
		.scroll-copy {
		top: -85px;
		background-image: linear-gradient(
			to bottom,
			rgba(245, 245, 247, 0) 0%,
			rgba(245, 245, 247, 0.8) 7px
		);
	}
	html.enhanced .section-audio-performance .scroll-container {
		--p-height: 496px;
	}

	html.no-mq-medium-short.enhanced .section-personalized-listening {
		padding-top: 35px;
	}
}

/* Live translation messaging  */
@media only screen and (max-width: 734px) {
	.fade-gallery .fade-gallery-sosumi {
		margin-left: 15px;
		margin-right: 15px;
	}
}
