/* Welcome section */
@media (min-width: 1788px) {
	.section-welcome .viewport-content {
		column-gap: 25px;
	}
}
@media only screen and (min-width: 1441px) and (max-width: 1787px) {
	.section-welcome .viewport-content {
		column-gap: 25px;
	}
	.header-headline.typography-marquee-headline-elevated {
		max-width: 850px;
	}
}
.header-headline .typography-marquee-headline-elevated {
	max-width: 1200px;
}
@media (max-width: 374px) {
	.section-welcome .marquee-milestone {
		max-width: 250px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Welcome - XS  */

.section-welcome .viewport-content .typography-marquee-headline-elevated br {
	display: none;
}

@media (max-width: 349px) {
	.section-welcome .viewport-content {
		margin-right: 0;
		margin-left: 0;
		width: 100%;
	}
	.section-welcome .marquee-detail {
		padding-right: 20px;
		padding-left: 20px;
	}
	.section-welcome .viewport-content .typography-marquee-headline-elevated {
		font-size: 30px;
	}
	.section-welcome
		.viewport-content
		.typography-marquee-headline-elevated
		br {
		display: block;
	}
	.section-welcome .marquee-detail::before {
		margin-inline-start: 0;
	}
	.section-welcome .typography-milestone-secondary {
		text-wrap: nowrap;
	}
}

/* hero Pricing */
@media only screen and (min-width: 1069px) {
	.section-welcome
		.marquee-detail:has(
			.detail-inner-group
				.detail-pricing
				.sosumi-link-follows[data-pricing-loaded]
		) {
		min-width: 310px;
	}
	.section-welcome
		.marquee-detail
		.detail-inner-group
		.detail-pricing:has(.sosumi-link-follows[data-pricing-loaded]) {
		max-width: 181px;
	}
}

@media only screen and (max-width: 350px) {
	.section-welcome
		.marquee-detail
		.detail-inner-group
		.detail-pricing:has(.sosumi-link-follows[data-pricing-loaded]) {
		max-width: 165px;
	}
}

/* Highlights Gallery */

@media (max-width: 374px) {
	.section-media-card .media-gallery .typography-media-card-gallery-headline {
		font-size: 15px;
	}
	.section-media-card
		.media-gallery
		.media-card-gallery-item-3
		.typography-media-card-gallery-headline {
		margin-left: 16px;
		margin-right: 16px;
	}
}

/* Product stories */

@media (max-width: 1068px) {
	.section-media-card .media-gallery .media-gallery-item-4 .caption {
		max-width: 570px;
	}
}

@media (max-width: 1044px) {
	.section-media-card .media-gallery .media-gallery-item-4 .caption {
		max-width: 640px;
	}
}

@media (min-width: 1045px) {
	.section-media-card .media-gallery .media-gallery-item-4 .caption {
		max-width: 720px;
	}
}

/* HiFi Sound Section */

#overview-product-stories-hifi-sound-audio-airpod-max-1 {
	margin-top: 0;
}

@media (max-width: 734px) {
	#overview-product-stories-hifi-sound-audio-airpod-max-1 {
		margin-top: 1rem;
	}
}

@media (max-width: 374px) {
	#overview-product-stories-hifi-sound-audio-airpod-max-1 {
		margin-top: 6rem;
	}
}

.subsection-hifi-sound .subsection-header .subsection-headline {
	max-width: 290px;
}

@media (min-width: 349px) {
	.subsection-hifi-sound .subsection-header .subsection-headline {
		max-width: unset;
	}
}

/* HIFI Modal */

#product-stories-hifi-sound .custom-br {
	display: none;
}

@media (min-width: 600px) and (max-width: 1200px) {
	#product-stories-hifi-sound .custom-br {
		display: block;
	}
}

.ric-modal.product-stories-hifi-sound.new-min-height
	.ric-modal-content-wrapper {
	min-height: 1160px;
}

.ric-modal.product-stories-hifi-sound
	.ric-modal-content-wrapper
	.tablist-wrapper {
	top: 560px;
}

@media (min-width: 736px) and (max-width: 1068px) {
	.ric-modal.product-stories-hifi-sound.new-min-height
		.ric-modal-content-wrapper {
		min-height: 1540px;
	}
	.ric-modal.product-stories-hifi-sound
		.ric-modal-content-wrapper
		.tablist-wrapper {
		top: 1030px;
	}
}

@media (min-width: 1069px) {
	.ric-modal.product-stories-hifi-sound.new-min-height
		.ric-modal-content-wrapper {
		min-height: 1560px;
	}
	.ric-modal.product-stories-hifi-sound
		.ric-modal-content-wrapper
		.tablist-wrapper {
		top: 1030px;
	}
}

@media (min-width: 1069px) {
	.ric-modal.product-stories-hifi-sound.new-min-height
		.ric-modal-content-wrapper {
		min-height: 1820px;
	}
	.ric-modal.product-stories-hifi-sound
		.ric-modal-content-wrapper
		.tablist-wrapper {
		top: 1300px;
	}
}

@media (min-width: 1200px) {
	.ric-modal.product-stories-hifi-sound.new-min-height
		.ric-modal-content-wrapper {
		min-height: 1750px;
	}
	.ric-modal.product-stories-hifi-sound
		.ric-modal-content-wrapper
		.tablist-wrapper {
		top: 1240px;
	}
}

@media (min-width: 481px) and (max-width: 735px) {
	.ric-modal.product-stories-hifi-sound.new-min-height
		.ric-modal-content-wrapper {
		min-height: 1200px;
	}
	.ric-modal.product-stories-hifi-sound
		.ric-modal-content-wrapper
		.tablist-wrapper {
		top: 725px;
	}
}

/* Anc subsection */

.subsection-anc .xs-only {
	display: none;
}

@media (max-width: 349px) {
	.subsection-anc .xs-only {
		display: block;
	}
}

.subsection-anc .custom-nowrap {
	text-wrap: nowrap;
}

@media (max-width: 480px) {
	.subsection-anc .custom-nowrap {
		text-wrap: wrap;
	}
}

/* Battery magical section */

@media (max-width: 349px) {
	.subsection-battery-magical .subsection-header .typography-headline-super {
		font-size: 37px;
	}
}

.subsection-battery-magical #scroll-gallery-item-1 .custom-br {
	display: none;
}

@media (max-width: 480px) {
	.subsection-battery-magical #scroll-gallery-item-2 .custom-br {
		display: block;
	}
	.subsection-battery-magical #scroll-gallery-item-2 .with-copy.siri {
		padding: 0 44px;
	}
}

/* Custom break for compare section */
.custom-break {
	display: none;
}

.custom-break-2 {
	display: none;
}

@media only screen and (min-width: 1065px) {
	.custom-break {
		display: inline;
	}
}

@media only screen and (min-width: 735px) {
	.custom-break-2 {
		display: inline;
	}
}

/* hero headline XL */

@media (min-width: 1441px) {
	.section-welcome
		.marquee
		.marquee-header
		.header-headline.typography-marquee-headline-elevated
		br {
		display: block;
	}
}
