/* ===========================================
   ImageDots Scoped Reset
   Voorkomt CSS conflicten met thema's
   =========================================== */
.imagedots-container,
.imagedots-container *,
.imagedots-container *::before,
.imagedots-container *::after,
.imagedots-modal,
.imagedots-modal *,
.imagedots-modal *::before,
.imagedots-modal *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.imagedots-container button,
.imagedots-modal button {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* ===========================================
   Image Dots Frontend Styles
   =========================================== */

.imagedots-container {
	position: relative;
	width: 100%;
}

.imagedots-image-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.imagedots-image {
	display: block;
	width: 100%;
	height: auto;
}

/* ===========================================
   Container Actions (Open Modal Button)
   =========================================== */
.imagedots-container-actions {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 50;
	display: flex;
	gap: 5px;
}

.imagedots-container-fullscreen {
	width: 36px;
	height: 36px;
	padding: 0;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1d2327;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.imagedots-container-fullscreen:hover {
	background: #fff;
	transform: scale(1.05);
}

/* ===========================================
   Dots Base
   =========================================== */
.imagedots-dot {
	position: absolute;
	width: 28px;
	height: 28px;
	transform: translate(-50%, -50%);
	background: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	padding: 0;
}

.imagedots-dot:focus {
	outline: none;
}

/* Dot Inner (for content/animations) */
.imagedots-dot-inner {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	z-index: 2;
}

.imagedots-dot:hover .imagedots-dot-inner,
.imagedots-dot:focus .imagedots-dot-inner {
	transform: scale(1.1);
}

.imagedots-dot.is-active .imagedots-dot-inner {
	transform: scale(1.1);
}

/* Pulse Animation Base */
.imagedots-dot-pulse {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	animation: imagedots-pulse 2s ease-out infinite;
	z-index: 1;
}

@keyframes imagedots-pulse {
	0% {
		transform: scale(1);
		opacity: 0;
	}
	20% {
		transform: scale(1.25);
		opacity: 0.8;
	}
	100% {
		transform: scale(2.5);
		opacity: 0;
	}
}

/* ===========================================
   DOT STYLE: Simple (standaard blauw)
   =========================================== */
.imagedots-dot--simple .imagedots-dot-inner {
	background: #2271b1;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.imagedots-dot--simple:hover .imagedots-dot-inner,
.imagedots-dot--simple:focus .imagedots-dot-inner {
	background: #135e96;
}

.imagedots-dot--simple.is-active .imagedots-dot-inner {
	background: #00a32a;
}

.imagedots-dot--simple .imagedots-dot-pulse {
	background: rgba(34, 113, 177, 0.4);
}

/* ===========================================
   DOT STYLE: Light (wit/lichtgrijs)
   =========================================== */
.imagedots-dot--light .imagedots-dot-inner {
	background: #ffffff;
	border: 3px solid #e0e0e0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.imagedots-dot--light:hover .imagedots-dot-inner,
.imagedots-dot--light:focus .imagedots-dot-inner {
	background: #f5f5f5;
	border-color: #ccc;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.imagedots-dot--light.is-active .imagedots-dot-inner {
	background: #e8f5e9;
	border-color: #81c784;
}

.imagedots-dot--light .imagedots-dot-pulse {
	background: rgba(255, 255, 255, 0.6);
}

/* ===========================================
   DOT STYLE: Dark (donker/zwart)
   =========================================== */
.imagedots-dot--dark .imagedots-dot-inner {
	background: #1d2327;
	border: 3px solid #3c434a;
	box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.imagedots-dot--dark:hover .imagedots-dot-inner,
.imagedots-dot--dark:focus .imagedots-dot-inner {
	background: #2c3338;
	border-color: #50575e;
	box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.imagedots-dot--dark.is-active .imagedots-dot-inner {
	background: #2e7d32;
	border-color: #4caf50;
}

.imagedots-dot--dark .imagedots-dot-pulse {
	background: rgba(29, 35, 39, 0.5);
}

/* ===========================================
   DOT STYLE: Red (rood)
   =========================================== */
.imagedots-dot--red .imagedots-dot-inner {
	background: #d32f2f;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}

.imagedots-dot--red:hover .imagedots-dot-inner,
.imagedots-dot--red:focus .imagedots-dot-inner {
	background: #b71c1c;
	box-shadow: 0 4px 12px rgba(211, 47, 47, 0.5);
}

.imagedots-dot--red.is-active .imagedots-dot-inner {
	background: #2e7d32;
}

.imagedots-dot--red .imagedots-dot-pulse {
	background: rgba(211, 47, 47, 0.4);
}

/* ===========================================
   Dot Popup (inline)
   =========================================== */
.imagedots-popup {
	position: absolute;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	pointer-events: none;
}

.imagedots-popup.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.imagedots-popup-inner {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.2);
	min-width: 280px;
	max-width: 350px;
	overflow: hidden;
}

.imagedots-popup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 15px;
	background: #f6f7f7;
	border-bottom: 1px solid #e0e0e0;
}

.imagedots-popup-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.imagedots-popup-actions {
	display: flex;
	gap: 5px;
}

.imagedots-popup-sidebar,
.imagedots-popup-fullscreen,
.imagedots-popup-close {
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #50575e;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.imagedots-popup-sidebar:hover,
.imagedots-popup-fullscreen:hover,
.imagedots-popup-close:hover {
	background: #e0e0e0;
	color: #1d2327;
}

.imagedots-popup-body {
	padding: 15px;
}

.imagedots-popup-image {
	margin-bottom: 12px;
}

.imagedots-popup-image:empty {
	display: none;
}

.imagedots-popup-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.imagedots-popup-description {
	font-size: 14px;
	line-height: 1.6;
	color: #50575e;
	margin-bottom: 12px;
}

.imagedots-popup-description:empty {
	display: none;
}

.imagedots-popup-link:empty {
	display: none;
}

.imagedots-popup-link a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 16px;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.15s ease;
}

.imagedots-popup-link a:hover {
	background: #135e96;
}

/* Popup Fullscreen Mode */
.imagedots-popup.is-fullscreen {
	position: absolute;
	top: 0!important;
	left: 0!important;
	right: 0!important;
	bottom: 0!important;
	background: rgba(0,0,0,0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 100;
}

.imagedots-popup.is-fullscreen .imagedots-popup-inner {
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
}

.imagedots-popup.is-fullscreen .imagedots-popup-title {
	font-size: 20px;
}

.imagedots-popup.is-fullscreen .imagedots-popup-body {
	padding: 20px;
}

.imagedots-popup.is-fullscreen .imagedots-popup-description {
	font-size: 16px;
}

/* Popup Sidebar Mode */
.imagedots-popup.is-sidebar {
	position: absolute;
	top: 16px !important;
	right: 16px !important;
	bottom: 16px !important;
	left: auto !important;
	width: 350px;
	max-width: calc(100% - 32px);
	background: transparent;
	z-index: 100;
}

.imagedots-popup.is-sidebar .imagedots-popup-inner {
	height: 100%;
	max-width: none;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
}

.imagedots-popup.is-sidebar .imagedots-popup-body {
	flex: 1;
	overflow-y: auto;
}

/* Hide current mode button */
.imagedots-popup.is-fullscreen .imagedots-popup-fullscreen,
.imagedots-popup.is-sidebar .imagedots-popup-sidebar {
	display: none;
}

/* ===========================================
   Global Modal (for anchor links)
   =========================================== */
.imagedots-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.imagedots-modal.is-visible {
	opacity: 1;
	visibility: visible;
}

.imagedots-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
}

.imagedots-modal-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.imagedots-modal-header {
	position: absolute;
	top: 0;
	right: 0;
	padding: 15px 20px;
	z-index: 10;
}

.imagedots-modal-close {
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1d2327;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.imagedots-modal-close:hover {
	background: #fff;
	transform: scale(1.05);
}

.imagedots-modal-body {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 0 0 0;
	overflow: auto;
}

/* Modal Loading State */
.imagedots-modal-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.imagedots-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: #fff;
	border-radius: 50%;
	animation: imagedots-spin 0.8s linear infinite;
}

@keyframes imagedots-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Modal Error State */
.imagedots-modal-error {
	color: #fff;
	font-size: 16px;
	text-align: center;
	padding: 40px;
}

/* Modal ImageDots Container */
.imagedots-container--modal {
	position: relative;
	background: transparent;
	width: 100%;
	max-width: 1640px;
}

.imagedots-container--modal .imagedots-image-wrap {
	width: 100%;
}

.imagedots-container--modal .imagedots-image {
	width: 100%;
	height: auto;
	display: block;
}

/* Hide container actions in modal */
.imagedots-container--modal .imagedots-container-actions {
	display: none;
}

/* ===========================================
   Mobile Responsive
   =========================================== */
@media (max-width: 600px) {
	.imagedots-dot {
		width: 24px;
		height: 24px;
	}
	
	.imagedots-dot-inner {
		border-width: 2px;
	}
	
	.imagedots-popup:not(.is-fullscreen) {
		position: fixed;
		top: auto !important;
		left: 10px !important;
		right: 10px;
		bottom: 10px;
	}
	
	.imagedots-popup:not(.is-fullscreen)::before {
		display: none;
	}
	
	.imagedots-popup-inner {
		min-width: 0;
		max-width: none;
		width: 100%;
	}
	
	.imagedots-container-fullscreen {
		width: 32px;
		height: 32px;
	}
	
	.imagedots-modal-body {
		padding: 50px 0 0 0;
	}
	
	.imagedots-modal-close {
		width: 40px;
		height: 40px;
	}
}

/* ===========================================
   Body scroll lock when modal open
   =========================================== */
body.imagedots-no-scroll {
	overflow: hidden;
}
