/* Keep the opening portrait proportional on phones, including short screens.
   Scope overrides to the cover so gallery and profile photos stay independent. */
@media (max-width: 767px) {
  section[aria-label="Sampul undangan"] .cover-rise.shrink-0 {
    width: min(62vw, 17rem, calc(38svh * 2768 / 4160));
  }

  section[aria-label="Sampul undangan"] .cover-rise.shrink-0 > .arch.relative {
    aspect-ratio: 2768 / 4160;
    max-height: none;
  }

  section[aria-label="Sampul undangan"] .cover-rise.shrink-0 img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}
