/*

This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.

If your plugin does not need CSS, delete this file.

*/

.image-inserter-container .modal-close-button {
  display: none;
}

.image-inserter-container .modal-content {
  overflow-y: hidden;
}

.image-inserter-container .container {
  z-index: 1;
  position: relative;
  max-width: 100%;
}

.image-inserter-container .container .input-group {
  display: flex;
}

.image-inserter-container .container .query-input {
  flex-grow: 1;
}

.image-inserter-container .container .selector {
  margin-left: 8px;
}

.image-inserter-container .container .scroll-area {
  overflow-x: hidden;
  margin-top: 6px;
  width: 100%;
  max-height: 70vh;
}

.image-inserter-container .container .scroll-area.loading {
  display: none;
}

.image-inserter-container .container .scroll-area .images-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

@media only screen and (min-width: 600px) {
  .image-inserter-container .container {
    padding: 10px;
  }

  .image-inserter-container .container {
    max-width: 80vw;
  }

  .image-inserter-container .container .scroll-area .images-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (min-width: 768px) {
  .image-inserter-container .container .scroll-area .images-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (min-width: 1200px) {
  .image-inserter-container .container .scroll-area .images-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.image-inserter-container .container .scroll-area .images-list .query-result {
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 6px;
}

.image-inserter-container .container .scroll-area .images-list .query-result img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: none;
  background-color: inherit;
}

.image-inserter-container .container .scroll-area .images-list .query-result.is-selected {
  background-color: var(--background-tertiary);
  box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
}

.image-inserter-container .container .scroll-area .pagination {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
}

.image-inserter-container .container .scroll-area .pagination .btn {
  cursor: pointer;
}

.image-inserter-container .container .pixabay-logo {
  text-align: right;
  margin-top: 20px;
}

/* Loading Animation */
.image-inserter-container .loading-container {
  display: flex;
  justify-content: center;
}
.image-inserter-container .loading-container .lds-heart {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  transform: rotate(45deg);
  transform-origin: 40px 40px;
}

.image-inserter-container .loading-container .lds-heart div {
  top: 32px;
  left: 32px;
  position: absolute;
  width: 32px;
  height: 32px;
  background: var(--background-modifier-success);
  animation: lds-heart 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
.image-inserter-container .loading-container .lds-heart div:after,
.image-inserter-container .loading-container .lds-heart div:before {
  content: " ";
  position: absolute;
  display: block;
  width: 32px;
  height: 32px;
  background: var(--background-modifier-success);
}

.image-inserter-container .loading-container .lds-heart div:before {
  left: -24px;
  border-radius: 50% 0 0 50%;
}

.image-inserter-container .loading-container .lds-heart div:after {
  top: -24px;
  border-radius: 50% 50% 0 0;
}

@keyframes lds-heart {
  0% {
    transform: scale(0.95);
  }
  5% {
    transform: scale(1.1);
  }
  39% {
    transform: scale(0.85);
  }
  45% {
    transform: scale(1);
  }
  60% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(0.9);
  }
}

/* Loading Animation */
.image-inserter-container .no-result-container {
  display: flex;
  justify-content: center;
}

