.custom-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.9);
}

.custom-modal-content {
	position: relative;
	background-color: #000;
	padding: 20px;
	width: 100%;
	height: 100%;
	overflow-y: auto;
}

.modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	position: absolute;
	right: 15px;
	top: 10px;
	z-index: 10001;
}

.modal-close:hover,
.modal-close:focus {
	color: #000;
	text-decoration: none;
}

.modal-trigger {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	text-align: left;
	gap: 10px;
	padding: 15px 20px;
	background: #97949440;

	background: linear-gradient(180deg, rgba(151, 148, 148, 0.25) -26%, rgba(0, 0, 0, 0.175) 105.5%);

	color: white;
	text-decoration: none;
	border-radius: 12px 12px 0 0;
	border: 1px solid #FFFFFF5E;
	border: 1px solid;

	border: 1px solid transparent;
	border-image-source: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(153, 153, 153, 0.37) 42.31%, rgba(204, 204, 204, 0) 100%);
	border-image-slice: 1;

	font-weight: 600;
	font-size: 22px;
	line-height: 28px;

	min-width: 250px;

	white-space: nowrap;
	height: 100%;
	width: 100%
}

.modal-wrapper {
	display: flex;
	flex-direction: column;
	height: 100px;
}

.modal-trigger:hover {
	background: #c8c8c840;
	color: white;
	text-decoration: none;
}

.modal-trigger-icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
	flex-shrink: 0;
}

.modal-pdf-container {
	width: 100%;
	margin: 0 auto;
	mmax-width: 1400px;
	height: 100%;
	min-height: 500px;
}

.modal-pdf-container iframe {
	width: 100%;
	height: calc(100vh - 40px);
	border: none;
	border-radius: 16px;
}

.multiple-modal-wrapper{
	display: flex;
	overflow-x: auto;
	gap: 30px;
	flex-shrink: 0;
	padding-bottom: 45px;
	-webkit-overflow-scrolling: touch;

	scrollbar-width: none;
	-ms-overflow-style: none;
}

.multiple-modal-wrapper::-webkit-scrollbar {
	height: 0;
	display: none;
}

/* ---- Full-screen brochure / image gallery in modals ----
   Each image fills one full screen; scroll / swipe down to page through. */
.custom-modal-content:has(.wp-image-strip){
	padding: 0;
	overflow: hidden;
}
.custom-modal-content:has(.wp-image-strip) .modal-custom-content{
	height: 100%;
}
.custom-modal .wp-image-strip{
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	scroll-snap-type: y mandatory;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.custom-modal .wp-image-strip::-webkit-scrollbar{
	width: 0;
	height: 0;
	display: none;
}
.custom-modal .wp-image-strip img{
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	object-fit: contain;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
