
.about-band { display:grid; gap:clamp(24px, 3vw, 40px); align-items:start }
.portrait-slot { width:128px; aspect-ratio:4/5; display:grid; place-items:center; padding:12px; border-radius:14px; background:#17263a; color:#f8fbff; text-align:center; font-weight:600 }
@media (min-width:62rem) { .about-band { grid-template-columns:minmax(0, 1fr) 200px; max-width:54rem } .portrait-slot { width:200px } }
.portrait-slot {position:relative; overflow:hidden; padding:0}
.portrait-slot img {position:absolute; width:222%; max-width:none; height:auto; top:-104%; left:-58%}

.portrait-slot { border:0; cursor:zoom-in; font:inherit }
.portrait-slot span { position:absolute; inset:auto 0 0; padding:8px 4px; background:#17263a; color:white; font-size:.82rem }
.portrait-slot:focus-visible, .portrait-gallery button:focus-visible { outline:3px solid #456fff; outline-offset:3px }
.portrait-gallery { width:min(50rem, calc(100% - 24px)); max-height:calc(100dvh - 24px); margin:auto; padding:16px; color:#f8fbff; background:#17263a; border:1px solid #536783; border-radius:14px }
.portrait-gallery::backdrop { background:#0a1424d9 }
.gallery-head,.gallery-controls { display:flex; align-items:center; justify-content:space-between; gap:10px }
.gallery-head h2 { margin:0; font-size:1.2rem }
.portrait-gallery button { font:inherit; min-width:44px; min-height:44px; padding:6px 12px; background:#263951; border:1px solid #879ab5; color:white; border-radius:8px; cursor:pointer }
.gallery-full { display:block; width:100%; height:min(54dvh, 660px); object-fit:contain; margin:12px auto; background:#0c1728 }
.gallery-thumbs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:12px 0 0; padding:0 }
.gallery-thumbs button { min-width:0; padding:3px }
.gallery-thumbs button[aria-current="true"] { border:2px solid #a8c4ff }
.gallery-thumbs img { display:block; width:100%; height:58px; object-fit:contain }

#experience .section-head {
  grid-template-columns: minmax(0,1fr);
  justify-items: start;
  gap: .5rem;
  margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}
#experience .section-head p { justify-self: start }
#experience .about-band {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-areas: "intro" "portrait" "detail";
  gap: 1.375rem;
  align-items: start;
  max-width: 65rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.about-intro { grid-area: intro }
.about-detail { grid-area: detail }
.about-detail p + p { margin-top: 1.15em }
.portrait-choice { grid-area: portrait; min-width: 0 }
.portrait-slot {
  display:grid; text-decoration:none; width: min(100%, 11rem);
  border:1px solid var(--color-rule);
}
.portrait-slot span {
  min-height: 44px; display:grid; place-items:center;
  font-size:.875rem; line-height:1.25; text-align:center;
}
.portrait-slot img { left: -42%; top: -92%; width: 218% }
@media (min-width: 52rem) {
  #experience .about-band {
    grid-template-columns: minmax(0, 42rem) minmax(11rem, 14rem);
    grid-template-areas: "intro portrait" "detail portrait";
    column-gap: clamp(2rem, 5vw, 4.5rem);
    row-gap: 1.25rem;
  }
  #experience .portrait-slot { width: 100% }
}

.portrait-gallery:not([open]) { display:none }
@media (forced-colors: active) { .portrait-gallery button[aria-current="true"] { outline:2px solid Highlight } }
@media (max-width: 61.99rem) { .contact-links .europass-download { grid-column:1/-1 } }
.contact-links .europass-download a { white-space:normal }
@media (max-height: 34rem) { .gallery-full { height:44dvh } }
