/* camera-upload */
.ff-camera-upload {
	
}

.ff-camera-view {
	position: relative;	
	margin-bottom: 25px;
	padding-top: 130%;
}

.ff-camera-video {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ff-camera-upload.landscape .ff-camera-video {
	/*
	transform: rotate(90deg) translateY(-100%);
	transform-box: view-box;
	transform-origin: top left;
	width: calc(372px * 1.3 * 0.5);
	height: calc(372px * 0.5);
	*/
}

.ff-camera-upload-item-list {
	display: flex;
	overflow-x: scroll;
	/*min-height: calc(90px*1.3 + 20px);*/	
	
}

.ff-camera-upload .hidable {
	overflow: hidden;
	max-height: 1000px;
}

.ff-camera-upload .hidable {
	transition: all 0.5s ease-out;
}

.ff-camera-upload .ff-camera-upload-finished .btn[data-event=restart],
.ff-camera-upload .hide {
	transition: all 0.5s ease-in;
	max-height: 0 !important;
	opacity: 0;
}

.ff-camera-upload.finished .ff-camera-upload-finished .btn[data-event=restart] {
	max-height: none !important;
	opacity: 1;
}

.ff-camera-upload-item {
	border: 2px solid var(--text-color);
	margin-right: 3px;
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
	margin-bottom: 3px;
	min-width: 90px;
	max-width: 90px;
	height: calc(90px*1.3);
	
	position: relative;
}

.ff-camera-upload-item-nr {
	position: absolute;
	top: 0;
	right: 0;
	background: var(--input-background);
	padding: 2px 5px;
	font-size: 9px;
}

.ff-camera-upload-item .btn {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
}

.ff-camera-upload-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ff-camera-upload.finished .ff-camera-upload-item .btn[data-event=remove],
.ff-camera-upload.finished .ff-camera-trigger {
	display:none;
}

.ff-camera-debug {
	position: absolute;
	background: rgba(255,255,255,0.8);
	text-align: center;
	color: black;
	width: 100%;
	top: 0;
	left: 0;
}

.ff-camera-trigger {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 20px;
}

.ff-camera-view button {
	width: 45px;
	height: 45px;
}

.btn-lg.ff-camera-recapture {
	box-shadow: none;
}

.ff-camera-view button {
	border: 2px solid var(--button-special-background);
	border-radius: 50%;	
	padding: 2px;
	background: transparent;
	color: var(--button-special-color);
	font-size:18px;	
	cursor: pointer;
}

.ff-camera-view button::before {
	content: '';
	display: block;
	background-color: var(--button-special-background);
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.ff-camera-view button:hover::before {
	background-color: var(--button-special-hover-background);
}