.custom-modal-overlay {
    position: fixed;
    
    z-index: 99;
    display: flex;
    align-items: center; justify-content: center;
    top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
    /*width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;*/
  }
  .custom-modal-overlay.left-center{
    align-items: center; justify-content: left;
    left: 10px;
    transform: translate(0%, -50%);
  }
  .custom-modal-overlay.right-center{
    align-items: center; justify-content: right;
    right: 10px;
    transform: translate(0%, -50%);
  }

  .custom-modal-overlay.center-top{
    align-items: start; justify-content: center;
    left: 50%;
    transform: translate(-50%, 0%);
    top: 10px;
  }
  .custom-modal-overlay.left-top{
    align-items: start; justify-content: left;
    left: 10px;
    transform: translate(0%, 0%);
    top: 10px;
  }
  .custom-modal-overlay.right-top{
    align-items: start; justify-content: right;
    right: 10px;
    left:auto;
    transform: translate(0%, 0%);
    top: 10px;
  }

  .custom-modal-overlay.center-bottom{
    align-items: end; justify-content: center;
    transform: translate(-50%, 0%);
    bottom: 10px;
    top: auto;

  }
  .custom-modal-overlay.left-bottom{
    align-items: end; justify-content: left;
    transform: translate(0%, 0%);
    bottom: 10px;
    top: auto;
    left: 10px;


  }
  .custom-modal-overlay.right-bottom{
    align-items: end; justify-content: right;
    transform: translate(0%, 0%);
    bottom: 10px;
    top: auto;
    right: 10px;
    left:auto;
  }

  .custom-modal {
    background: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    position: relative;
    animation: fadeIn 0.3s ease-out;
    overflow: hidden;
    margin-right:10px;
  }
  .custom-modal.big {
    max-width: 600px;
  }
  .inner-modal{
    margin-left:140px;
    padding:10px;
  }

  .noimage .inner-modal{
    margin-left:0px;
    padding:10px;
  }
  .custom-modal.big .inner-modal{
    margin-left:200px;
  }
  .inner-modal.center{
    text-align:center;
  }

  .custom-modal h2{
    color:#E30615;
    font-size:32px;
    line-height: 42px;
    font-family: "titillium_websemibold";
  }

  .custom-modal p{
    line-height: 25px;
    font-size:18px;
    font-family: "titillium_websemibold";
    
  }
  .custom-modal .icon-close{
    position: absolute;
    width:15px;
    height:15px;
    top:10px;
    right:10px;
  }

  .custom-modal img {
    max-width: 100%;
    margin-bottom: 0px;
    position:absolute;
    left:0;
    bottom:0;
    width:150px;
    top: auto;
    transform: none;
    
  }
  .custom-modal.big img {
    width:220px;
  }

  .custom-modal .modal-buttons {
    margin-top: 15px;
    text-align: right;
  }

  .custom-modal .modal-buttons button {
    margin-left: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .custom-modal .icon-close{
    cursor:pointer;
    color:#787878;
  }
  /*.top    { align-items: flex-start; }
  .bottom { align-items: flex-end; }
  .left   { justify-content: flex-start; }
  .right  { justify-content: flex-end; }*/

  @media (max-width: 1024px) {
    .custom-modal {
        padding:5px;
        overflow: hidden;
        max-width: 260px;
    }
    .custom-modal img {
      width: auto !important;
      height: 160px;
      left: -5px;
      transform: none;
      top: -5px;
      max-width: none;
      position: relative;
    }
    .custom-modal.big .inner-modal {
      margin-left: 0;
      margin-top: 160px;
    }
    .custom-modal.big {
      max-width: 600px;
      min-width: 260px;
    }
    .custom-modal .icon-close {
        right:20px;
    }
    .custom-modal .icon-close::before {
      background: #FFFFFFCC 0% 0% no-repeat padding-box;
      border-radius: 0px 10px;
      padding: 10px;
    }
    .inner-modal {
      margin-left: 0px;
    }
  }
