.main-banner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 60 / 11;
  margin: 24px 0 32px;
  overflow: hidden;
  border-radius: 16px;
  background: #ececef;
  color: inherit;
}

.main-banner *,
.main-banner *::before,
.main-banner *::after {
  box-sizing: border-box;
}

.main-banner__skeleton {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ececef;
}

.main-banner__skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 25%,
    rgba(255, 255, 255, 0.65) 45%,
    transparent 65%
  );
  transform: translateX(-100%);
  animation: main-banner-shimmer 1.5s infinite;
}

.main-banner__picture,
.main-banner__image {
  display: block;
  width: 100%;
  height: 100%;
}

.main-banner__image {
  position: relative;
  z-index: 1;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.main-banner.is-loaded .main-banner__image {
  opacity: 1;
}

.main-banner.is-loaded .main-banner__skeleton {
  display: none;
}

@keyframes main-banner-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 767px) {
  .main-banner {
    aspect-ratio: 1914 / 800;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-banner__skeleton::after {
    animation: none;
  }

  .main-banner__image {
    transition: none;
  }
}
