/* Desktop: full-bleed hero. The container is a direct child of <main>, which is
   capped at 1920px and centered, so width: 100vw plus margins pulling from the
   parent's center out to the viewport edge lets the banner span any screen width.
   No rounded corners or shadow — an edge-to-edge hero reads better without a frame. */
.swiper-hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: auto;
  overflow: visible;
  position: relative;
  gap: 12px;
}

/* No height constraint at all — same approach as egged's banner. The image is
   width: 100% and its height follows its own proportions, so nothing can ever be
   cropped whatever the artwork ratio or the screen width. */
.swiper-hero {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.swiper-hero .swiper-slide {
  width: 100%;
  height: auto;
  overflow: hidden;
}

@media (max-width: 768px) {
  /* Mobile keeps the inset card treatment — undo the desktop full-bleed escape. */
  .swiper-hero-container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    height: auto;
    overflow: visible;
    gap: 8px;
    padding: 12px 0 0;
  }

  .swiper-hero {
    width: 430px;
    max-width: calc(100vw - 40px);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.08);
  }

  .swiper-hero .swiper-slide {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
  }

  .swiper-hero .swiper-slide .image-container,
  .swiper-hero .swiper-slide .image-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* height: auto is what makes the banner uncroppable — the image sets its own
   height from its natural proportions instead of being fitted into a fixed box. */
.swiper-hero .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* The hero slide's <a> carries the shared .image-container class, which brings a
   global 20px border-radius from image-title.css. Scoped reset so the full-bleed
   hero gets square corners without altering that shared class elsewhere.
   min-width guard keeps mobile's rounded card exactly as it was. */
@media (min-width: 769px) {
  .swiper-hero .swiper-slide .image-container {
    border-radius: 0;
  }
}
