/* Matched closed/open artwork turns the hero into a photographic reveal. */
.oddb-berry {
  --reveal: 0;
  position: absolute;
  inset: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  filter: none;
  transform: none;
  pointer-events: none;
}

.oddb-berry picture,
.oddb-berry img {
  display: block;
  width: 100%;
  height: 100%;
}

.oddb-berry picture {
  position: absolute;
  inset: 0;
}

.oddb-berry img {
  object-fit: cover;
}

.oddb-berry-open {
  z-index: 1;
}

.oddb-berry-closed {
  z-index: 2;
  opacity: calc(1 - var(--reveal));
  will-change: opacity;
}

@media (max-width: 800px) {
  .oddb-berry {
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    opacity: 1;
  }

  .oddb-berry picture {
    inset: auto;
    position: absolute;
    right: -5vw;
    bottom: 0;
    width: 210vw;
    height: auto;
  }

  .oddb-berry img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .oddb-berry::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, var(--orange) 0%, rgb(255 75 11 / 96%) 36%, rgb(255 75 11 / 58%) 58%, transparent 76%);
    content: "";
  }

  .oddb-berry-closed {
    z-index: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oddb-berry {
    --reveal: 1 !important;
  }
}
