.location-hero {
  --location-image-opacity: 0.88;
  isolation: isolate;
  min-height: min(760px, calc(100dvh - 116px));
  display: grid;
  align-items: center;
  background: #253249;
}

.location-hero::before,
.location-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.location-hero::before {
  z-index: 0;
  opacity: var(--location-image-opacity);
  background: url("../images/location-hero-gold-v1.jpg") right center / cover no-repeat;
  filter: saturate(0.9) contrast(1.06);
}

.location-hero::after {
  z-index: 1;
  width: auto;
  height: auto;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, #253249 0%, #253249f5 36%, #253249c9 58%, #25324952 100%),
    linear-gradient(0deg, #253249e8 0%, transparent 48%);
  box-shadow: none;
  transform: none;
}

.location-hero-grid {
  z-index: 2;
}

.location-fact {
  background: #253249e8;
  box-shadow: 0 24px 64px #25324952;
}

@media (width < 880px) {
  .location-hero {
    --location-image-opacity: 0.62;
    min-height: auto;
  }

  .location-hero::before {
    background-position: 66% center;
  }

  .location-hero::after {
    background:
      linear-gradient(90deg, #253249fa 0%, #253249e8 66%, #253249a6 100%),
      linear-gradient(0deg, #253249f2 0%, transparent 58%);
  }
}

@media (width < 640px) {
  .location-hero {
    --location-image-opacity: 0.46;
  }

  .location-hero::before {
    background-position: 72% center;
  }

  .location-hero::after {
    background: #253249d9;
  }

  .location-fact {
    width: 100%;
    max-width: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .location-hero::before {
    animation: location-hero-settle 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes location-hero-settle {
  from {
    opacity: calc(var(--location-image-opacity) * 0.72);
    filter: saturate(0.82) contrast(1.02) blur(5px);
    transform: scale(1.02);
  }

  to {
    opacity: var(--location-image-opacity);
    filter: saturate(0.9) contrast(1.06) blur(0);
    transform: scale(1);
  }
}
