/*
 * Public artist/model profile polish — 2.6.6
 * Deliberately scoped to .lag-profile-page so account/management screens stay unchanged.
 */
.lag-profile-page{
  padding-top:clamp(24px,4vw,52px);
}

.lag-profile-page .lag-profile-header{
  grid-template-columns:minmax(220px,340px) minmax(0,1fr);
  gap:clamp(28px,6vw,86px);
  align-items:start;
  margin:28px 0 clamp(54px,7vw,86px);
}

.lag-profile-page .lag-profile-portrait{
  min-width:0;
}

.lag-profile-page .lag-profile-portrait img,
.lag-profile-page .lag-profile-portrait .lag-placeholder{
  display:block;
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  background:var(--lag-surface,#f4f0e8);
}

.lag-profile-page .lag-profile-header h1{
  max-width:900px;
  margin:.08em 0 .18em;
  font-size:clamp(42px,6.3vw,78px);
  line-height:.98;
}

.lag-profile-page .lag-kicker{
  margin-top:4px;
}

.lag-profile-page .lag-profile-bio{
  max-width:720px;
  margin-top:22px;
  font-size:clamp(17px,1.65vw,20px);
  line-height:1.62;
}

.lag-profile-page .lag-profile-bio p{
  margin:0 0 .8em;
}

.lag-profile-page .lag-profile-header p{
  max-width:720px;
  line-height:1.55;
}

.lag-profile-page .lag-profile-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  margin-top:22px;
}

.lag-profile-page .lag-profile-links a{
  text-decoration:none;
  border-bottom:1px solid currentColor;
  padding-bottom:2px;
}

.lag-profile-page .lag-panel{
  margin:0;
  padding:clamp(28px,4vw,46px) 0 clamp(46px,6vw,72px);
  border-top:1px solid rgba(0,0,0,.16);
}

.lag-profile-page .lag-panel h2{
  margin:0 0 clamp(20px,3vw,34px);
  font-size:clamp(28px,4vw,46px);
  line-height:1.05;
}

.lag-profile-page .lag-model-stats .lag-stat-row{
  max-width:760px;
  font-size:16px;
  line-height:1.55;
}

.lag-profile-page .lag-model-stats .lag-stat-row>strong{
  display:inline-block;
  margin-right:8px;
  font-size:clamp(32px,4vw,48px);
  font-weight:500;
  line-height:1;
}

.lag-profile-page .lag-model-gallery{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(10px,1.5vw,18px);
}

.lag-profile-page .lag-model-gallery img{
  aspect-ratio:4/5;
  object-fit:cover;
}

/* A public portfolio benefits from slightly larger works than the global gallery. */
.lag-profile-page .lag-art-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:32px clamp(14px,2vw,24px);
}

.lag-profile-page .lag-art-card .lag-art-body{
  padding-top:12px;
}

.lag-profile-page .lag-art-card .lag-art-body h3{
  font-size:clamp(18px,1.8vw,22px);
  line-height:1.18;
}

.lag-profile-page .lag-session-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

@media(max-width:900px){
  .lag-profile-page .lag-profile-header{
    grid-template-columns:minmax(190px,280px) minmax(0,1fr);
    gap:32px;
  }
  .lag-profile-page .lag-art-grid,
  .lag-profile-page .lag-session-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:640px){
  .lag-profile-page{
    padding-left:16px;
    padding-right:16px;
  }
  .lag-profile-page .lag-profile-header{
    grid-template-columns:1fr;
    gap:24px;
    margin-top:18px;
  }
  .lag-profile-page .lag-profile-portrait{
    width:min(76vw,360px);
  }
  .lag-profile-page .lag-profile-header h1{
    font-size:clamp(40px,13vw,62px);
  }
  .lag-profile-page .lag-profile-bio{
    margin-top:18px;
  }
  .lag-profile-page .lag-art-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px 10px;
  }
  .lag-profile-page .lag-session-grid{
    grid-template-columns:1fr;
  }
  .lag-profile-page .lag-model-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* 2.7.16 — final public profile/mobile polish. */
.lag-profile-page,
.lag-profile-page *{
  box-sizing:border-box;
}

.lag-profile-page .lag-profile-header > *,
.lag-profile-page .lag-art-card,
.lag-profile-page .lag-session-card{
  min-width:0;
}

.lag-profile-page .lag-profile-header h1,
.lag-profile-page .lag-profile-bio,
.lag-profile-page .lag-profile-links,
.lag-profile-page .lag-art-body h3{
  overflow-wrap:anywhere;
}

.lag-profile-page .lag-profile-links a{
  display:inline-flex;
  min-height:38px;
  align-items:center;
}

.lag-profile-page .lag-model-gallery a{
  display:block;
  min-width:0;
}

.lag-profile-page .lag-model-gallery img{
  display:block;
  width:100%;
  height:auto;
}

.lag-profile-page .lag-art-card img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
}

.lag-profile-page .lag-art-card a:focus-visible,
.lag-profile-page .lag-profile-links a:focus-visible,
.lag-profile-page .lag-session-card a:focus-visible{
  outline:2px solid currentColor;
  outline-offset:3px;
}

@media(max-width:640px){
  .lag-profile-page .lag-profile-header{
    margin-bottom:42px;
  }

  .lag-profile-page .lag-profile-portrait{
    width:min(100%,360px);
  }

  .lag-profile-page .lag-profile-links{
    gap:4px 14px;
    margin-top:18px;
  }

  .lag-profile-page .lag-panel{
    padding-top:24px;
    padding-bottom:42px;
  }

  .lag-profile-page .lag-art-card .lag-art-body{
    padding-top:8px;
  }

  .lag-profile-page .lag-art-card .lag-art-body h3{
    margin-top:0;
    font-size:17px;
  }
}

@media(max-width:390px){
  .lag-profile-page .lag-art-grid{
    grid-template-columns:1fr;
    gap:24px;
  }
}


/* 2.7.18 — profile now lives inside the site's normal page template. */
body.ela-integrated-public-profile .entry-content > .lag-profile-page,
body.ela-integrated-public-profile .wp-block-post-content > .lag-profile-page,
body.ela-integrated-public-profile main .lag-profile-page{
  width:100%;
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}

body.ela-integrated-public-profile .entry-content > .lag-profile-page,
body.ela-integrated-public-profile .wp-block-post-content > .lag-profile-page{
  padding-left:0;
  padding-right:0;
}

/* The theme owns the page title; the profile card owns the public name.
   Hide only a duplicate outer page title if the theme prints the synthetic
   WordPress Page title above the profile content. */
body.ela-integrated-public-profile .wp-block-post-title,
body.ela-integrated-public-profile main > article > header.entry-header .entry-title{
  display:none;
}

@media(max-width:720px){
  body.ela-integrated-public-profile .entry-content > .lag-profile-page,
  body.ela-integrated-public-profile .wp-block-post-content > .lag-profile-page,
  body.ela-integrated-public-profile main .lag-profile-page{
    max-width:100%;
  }
}
