/* The author's artwork determines the page width and the proportions of every header. */
html { -webkit-text-size-adjust: 100%; }
#header, #wrapper, #wrapper > #content > .center, #header > .center, #footer {
  box-sizing: border-box; width: min(100%, 993px); max-width: 100%;
}
#wrapper { min-height: 100vh; height: auto; }
#header { height: auto; }
#header .dn-illustration {
  width: 100% !important; height: auto !important; aspect-ratio: 993 / 265;
  background-position: center !important; background-size: 100% 100% !important;
}
#header .hnotice {position: static; width: min(290px,100%); height: auto;
  margin: 0 0 0 auto; padding: 2px 12px; box-sizing: border-box; }
#header .hnotice p { margin: 5px 0; line-height: 1.25; }
#header .hnotice + .clear { display: none; }
#header #gravemap { line-height: 0; }
#header #mapImage { display: block; width: 100%; height: auto; }
#header .menuwrapp.dn-menu-bar { display: grid; }
#header .hnotice ~ .dn-menu-bar { margin-top: 4px; }
#header .dn-menu-bar > .clear { display: none; }

body.home {
  position: relative; isolation:isolate; background: #a6a6a6;
}
body.home::before {
  content:""; position:absolute; inset:0 0 auto; z-index:-1; pointer-events:none;
  height:min(1214px,100%); max-width:2200px; margin-inline:auto;
  background:url("../wp-content/themes/hannari/images/bg.jpg.webp") center top / auto no-repeat;
  -webkit-mask-image:linear-gradient(to bottom,#000 78%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 78%,transparent 100%);
}
.home #wrapper {
  /* Feather the join between the stone paper and the monuments outside the sheet. */
  -webkit-mask-image:linear-gradient(to right,transparent,#000 16px,#000 calc(100% - 16px),transparent);
  mask-image:linear-gradient(to right,transparent,#000 16px,#000 calc(100% - 16px),transparent);
}
.home #content .pagecontent, .home #content .pagecontent :is(p,span,h1,h2,h3,strong,em,li) {
  color:#000!important;
}
.home #footer {position:relative;isolation:isolate;background-image:none}
.home #footer::before {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:url("../wp-content/themes/hannari/images/footer.jpg.webp") center bottom / 100% auto no-repeat;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 35%,#000);
  mask-image:linear-gradient(to bottom,transparent 0%,#000 35%,#000);
}
body.page-id-403 #wrapper, body.dn-biographies #wrapper {
  background-color:#e7dfc9!important; background-repeat:no-repeat!important;
  background-size:100% 100%!important;
}
#content .pagecontent ul.gravencat {
  box-sizing:border-box; max-width:100%; column-width:auto; column-count:2; column-gap:2.2rem;
}
#content .pagecontent .gravencat > li {
  position:relative; break-inside:avoid-column; display:flow-root;
  margin:0; padding:0 0 .35em; min-width:0; list-style:none;
}
#content .pagecontent .gravencat > li > .post-title {
  float:none; display:inline; width:auto!important; line-height:1.26;
}
#content .pagecontent .gravencat > li > .post-title a {
  display:inline; line-height:1.25; white-space:normal; overflow-wrap:anywhere;
}
#content .pagecontent .gravencat > li > .icon_feather {float:none;display:inline-block;width:auto;vertical-align:middle;padding:0}
#content .pagecontent .gravencat > li > .icon_feather img {margin:0 3px;height:auto;max-width:25px}
body.page-id-405 #content .pagecontent ul.gravencat {column-count:1}
#content dialog.popup {overscroll-behavior:contain}
dialog.popup .tab_content {overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}
dialog.popup .close {position:sticky;top:0;float:right;z-index:2}
dialog.popup .close::after {content:"";position:absolute;inset:-5px}
.dn-bottom-map {text-align:center;margin:32px auto 0; clear:both; padding:0 14px 12px; box-sizing:border-box}
.dn-bottom-map .dn-map-heading {font:italic 24px/1.3 Georgia,serif;color:#111;margin:0 0 .5em;text-transform:none}
.dn-bottom-map svg {display:block;width:min(100%,310px);height:auto;margin:auto}
.dn-bottom-map polygon {fill:transparent;stroke:transparent;stroke-width:2}
.dn-bottom-map a:hover polygon,.dn-bottom-map a:focus-visible polygon {fill:#14399645;stroke:#143996}
#content .dn-mail {width:fit-content;max-width:100%;margin:0 auto; padding:16px 12px;color:#16130f;text-align:center}
#content .dn-mail a {color:#453819;text-decoration:underline}
@media (max-width:1024px) {
  #header .center, #content .center, #content .columnwrapp, #content .pagecontent, #content .pagecontent .innercontent,
  #footer .center {width:100%;max-width:100%;box-sizing:border-box}
  #content .columnwrapp {float:none}
  #header .dn-illustration + .clear {display:none}
  #content .pagecontent {float:none;margin:0 auto;padding:0 clamp(12px,3.4vw,30px)}
  #content .pagecontent .gravencat {width:100%;margin:20px auto}
  #content .pagecontent p {margin-inline:clamp(0px,1vw,12px)}
  #footer {max-width:100%;background-size:contain!important}
}
@media (max-width:680px) {
  .home #wrapper {-webkit-mask-image:none;mask-image:none}
  #header .hnotice {width:100%;text-align:center}
  #content {min-height:0;margin:0 0 20px;}
  #content .pagecontent {padding:0 16px;font-size:16px;line-height:1.5}
  #content .pagecontent ul.gravencat {column-count:1;column-width:auto;column-rule:0}
  #content .pagecontent .gravencat .post-title .titles {font-size:clamp(22px,5.7vw,29px)}
  #content .pagecontent p {margin:.75em 0;line-height:1.55;overflow-wrap:anywhere}
  #content .pagecontent h1, #content .pagecontent h2 {overflow-wrap:anywhere;max-width:100%}
  #content .pagecontent h1 {font-size:clamp(25px,7.8vw,38px);line-height:1.1}
  #content .pagecontent ul:not(.gravencat), #content .pagecontent ol {margin-inline:1em .25em}
  #content .pagecontent img {box-sizing:border-box;max-width:calc(100% - 8px);height:auto}
  #content .pagecontent table {width:max-content!important;max-width:100%;display:block;overflow-x:auto}
  #footer {height:auto!important;min-height:clamp(125px,29vw,245px);background-size:100% auto!important;}
  #footer .copyright {max-width:100%;box-sizing:border-box;padding:4px 12px;margin:0;line-height:1.2;}
  #content dialog.popup[open] {top:3vh;width:96vw;max-width:96vw;max-height:90vh;max-height:90dvh;padding:9px 13px}
  #content dialog.popup .selectTabs,#content dialog.popup .tab_content {height:auto;max-width:100%;width:100%;padding:0}
  #content dialog.popup h2 {font-size:clamp(21px,6vw,28px);line-height:1.15}
  #content dialog.popup p {line-height:1.48}
  .dn-bottom-map {margin-top:24px}
}
