/* Grouped archive: native controls and full document frames only. */
.gallery-strip.heritage-group-strip{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:7px;
  min-width:0;
  align-items:stretch;
}
.heritage-group-strip>.heritage-group-card{
  display:grid!important;
  text-decoration:none;
  grid-template-rows:minmax(0,1fr) auto auto;
  min-width:0;
  min-height:0;
  height:100px;
  padding:0;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#183725;
  text-align:left;
}
.heritage-group-card>.heritage-group-cover{
  display:block;
  position:relative;
  min-width:0;
  min-height:0;
  height:100%;
  overflow:hidden;
  border:1px solid #526b3424;
  border-radius:7px;
  background:#dddcca;
  transition:border-color .18s,background-color .18s;
}
.heritage-group-cover>img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:none;
  transform:none;
  opacity:1;
}
.heritage-group-card>strong{
  display:block;
  min-width:0;
  margin-top:4px;
  font:650 10px/12px Manrope,Arial,sans-serif;
  overflow-wrap:break-word;
}
.heritage-group-card>small{
  display:block;
  margin-top:2px;
  color:#56634d;
  font:400 8px/10px Manrope,Arial,sans-serif;
}
.heritage-group-strip>.heritage-group-card:hover{
  background:transparent;
  color:#426627;
}
.heritage-group-card:hover>.heritage-group-cover{
  border-color:#5675349c;
  background:#d5d8be;
}
.heritage-group-strip>.heritage-group-card:focus-visible{
  outline:3px solid #426b2c;
  outline-offset:3px;
}
.heritage-group-cover .heritage-count{
  position:absolute;
  right:5px;
  bottom:5px;
  padding:3px 5px;
  border:1px solid #d9e9c54a;
  border-radius:4px;
  background:#102b22e8;
  color:#f0f5df;
  font:650 8px/10px Manrope,Arial,sans-serif;
  pointer-events:none;
}

.heritage-dialog{
  width:min(1000px,calc(100% - 32px));
  max-width:calc(100% - 18px);
  max-height:90dvh;
  padding:26px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  background:linear-gradient(125deg,#203e2ff5,#0d281ff5);
  color:#edf3e5;
  box-shadow:inset 0 1px 0 #eff6d914,0 30px 120px #00140bb3;
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
}
.heritage-dialog .dialog-header>div{min-width:0}
.heritage-dialog .dialog-header h2{overflow-wrap:break-word}
.heritage-dialog .heritage-object-nav{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 20px;
}
.heritage-object-nav>button{
  min-width:0;
  min-height:38px;
  padding:9px 13px;
  border:1px solid #c6dbb444;
  border-radius:8px;
  background:#c5dca60a;
  color:#dce8cf;
  font:600 11px/16px Manrope,Arial,sans-serif;
  text-align:center;
}
.heritage-dialog .heritage-object-nav>button:hover{
  border-color:#d3e5b77a;
  background:#c5dca61c;
}
.heritage-dialog .heritage-object-nav>button[aria-pressed="true"]{
  border-color:#e3ecc7;
  background:#e3ecc7;
  color:#153723;
}
.heritage-dialog .heritage-description{
  margin:0 0 12px;
  color:#d9e5d2;
  font:400 14px/1.7 Manrope,Arial,sans-serif;
}
.heritage-dialog .heritage-meta{
  margin:0 0 20px;
  color:#b9ceb0;
  font:400 11px/1.65 Manrope,Arial,sans-serif;
  overflow-wrap:anywhere;
}
.heritage-dialog .heritage-meta a{
  color:#e4edc4;
  text-decoration:underline;
  text-underline-offset:3px;
}
.heritage-dialog .heritage-section{
  min-width:0;
  margin-top:24px;
  padding-top:19px;
  border-top:1px solid #d1e0bc26;
}
.heritage-section>h3{
  margin:0 0 14px;
  color:#e5efd5;
  font:400 22px/1.2 Georgia,'Times New Roman',serif;
  letter-spacing:-.35px;
}
.heritage-dialog .heritage-subgroup-heading{
  margin:22px 0 12px;
}
.heritage-subgroup-heading h4{
  margin:0;
  color:#dce9cd;
  font:600 13px/1.5 Manrope,Arial,sans-serif;
}
.heritage-dialog .heritage-media-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  min-width:0;
}
.heritage-media-grid>.heritage-media-card{
  display:block;
  position:relative;
  min-width:0;
  padding:7px 7px 10px;
  border:1px solid #bed5ac30;
  border-radius:9px;
  background:#c6dbb308;
  color:#e2ecd5;
}
.heritage-media-card img{
  display:block;
  width:100%;
  height:125px;
  object-fit:contain;
  object-position:center;
  filter:none;
  transform:none;
  border-radius:5px;
  background:#dddbc9;
}
.heritage-media-card .heritage-kind{
  display:block;
  margin-top:8px;
  color:#bcd1af;
  font:600 9px/1.4 Manrope,Arial,sans-serif;
}
.heritage-media-card .heritage-media-title{
  display:block;
  margin-top:4px;
  color:#e2ecd5;
  font:500 11px/1.5 Manrope,Arial,sans-serif;
  overflow-wrap:anywhere;
}
.heritage-dialog .heritage-media-card:hover{
  border-color:#d4e5b980;
  background:#c9e0af14;
}
.heritage-media-card:focus-visible,
.heritage-object-nav>button:focus-visible,
.heritage-history-link:focus-visible{
  outline:3px solid #e5efad;
  outline-offset:3px;
}
.heritage-media-card .reconstruction-badge{
  left:12px;
  top:12px;
  max-width:calc(100% - 24px);
  font-size:7px;
  line-height:1.35;
  pointer-events:none;
}
.heritage-dialog .heritage-history-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  max-width:100%;
  min-height:40px;
  margin:4px 0 2px;
  padding:10px 15px;
  border:1px solid #d4e5b94d;
  border-radius:8px;
  background:#c5dca612;
  color:#e4edc4;
  font:600 11px/1.5 Manrope,Arial,sans-serif;
  text-align:left;
}
.heritage-dialog .heritage-history-link:hover{background:#c5dca624}
.heritage-history-link svg{width:15px;height:15px}
.heritage-dialog .heritage-empty{
  margin:0;
  padding:17px;
  border:1px dashed #c6dbb444;
  border-radius:9px;
  color:#c4d5bb;
  background:#c5dca606;
  font:400 12px/1.7 Manrope,Arial,sans-serif;
}

@media(min-width:1191px){
  .light-grid>.gallery-panel:has(>.heritage-group-strip){
    display:flex;
    flex-direction:column;
    height:190px;
    min-height:190px;
  }
  .gallery-panel:has(>.heritage-group-strip)>.section-heading{flex:0 0 38px}
  .gallery-panel>.heritage-group-strip{
    flex:1 1 100px;
    min-height:0;
    max-height:100px;
  }
  .heritage-group-strip>.heritage-group-card{height:100%}
  .gallery-panel:has(>.heritage-group-strip)>.photo-credit{
    flex:0 0 auto;
    margin:5px 0 0;
    font-size:7px;
    line-height:10px;
  }
}
@media(max-width:1190px){
  .gallery-strip.heritage-group-strip{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px 12px;
  }
  .heritage-group-strip>.heritage-group-card{
    height:auto;
    grid-template-rows:116px auto auto;
  }
  .heritage-group-card>strong{font-size:12px;line-height:16px;margin-top:6px}
  .heritage-group-card>small{font-size:10px;line-height:14px}
}
@media(max-width:760px){
  .heritage-dialog{padding:22px 18px}
  .heritage-dialog .heritage-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
}
@media(max-width:550px){
  .gallery-strip.heritage-group-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 9px}
  .heritage-group-strip>.heritage-group-card{grid-template-rows:110px auto auto}
  .heritage-dialog{width:calc(100% - 18px);padding:19px 15px}
  .heritage-dialog .dialog-header{align-items:flex-start;gap:10px}
  .heritage-dialog .dialog-header h2{font-size:26px;line-height:1.15}
  .heritage-dialog .heritage-object-nav{gap:6px;margin-bottom:17px}
  .heritage-object-nav>button{min-height:38px;padding:9px 10px;font-size:10px}
  .heritage-dialog .heritage-description{font-size:13px}
  .heritage-dialog .heritage-meta{font-size:10px}
  .heritage-dialog .heritage-section{margin-top:21px;padding-top:17px}
  .heritage-section>h3{font-size:21px}
  .heritage-media-grid>.heritage-media-card{padding:5px 5px 8px}
  .heritage-media-card .heritage-kind{font-size:8px;margin-top:7px}
  .heritage-media-card .heritage-media-title{font-size:10px}
  .heritage-media-card .reconstruction-badge{left:9px;top:9px;max-width:calc(100% - 18px);font-size:6px}
}
@media(max-width:360px){
  .heritage-group-strip>.heritage-group-card{grid-template-rows:95px auto auto}
  .heritage-dialog .heritage-media-grid{gap:11px}
}
@media(prefers-reduced-motion:reduce){
  .heritage-group-card>.heritage-group-cover{transition:none}
}
