/*! Image Uploader - v1.2.3 - 26/11/2019
 * Copyright (c) 2019 Christian Bayer; Licensed MIT */

/* Icons Font Face*/
@font-face {
	font-family: 'Image Uploader Icons';
	src: url('../fonts/iu.eot');
	src: url('../fonts/iu.eot') format('embedded-opentype'),
		url('../fonts/iu.ttf') format('truetype'),
		url('../fonts/iu.woff') format('woff'),
		url('../fonts/iu.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}

/* Icons class */
[class^="iui-"],
[class*="iui-"] {
	font-family: 'Image Uploader Icons' !important;
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Icon Close */
.iui-close:before {
	content: "\e900";
}

/* Icon Cloud Upload */
.iui-cloud-upload:before {
	content: "\e901";
}

/* Base style */
.image-uploader {
	position: relative;
}

/* Style on hover */
.image-uploader.drag-over {
	background-color: #f3f3f3;
}

/* Hide the file input */
/*
.image-uploader input[type="file"] {
    width: 0;
    height: 0;
    position: absolute;
    z-index: -1;
    opacity: 0;
}
*/

/* Text container */
/*
.image-uploader .upload-text {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
*/

/*
.image-uploader .upload-text i {
    display: block;
    font-size: 3rem;
    margin-bottom: .5rem;
}
*/

.image-uploader .upload-text span {
	display: block;
}

/* Hide the text if there is at least one uploaded image */
.image-uploader.has-files .upload-text {
	display: none;
}

/* Uploaded images container */
.image-uploader.has-files .uploaded {
	padding: .5rem;
	line-height: 0;
	border: 1px solid #d5f5ff;
	margin-top: 20px;
	margin-bottom: 20px;
}

.upload-text {
	display: none;
}

.uploaded-image {
	display: inline-block;
	width: calc(16.6666667% - 1rem);
	padding-bottom: calc(16.6666667% - 1rem);
	height: 0;
	position: relative;
	margin: .5rem;
	background: #f3f3f3;
	cursor: default;
}

.uploaded-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	position: absolute;
}

/* Delete image button */
.delete-image {
	display: block;
	cursor: pointer;
	position: absolute;
	top: .2rem;
	right: .2rem;
	border-radius: 50%;
	padding: .3rem;
	line-height: 1;
	background-color: rgba(255, 0, 0, .5);
	-webkit-appearance: none;
	border: none;
}


.delete-image:hover {
	background-color: rgba(255, 0, 0, 1);
}


.delete-image i {
	display: block;
	color: #fff;
	width: 1.4rem;
	height: 1.4rem;
	font-size: 1.4rem;
	line-height: 1.4rem;
}

#vehicle_picture {
	font-weight: normal;
	color: #fff;
	cursor: pointer;
	background-color: #1976d8;
	padding: 10px 10px;
	width: auto;
	display: inline-block;
	max-width: 270px;
}

@media screen and (max-width: 1366px) {
	.uploaded-image {
		width: calc(20% - 1rem);
		padding-bottom: calc(20% - 1rem);
	}
}

@media screen and (max-width: 992px) {
	.image-uploader .uploaded {
		padding: .4rem;
	}

	.uploaded-image {
		width: calc(25% - .8rem);
		padding-bottom: calc(25% - .4rem);
		margin: .4rem;
	}
}

@media screen and (max-width: 786px) {
	.image-uploader .uploaded {
		padding: .3rem;
	}

	.uploaded-image {
		width: calc(25% - .8rem);
		padding-bottom: calc(25% - .4rem);
		margin: .4rem;
	}
}

@media screen and (max-width: 450px) {
	.image-uploader .uploaded {
		padding: .2rem;
	}

	.uploaded-image {
		width: calc(33.3333333333% - .6rem);
		padding-bottom: calc(33.3333333333% - .3rem);
		margin: .3rem;
	}
}
