/**
 * News Detail — layout only.
 *
 * Desktop is photos beside the details. Below 980px the photos stack
 * with the text. Photo Position sets the wide-screen side. Photo Position
 * on Tablet and Phone sets the stacked order, and the two do not affect
 * each other. The break is the same one Auction Lot Detail and Product
 * Detail use.
 * Colour comes from the site's Divi globals (Primary and Secondary).
 * White, Black, and any other site colour are chosen in the design controls.
 */

.spruce-fam-news-detail {
	box-sizing: border-box;
	width: 100%;
}

.spruce-fam-news-detail__body {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 2.5rem;
}

.spruce-fam-news-detail__body--media-end {
	flex-direction: row-reverse;
}

.spruce-fam-news-detail__gallery,
.spruce-fam-news-detail__info {
	flex: 1 1 0;
	min-width: 0;
}

.spruce-fam-news-detail__info {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.spruce-fam-news-detail__type,
.spruce-fam-news-detail__title,
.spruce-fam-news-detail__url,
.spruce-fam-news-detail__empty {
	margin: 0;
}

.spruce-fam-news-detail__type {
	color: var(--gcid-secondary-color);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.spruce-fam-news-detail__title {
	color: var(--gcid-primary-color);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.spruce-fam-news-detail__schedule {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0.25rem 0 0;
	padding-inline-start: 1rem;
	border-inline-start: 3px solid var(--gcid-primary-color);
}

.spruce-fam-news-detail__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 1rem;
}

.spruce-fam-news-detail__label {
	flex: 0 0 8.5rem;
	color: var(--gcid-secondary-color);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.4;
	text-transform: uppercase;
}

.spruce-fam-news-detail__value {
	flex: 1 1 12rem;
	min-width: 0;
	margin: 0;
	line-height: 1.45;
}

.spruce-fam-news-detail__url {
	color: var(--gcid-primary-color);
}

.spruce-fam-news-detail__url a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.spruce-fam-news-detail__departments a,
.spruce-fam-news-detail__departments a:hover,
.spruce-fam-news-detail__departments a:focus,
.spruce-fam-news-detail__departments a:active,
.spruce-fam-news-detail__departments a:visited {
	color: inherit;
	text-decoration: none !important;
}

.spruce-fam-news-detail__description > :first-child {
	margin-top: 0;
}

.spruce-fam-news-detail__description > :last-child {
	margin-bottom: 0;
}

.spruce-fam-news-detail__gallery {
	position: relative;
	width: 100%;
}

.spruce-fam-news-detail__track {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.spruce-fam-news-detail__track::-webkit-scrollbar {
	display: none;
}

.spruce-fam-news-detail__slide {
	flex: 0 0 100%;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	scroll-snap-align: start;
}

.spruce-fam-news-detail__slide.is-square {
	aspect-ratio: 1 / 1;
}

.spruce-fam-news-detail__slide.is-four-three {
	aspect-ratio: 4 / 3;
}

.spruce-fam-news-detail__slide.is-three-two {
	aspect-ratio: 3 / 2;
}

.spruce-fam-news-detail__slide.is-sixteen-nine {
	aspect-ratio: 16 / 9;
}

.spruce-fam-news-detail__slide.is-original {
	height: auto;
	align-self: flex-start;
	aspect-ratio: auto;
}

.spruce-fam-news-detail__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.spruce-fam-news-detail__slide.is-original .spruce-fam-news-detail__img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.spruce-fam-news-detail__control {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	color: var(--gcid-primary-color);
	background: transparent;
	border: 1px solid var(--gcid-primary-color);
	border-radius: 999px;
	transform: translateY(-50%);
	cursor: pointer;
}

.spruce-fam-news-detail__gallery--multi .spruce-fam-news-detail__control {
	display: flex;
}

.spruce-fam-news-detail__control--previous {
	left: 0.75rem;
}

.spruce-fam-news-detail__control--next {
	right: 0.75rem;
}

.spruce-fam-news-detail__control svg {
	display: block;
}

.spruce-fam-news-detail__dots {
	position: absolute;
	right: 0;
	bottom: 0.75rem;
	left: 0;
	display: none;
	gap: 0.45rem;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.spruce-fam-news-detail__gallery--multi .spruce-fam-news-detail__dots {
	display: flex;
}

.spruce-fam-news-detail__dot {
	width: 0.55rem;
	height: 0.55rem;
	margin: 0;
	padding: 0;
	background: var(--gcid-primary-color);
	border: 0;
	border-radius: 999px;
	opacity: 0.4;
	cursor: pointer;
}

.spruce-fam-news-detail__dot.is-current {
	background: var(--gcid-secondary-color);
	opacity: 1;
}

.spruce-fam-news-detail__control:focus-visible,
.spruce-fam-news-detail__dot:focus-visible,
.spruce-fam-news-detail__url a:focus-visible {
	outline: 2px solid var(--gcid-primary-color);
	outline-offset: 2px;
}

.spruce-fam-news-detail__gallery--grid .spruce-fam-news-detail__track {
	display: grid;
	grid-template-columns: repeat(var(--spruce-fam-news-columns, 2), minmax(0, 1fr));
	gap: 0.75rem;
	overflow: visible;
	scroll-snap-type: none;
}

.spruce-fam-news-detail__gallery--grid .spruce-fam-news-detail__slide {
	flex: none;
}

@media (max-width: 980px) {
	.spruce-fam-news-detail__body,
	.spruce-fam-news-detail__body--media-end {
		flex-direction: column;
		gap: 1.5rem;
	}

	.spruce-fam-news-detail__body--stacked-below {
		flex-direction: column-reverse;
	}

	.spruce-fam-news-detail__label {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spruce-fam-news-detail__track {
		scroll-behavior: auto;
	}
}
