/* Taidealusta – turvallinen CSS-kerros alkuperäiselle profiilisivulle. */
/* Rajattu body-luokalla. Ei HTML:n korvaamista, ei kosketa teosten tietoja. */
body.ta-editorial-profile-2026 {
  --tae-ink: #202b29;
  --tae-text: #46504b;
  --tae-accent: #853e51;
  --tae-accent-hover: #682d40;
  --tae-paper: #f8f6f1;
  --tae-card: #fff;
  --tae-rule: #e4ddd4;
  --tae-muted: #66716b;
}
body.ta-editorial-profile-2026 .ta-profile {
  color: var(--tae-ink);
  --ta-accent: var(--tae-accent);
  max-width: 1240px;
  margin-inline: auto;
  font-family: var(--wp--preset--font-family--inter, Inter, system-ui, -apple-system, sans-serif);
  line-height: 1.6;
}
body.ta-editorial-profile-2026 .ta-profile * { box-sizing: border-box; }
body.ta-editorial-profile-2026 .ta-profile :is(h1,h2,h3) {
  color: var(--tae-ink);
  font-family: var(--wp--preset--font-family--newsreader, Newsreader, Georgia, serif);
  font-weight: 600;
  letter-spacing: -.025em;
}
body.ta-editorial-profile-2026 .ta-profile a:focus-visible,
body.ta-editorial-profile-2026 .ta-profile :is(button,summary,input):focus-visible {
  outline: 3px solid #236a75;
  outline-offset: 3px;
}
/* Kansikuva ja profiilikortti */
body.ta-editorial-profile-2026 .ta-profile .ta-profile-hero {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-bottom: clamp(28px,5vw,64px);
  overflow: visible;
}
body.ta-editorial-profile-2026 .ta-profile .ta-cover {
  position: relative;
  height: clamp(230px, 31vw, 440px);
  background: linear-gradient(120deg,#273834 5%,#71645b 80%);
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
body.ta-editorial-profile-2026 .ta-profile .ta-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.ta-editorial-profile-2026 .ta-profile .ta-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,rgba(16,31,30,.34),rgba(16,31,30,.05) 80%);
}
body.ta-editorial-profile-2026 .ta-profile .ta-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px,2vw,28px);
  position: relative;
  z-index: 1;
  margin: -58px clamp(14px,2.2vw,32px) 0;
  padding: 28px clamp(20px,3vw,42px);
  background: var(--tae-card);
  border: 1px solid var(--tae-rule);
  border-radius: 9px 9px 0 0;
  box-shadow: 0 22px 55px rgba(34,37,30,.1);
}
body.ta-editorial-profile-2026 .ta-profile .ta-profile-avatar {
  flex: 0 0 112px;
  margin-top: 0;
}
body.ta-editorial-profile-2026 .ta-profile .ta-profile-avatar img {
  display: block;
  width: 112px;
  height: 112px;
  border: 4px solid white;
  box-shadow: 0 5px 24px rgba(26,38,31,.18);
}
body.ta-editorial-profile-2026 .ta-profile .ta-identity > div:last-child { padding-top: 0; flex: 1 1 290px; }
body.ta-editorial-profile-2026 .ta-profile .ta-eyebrow {
  display: block;
  color: var(--tae-accent);
  font: 700 11px/1.35 var(--wp--preset--font-family--inter, Inter,system-ui,sans-serif);
  letter-spacing: .16em;
  margin-bottom: 9px;
}
body.ta-editorial-profile-2026 .ta-profile .ta-identity #ta-name {
  font-size: clamp(30px,3.5vw,44px);
  line-height: 1.08;
  margin: 0 0 14px;
}
body.ta-editorial-profile-2026 .ta-profile .ta-badges { margin: 0 0 9px; }
body.ta-editorial-profile-2026 .ta-profile .ta-badges span {
  background: #f4eceb;
  border: 1px solid #ecdfdf;
  color: #82374d;
  font-size: 13px;
  padding: 4px 12px;
}
body.ta-editorial-profile-2026 .ta-profile .ta-techniques {
  font-size: 14px;
  color: var(--tae-text);
  line-height: 1.55;
}
body.ta-editorial-profile-2026 .ta-profile .ta-section-nav {
  margin-inline: clamp(14px,2.2vw,32px);
  padding: 0 clamp(20px,3vw,42px);
  background: white;
  border: 1px solid var(--tae-rule);
  border-top: 0;
  border-radius: 0 0 9px 9px;
  box-shadow: 0 12px 40px rgba(34,37,30,.06);
  gap: clamp(16px,3vw,34px);
}
body.ta-editorial-profile-2026 .ta-profile .ta-section-nav a {
  padding: 17px 0 15px;
  text-decoration: none;
  color: var(--tae-ink);
  font-size: 14px;
  font-weight: 650;
}
body.ta-editorial-profile-2026 .ta-profile .ta-section-nav a:hover,
body.ta-editorial-profile-2026 .ta-profile .ta-section-nav a:focus-visible { color: var(--tae-accent); border-bottom-color: var(--tae-accent); }
/* Elämäntarina ilmavasti, alkuperäiset painikkeet ja muokkaustoiminnot mukana */
body.ta-editorial-profile-2026 .ta-profile .ta-intro {
  padding: clamp(25px,4.5vw,64px) clamp(24px,5vw,74px);
  background: var(--tae-paper);
  border: 0;
  border-radius: 8px;
  margin: 0 0 clamp(35px,5vw,74px);
}
body.ta-editorial-profile-2026 .ta-profile .ta-intro h2 {
  font-size: clamp(31px,3.3vw,46px);
  line-height: 1.14;
  margin: 0 0 25px;
}
body.ta-editorial-profile-2026 .ta-profile .ta-intro .ta-bio { max-width: 74ch; font-size: 16px; line-height: 1.8; color: var(--tae-text); }
body.ta-editorial-profile-2026 .ta-profile .ta-intro .ta-bio p { margin: 0 0 1.25em; }
body.ta-editorial-profile-2026 .ta-profile .ta-owner-actions a {
  background: #fff; border: 1px solid var(--tae-accent); color: var(--tae-accent);
  padding: 11px 18px; text-decoration: none; border-radius: 7px; font-weight: 650;
}
body.ta-editorial-profile-2026 .ta-profile .ta-owner-actions a:last-child {
  background: var(--tae-accent); color: #fff;
}
/* Teosgalleria: näyttävä typografia ja toisistaan erottuvat taideteoskortit */
body.ta-editorial-profile-2026 .ta-profile .ta-artworks {
  padding: 0 clamp(0px,2vw,16px) clamp(36px,5vw,80px);
  margin: 0 0 30px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
body.ta-editorial-profile-2026 .ta-profile .ta-section-heading { align-items: end; gap: 14px; }
body.ta-editorial-profile-2026 .ta-profile .ta-section-heading h2 {
  font-size: clamp(31px,3.6vw,49px);
  line-height: 1.12;
  margin-bottom: 12px;
}
body.ta-editorial-profile-2026 .ta-profile .ta-section-heading > span { font-size: 14px; color: var(--tae-muted); white-space: nowrap; }
body.ta-editorial-profile-2026 .ta-profile .ta-filters { gap: 9px; margin: 19px 0 27px; }
body.ta-editorial-profile-2026 .ta-profile .ta-filters a {
  min-height: 41px; display:inline-flex; align-items:center; padding: 9px 16px;
  text-decoration:none; font-size: 14px; font-weight: 650;
  border:1px solid #e6e1d9; border-radius: 6px;
  color:var(--tae-ink); background:#f4f0eb;
}
body.ta-editorial-profile-2026 .ta-profile .ta-filters a[aria-current] { color:#fff; background:var(--tae-ink); border-color: var(--tae-ink); }
body.ta-editorial-profile-2026 .ta-profile .ta-art-grid {
  display: block;
  columns: 3 250px;
  column-gap: clamp(14px,2vw,24px);
}
body.ta-editorial-profile-2026 .ta-profile .ta-art-card {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 clamp(14px,2vw,24px);
  padding: 0 0 23px;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid #e0d6cb;
  background: var(--tae-card);
  box-shadow: 0 5px 12px rgba(29,34,30,.085),0 16px 38px rgba(30,34,30,.055);
  transition: box-shadow .18s ease, transform .18s ease;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
 body.ta-editorial-profile-2026 .ta-profile .ta-art-card:hover {
   transform: translateY(-3px);
   box-shadow: 0 9px 19px rgba(29,34,30,.10),0 22px 45px rgba(30,34,30,.09);
 }
}
body.ta-editorial-profile-2026 .ta-profile .ta-art-card > .ta-art-link {
  display: block;
  text-decoration: none;
  color: var(--tae-ink);
}
body.ta-editorial-profile-2026 .ta-profile .ta-art-card .ta-art-image {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: 0;
  margin: 0;
}
body.ta-editorial-profile-2026 .ta-profile .ta-art-card .ta-no-image { width:100%; height:170px; display:grid; place-items:center; background:#f4f0eb; color:var(--tae-muted); }
body.ta-editorial-profile-2026 .ta-profile .ta-art-card h3 {
  padding: 0 22px;
  margin: 17px 0 11px;
  font-size: clamp(21px,2vw,27px);
  line-height: 1.2;
  color: var(--tae-accent);
  overflow-wrap: anywhere;
}
body.ta-editorial-profile-2026 .ta-profile .ta-art-card > p {
  margin: 0 22px 9px;
  color: var(--tae-text);
  font-size: 14px;
  line-height: 1.5;
}
body.ta-editorial-profile-2026 .ta-profile .ta-art-card > p:not(.ta-status):not(.ta-price) {
  margin-top: 8px;
  color: var(--tae-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.ta-editorial-profile-2026 .ta-profile .ta-art-card > p.ta-status {
  border-top: 1px solid var(--tae-rule);
  margin-top: 17px;
  padding-top: 14px;
  color: var(--tae-text);
}
body.ta-editorial-profile-2026 .ta-profile .ta-art-card > p.ta-price {
  color: var(--tae-accent);
  font-size: 17px;
  font-weight: 750;
}
body.ta-editorial-profile-2026 .ta-profile .ta-art-card .ta-inquiry {
  display: block;
  margin: 12px 22px 0;
  padding-top: 13px;
  border-top: 1px solid var(--tae-rule);
  text-decoration: none;
  color: var(--tae-accent);
  font-size: 14px;
  font-weight: 700;
}
body.ta-editorial-profile-2026 .ta-profile .ta-art-card .ta-inquiry:hover { color: var(--tae-accent-hover); text-decoration: underline; }
body.ta-editorial-profile-2026 .ta-profile .ta-gallery-delete { margin-inline:22px; }
body.ta-editorial-profile-2026 .ta-profile .ta-gallery-delete form { max-width:100%; }
body.ta-editorial-profile-2026 .ta-profile .ta-pagination a { font-weight: 650; color: var(--tae-accent); }
/* Kuva-albumi käyttää edelleen alkuperäistä lataus-, poisto- ja zoom-logiikkaa */
body.ta-editorial-profile-2026 .ta-profile .ta-album {
  padding: clamp(28px,4vw,58px) clamp(23px,4vw,54px);
  background: #eee8df;
  border-radius: 8px;
  margin-bottom: 42px;
}
body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-section-heading h2 { font-size: clamp(30px,3.1vw,42px); }
body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}
body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-card {
  border: 1px solid #dcd3c8;
  border-radius: 8px;
  background:#fff;
  box-shadow:0 6px 16px rgba(29,34,30,.075);
}
body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-card>a { background:#fff; }
body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-card img {
  width:100%;
  height:auto;
  max-height: none;
  object-fit:contain;
}
body.ta-editorial-profile-2026 .ta-profile .ta-account-link { padding:15px; text-align:center; }
body.ta-editorial-profile-2026 .ta-profile .ta-account-link a { color:var(--tae-accent); }
body.ta-editorial-profile-2026 .ta-profile section[id] { scroll-margin-top: 100px; }
/* Alkuperäisen teosmodaalin sisäinen toiminta säilyy ennallaan. */
body.ta-editorial-profile-2026 .ta-profile .ta-art-dialog { color: var(--tae-ink); }
/* Tabletit ja puhelimet */
@media (max-width: 900px) {
  body.ta-editorial-profile-2026 .ta-profile .ta-art-grid { columns: 2 240px; }
  body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  body.ta-editorial-profile-2026 .ta-profile .ta-cover { height: 230px; }
  body.ta-editorial-profile-2026 .ta-profile .ta-identity {
    margin: -30px 10px 0;
    padding: 20px 18px;
    gap: 14px;
  }
  body.ta-editorial-profile-2026 .ta-profile .ta-profile-avatar { flex:0 0 78px; margin-top:0; }
  body.ta-editorial-profile-2026 .ta-profile .ta-profile-avatar img { width:78px; height:78px; border-width:3px; }
  body.ta-editorial-profile-2026 .ta-profile .ta-identity > div:last-child { flex:1 1 155px; }
  body.ta-editorial-profile-2026 .ta-profile .ta-identity #ta-name { font-size:30px; }
  body.ta-editorial-profile-2026 .ta-profile .ta-section-nav { margin:0 10px; padding:0 14px; gap:14px; }
  body.ta-editorial-profile-2026 .ta-profile .ta-section-nav a { font-size:13px; padding:14px 0 12px; }
  body.ta-editorial-profile-2026 .ta-profile .ta-intro { padding:27px 21px; }
  body.ta-editorial-profile-2026 .ta-profile .ta-art-grid { columns:1; }
  body.ta-editorial-profile-2026 .ta-profile .ta-artworks { padding:0 8px 42px; }
  body.ta-editorial-profile-2026 .ta-profile .ta-album { padding:29px 18px; }
  body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap:10px; }
  body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-card img { height:auto; }
}
@media (prefers-reduced-motion:reduce) {
  body.ta-editorial-profile-2026 .ta-profile .ta-art-card { transition:none; }
}


/* 1.1.0 — kuva-albumin taitto: yksi kuva ilman suurta tyhjää paneelia.
   Koskee vain alkuperäisen taiteilijasivun ulkoasua. Albumin HTML, zoom,
   lataus- ja poistotoiminnot säilyvät alkuperäisen lisäosan hallinnassa. */
body.ta-editorial-profile-2026 .ta-profile .ta-album {
  background: #f1ebe3;
  border: 1px solid #e5dbcf;
  box-shadow: none;
  padding: clamp(24px,3.5vw,52px);
  margin-block: 25px clamp(30px,5vw,62px);
  min-height: 0;
}
body.ta-editorial-profile-2026 .ta-profile .ta-album > p {
  max-width: 65ch;
  color: var(--tae-text);
  line-height: 1.65;
  margin: 10px 0 20px;
}
body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2.3vw, 27px);
  margin-top: 24px;
}
body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-card {
  margin: 0;
  min-width: 0;
  border: 1px solid #e4d8ca;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 5px 16px rgba(27, 37, 33, .075), 0 17px 35px rgba(27, 37, 33, .04);
}
body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-card > a {
  display: block;
  background: #fff;
}
body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-card > a > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  object-position: center;
  margin: 0;
  background: #fff;
}
body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-card figcaption {
  padding: 15px 18px;
  color: var(--tae-text);
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid var(--tae-rule);
}
body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-delete {
  padding: 8px 18px 17px;
  border-top: 1px solid var(--tae-rule);
}
body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-upload {
  max-width: min(100%, 600px);
  background: #fff;
  border-color: var(--tae-rule);
}
/* Kaksi kuvaa voi jakaa alueen tasaisesti ilman vajaata kolmatta saraketta. */
@supports selector(.ta-album-grid:has(> .ta-album-card:nth-child(2):last-child)) {
  body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-grid:has(> .ta-album-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 850px;
  }
  /* Yksi albumikuva: tekstin ja kuvan näyttävä vierekkäinen editorial-asettelu. */
  body.ta-editorial-profile-2026 .ta-profile .ta-album:has(> .ta-album-grid > .ta-album-card:only-child) {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(260px,36%);
    column-gap: clamp(20px,4vw,58px);
    row-gap: 10px;
    align-items: start;
  }
  body.ta-editorial-profile-2026 .ta-profile .ta-album:has(> .ta-album-grid > .ta-album-card:only-child) > .ta-section-heading {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }
  body.ta-editorial-profile-2026 .ta-profile .ta-album:has(> .ta-album-grid > .ta-album-card:only-child) > p {
    grid-column: 1;
    margin: 4px 0 8px;
  }
  body.ta-editorial-profile-2026 .ta-profile .ta-album:has(> .ta-album-grid > .ta-album-card:only-child) > .ta-album-grid {
    grid-column: 2;
    grid-row: 1 / span 8;
    grid-template-columns: minmax(0,1fr);
    width: 100%;
    margin: 0;
  }
  body.ta-editorial-profile-2026 .ta-profile .ta-album:has(> .ta-album-grid > .ta-album-card:only-child) > .ta-album-upload {
    grid-column: 1;
    margin: 8px 0 0;
  }
}
@media (max-width: 900px) {
  body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  body.ta-editorial-profile-2026 .ta-profile .ta-album {
    display: block !important;
    padding: 25px 18px;
  }
  body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-grid:has(> .ta-album-card:nth-child(2):last-child) {
    grid-template-columns: 1fr;
  }
  body.ta-editorial-profile-2026 .ta-profile .ta-album .ta-album-card > a > img {
    max-height: none;
  }
}
