@media only screen and (max-width: 600px) {
  .stamp-modal-wrapper {
    min-width: 350px !important;
  }
}
.cartouche.eki-stamp {
    background: white;
    border: solid 0.1rem rgba(255, 0, 0, 0.5);
    filter: drop-shadow(0.2em 0.2em 0.25em #00000038);
    color: red;
    width: fit-content;
    margin: 0.5em;
    cursor: pointer;
    img {
        padding: 24px 8px;
    }
}

.stamp-modal-wrapper {
  z-index: 10000;
  width: 40%;
  min-width: 500px;
  height: 350px;
  margin: auto;
  display: flex;
  background-color: var(--background-secondary);
  padding: 1em;
  border-radius: 0.5em;

  .stamp-modal-preview {
    width: 200px;
    padding: 2em;
    display: flex;
  }

  .stamp-modal-gallery {
    width: calc(100% - 200px);
    padding: 1em;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    background: white;
    gap: 10px;
    border-radius: 0.5em;
    img {
      width: 100%;
      cursor: pointer;
      border: 2px solid transparent;
      transition: border 0.2s;
    }
    img.active-stamp {
      border-color: var(--highlight);
      filter: drop-shadow(0 0.1rem 0.15rem #000000a8);
    }
  }

  .stamp-preview {
    width: 128px;
    margin: 2em auto;
    display: block;
  }

  .stamp-page {
    font-size: 0.8em;
    width: 176px;
    padding: 1em;
    background: white;
    border-bottom-right-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 3px 2px 3px rgba(0,0,0,0.6);
    color: rgba(0, 0, 0, 0.712);
  }
}