/**
 * Document Element
 */
.has-modal {
	overflow: hidden;
}

.has-modal-full-viewport {
	position: fixed;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.has-modal-full-viewport body {
	height: 100%;
	overflow: hidden;
}

/**
   * Modal Elements
   */
.modal {
	position: fixed;
	z-index: -1;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	display: none;
}

.modal-standard {
	overflow: auto;
	padding: 54px 0;
	background: rgba(0, 0, 0, 0.48);
	-webkit-overflow-scrolling: touch;
}

@media only screen and (max-width: 480px) {
	.modal-standard {
		padding-top: 20px;
		padding-bottom: 0;
	}
}
.modal-standard .content-table {
	display: table;
	width: 100%;
	height: 100%;
}
@media only screen and (max-width: 734px) {
	.modal-standard .content-table {
		height: fit-content;
	}
}

.modal-standard .content-cell {
	display: table-cell;
	vertical-align: middle;
}
@keyframes slidein {
	from {
		opacity: 0;
		margin-top: 15px;
	}

	to {
		opacity: 1;
		margin-top: 0px;
	}
}
.modal-standard .content-wrapper {
	margin-left: auto;
	margin-right: auto;
	width: 980px;
	animation-timing-function: ease-in-out;
	animation: 0.4s slidein;
}
@media only screen and (min-width: 1441px) {
	.modal-standard .content-wrapper {
		margin-left: auto;
		margin-right: auto;
		width: 980px;
	}
}
@media only screen and (max-width: 1068px) {
	.modal-standard .content-wrapper {
		margin-left: auto;
		margin-right: auto;
		width: 692px;
	}
}
@media only screen and (max-width: 734px) {
	.modal-standard .content-wrapper {
		margin-left: auto;
		margin-right: auto;
		width: 87.5%;
	}
}
@media only screen and (max-width: 734px) {
	.modal-standard .content-wrapper {
		min-width: min(100%, 480px);
	}
}
@media only screen and (max-width: 480px) {
	.modal-standard .content-wrapper {
		min-width: 100%;
		width: 100%;
		height: 100%;
	}
}
.modal-standard .content-padding {
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 1;
	/* padding: 80px 8.33333%; */
	background: white;
	border-radius: 18px;
}
/* @media only screen and (max-width: 734px) {
	.modal-standard .content-padding {
		padding-top: 80px;
		padding-bottom: 60px;
	}
} */
@media only screen and (max-width: 480px) {
	.modal-standard .content-padding {
		flex-basis: 100%;
		max-width: 100%;
		padding-left: 6.25%;
		padding-right: 6.25%;
		box-sizing: border-box;
		/* border-bottom-left-radius: 0;
		border-bottom-right-radius: 0; */
		height: 100%;
	}
}
@media only screen and (max-width: 1068px) {
	.modal-standard .modal-close {
		left: 17px;
		top: 18px;
	}
}
.theme-dark .modal-standard .content-padding,
.modal-standard.theme-dark .content-padding {
	background: #1d1d1f;
}

.modal-full-viewport {
	background: white;
	padding: 96px 0;
}
@media only screen and (max-width: 1068px) {
	.modal-full-viewport {
		padding: 80px 0;
	}
}
.modal-full-viewport.remove-container-padding {
	padding: 0;
}
.theme-dark .modal-full-viewport,
.modal-full-viewport.theme-dark {
	background: black;
}

.modal-open {
	display: block;
	z-index: 11000;
}
.modal-open:focus {
	outline-offset: -4px;
}

/**
   * Close Button
   */
.modal-close {
	position: absolute;
	display: flex;
	z-index: 9999;
	overflow: hidden;
	top: 24px;
	left: 24px;
	margin: 0;
	padding: 0;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	background: none;
	border: 0;
	color: rgba(134, 134, 139, 0.8);
}
.modal-close::before,
.modal-close::after {
	font-family: "SF Pro Icons";
	color: inherit;
	display: inline-block;
	font-style: normal;
	font-weight: inherit;
	font-size: inherit;
	line-height: 1;
	text-decoration: underline;
	position: relative;
	z-index: 1;
	alt: "";
}
.modal-close::before,
.modal-close::after {
	text-decoration: none;
}
.modal-close::before {
	display: none;
}
.modal-close::before,
.modal-close::after {
	content: "";
}
.modal-close:hover {
	color: #86868b;
}
.theme-dark .modal-close {
	color: rgba(110, 110, 115, 0.8);
}
.theme-dark .modal-close:hover {
	color: #6e6e73;
}
.modal-close::after {
	width: 0.9em;
	height: 0.9em;
	top: 0.05em;
	padding: 0;
	font-weight: 300;
}
@media only screen and (max-width: 1068px) {
	.modal-close {
		top: 20px;
		left: 20px;
		font-size: 32px;
	}
}

.developer-modal {
	visibility: hidden;
}

/* Dictionary Overrides */

.modal p {
	font-size: 16px;
}

.modal-standard .content-padding {
	padding: 50px;
}

body[data-color-scheme="dark"] .modal-standard {
	background: rgba(0, 0, 0, 0.68);
}

body[data-color-scheme="dark"] .modal-standard .content-padding {
	background: var(--fill-gray-quinary) !important;
}

.modal-close {
	display: none;
}

@media only screen and (max-width: 480px) {
	.modal-standard .content-padding {
		padding: 2em 2.5em;
	}
}

@media only screen and (min-width: 1300px) and (min-height: 850px) {
	:root {
		--fade-spacer: 37px;
	}

	.modal-standard {
		overflow: inherit;
	}
	.modal-standard .content-wrapper {
		max-width: 650px;
		padding: 20px;
	}

	.modal-standard .content-padding {
		padding: 40px 25px;
		padding-bottom: calc(50px - var(--fade-spacer));
		margin-left: inherit;
		margin-right: inherit;
	}

	.modal-standard .content-padding::before {
		content: "";
		position: absolute;
		left: calc(50% - 20px);
		width: 0;
		border-color: white;
		bottom: calc(100% - 10px);
		border-bottom: 20px solid white;
		border-left: 20px solid transparent;
		border-right: 20px solid transparent;
	}

	body[data-color-scheme="dark"] .modal-standard .content-padding::before {
		border-left: 20px solid transparent;
		border-right: 20px solid transparent;
		border-bottom: 20px solid var(--fill-gray-quinary);
	}

	.modal-content {
		overflow: hidden;
		max-height: 400px;
		overflow-y: auto;
		/* -webkit-mask-image: -webkit-gradient(
			linear,
			left 85%,
			left bottom,
			from(rgba(0, 0, 0, 1)),
			to(rgba(0, 0, 0, 0))
		);
		mask-image: -webkit-gradient(
			linear,
			left 85%,
			left bottom,
			from(rgba(0, 0, 0, 1)),
			to(rgba(0, 0, 0, 0))
		); */
		padding-left: 10px;
		padding-right: 10px;
		padding-bottom: calc(var(--fade-spacer) / 2);
	}

	.modal-standard .content-wrapper {
		position: absolute;
		margin-left: 0;
		margin-right: 0;
	}
}

@media only screen and (min-width: 1300px) {
	.custom-modal-flag {
		display: none;
	}
}
