
/*  Image Upload */
.upload-file_custom {
  position: relative;
  display: inline-block;
  margin: auto;
  max-width: 100%;
}
.upload-file_custom .upload-file__input {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  inline-size: 100%;
  block-size: 100%;
  cursor: pointer;
  opacity: 0;
  z-index: 9;
}
.upload-file_custom .upload-file__wrapper {
  block-size: 100px;
  min-inline-size: 100px;
  max-inline-size: 100%;
  border-radius: 10px;
  background: var(--bs-white);
  border: 1px dashed #BDBDBE;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
.upload-file_custom .upload-file__wrapper .upload-file-img {
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: initial !important;
  max-block-size: initial !important;
  -o-object-fit: cover;
     object-fit: cover;
  display: none;
}
.upload-file_custom .upload-file__wrapper .upload-file-textbox {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.upload-file_custom .overlay {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  inline-size: 100%;
  block-size: 100%;
  opacity: 0;
  border-radius: 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%);
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
}
.upload-file_custom .overlay .icon-btn {
  inline-size: 20px;
  block-size: 20px;
  padding: 5px;
  font-size: 10px;
  background-color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-file_custom .view_btn:hover,
.upload-file_custom .edit_btn:hover{
    color: var(--bs-white);
    background-color: var(--theameColor);
}
.upload-file_custom:hover .overlay.show {
  opacity: 1;
}
.upload-file_custom .remove_btn {
  opacity: 0;
}
.upload-file_custom .remove_btn:hover {
  background: var(--bs-danger);
  color: var(--bs-white) !important;
}
.upload-file_custom .remove_btn:hover i {
  color: var(--bs-white) !important;
}
.upload-file_custom .remove_btn.remove_btn_outside {
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: -5px;
  z-index: 11;
}

.upload-file_custom.input-disabled .single_file_input {
  pointer-events: none;
  opacity: 0;
}
.h-20{
    height: 20px;
}

#imageModal .modal-dialog,
#imageModal .modal-content {
  width: -moz-fit-content;
  width: fit-content;
}
.imageModal {
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1040;
}
.imageModal .modal-dialog,
.imageModal .modal-content {
  width: auto;
  width: -moz-fit-content;
  width: fit-content;
}
.imageModal .modal-content {
  background: transparent;
  border: none;
}
.imageModal .imageModal_img_wrapper {
  position: relative;
  max-width: 700px;
  max-height: 90vh;
  margin: auto;
  background-color: #fff;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  overflow: hidden;
}
.imageModal .imageModal_img_wrapper .imageModal_img {
  width: auto;
  height: auto;
  min-width: 100px;
  max-width: 100%;
  max-height: calc(90vh - 100px);
  text-align: center;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: inherit;
}
.imageModal .imageModal_img_wrapper .imageModal_btn_wrapper {
  position: absolute;
  bottom: 0.5rem;
  inset-inline-end: 0.5rem;
  display: flex;
  gap: 5px;
  align-items: center;
}
.imageModal .imageModal_img_wrapper .download_btn {
  color: var(--bs-dark);
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.imageModal .imageModal_img_wrapper .download_btn:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
@media (max-width: 767px) {
  .imageModal .imageModal_img_wrapper {
    max-width: 100%;
  }
}
.modal_img-btn{
    padding: 0 !important;
    width: 26px;
    height: 26px;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}