/* =========================
   GALERIE
   ========================= */

.gallery {
	margin-top: 0;
	margin-bottom: 30px;
}

.gallery.hidden {
	display: none;
}

/* Tablets */
@media (min-width: 768px) {
	.gallery {
		margin-top: 30px;
	}
}

/* Desktop */
@media (min-width: 1200px) {
	.gallery {
		margin-top: 60px;
	}
}

.gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;

	object-fit: contain;

	background: #f5f5f5;
	border-radius: 12px;

	transition: opacity 0.15s ease;
}

.controls {
	margin-top: 12px;

	display: flex;
	align-items: center;
	gap: 8px;
}

/* =========================
   STANDARD-GALERIE
   (index.html)
   ========================= */

.nav-btn {
	flex: 1;
	height: 50px;

	border: none;
	border-radius: 12px;

	font-size: 1.1rem;
	font-weight: bold;

	cursor: pointer;

	background: var(--primary);
	color: white;

	box-shadow: var(--shadow-custom);

	transition: all 0.2s ease;
}

.nav-btn:hover {
	background: var(--primary-hover);
}

.dots button {
	flex: 1;
	min-width: 16px;
	height: 50px;

	border: none;
	border-radius: 3px;

	margin: 0 1px;

	font-size: 1.1rem;
	font-weight: bold;

	cursor: pointer;

	background: #e6d5cc;
	color: #3e2723;

	transition: all 0.2s ease;
}

.dots button:hover {
	background: #d7bfb3;
}

.dots button.active {
	background: var(--primary);
	color: white;
}

/* Dark Mode Standard-Galerie */

html.dark-theme .nav-btn {
	background: var(--dark-button);
	color: white;
}

html.dark-theme .nav-btn:hover {
	background: var(--dark-button-hover);
}

html.dark-theme .dots button {
	background: #2a2a2a;
	color: #eeeeee;
}

html.dark-theme .dots button:hover {
	background: #3a3a3a;
}

html.dark-theme .dots button.active {
	background: var(--primary);
	color: white;
}

/* =========================
   BEHANDLUNGS-GALERIE
   (procedure-details.html)
   ========================= */

.procedure-gallery .nav-btn {
	background: var(--procedure-color);
	color: var(--procedure-color-text);
}

.procedure-gallery .nav-btn:hover {
	background: var(--procedure-color-hover);
}

.procedure-gallery .dots button {
	background: var(--procedure-color);
	color: var(--procedure-color-text);
}

.procedure-gallery .dots button:hover {
	background: var(--procedure-color-hover);
}

.procedure-gallery .dots button.active {
	background: var(--procedure-color-hover);
	color: var(--procedure-color-text);
}

/* Dark Mode Behandlungsgalerie */

html.dark-theme .procedure-gallery .nav-btn {
	background: var(--procedure-color);
	color: var(--procedure-color-text);
}

html.dark-theme .procedure-gallery .nav-btn:hover {
	background: var(--procedure-color-hover);
}

html.dark-theme .procedure-gallery .dots button {
	background: var(--procedure-color);
	color: var(--procedure-color-text);
}

html.dark-theme .procedure-gallery .dots button:hover {
	background: var(--procedure-color-hover);
}

html.dark-theme .procedure-gallery .dots button.active {
	background: var(--procedure-color-hover);
	color: var(--procedure-color-text);
}

/* =========================
   FULLSCREEN OVERLAY
   ========================= */

#fullscreenOverlay {
	display: none;

	position: fixed;

	top: 0;
	left: 0;

	width: 100%;
	height: 100%;

	background: rgba(0,0,0,0.9);

	z-index: 9999;

	justify-content: center;
	align-items: center;
}

#fullscreenImage {
	max-width: 95%;
	max-height: 95%;

	width: auto;
	height: auto;

	object-fit: contain;

	border-radius: 12px;
}

#closeFullscreen {
	position: absolute;

	top: 20px;
	right: 20px;

	font-size: 24px;

	background: #fff;
	color: #000;

	border: none;
	border-radius: 8px;

	padding: 6px 12px;

	cursor: pointer;

	z-index: 10000;
}
