.content-image {
  max-width: 100%;
  height: auto;
  border-radius: 25px;
  margin: 30px auto;
  display: block;
  background-color: var(--card-bg-color);
}

.component-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background-color: var(--card-bg-color);
}

.image-info {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  line-height: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--card-bg-color);
}

.image-info.progressive-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition:
    opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.56s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.56s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-info.progressive-image::before {
  z-index: 0;
  background:
    linear-gradient(110deg,
      var(--card-bg-color) 22%,
      var(--card-bg-hover) 50%,
      var(--card-bg-color) 78%);
  background-size: 200% 100%;
  animation: imageSkeletonPulse 1.8s ease-in-out infinite;
}

.image-info.progressive-image.progressive-image--error::before {
  opacity: 1;
  animation: none;
}

.image-info.progressive-image.progressive-image--preview-ready::before {
  opacity: 0.34;
}

.image-info.progressive-image.progressive-image--loaded::before {
  opacity: 0;
}

.image-info.progressive-image.image-info--active::before {
  opacity: 0;
}

.image-info.content-image,
.image-info.pip3d-feature-image {
  width: fit-content;
  max-width: 100%;
}

.image-info.component-image {
  width: 100%;
  pointer-events: auto;
}

.image-info__img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: inherit;
  position: relative;
  z-index: 1;
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, filter, transform;
}

img.progressive-asset {
  transition:
    opacity 0.56s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.56s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.56s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, filter, transform;
}

img.progressive-asset.progressive-asset--has-preview:not(.progressive-asset--loaded):not(.progressive-asset--error) {
  filter: blur(20px) saturate(1.04);
  transform: scale(1.015);
}

img.progressive-asset.progressive-asset--loaded {
  filter: blur(0);
  transform: scale(1);
}

.image-info.progressive-image .image-info__img {
  opacity: 0;
  filter: blur(18px);
  transition:
    opacity 0.56s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.56s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.56s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-info.progressive-image.progressive-image--has-preview:not(.progressive-image--loaded):not(.progressive-image--error) .image-info__img {
  opacity: 1;
  filter: blur(20px) saturate(1.04);
  transform: scale(1.015);
}

.image-info.progressive-image.progressive-image--loaded .image-info__img {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.image-info.progressive-image.progressive-image--error:not(.progressive-image--has-preview) .image-info__img {
  opacity: 0;
}

.image-info.main-image .image-info__img,
.image-info.component-image .image-info__img,
.image-row-gallery .image-info.content-image .image-info__img,
.image-row-gallery .image-info.component-image .image-info__img {
  width: 100%;
}

.image-info__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  background-color: var(--image-info-bg);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-info__text {
  max-width: min(88%, 680px);
  max-height: 100%;
  overflow: auto;
  opacity: 0;
  filter: blur(12px);
  color: var(--content-color);
  font-size: 16px;
  font-weight: 420;
  line-height: 1.55;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-wrap: pretty;
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-info--active .image-info__img,
.image-info.progressive-image.image-info--active .image-info__img,
.image-info.progressive-image.progressive-image--has-preview.progressive-image--loaded.image-info--active .image-info__img {
  opacity: 0 !important;
  filter: blur(12px);
  transition:
    filter 0.26s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.24s cubic-bezier(0.4, 0, 0.2, 1) 90ms,
    transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-info:not(.image-info--active) .image-info__overlay,
.image-info:not(.image-info--active) .image-info__text {
  opacity: 0 !important;
}

.image-info--active .image-info__overlay {
  opacity: 1 !important;
  pointer-events: auto;
  transition-delay: 90ms;
}

.image-info--active .image-info__text {
  opacity: 1 !important;
  filter: blur(0);
  transition-delay: 40ms;
}

.image-info--active .image-info__text.image-info__text--lang-out,
.image-info--active .image-info__text.image-info__text--lang-in {
  will-change: filter;
}

.image-info--active .image-info__text.image-info__text--lang-out {
  filter: blur(12px) !important;
  transition: filter 0.09s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-info--active .image-info__text.image-info__text--lang-in {
  filter: blur(0) !important;
  transition: filter 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-info:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

.light-theme .image-info.pip3d-feature-image {
  filter: none;
}

.light-theme .image-info.pip3d-feature-image .image-info__img {
  filter: invert(1);
}

.light-theme .image-info.pip3d-feature-image.image-info--active .image-info__img {
  filter: invert(1) blur(12px);
}

.advisory-block .content-image {
  margin-top: 15px;
  margin-bottom: 10px;
}

.image-row-gallery {
  position: relative;
  display: block;
  margin-top: 30px;
  margin-bottom: 25px;
}

.image-gallery-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.image-gallery-track {
  display: flex;
  transform: translateX(calc(var(--gallery-index, 0) * -100%));
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-gallery-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
}

.image-gallery-slide .content-image,
.image-gallery-slide .component-image,
.image-gallery-slide .image-info.content-image,
.image-gallery-slide .image-info.component-image {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.image-gallery-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-bg-border);
  border-radius: 50%;
  background-color: var(--card-bg-color);
  color: var(--content-color);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    background-color var(--theme-transition),
    border-color var(--theme-transition),
    color var(--theme-transition);
}

.image-gallery-button:hover {
  background-color: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  color: var(--heading-color);
}

.image-gallery-button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

.image-gallery-button svg {
  display: block;
  width: 16px;
  height: 16px;
}

.image-gallery-button--prev {
  left: calc((56px) * -1);
}

.image-gallery-button--next {
  right: calc((56px) * -1);
}

.image-gallery-button--next svg {
  transform: rotate(180deg);
}

.image-gallery-dots {
  --gallery-dot-size: 7px;
  --gallery-dot-gap: 8px;
  --gallery-dot-left: 0;
  --gallery-dot-step: calc(var(--gallery-dot-size) + var(--gallery-dot-gap));
  --gallery-dot-width: var(--gallery-dot-size);
  position: relative;
  display: flex;
  justify-content: center;
  gap: var(--gallery-dot-gap);
  width: max-content;
  margin: 22px auto 0;
}

.image-gallery-dots::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
  width: var(--gallery-dot-width);
  height: var(--gallery-dot-size);
  border-radius: 999px;
  background: var(--heading-color);
  transform: translateX(calc(var(--gallery-dot-left) * var(--gallery-dot-step)));
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    background-color var(--theme-transition);
}

.image-gallery-dot {
  position: relative;
  z-index: 1;
  width: var(--gallery-dot-size);
  height: var(--gallery-dot-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--nav-item-color);
  opacity: 0.42;
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    background-color var(--theme-transition);
}

.image-gallery-dot.is-active {
  opacity: 0;
}

.main-image {
  width: 85%;
  max-width: 750px;
  height: auto;
  border-radius: 25px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: imageFloat 6s ease-in-out infinite;
}

@media (max-width: 1024px) {
  .main-image {
    width: min(88vw, 420px);
    animation: imageFloatMobile 7.5s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {

  .main-image,
  .content-image,
  .component-image,
  .image-info__img,
  .image-info__overlay,
  .image-info__text,
  .image-gallery-dots::before,
  .image-gallery-track {
    animation: none;
    transition: none;
  }
}

@keyframes imageFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

@keyframes imageFloatMobile {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-6px) scale(1.01);
  }
}

@media (max-width: 768px) {
  .image-gallery-button {
    display: none;
  }

  .image-gallery-dots {
    --gallery-dot-size: 6px;
    --gallery-dot-gap: 7px;
    margin-top: 18px;
  }
}

@keyframes imageSkeletonPulse {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: -100% 50%;
  }
}
