.add-files:hover {
	background-color: var(--primary-border);
}

.image-container .image-item {
	display: flex;
	gap: 20px;
	align-items: center;
}

.image-container {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 20px;
}
.image-item {
    position: relative;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
	cursor: move;
}
.image-item .img {
	background-size: cover;
	background-position: center;
/* 	background-size: contain;
	
    background-repeat: no-repeat;
    transform-origin: center center; */
	
	
	width: 100%;
	height: 100px;
	border: 1px solid #ccc;
	border-radius: 5px;
	text-align: center;
}

.image-item .img .fa.fa-file {
	font-size: 80px;
	margin-top: 10px;
}

.file-item.preview.file .rotate-btn{
	display: none;
}
.preview .file-size {
	position: absolute;
	z-index: 1;
	top: 76px;
	right: 0px;
	background: var(--bs-gray-600);
	padding: 0 10px;
	color: #fff;
	border-top-left-radius: 5px;
	border-bottom-right-radius: 5px;
	border: 1px solid #fff;
	display: none;
}

.img-wrapper{
    display: flex;
    align-content: center;
	gap: 5px;
}

.file-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.file-wrapper i.fa-file {
    font-size: 24px;
    color: var(--primary);
}

.file-wrapper .file-ext {
	position: absolute;
	top: 65%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 24px;
	color: #fff;
	text-align: center;
}

.rotate-btn {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.delete-btn {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}
.image-item input {
    width: calc(100% - 10px);
    padding: 5px;
    font-size: 12px;
    margin-top: 5px;
    box-sizing: border-box;
}

.preview {
	position: relative;
	display: inline-block;
	width: 150px; /* Add width for consistent layout */
	/* height: 150px; */
}

.preview .rotate-btn,
.preview .delete-btn {
	position: absolute;
	top: 5px;
	background: rgba(0,0,0,0.5);
	color: #fff;
	padding: 5px;
	border-radius: 3px;
	display: none;
	z-index: 10; /* Ensure buttons are on top */
}
.preview .rotate-btn {
	left: 5px;
	background: var(--bs-blue);
}
.preview .delete-btn {
	right: 5px;
	background: var(--bs-danger);
}

.preview:hover .rotate-btn,
.preview:hover .delete-btn {
	display: block;
	padding: 3px 8px;
}

.file-list-container tbody tr{
	cursor: grab;
}
.file-list-container .filename, 
.file-list-container .filetitle{
	width: 45%;
}
/* .form-input{
	display:none;
}
 */
/* .preview:hover .form-input, */
.preview:hover .file-size{
	display: block;
}

#lightgallery img {
	width: auto;
	height: auto;
}


