.demo-api-images-container {
  padding: 10px;
}

/* Main CSS */
.demo-api-images-media-grid>.demo-api-images-media-grid-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-api-images-media-grid>.demo-api-images-media-grid-item>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.demo-api-images-media-grid {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}

.demo-api-images-media-grid .wide {
  grid-column: span 2;
}

.demo-api-images-media-grid .tall {
  grid-row: span 2;
}

.demo-api-images-media-grid .big {
  grid-column: span 2;
  grid-row: span 2;
}

.demo-api-images-loadmore-wrapper {
  padding-top: 10px;
  text-align: center;
}

.demo-api-images-media-toolbar-search.media-toolbar-primary {
  float: none;
  max-width: 100%;
  margin: 20px 6px 15px;
}

.demo-api-images-media-toolbar-search .demo-api-images-search-input-label {
  display: block;
  float: left;
  margin: 5px 0;
  font-weight: 700;
}

.demo-api-images-media-toolbar-search .demo-api-images-search {
  width: 100%;
  padding: 5px 10px;
  margin: 0;
  clear: both;
  -webkit-appearance: none;
  border-radius: 4px;
}

.demo-api-images-loading {
  opacity: 0.5;
}

.demo-api-images-loader {
  display: inline-block;
  position: absolute;
  width: 80px;
  height: 80px;
}

.demo-api-images-loader div {
  position: absolute;
  border: 4px solid #fff;
  opacity: 1;
  border-radius: 50%;
  animation: demo-api-images-loader 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.demo-api-images-loader div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes demo-api-images-loader {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

.media-modal.wp-core-ui input.demo-api-images-search {
  width: -webkit-fill-available;
}


.demo-api-images-error-wrapper {
  margin: 20px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

.demo-notify-info,
.demo-notify-success,
.demo-notify-warning,
.demo-notify-error {
  position: absolute;
  padding: 10px;
  margin: 10px 0;
  max-width: 215px;
}

.demo-notify-info:before,
.demo-notify-success:before,
.demo-notify-warning:before,
.demo-notify-error:before {
  font-family: dashicons;
  font-style: normal;
  font-weight: 400;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  margin-left: .2em;
  font-size: 15px;
  margin-top: 0.6em;
}

.demo-notify-info:before {
  content: "\f348";
}

.demo-notify-success:before {
  content: '\f147';
}

.demo-notify-warning:before {
  content: '\f534';
}

.demo-notify-error:before {
  content: '\f153';
}

.demo-notify-info {
  color: #00529B;
  background-color: #BDE5F8;
}

.demo-notify-success {
  color: #4F8A10;
  background-color: #DFF2BF;
}

.demo-notify-warning {
  color: #9F6000;
  background-color: #FEEFB3;
}

.demo-notify-error {
  color: #D8000C;
  background-color: #FFD2D2;
}

.demo-api-images-media-toolbar-providers .radio_container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #cecece;
  width: max-content;
  height: 50px;
  border-radius: 9999px;
  box-shadow: inset 0.5px 0.5px 2px 0 rgba(0, 0, 0, 0.15);
}

.demo-api-images-media-toolbar-providers input[type="radio"] {
  appearance: none;
  display: none;
}

.demo-api-images-media-toolbar-providers label {
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: inherit;
  width: 100px;
  height: 40px;
  text-align: center;
  border-radius: 9999px;
  overflow: hidden;
  transition: linear 0.3s;
  color: #6e6e6edd;
  margin-left: 10px;
  margin-right: 10px;
}

.demo-api-images-media-toolbar-providers input[type="radio"]:checked+label {
  background-color: #1e90ff;
  color: #f1f3f5;
  font-weight: 900;
  transition: 0.3s;
}

.demo-api-images-wrapper.loading {
  width: auto;
  text-align: center;
}

.demo-api-images-wrapper-loader {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.demo-api-images-wrapper-loader div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #1e90ff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.demo-api-images-wrapper-loader div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}

.demo-api-images-wrapper-loader div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}

.demo-api-images-wrapper-loader div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}

.demo-api-images-wrapper-loader div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(24px, 0);
  }
}