/* Desktop horizontal banner is owned by review24.css. Mobile MD cover and white sheet below. */
#md-feature-layer .md-public-author { text-align: left; }
#md-feature-layer .md-public-author .md-author-work { position: relative; min-width: 0; }
#md-feature-layer .md-author-work .md-author-work-title { display: block; }
#md-feature-layer .md-author-work .md-author-work-metrics {
  display: none; position: absolute; inset: auto 0 0; margin: 0; padding: 18px 5px 6px;
  color: #fff; background: linear-gradient(transparent, #0007); font-size: 11px;
  line-height: 16px; text-shadow: 0 1px 3px #0009; pointer-events: none;
}
#md-feature-layer .md-author-work-metrics small { font-size: inherit; }

@media (max-width: 767px) {
  #md-feature-layer:has(.md-public-author) { inset: 0; background: #fff; align-items: stretch; }
  #md-feature-layer .md-public-author {
    --md-profile-banner-height: clamp(184px, 57.4vw, 240px);
    position: relative; width: 100%; max-width: none; height: 100dvh; max-height: 100dvh;
    margin: 0; padding: 0 0 env(safe-area-inset-bottom); border-radius: 0;
    background: #fff; color: #202124;
  }
  #md-feature-layer .md-public-author > .md-layer-close {
    position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px;
    z-index: 4; width: 36px; height: 36px; margin: 0; color: #fff;
    background: #0003; font-size: 32px; border-radius: 50%;
  }
  #md-feature-layer .md-public-author-header {
    display: block; position: relative; height: auto; min-height: 0;
    padding: var(--md-profile-banner-height) 0 0; margin: 0; border: 0; border-radius: 0;
    background: none; isolation: isolate;
  }
  #md-feature-layer .md-public-author-header:before {
    content: ''; position: absolute; inset: 0 0 auto; height: var(--md-profile-banner-height); z-index: -1;
    background: linear-gradient(0deg, #0007, transparent 65%),
      var(--md-author-cover, linear-gradient(135deg, #3b4454, #202936)) center / cover no-repeat;
  }
  #md-feature-layer .md-public-author-header .md-author-big {
    position: absolute; top: calc(var(--md-profile-banner-height) - 102px); left: 16px;
    z-index: 2; width: 82px; height: 82px; border: 2px solid #fff;
    border-radius: 50%; box-sizing: border-box;
  }
  #md-feature-layer .md-public-author-info {
    display: flex; flex-direction: column; position: static; overflow: visible;
    padding: 18px 16px 16px; border-radius: 16px 16px 0 0;
    background: #fff; color: #202124; gap: 0; transform: none; margin: -12px 0 0;
  }
  #md-feature-layer .md-public-author-info h2 {
    position: absolute; top: calc(var(--md-profile-banner-height) - 84px); left: 112px; right: 16px;
    margin: 0; color: #fff; font-size: 19px; font-weight: 700; line-height: 27px;
    white-space: nowrap; text-overflow: ellipsis; overflow: hidden; text-shadow: 0 1px 4px #0008;
  }
  #md-feature-layer .md-public-author-info .md-author-identity {
    display: block; position: absolute; top: calc(var(--md-profile-banner-height) - 51px);
    left: 112px; right: 16px; color: #fff; font-size: 12px; line-height: 18px;
    text-shadow: 0 1px 4px #0008;
  }
  #md-feature-layer .md-public-author-info .md-author-stats {
    order: 0; justify-content: flex-start; align-items: center; gap: 20px; margin: 0 0 12px;
    line-height: 22px; color: #272727; font-size: 13px;
  }
  #md-feature-layer .md-public-author-info .md-author-stats > div {
    display: flex; flex-direction: row; align-items: baseline; gap: 5px;
    color: #272727; font-size: 12px; white-space: nowrap;
  }
  #md-feature-layer .md-author-stats > div:nth-child(3) { order: -1; }
  #md-feature-layer .md-public-author-info .md-author-stats strong {
    display: inline; margin: 0; color: #161616; font-size: 17px; line-height: 22px;
  }
  #md-feature-layer .md-public-author-info > p {
    order: 1; margin: 0 0 14px; color: #252525; font-size: 13px; line-height: 20px;
    font-weight: 600; white-space: normal; overflow-wrap: anywhere;
  }
  #md-feature-layer .md-public-author-info .md-public-author-actions {
    order: 2; display: flex; gap: 7px; margin: 0; width: 100%;
  }
  #md-feature-layer .md-public-author-info .md-public-author-actions button {
    flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 0;
    border-radius: 5px; background: #4c4c4c; color: #fff; font-size: 13px; font-weight: 500;
  }
  #md-feature-layer .md-public-author .md-author-works-heading {
    display: block; margin: 0 16px 12px; padding: 0 0 8px;
    color: #161616; border: 0; font-size: 14px; line-height: 22px; position: relative;
  }
  #md-feature-layer .md-public-author .md-author-works-heading:after {
    content: ''; display: block; position: absolute; left: 0; bottom: 0;
    width: 23px; height: 3px; background: #ebcf65; border-radius: 2px;
  }
  #md-feature-layer .md-public-author .md-author-works {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px;
    padding: 0 16px; margin: 0;
  }
  #md-feature-layer .md-public-author .md-author-work {
    display: block; margin: 0; padding: 0; border: 0; border-radius: 5px; overflow: hidden;
    aspect-ratio: 3 / 4; background: #eee;
  }
  #md-feature-layer .md-public-author .md-author-work img {
    display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4;
    object-fit: cover; border-radius: 5px;
  }
  #md-feature-layer .md-author-work .md-author-work-title { display: none; }
  #md-feature-layer .md-author-work .md-author-work-metrics {
    display: flex; align-items: center; justify-content: space-between; gap: 4px;
  }
  #md-feature-layer .md-author-status { margin: 12px 16px; font-size: 13px; color: #777; }
}
