.vo-visual-search {
  --vo-green: #6fe699;
  --vo-ink: #231f20;
  --vo-icon: #9a9a9a;
  --vo-muted: #6f6f6f;
  --vo-soft: #f5f5f5;
  --vo-drop: #eef4ff;
  color: var(--vo-ink);
  margin: 0 auto 5rem;
  max-width: 1430px;
}

.vo-visual-search__panel {
  background: var(--vo-green);
  padding: clamp(2rem, 2.5vw, 2.4rem) clamp(2rem, 6.3vw, 6.3rem) clamp(2rem, 2.6vw, 2.5rem);
  position: relative;
}

.vo-visual-search__heading {
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .95;
  margin: 0 0 clamp(1.3rem, 2.3vw, 2.2rem);
  text-align: left;
  text-transform: uppercase;
}

.vo-visual-search__close,
.vo-visual-search__upload-close {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 2rem;
  padding: 0;
  position: absolute;
  width: 2rem;
  z-index: 4;
}

.vo-visual-search__close {
  right: clamp(.8rem, 1.8vw, 1.8rem);
  top: clamp(.8rem, 1.8vw, 1.8rem);
}

.vo-visual-search__close::before,
.vo-visual-search__close::after,
.vo-visual-search__upload-close::before,
.vo-visual-search__upload-close::after {
  background: currentColor;
  content: "";
  height: 1px;
  left: 3px;
  position: absolute;
  top: 15px;
  transform: rotate(45deg);
  width: 26px;
}

.vo-visual-search__close::after,
.vo-visual-search__upload-close::after { transform: rotate(-45deg); }
.vo-visual-search__close { color: #fff; }
.vo-visual-search__upload-close { color: #777; right: 1.25rem; top: 1.25rem; }

.vo-visual-search__bar {
  align-items: center;
  background: #fff;
  display: flex;
  min-height: clamp(4rem, 5vw, 4.8rem);
  overflow: hidden;
  padding: .45rem clamp(.7rem, 1.5vw, 1.35rem);
  position: relative;
}

.vo-visual-search__image-trigger,
.vo-visual-search__magnifier {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--vo-icon);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  height: clamp(2.8rem, 3.4vw, 3.25rem);
  justify-content: center;
  padding: .35rem;
  position: relative;
  transition: color .18s ease;
  width: clamp(2.8rem, 3.4vw, 3.25rem);
  z-index: 2;
}

.vo-visual-search__image-trigger:hover,
.vo-visual-search__image-trigger:focus-visible,
.vo-visual-search__magnifier:hover,
.vo-visual-search__magnifier:focus-visible { color: var(--vo-ink); }

.vo-visual-search__image-trigger svg,
.vo-visual-search__magnifier svg { display: block; height: 100%; width: 100%; }

.vo-visual-search__image-label {
  color: var(--vo-icon);
  flex: 0 0 auto;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.55rem);
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-.5rem);
  transition: max-width .24s ease, opacity .18s ease, transform .24s ease;
  white-space: nowrap;
}

.vo-visual-search__image-trigger:hover ~ .vo-visual-search__image-label,
.vo-visual-search__image-trigger:focus-visible ~ .vo-visual-search__image-label,
.vo-visual-search__bar.is-image-hover .vo-visual-search__image-label {
  max-width: 15rem;
  opacity: 1;
  transform: translateX(0);
}

.vo-visual-search__hint {
  align-self: stretch;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--vo-ink);
  flex: 1 1 auto;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  min-width: 3rem;
  outline: 0;
  padding: 0 .75rem;
}

.vo-visual-search__tagline {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(.78rem, 1vw, 1rem);
  margin: clamp(.8rem, 1.2vw, 1.1rem) 0 0 1.25rem;
}

.vo-visual-search.is-upload-open .vo-visual-search__bar,
.vo-visual-search.is-upload-open .vo-visual-search__tagline { display: none; }

.vo-visual-search__upload {
  background: #fff;
  margin-top: clamp(1.2rem, 2.1vw, 2rem);
  padding: clamp(1.2rem, 2.1vw, 2rem);
  position: relative;
}

.vo-visual-search__upload[hidden] { display: none; }

.vo-visual-search__dropzone {
  align-items: center;
  background: var(--vo-soft);
  border: 1px dashed #777;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: clamp(15rem, 25vw, 22.5rem);
  overflow: hidden;
  position: relative;
  transition: background-color .18s ease, border-color .18s ease;
}

.vo-visual-search__dropzone:hover { border-color: var(--vo-ink); }
.vo-visual-search__dropzone.is-dragging { background: var(--vo-drop); border-color: #777; }

.vo-visual-search__dropzone input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.vo-visual-search__prompt {
  align-items: center;
  color: #969696;
  display: flex;
  flex-direction: column;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  gap: 1.7rem;
  padding: 2rem;
  text-align: center;
}

.vo-visual-search__prompt[hidden],
.vo-visual-search__drop-here[hidden] { display: none; }

.vo-visual-search__prompt strong { color: #6c9fea; font-weight: 400; }

.vo-visual-search__upload-icon {
  background: #ddd;
  display: block;
  height: 34px;
  position: relative;
  width: 60px;
}

.vo-visual-search__upload-icon::before {
  background: #a9c8fa;
  content: "";
  height: 34px;
  left: 12px;
  position: absolute;
  top: -10px;
  width: 60px;
}

.vo-visual-search__drop-here {
  color: #929292;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
}

.vo-visual-search__preview {
  background: #fff;
  height: 100%;
  inset: 0;
  object-fit: contain;
  padding: 1rem;
  position: absolute;
  width: 100%;
}

.vo-visual-search__loading {
  align-items: center;
  background: var(--vo-soft);
  color: var(--vo-muted);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 500;
  inset: 0;
  justify-content: center;
  padding: 2rem;
  position: absolute;
  text-align: center;
  z-index: 3;
}

.vo-visual-search__loading[hidden] { display: none; }

.vo-visual-search__loading::before {
  animation: vo-visual-search-spin .9s linear infinite;
  border: 3px solid #d8d8d8;
  border-top-color: var(--vo-muted);
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 38px;
  width: 38px;
}

@keyframes vo-visual-search-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .vo-visual-search__loading::before { animation: none; }
}

.vo-visual-search__dropzone.has-preview .vo-visual-search__prompt,
.vo-visual-search__dropzone.has-preview .vo-visual-search__drop-here { opacity: 0; }

.vo-visual-search__submit {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.vo-visual-search__privacy {
  color: rgba(35, 31, 32, .72);
  font-family: "Roboto Condensed", sans-serif;
  font-size: .75rem;
  display: none;
}

.vo-visual-search__status {
  font-family: "Roboto Condensed", sans-serif;
  font-size: .9rem;
  margin: .75rem 0 0;
  text-align: center;
}

.vo-visual-search__status:not(:empty) { min-height: 2rem; padding: 1rem; }
.vo-visual-search__results { scroll-margin-top: 120px; }

.vo-visual-search__source {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
}

.vo-visual-search__source[hidden] { display: none !important; }

.vo-visual-search__source-link {
  cursor: zoom-in;
  display: block;
  flex: 0 0 auto;
  outline-offset: 4px;
}

.vo-visual-search__source-link:hover .vo-visual-search__source-image,
.vo-visual-search__source-link:focus-visible .vo-visual-search__source-image {
  transform: scale(1.035);
}

[data-vo-visual-search] .vo-visual-search__source-image {
  background: var(--vo-soft);
  display: block !important;
  height: 112px !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain;
  opacity: 1 !important;
  position: static !important;
  transition: transform .18s ease;
  width: 112px !important;
}

.vo-visual-search__source figcaption {
  color: var(--vo-muted);
  font-family: "Roboto Condensed", sans-serif;
  font-size: .85rem;
  font-weight: 400;
  margin: 0;
  text-transform: uppercase;
}

.vo-visual-search__source:not([hidden]) + .vo-visual-search__results-head { margin-top: 0; }

.vo-visual-search__results-head {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 4rem 0 1.5rem;
}

.vo-visual-search__results-head h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 500;
  margin: 0;
}

.vo-visual-search__results-head span { color: var(--vo-muted); }

.vo-visual-search__results-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  justify-content: flex-end;
}

.vo-visual-search__share {
  background: var(--vo-ink);
  border: 1px solid var(--vo-ink);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-family: "Roboto Condensed", sans-serif;
  font-size: .9rem;
  padding: .65rem 1rem;
  transition: background-color .2s ease, color .2s ease;
}

.vo-visual-search__share:hover,
.vo-visual-search__share:focus-visible {
  background: #fff;
  color: var(--vo-ink);
}

.vo-visual-search__share[hidden] { display: none; }

.vo-visual-search__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vo-visual-search__card { color: inherit; display: block; text-decoration: none; }

.vo-visual-search__pdf {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--vo-ink);
  cursor: pointer;
  font-family: "Roboto Condensed", sans-serif;
  font-size: .9rem;
  margin-top: .5rem;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.vo-visual-search__pdf:hover,
.vo-visual-search__pdf:focus-visible { color: var(--vo-muted); }

.vo-visual-search__pdf { display: none; }
.vo-visual-search__pdf.active { display: inline-block; }

.vo-visual-search__image {
  aspect-ratio: 4 / 5;
  background: var(--vo-soft);
  display: block;
  overflow: hidden;
}

.vo-visual-search__image img {
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  width: 100%;
}

/*
 * The legacy search dropdown styles every descendant image as a close/play
 * icon: fixed at 24px on mobile and hidden on desktop. Visual-result images
 * are real content, so restore their normal card layout in this scoped area.
 */
[data-vo-visual-search] [data-vo-visual-results] .vo-visual-search__image > img {
  display: block !important;
  height: 100% !important;
  left: auto !important;
  max-height: none !important;
  max-width: none !important;
  opacity: 1 !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
  z-index: auto !important;
}

.vo-visual-search__card:hover img { transform: scale(1.025); }

.vo-visual-search__meta {
  padding-top: .75rem;
}

.vo-visual-search__meta strong {
  color: var(--vo-muted);
  display: block;
  font-size: .95rem;
  font-weight: 400;
}

.vo-visual-search.is-loading .vo-visual-search__panel { cursor: wait; }
.vo-visual-search.is-loading .vo-visual-search__bar,
.vo-visual-search.is-loading .vo-visual-search__upload { opacity: .62; }

/* Global search dropdown: the same visual-search component powers every page. */
[data-vo-visual-global] {
  --vo-green: #6fe699;
  --vo-ink: #231f20;
  --vo-icon: #9a9a9a;
  --vo-muted: #6f6f6f;
  --vo-soft: #f5f5f5;
  --vo-drop: #eef4ff;
}

[data-vo-visual-global] .oeuvre-elastic-inputwrap { position: relative; }

[data-vo-visual-global] .js-oeuvre-elastic-input {
  background-image: none;
  box-sizing: border-box;
  max-width: 100%;
  padding-left: 102px;
}

.vo-global-visual-trigger {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #929292;
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  left: 14px;
  padding: 1px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: color .18s ease, transform .2s ease;
  width: 38px;
  z-index: 3;
}

.vo-global-visual-trigger:hover,
.vo-global-visual-trigger:focus-visible {
  color: #454545;
  transform: translateY(-50%) scale(1.08);
}
.vo-global-visual-trigger svg { display: block; height: 100%; width: 100%; }

.vo-global-search-magnifier {
  color: #d0d0d0;
  height: 34px;
  left: 58px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  z-index: 2;
}

.vo-global-search-magnifier svg { display: block; height: 100%; width: 100%; }

.vo-global-visual-label {
  background: #fff;
  color: #747474;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 26px;
  font-weight: 300;
  left: 102px;
  line-height: 1;
  opacity: 0;
  padding: 8px 14px 8px 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-8px, -50%);
  transition: opacity .18s ease, transform .22s ease;
  white-space: nowrap;
  z-index: 2;
}

.vo-global-visual-trigger:hover ~ .vo-global-visual-label,
.vo-global-visual-trigger:focus-visible ~ .vo-global-visual-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.vo-global-visual-form { margin: 0; }
.vo-global-visual-upload { margin-top: 18px; }
.vo-global-visual-upload .vo-visual-search__upload-close { right: 2.5rem; top: 2.5rem; }
[data-vo-visual-global] .vo-visual-search__dropzone { min-height: clamp(230px, 32vw, 360px); }
[data-vo-visual-global] .vo-visual-search__prompt {
  font-size: 32px;
  font-weight: 300;
}
[data-vo-visual-global] .vo-visual-search__prompt > span:first-child {
  font-size: 32px !important;
  font-weight: 300 !important;
  line-height: 1.2;
}
[data-vo-visual-global] .vo-visual-search__prompt strong {
  font-size: inherit !important;
  font-weight: 300 !important;
}
[data-vo-visual-global] .vo-visual-search__status {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 500;
  margin-inline: auto;
  max-width: 1200px;
  text-align: center;
}

[data-vo-visual-global].is-upload-open .oeuvre-elastic-inputwrap,
[data-vo-visual-global].is-upload-open .oeuvre-elastic-hint,
[data-vo-visual-global].is-upload-open .oeuvre-elastic-suggestions { display: none !important; }

[data-vo-visual-global].is-loading .vo-global-visual-upload { cursor: wait; opacity: .62; }
[data-vo-visual-global] .vo-global-visual-results { margin-inline: auto; max-width: 1200px; }
.dropdowns.-search.js-searchdrop.is-fullscreen .vo-visual-search__site-footer {
  margin-top: clamp(3rem, 6vw, 6rem);
  position: relative;
  width: 100%;
}

/* The search menu makes its own list links white. Once the site footer is
   moved below the visual results, keep the footer's native link colour. */
.dropdowns.-search.js-searchdrop.is-fullscreen
  .dropdowns__hashtag-menu
  .vo-visual-search__site-footer a {
  color: #0b0b0b;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

@media (max-width: 900px) {
  .vo-visual-search__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .vo-visual-search { margin-bottom: 3rem; }
  .vo-visual-search__panel { padding: 3.25rem 1rem 1.5rem; }
  .vo-visual-search__heading { margin-bottom: 1rem; }
  .vo-visual-search__bar { min-height: 4rem; padding-inline: .45rem; }
  .vo-visual-search__image-trigger,
  .vo-visual-search__magnifier { height: 2.8rem; width: 2.8rem; }
  .vo-visual-search__image-label { font-size: .95rem; }
  .vo-visual-search__image-trigger:hover ~ .vo-visual-search__image-label,
  .vo-visual-search__image-trigger:focus-visible ~ .vo-visual-search__image-label,
  .vo-visual-search__bar.is-image-hover .vo-visual-search__image-label { max-width: 9.5rem; }
  .vo-visual-search__tagline { margin-left: .35rem; }
  .vo-visual-search__upload { padding: .8rem; }
  .vo-visual-search__dropzone { min-height: 14rem; }
  .vo-visual-search__privacy { text-align: left; }
  .vo-visual-search__results-head { align-items: flex-start; flex-direction: column; margin-top: 2.5rem; }
  [data-vo-visual-search] .vo-visual-search__source-image { height: 88px !important; width: 88px !important; }
  .vo-visual-search__results-tools { align-items: flex-start; justify-content: flex-start; }
  .vo-visual-search__grid { gap: 1.5rem .75rem; }
  [data-vo-visual-global] .js-oeuvre-elastic-input {
    background-image: none;
    padding-left: 82px;
  }
  .vo-global-visual-trigger { height: 30px; left: 8px; width: 30px; }
  .vo-global-search-magnifier { height: 28px; left: 43px; width: 28px; }
  .vo-global-visual-label { font-size: 17px; left: 80px; }
  .vo-global-visual-upload { margin-top: 12px; padding: .75rem; }
  .vo-global-visual-upload .vo-visual-search__upload-close { right: 1.75rem; top: 1.75rem; }
  [data-vo-visual-global] .vo-visual-search__prompt { font-size: 1.15rem; gap: 1.35rem; }
  [data-vo-visual-global] .vo-visual-search__prompt > span:first-child { font-size: 1.15rem !important; }
  [data-vo-visual-global] .vo-visual-search__upload-icon { height: 27px; width: 48px; }
  [data-vo-visual-global] .vo-visual-search__upload-icon::before { height: 27px; left: 10px; top: -8px; width: 48px; }
  [data-vo-visual-global] .vo-visual-search__dropzone { min-height: 220px; }
}
