.image-container {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    max-width: 300px;
    max-height: 300px;
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.image-container:hover .image-preview {
    transform: scale(1.1);
}

.image-container .image-input {
    display: none;
}

/*  dropzone  */

.dropzone {
    border: 2px dashed var(--bs-dark);
    border-radius: 10px;
    background: var(--bs-light);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropzone:hover {
    background: var(--bs-gray-200);
    border-color: var(--bs-info);
}

.dropzone-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    justify-content: center;
}

.dropzone-item {
    position: relative;
    width: 100px;
    height: 100px;
}

.dropzone-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.btn-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    visibility: hidden;
}

.dropzone-item:hover .btn-remove {
    visibility: visible;
}

.img-xxs {
    width: 20px;
}

.img-xs {
    width: 32px;
}

.img-sm {
    width: 50px;
}

.img-md {
    width: 100px;
}

.img-lg {
    width: 200px;
}

.img-xl {
    width: 300px;
}

.img-xxl {
    width: 400px;
}

.img-square {
    aspect-ratio: 1 / 1;
}

@media (max-width: 768px) {
    .img-xxs {
        width: 20px;
    }

    .img-xs {
        width: 30px;
    }

    .img-sm {
        width: 40px;
    }

    .img-md {
        width: 80px;
    }

    .img-lg {
        width: 150px;
    }

    .img-xl {
        width: 250px;
    }

    .img-xxl {
        width: 350px;
    }
}

.img-dark {
    display: none;
}

[data-bs-theme="dark"] .img-light {
    display: none;
}

[data-bs-theme="dark"] .img-dark {
    display: inline;
}