/** ------------------ MODALS -------------------- */

/* hidden placeholder with content that shall be displayed in the lightbox */
.static-category-modal,
.static-modal-placeholder {
	display: none;
}

.lightbox,
.lightbox-basket,
.lightbox-image,
.static-modal {
	/* manipulated by JS */
	left: var(--overlay-container-left, "1rem");
	top: var(--overlay-container-top, "1rem");
	display: flex;
	position: fixed;
	flex-flow: column nowrap;
	align-items: center;
	z-index: 9001;
	opacity: 0;
	overflow: hidden;
	border: 0 none;
	border-radius: .5rem;
	width: 97%;
	height: 96vh;
	padding: 0;
	margin: 0;
}

.lightbox-image {
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	width: 98vw;
	height: 98vh;
	max-width: none!important;
	/* padding: 1rem 0; */
	/* height: auto; */
}

.lightbox-image .btn-close {
	top: 1rem!important;
}

.lightbox {
	min-height: 400px;
	max-height: 96vh;
	justify-content: stretch;
	align-items: stretch;
}

.lightbox-basket {
	min-height: 400px;
	max-height: 96vh;
	min-width: 360px;
	max-width: calc(96% - 2px);
	justify-content: stretch;
	align-items: stretch;
}

.show-toggle-in-mobile-landscape-only {
	display: none;
}

/* landscape */
@media (max-height: 792px) {
	.static-modal,
	.lightbox,
	.lightbox-basket,
	.lightbox-image {
		min-height: 96vh!important;
		max-height: 96vh!important;
		min-width: 96vw!important;
		max-width: 96vw!important;
	}

	.show-toggle-in-mobile-landscape-only {
		display: block;
		position: absolute;
		top: .42rem;
		left: .5rem;
		color: var(--light);
		white-space: nowrap;
		cursor: pointer;
		user-select: none;
		text-transform: uppercase;
		font-size: .75rem;
	}
	.show-toggle-in-mobile-landscape-only:hover {
		color: var(--lighter);
	}
}

/* min-width == media-query minwidth -24px */
@media (min-width: 576px) {
	.lightbox-basket {
		min-width: 552px;
	}
}

@media (min-width: 764px) {
	.lightbox-basket {
		min-width: 740px;
	}
}

@media (min-width: 992px) {
	.lightbox-basket {
		min-width: 968px;
	}
}

.lightbox .btn-close,
.lightbox-image .btn-close,
.lightbox-basket .btn-close,
.lightbox-basket .btn-close-relative,
.static-modal .btn-close {
	display: block;
	color: var(--department);
	width: 24px;
	height: 24px;
	z-index: 49;
}

.lightbox .btn-close {
	top: 0 !important;
}

.lightbox-basket .btn-close-relative {
	position: relative;
	top: auto;
	right: auto;
}

.lightbox__title {
	display: flex;
	width: 100%;
	min-height: 4.5rem;
	align-items: center;
	justify-content: center;
	position: relative;
	align-self: flex-start;
	color: white;
	text-align: center;
	font-size: 1.75rem;
	font-weight: 400;
	background: var(--department);
	border-top-left-radius: .5rem!important;
	border-top-right-radius: .5rem!important;
}

.static-modal__text-wrapper,
.lightbox-basket__text-wrapper,
.lightbox__text-wrapper,
.lightbox__media-wrapper {
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
	height: 100%;
	z-index: 10;
}

.lightbox__media-wrapper {
	max-height: 304px;
	padding-bottom: 1rem;
}

.lightbox__media-wrapper:before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	background: var(--department);
	height: 48px;
	width: 100%;
	z-index: 1;
}

.lightbox__media {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	max-width: 304px;
	z-index: 10;
	box-shadow: 0 0 12px 2px rgba( var(--tertiary-rgb), .25 )
}

.lightbox__media img {
	object-fit: cover;
	z-index: 10;
}

.static-modal__text-wrapper,
.lightbox__text-wrapper,
.lightbox-basket__text-wrapper {
	flex-direction: column;
	max-height: 100%;
	overflow: hidden;
	line-height: 1.15;
	color: var(--txt-lightbox);
}

.lightbox__text-wrapper {
	padding: 1rem 1rem 2rem 1rem;
}

.lightbox-basket__text-wrapper {
	padding: .5rem 0 0.25em 0;
}

@media (min-width: 576px) amd (orientation: portrait) {
	.lightbox-basket__text-wrapper {
		padding: .5rem 0 1.5rem 0;
	}
}

.lightbox__text-scroll-container {
	position: relative;
	height: 100%;
	padding: 0 3rem;
	overflow: auto;
}

.lightbox__text-scroll-container .simplebar-scrollbar::before {
  background-color: var(--department);
}


.lightbox-basket__text-scroll-container {
	position: relative;
	height: 100%;
	padding: 0 1rem 0 0;
	overflow: auto;
}

.lightbox-basket__text-scroll-container .simplebar-scrollbar::before {
  background-color: var(--department);
}

/******************************
 *
 * STATIC MODAL
 *
 *****************************/

.static-modal  {
	max-width: 512px;
	max-height: 400px;
}

.static-modal .btn-close {
	top: 1rem;
	right: 1rem;
}

.static-modal__wrapper {
	display: block;
	margin: 0;
	padding: 0;
	background: white;
	overflow: hidden;
	width: 100%;
}

.static-modal__wrapper header {
	margin-bottom: 2rem;
}

.static-modal__wrapper h1 {
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
	color: var(--department);
}

.static-modal__media {
	display: flex;
	flex-shrink: 0;
	width: 100%;
}

.static-modal__media img {
	min-width: 100%;
	min-height: 100%;
	vertical-align: baseline;
	object-fit: cover;
	position: absolute;
}

.static-modal__text {
	padding: 0 2rem 2rem 2rem;
	border: 1px solid var(--department);
}

/******************************
 *
 * STATIC COURSE NOTES
 *
 *****************************/

.static-course-notes {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(var(--dark-rgb), .5);
	border-radius: .5rem;
	z-index: -1;
	height: 100%;
}

.static-course-notes .notes {
	position: relative;
	display: block;
	margin: 1.5rem;
	padding: 1rem;
	height: auto;
	border: 1px solid rgba(var(--tertiary-rgb), .3);
	border-radius: .5rem;
	box-shadow: 0 0 4px 1px rgba(var(--tertiary-rgb), .2);
	background: white;
	color: var(--secondary);
	/* 8 = 0.5rem */
	/* 10 = 0.625rem */
	/* 12 = 0.75rem */
	/* 14 = 0.875rem */
	/* 16 = 1rem */
	font-size: 1rem;
	text-align: right;
}

.static-course-notes .close-notes-icon {
	position: absolute;
	display: block;
	top: 1rem;
	right: 1rem;
	z-index: 10;
	width: 20px;
	height: 20px;
	color: var(--department);
}

[data-lightbox-for-supplier] {
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
