/* Archive pages and square imagery */
.site-logo{width:160px;height:68px;object-fit:contain}.brand:has(.site-logo)>span{display:none}.footer .site-logo{width:210px;height:auto}.ruler-card>.ruler-image-frame>img,.era-card,.profile-portrait,.kingdom-image,.profile-gallery figure>a,.related-rulers img,.relation-photo,.relation-initial,.era-map img,.author>img,.feature-grid img,.story-banner>img{aspect-ratio:1/1;height:auto;max-height:none;object-fit:cover}.era-card{height:auto}.ruler-card>.ruler-image-frame>img{width:100%;object-position:center top}.profile-heading{padding-top:30px}.profile-breadcrumb{display:flex;flex-wrap:wrap;gap:8px 12px;font-size:10px;color:var(--muted);padding-bottom:30px}.profile-breadcrumb a:hover{color:var(--green)}.profile-hero{display:grid;grid-template-columns:260px 1fr;align-items:center;gap:55px;background:#eeece2;padding:35px}.profile-portrait{width:100%;object-fit:cover;object-position:top}.profile-hero h1{font-size:clamp(35px,4vw,57px);letter-spacing:-1.6px;margin-bottom:18px}.profile-hero .eyebrow{font-size:9px;margin-bottom:12px}.profile-dates{font-family:var(--serif);font-size:23px;color:#987a49;margin-bottom:18px}.profile-tags{display:flex;flex-wrap:wrap;gap:9px}.profile-tags>*{font-size:10px;border:1px solid #cdcfbf;padding:5px 12px;background:#f9f7f166}.profile-caption{font-size:12px;margin-top:20px;margin-bottom:0}.detail-experience{padding-bottom:70px}.profile-tabs{display:flex;overflow-x:auto;gap:25px;border-bottom:1px solid var(--line);margin:25px 0 40px;scrollbar-width:thin}.profile-tabs a{font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:8px;padding:16px 2px;border-bottom:3px solid transparent}.profile-tabs a[aria-current]{border-color:var(--green);color:var(--green);font-weight:600}.profile-tabs small{font-size:9px;background:#e8e6da;padding:1px 6px;border-radius:20px}.profile-tabs a[aria-current] small{background:var(--green);color:#f2ecd9}.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:50px;align-items:start;scroll-margin-top:30px}.profile-panel{min-width:0}.panel-heading{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:30px}.panel-heading .eyebrow{font-size:9px;margin-bottom:10px}.panel-heading h2{font-size:35px;margin:0}.profile-facts{display:grid;grid-template-columns:1fr 1fr;margin:0 0 35px;border:1px solid var(--line);background:#eeece144}.profile-facts>div{padding:15px 20px;border-bottom:1px solid var(--line)}.profile-facts dt{font-size:10px;color:#8e7549;letter-spacing:.3px;margin-bottom:6px}.profile-facts dd{font-size:13px;margin:0}.profile-panel .prose{font-size:14px}.profile-panel .prose p{white-space:normal}.profile-sidebar .reading-aside{padding:25px}.profile-sidebar .reading-aside .eyebrow{font-size:8px}.profile-sidebar .reading-aside img{width:100%;height:auto;max-height:none;object-fit:contain}.profile-sidebar .reading-aside h3{font-size:24px}.profile-sidebar .reading-aside .button{font-size:11px;padding-inline:15px}.related-rulers,.book-page-references,.era-map{border:1px solid var(--line);margin-top:25px;padding:20px}.related-rulers>.eyebrow,.book-page-references>.eyebrow,.era-map>.eyebrow{font-size:8px;margin-bottom:15px}.related-rulers>a{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:14px 0;font-size:11px;line-height:1.6}.related-rulers>a:last-child{padding-bottom:0}.related-rulers img{width:52px;flex-shrink:0;object-position:top}.related-rulers small{display:block;font-size:8px;color:var(--muted);margin-top:3px}.related-rulers b{margin-left:auto;font-size:13px;font-weight:400}.book-page-references p{display:flex;justify-content:space-between;gap:15px;font-size:11px;margin:0;padding:8px 0;border-top:1px solid var(--line)}.book-page-references b{font-weight:500;color:var(--green)}.era-map img{width:100%;object-fit:contain;background:#ebe8dc}.empty-records{background:#eeece2;padding:45px 25px;text-align:center;margin-bottom:25px}.empty-records>span{font-size:38px;color:#9c7f49}.empty-records h3{font-size:24px;margin:16px 0}.empty-records p{font-size:12px;margin-bottom:0}.family-book-promo{display:grid;grid-template-columns:160px 1fr;gap:25px;background:#eeece2;padding:25px;margin-bottom:35px;align-items:center}.family-book-promo>img{aspect-ratio:1;width:100%;object-fit:contain;background:#f8f6ed}.family-book-promo h3{font-size:24px;margin-bottom:12px}.family-book-promo p{font-size:12px}.relation-list{list-style:none;margin:0;padding:0}.relation-list>li{border-top:1px solid var(--line);padding:18px 0}.relation-person{display:flex;gap:17px;align-items:center}.relation-photo,.relation-initial{width:65px;flex:0 0 65px;background:#e9e6da}.relation-photo>img{aspect-ratio:1;width:100%;object-fit:cover;object-position:top}.relation-initial{display:grid;place-items:center;font-family:var(--serif);font-size:28px;color:#9a7e4b}.relation-person .eyebrow{margin:0 0 6px;font-size:8px}.relation-person strong,.relation-person a{font-weight:500;font-size:14px}.relation-person p{font-size:11px;margin:5px 0 0}.relation-list .relation-list{margin:15px 0 0 32px;border-left:1px solid #c9c9b9;padding-left:20px}.relation-list .relation-list .relation-photo,.relation-list .relation-list .relation-initial{width:48px;flex-basis:48px}.works-list>article{display:grid;grid-template-columns:42px minmax(0,1fr);gap:20px;border-bottom:1px solid var(--line);padding:0 0 24px;margin-bottom:25px}.work-number{font-family:var(--serif);color:#a18450;font-size:26px}.works-list h3{font-size:26px;margin-bottom:12px}.works-list .prose p{font-size:13px;margin-bottom:12px}.works-list .text-link{margin-bottom:15px;white-space:normal}.profile-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:35px 22px}.profile-gallery figure{margin:0;min-width:0}.profile-gallery figure>a{position:relative;display:block;overflow:hidden;background:#eeece2}.profile-gallery figure>a img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.profile-gallery figure>a:hover img{transform:scale(1.03)}.profile-gallery figure>a>span{position:absolute;bottom:10px;right:10px;padding:6px 10px;background:#f9f7f1e8;font-size:9px}.profile-gallery figcaption h3{font-size:24px;margin:20px 0 13px}.profile-gallery figcaption .prose{font-size:12px;line-height:1.9}.video-entry{margin-bottom:40px;padding-bottom:30px;border-bottom:1px solid var(--line)}.video-entry h3{font-size:26px}.video-entry iframe{width:100%;aspect-ratio:16/9;border:0;background:#172d24}.video-entry .prose{margin-top:20px}.era-rulers{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.era-rulers .ruler-card>.ruler-image-frame>img{width:100%;aspect-ratio:1}.era-rulers .ruler-card h3{font-size:20px}.era-list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px}.era-list-toolbar nav{display:flex;gap:20px;font-size:11px}.era-list-toolbar nav [aria-current]{border-bottom:1px solid #9b804d;color:#98743b}.kingdom-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:35px 30px}.kingdom-entry{display:grid;grid-template-columns:170px minmax(0,1fr);gap:24px;border-bottom:1px solid var(--line);padding-bottom:30px;align-items:start}.kingdom-image{display:block;overflow:hidden}.kingdom-image img{width:100%;height:100%;aspect-ratio:1;object-fit:cover;transition:transform .3s}.kingdom-image:hover img{transform:scale(1.04)}.kingdom-entry .eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:9px}.kingdom-entry h2{font-size:27px;letter-spacing:-.5px;margin-bottom:13px}.kingdom-entry p{font-size:11px;line-height:1.9;margin-bottom:13px}.kingdom-entry .text-link{font-size:10px}.source-reference{border:1px solid var(--line);padding:20px;margin-top:15px}.source-reference p{font-size:12px;margin-bottom:0}html[lang=si] .profile-hero h1{font-size:40px;line-height:1.5}html[lang=si] .profile-tabs a{font-size:12px}html[lang=si] .kingdom-entry h2{font-size:24px}html[lang=si] .profile-caption{line-height:2}
@media(max-width:1150px){.kingdom-entry{grid-template-columns:130px minmax(0,1fr);gap:20px}.profile-layout{gap:30px;grid-template-columns:minmax(0,1fr) 250px}.profile-hero{grid-template-columns:220px 1fr;gap:35px}.profile-tabs{gap:22px}.era-rulers{grid-template-columns:repeat(2,minmax(0,1fr))}.site-logo{width:145px}}
@media(max-width:900px){.profile-layout{grid-template-columns:minmax(0,1fr) 220px;gap:25px}.profile-hero{grid-template-columns:200px 1fr;gap:30px;padding:25px}.profile-hero h1{font-size:37px}.kingdom-list{grid-template-columns:1fr}.kingdom-entry{grid-template-columns:200px 1fr}.profile-facts{grid-template-columns:1fr}.family-book-promo{grid-template-columns:1fr}.family-book-promo>img{max-width:200px}.profile-tabs{gap:21px}.profile-gallery{grid-template-columns:1fr}.profile-sidebar .reading-aside{padding:20px}.profile-sidebar .reading-aside h3{font-size:22px}.site-logo{height:60px;width:145px}}
@media(max-width:600px){.profile-heading{padding-top:20px}.profile-breadcrumb{font-size:9px;padding-bottom:20px}.profile-hero{grid-template-columns:100px minmax(0,1fr);gap:20px;padding:20px}.profile-hero .eyebrow{font-size:7px;letter-spacing:1px;margin-bottom:7px}.profile-hero h1{font-size:29px;letter-spacing:-.8px;margin-bottom:12px}.profile-dates{font-size:16px;margin-bottom:12px}.profile-tags>*{font-size:9px;padding:4px 8px}.profile-caption{display:none}.profile-tabs{margin:15px 0 25px;gap:22px}.profile-tabs a{font-size:11px;padding-block:14px}.profile-tabs small{font-size:8px}.profile-layout{grid-template-columns:1fr;gap:35px}.profile-facts{grid-template-columns:1fr 1fr}.profile-facts>div{padding:13px}.profile-facts dt{font-size:9px}.profile-facts dd{font-size:11px}.panel-heading{margin-bottom:22px}.panel-heading h2{font-size:29px}.profile-panel .prose{font-size:13px}.profile-sidebar{display:grid;grid-template-columns:1fr;gap:20px}.profile-sidebar .reading-aside img{max-width:260px;margin-inline:auto}.profile-sidebar .reading-aside{padding:25px}.related-rulers,.book-page-references,.era-map{margin-top:0}.profile-gallery{grid-template-columns:1fr}.family-book-promo{grid-template-columns:100px 1fr;gap:15px;padding:18px}.family-book-promo h3{font-size:20px}.family-book-promo p{font-size:11px}.family-book-promo .text-link{font-size:10px}.relation-photo,.relation-initial{width:55px;flex-basis:55px}.relation-person{gap:12px}.relation-person strong,.relation-person a{font-size:12px}.relation-list .relation-list{margin-left:15px;padding-left:15px}.works-list>article{grid-template-columns:28px minmax(0,1fr);gap:13px}.works-list h3{font-size:23px}.work-number{font-size:22px}.era-list-toolbar{align-items:start;flex-direction:column;gap:0;margin-bottom:25px}.era-list-toolbar .result-count{margin-block:25px 12px}.era-list-toolbar nav{font-size:10px}.kingdom-list{gap:25px}.kingdom-entry{grid-template-columns:115px minmax(0,1fr);gap:19px;padding-bottom:25px}.kingdom-entry h2{font-size:25px}.kingdom-entry p{font-size:11px}.kingdom-entry .eyebrow{font-size:7px}.kingdom-entry .text-link{font-size:9px}.era-rulers .ruler-card h3{font-size:19px}.site-logo{width:140px;height:57px}.footer .site-logo{width:200px;height:84px}html[lang=si] .profile-hero h1{font-size:25px;letter-spacing:-.5px}html[lang=si] .profile-tabs a{font-size:11px}html[lang=si] .kingdom-entry h2{font-size:21px}html[lang=si] .family-book-promo h3{font-size:18px}html[lang=si] .era-rulers h3{font-size:17px}.feature-grid img,.author>img,.story-banner>img{aspect-ratio:1;height:auto}.era-card,.ruler-card>.ruler-image-frame>img{height:auto;aspect-ratio:1}.story-banner>img{min-height:0}}
.book-art>img,.sample img,.book-illustrations img{aspect-ratio:1;object-fit:contain}.book-illustrations img{width:100%;height:auto}.feature-grid img{max-height:none}.story-banner>img{min-height:0}.profile-facts{overflow-wrap:anywhere}.relation-list{overflow-wrap:anywhere}.profile-panel .prose{overflow-wrap:anywhere}

.profile-gallery.gallery-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card-grid figcaption p {
  margin-bottom: 8px;
}

.gallery-card-grid figcaption .text-link {
  white-space: normal;
}

.gallery-photo-detail {
  max-width: 960px;
}

.gallery-photo-detail header {
  margin-block: 20px;
}

.gallery-photo-detail header .eyebrow {
  margin-bottom: 8px;
}

.gallery-photo-detail h1 {
  margin-bottom: 0;
}

.gallery-photo-detail > img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  object-position: left center;
}

.gallery-photo-detail .prose {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .profile-gallery.gallery-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .profile-gallery.gallery-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gallery-associations {
  margin-block: 12px;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.gallery-associations ul {
  margin: 4px 0 0;
  padding-inline-start: 18px;
}

.gallery-associations a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gallery-associations li p {
  margin-block: 4px 10px;
}


.profile-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-bottom: 16px;
}
.profile-topline .profile-breadcrumb { padding-bottom: 0; }
.profile-neighbors {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-inline-start: auto;
}
.profile-neighbor {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--green);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.profile-neighbor:hover { border-color: var(--green); }
.profile-neighbors strong { font-weight: 600; }
.profile-neighbor-next { text-align: right; }

.family-book-promo {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: clamp(12px, 2vw, 24px);
}

.family-tree-image img {
  width: 100%;
  height: auto;
}

.family-book-promo p {
  font-size: 1rem;
  line-height: 1.75;
}
