/* A consistent canvas for the reframed expertise illustrations. */
.theme-panel {
  --expertise-art-width: min(100%, 590px);
  --expertise-art-background: #102a3b;
}

.theme-panel > .current-art-lens,
.theme-panel > .theme-image {
  display: block;
  inline-size: var(--expertise-art-width);
  block-size: auto;
  aspect-ratio: 10 / 9;
  border: 1px solid rgb(131 198 235 / 25%);
  border-radius: 4px;
  background: var(--expertise-art-background);
}

.theme-panel > .current-art-lens {
  position: relative;
  overflow: hidden;
}

.theme-panel .current-art-image,
.theme-panel .current-art-lens > .theme-image {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.theme-panel .current-art-image > .theme-image {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.theme-panel .theme-image {
  object-fit: contain;
  object-position: center;
  filter: none;
  mix-blend-mode: normal;
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 1;
}

.theme-panel.is-active .theme-image {
  animation-name: expertise-art-arrival;
}

@keyframes expertise-art-arrival {
  from {
    opacity: .72;
    transform: scale(1.014);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .theme-panel > .current-art-lens,
  .theme-panel > .theme-image {
    margin-inline: auto;
  }
}

@media print {
  .theme-panel > .current-art-lens,
  .theme-panel > .theme-image {
    inline-size: min(100%, 320px);
    border: 0;
  }

  .theme-panel.is-active .theme-image {
    animation: none;
  }
}
