/**
 * Imported from Brightspot Modules repository
 * https://github.com/PG-BYU/Brightspot-Modules/blob/master/speeches/slider/README.md
 */
.slider-module {
	display: grid;
	grid-template-columns: var(--arrow-width) calc(var(--frame-width) * var(--content-width)) var(--arrow-width);
	grid-column-gap: calc(var(--content-spacing) + ( var(--frame-width) * var(--content-spacing) ));
	align-items: flex-start;
}

.slider-module__arrow {
	height: var(--content-height);
	width: var(--arrow-width);
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(107, 107, 107, 0.6);
	cursor: pointer;
	z-index: 3;
}

.slider-module__arrow--disabled {
	display: none;
	visibility: hidden;
}

.slider-module__arrow--left {
	grid-row: 1 / 2;
	grid-column: 1 / 2;
}

.slider-module__arrow--right {
	grid-row: 1 / 2;
	grid-column: 3 / 4;
}

.slider-module__arrow-icon {
	grid-row: 1;
	justify-self: center;
	align-self: center;
	z-index: 4;
	cursor: pointer;
}

.slider-module__arrow-icon--left {
	grid-column: 1;
}

.slider-module__arrow-icon--right {
	grid-column: 3;
}

.slider-module__frame {
	grid-row: 1 / 2;
	grid-column: 1 / 4;
	display: flex;
	overflow-x: scroll;
	-webkit-overflow-scrolling: touch;
	-ms-overflow-style: -ms-autohiding-scrollbar;
	scrollbar-width: none;
}

.slider-module__frame::-webkit-scrollbar {
	display: none;
}

.slider-module__content {
	height: var(--content-height);
	width: var(--content-width);
	flex: 0 0 auto;
	margin: 0 var(--content-spacing);
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.slider-module__content--empty {
	width: var(--arrow-width);
}

.slider-module__content--empty:first-of-type {
	margin-left: 0;
}

.slider-module__content--empty:last-of-type {
	margin-right: 0;
}

body.home .slider-module__wrapper {
	width: 100%;
}

.slider-module--mobile-full-width {
	display: flex;
}

.slider-module--mobile-full-width .slider-module__arrow,
.slider-module--mobile-full-width .slider-module__arrow-icon {
	display: none;
}

@media (min-width: 640px) {

	body.home .slider-module__wrapper {
		width: unset;
		margin-bottom: 30px;
	}

	.slider-module--mobile-full-width {
		display: grid;
	}

	.slider-module--mobile-full-width .slider-module__arrow,
	.slider-module--mobile-full-width .slider-module__arrow-icon {
		display: flex;
	}
}
