/* Styling for the Locations widget. Depends on dpi-global (tokens). */

.dpi-profile-locations-wrap {
	color: var(--dpi-fg-on-dark);
}

.dpi-profile-locations__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px 48px;
	margin-bottom: 52px;
}

.dpi-profile-locations__name {
	margin: 0 0 2px;
	font-family: var(--dpi-font);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
}

.dpi-profile-locations__address,
.dpi-profile-locations__meta {
	margin: 0;
	color: var(--dpi-fg-on-dark);
	font-family: var(--dpi-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
}

.dpi-profile-locations__meta {
	margin-top: 12px;
}

.dpi-profile-locations__gallery {
	position: relative;
	margin-inline: -30px;
	padding-inline: 30px;
}

.dpi-profile-locations__swiper {
	overflow: hidden;
}

.dpi-profile-locations__swiper img {
	display: block;
	width: 100%;
	height: clamp(280px, 47vw, 570px);
	object-fit: cover;
}

/* Parent selector scoping beats theme/global `button` resets on these nav elements. */
.dpi-profile-locations-wrap .dpi-profile-locations__nav {
	position: absolute;
	top: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--dpi-blue);
	font-family: var(--dpi-font);
	font-size: 64px;
	font-weight: 800;
	line-height: .6;
	transform: translateY(-50%);
	cursor: pointer;
}

.dpi-profile-locations-wrap .dpi-profile-locations__nav:hover,
.dpi-profile-locations-wrap .dpi-profile-locations__nav:focus,
.dpi-profile-locations-wrap .dpi-profile-locations__nav:focus-visible {
	background: transparent;
	color: var(--dpi-lime);
}

.dpi-profile-locations-wrap .dpi-profile-locations__prev {
	left: 20px;
}

.dpi-profile-locations-wrap .dpi-profile-locations__next {
	right: 20px;
}

.dpi-profile-locations-wrap .dpi-profile-locations__nav span {
	display: block;
}

/* Same → glyph as dpi-story-slider__arrow--prev, mirrored instead of a separate ← character. */
.dpi-profile-locations-wrap .dpi-profile-locations__prev span {
	transform: scaleX(-1);
}

.dpi-profile-locations__caption {
	margin: 14px 0 0;
	color: var(--dpi-fg-on-dark);
	font-family: var(--dpi-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
}

@media (min-width: 768px) {
	.dpi-profile-locations__gallery {
		margin-inline: -58px;
		padding-inline: 58px;
	}

	.dpi-profile-locations-wrap .dpi-profile-locations__nav {
		width: 70px;
		height: 70px;
	}
}

@media (max-width: 767px) {
	.dpi-profile-locations-wrap .dpi-profile-locations__nav {
		font-size: 40px;
	}

	.dpi-profile-locations-wrap .dpi-profile-locations__prev {
		left: 0;
	}

	.dpi-profile-locations-wrap .dpi-profile-locations__next {
		right: 0;
	}
}
