/*
 * Copyright (C) 2026 Fluxer Contributors
 *
 * This file is part of Fluxer.
 *
 * Fluxer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Fluxer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
 */

.imagePreviewHandler {
	display: block;
	height: 100%;
	width: 100%;
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	text-align: left;
	cursor: pointer;
	border-radius: var(--media-border-radius, 0);
	overflow: hidden;
}

.blurContainer {
	display: flex;
	flex-direction: column;
}

.blurContent {
	position: relative;
	display: flex;
	flex-direction: column;
	cursor: default;
	overflow: hidden;
	border-radius: var(--media-border-radius, 0);
	border: none;
	background: var(--background-primary);
	padding: 0;
}

.blurInnerContainer {
	position: relative;
	height: 100%;
	width: 100%;
}

.thumbHashPlaceholder {
	position: absolute;
	inset: 0;
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.mediaContainer {
	display: grid;
	max-width: 100%;
	cursor: pointer;
	border-radius: var(--media-border-radius, 0);
	border: none;
	background: transparent;
	padding: 0;
}

.videoWrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-height: 1px;
	min-width: 0;
	aspect-ratio: var(--embed-aspect-ratio, auto);
}

.videoElement {
	display: block;
	width: 100%;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	border-radius: var(--media-border-radius, 0);
	transition: opacity 200ms ease;
	object-fit: contain;
	pointer-events: none;
}

.videoOpacityHidden {
	opacity: 0;
}

.videoOpacityVisible {
	opacity: 1;
}

.klipyWatermark {
	position: absolute;
	bottom: 0.5rem;
	left: 0.5rem;
	z-index: 5;
	pointer-events: none;
	opacity: 0;
}

.klipyWatermark svg {
	height: 12px;
	width: auto;
}
