/* CSS for GP-Project-Icon. */

/* Configuration of Global variables. */
.gp-content #projects dl dt a,
.gp-content #sub-projects dl dt a {
  display: inline-block;
  vertical-align: middle;
}

.gp-content #projects dl dt a span.icon,
.gp-content #sub-projects dl dt a span.icon {
  display: inline-block;
  vertical-align: middle;
  height: 2rem;
  width: 2rem;
  margin-right: 0.2rem;
  background-color: var(--gp-color-primary-50);
}

.gp-content #projects dl dt a span.icon img,
.gp-content #sub-projects dl dt a span.icon img {
  height: 100%;
  width: 100%;
  max-height: 100%;
  max-width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  background-color: var(--gp-color-canvas-default);
}

.gp-content #projects dl dt a span.icon img[src=""],
.gp-content #sub-projects dl dt a span.icon img[src=""] {

  /* Hide broken or missing images */
  display: none;
}

.gp-content #projects dl dt a span.name,
.gp-content #sub-projects dl dt a span.name {
  display: inline-block;
  vertical-align: middle;
  text-decoration: inherit;
}

.gp-content form dd.project-icon div.icon-preview-wrapper {
  position: relative;
  display: block;
  height: 8rem;
  width: 8rem;
  max-height: 8rem;
  max-width: 8rem;
}

.gp-content form dd.project-icon div.icon-preview-wrapper button#project-icon-button-clear {
  position: absolute;
  top: -12px;
  right: -12px;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 18px;
  text-align: center;
  line-height: 22px;
  cursor: pointer;
  padding: 0;
  min-height: 0;
  min-height: initial;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.gp-content form dd.project-icon div.icon-preview-wrapper button#project-icon-button-clear span.dashicons.dashicons-no {
  vertical-align: bottom;
}

.gp-content form dd.project-icon div.icon-preview-wrapper input#project-icon-button-select {
  display: block;
  z-index: 1;
  height: 8rem;
  width: 8rem;
  max-height: 8rem;
  max-width: 8rem;
  -webkit-box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  background-color: #f0f0f1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.gp-content form dd.project-icon div.icon-preview-wrapper input#project-icon-button-select:hover, .gp-content form dd.project-icon div.icon-preview-wrapper input#project-icon-button-select:focus {
  border-color: var(--gp-color-accent-emphasis);
  -webkit-box-shadow: 0 0 0 1px var(--gp-color-accent-emphasis);
  box-shadow: 0 0 0 1px var(--gp-color-accent-emphasis);
}

.gp-content .project-header-icon-wrapper img.project-icon {
  height: 8rem;
  width: 8rem;
  -o-object-fit: cover;
  object-fit: cover;
}
