/* ==========================================================================
   Gallery Download for Elementor v1.5.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Thumbnail download button - always visible, white background
   -------------------------------------------------------------------------- */

.e-gallery-item {
	position: relative;
}

.egd-download-btn {
	position: absolute;
	bottom: 8px;
	right: 8px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.92) !important;
	color: #222 !important;
	cursor: pointer;
	opacity: 1;
	line-height: 1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.egd-download-btn svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

.egd-download-btn:hover {
	background: #fff !important;
	transform: scale(1.1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.egd-download-btn:active {
	transform: scale(0.95);
}

.egd-download-btn:focus-visible {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   2. Lightbox download button - bottom-right, same white style
   -------------------------------------------------------------------------- */

.egd-lightbox-download {
	position: fixed !important;
	bottom: 30px !important;
	right: 30px !important;
	z-index: 100001 !important;
	display: flex !important;
	align-items: center;
	gap: 8px;
	padding: 12px 20px !important;
	border: none !important;
	border-radius: 6px !important;
	background: rgba(255, 255, 255, 0.92) !important;
	color: #222 !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
	transition: background 0.2s ease, transform 0.15s ease;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

.egd-lightbox-download svg {
	width: 18px;
	height: 18px;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

.egd-lightbox-download span {
	color: #222 !important;
}

.egd-lightbox-download:hover {
	background: #fff !important;
	transform: scale(1.05);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}

.egd-lightbox-download:active {
	transform: scale(0.95);
}

@media (max-width: 480px) {
	.egd-lightbox-download {
		bottom: 20px !important;
		right: 20px !important;
		padding: 10px 16px !important;
		font-size: 13px !important;
	}
}
