.has-profile-wall {
  position: relative;
  overflow: hidden;
  background: #f8f1e2;
}

.has-profile-wall .whitmore-heading { margin-bottom: 2.75rem; }

.has-profile-wall .whitmore-heading p:last-child::after {
  content: " Select a portrait to meet each family member.";
  display: block;
  margin-top: .55rem;
  color: #5b2f19;
  font-style: italic;
}

.whitmore-wall {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 4rem 5rem;
  border: 1px solid #bfae8f;
  background-color: #f3ead9;
  background-image:
    linear-gradient(rgba(255, 252, 244, .5), rgba(238, 224, 199, .16)),
    repeating-linear-gradient(45deg, rgba(164, 139, 101, .045) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(164, 139, 101, .035) 0 1px, transparent 1px 26px);
  background-size: auto, 52px 52px, 52px 52px;
  background-position: center;
  background-repeat: repeat;
  box-shadow:
    inset 0 -20px 0 #d1bd97,
    inset 0 -24px 0 #886845,
    0 24px 58px rgba(59, 42, 23, .13);
}

.whitmore-wall::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 4px;
  background: #f1e4ca;
  box-shadow: 0 -1px 0 #b69e77;
  pointer-events: none;
}

.wall-family-row {
  display: grid;
  grid-template-columns: minmax(95px, .72fr) minmax(460px, 3.2fr) minmax(95px, .72fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  max-width: 1000px;
  margin: 0 auto 3.8rem;
}

.wall-portrait-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
}

.wall-frame {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  color: #2d231d;
  background: transparent;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

.wall-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #9f7b43;
  border-radius: 2px;
  background: #e9dcc2;
  box-shadow: 0 10px 22px rgba(48, 34, 21, .23);
}

.wall-frame:not(.wall-frame-family) img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.wall-nameplate {
  display: inline-block;
  max-width: calc(100% - 1rem);
  margin: -.18rem auto 0;
  padding: .42rem .72rem .38rem;
  border: 1px solid #9d7a45;
  border-radius: 2px;
  color: #3f2a18;
  background: linear-gradient(#e8cf92, #c99f52);
  box-shadow: 0 4px 8px rgba(48, 34, 21, .18);
  font: 700 clamp(.72rem, 1.4vw, .88rem)/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: .025em;
}

.wall-frame:hover,
.wall-frame:focus-visible {
  filter: brightness(1.025);
  transform: translateY(-4px);
}

.wall-frame:focus-visible {
  outline: 3px solid #234a78;
  outline-offset: 7px;
}

.wall-art {
  margin: 0;
  padding: .45rem;
  border: 5px solid #775536;
  outline: 1px solid #b99a68;
  background: #eadcbe;
  box-shadow: 0 9px 19px rgba(48, 34, 21, .2);
}

.wall-art img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid #c7af84;
}

.whitmore-profile-dialog {
  width: min(880px, calc(100% - 2rem));
  overflow: visible;
  border: 1px solid #bda273;
  background: #fffaf0;
}

.whitmore-profile-shell {
  position: relative;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: clamp(1.2rem, 4vw, 2.7rem);
  background: radial-gradient(circle at 100% 0, rgba(35, 74, 120, .1), transparent 18rem), #fffaf0;
}

.whitmore-profile-close {
  position: absolute;
  z-index: 2;
  top: .8rem;
  right: .8rem;
  width: 42px;
  height: 42px;
  border: 1px solid #bda273;
  border-radius: 50%;
  color: #101c32;
  background: #fffdf7;
  cursor: pointer;
  font-size: 1.1rem;
}

.whitmore-profile-layout {
  display: grid;
  grid-template-columns: minmax(210px, .82fr) 1.18fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.2rem);
}

.whitmore-profile-layout figure { margin: 0; }

.whitmore-profile-layout img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 590px;
  object-fit: contain;
  border: 1px solid #a98954;
  box-shadow: 0 16px 34px rgba(48, 34, 21, .2);
}

.whitmore-profile-copy .kicker { color: #9a6c24; }

.whitmore-profile-copy h3 {
  margin: .3rem 0 .6rem;
  color: #101c32;
  font: 500 clamp(2.25rem, 5vw, 4rem)/.96 Georgia, "Times New Roman", serif;
}

.whitmore-profile-role {
  margin: 0 0 1.15rem;
  color: #5b2f19;
  font: italic 1.08rem/1.45 Georgia, "Times New Roman", serif;
}

.whitmore-profile-bio {
  margin: 0;
  color: #615448;
  font: 1.08rem/1.72 Georgia, "Times New Roman", serif;
}

@media (max-width: 900px) {
  .whitmore-wall { padding: 4rem 2.4rem 4.5rem; }

  .wall-family-row {
    grid-template-columns: 1fr 3fr 1fr;
    gap: 1.25rem;
    margin-bottom: 3.2rem;
  }

  .wall-portrait-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.8rem 1.5rem;
  }
}

@media (max-width: 620px) {
  .whitmore-wall { padding: 3rem .85rem 3.8rem; }
  .wall-family-row { display: block; margin-bottom: 2.7rem; }
  .wall-art { display: none; }
  .wall-portrait-row { gap: 2.3rem .7rem; }

  .wall-nameplate {
    padding: .36rem .4rem .32rem;
    font-size: .7rem;
  }

  .whitmore-profile-dialog { width: 100%; }

  .whitmore-profile-shell {
    height: 100dvh;
    max-height: none;
    padding: 4.2rem 1rem 2rem;
  }

  .whitmore-profile-layout { grid-template-columns: 1fr; }

  .whitmore-profile-layout figure {
    width: min(72vw, 330px);
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wall-frame { transition: none; }
}
