/* Outgoing images occupy no layout space; captions and controls stay above them. */
.support-layout { position: relative; }
.gallery-image > .image-outgoing,
.support-layout > .image-outgoing,
#store-dialog > .image-outgoing { z-index: 1; pointer-events: none; }
.gallery-image > span, .dialog-close { z-index: 2; }
.accordion-body { overflow: hidden; }
details[data-expanded="false"] > summary > span { transform: rotate(0); }
details[data-expanded="true"] > summary > span { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
  details > summary > span { transition: none; }
}

/* Keep the supplied wide images legible on both desktop and mobile. */
.support-layout > #support-image { height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #f6f7f3; }

/* Compact portraits retain their original color. */
.advisor-profile { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.advisor-profile > div { min-width: 0; }
.advisor-portrait { display: block; flex: 0 0 auto; width: 112px; height: 128px; object-fit: cover; border-radius: 16px; background: #e3e6dd; }
.advisor-portrait[src$="advisor-panzi.jpg"] { object-position: 50% 58%; }
.advisor-portrait[src$="advisor-pan-ke-hd.jpg"] { object-position: 50% 35%; }
.advisor-list article ul { margin-top: 16px; }
@media (max-width: 700px) {
  .advisor-portrait { width: 88px; height: 100px; border-radius: 13px; }
  .advisor-list article ul { margin-top: 12px; }
}

/* A gentle fade connects the portrait to the surrounding white space. */
@supports ((mask-image: linear-gradient(#000, transparent)) or (-webkit-mask-image: linear-gradient(#000, transparent))) {
  .advisor-portrait {
    -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
    background: transparent;
  }
}
