 * { font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif; margin: 0; padding: 0; box-sizing: border-box; }

 body { background: white; color: #151515; margin: 0px; padding: 0px; width: 100% !important; font-family: "Inter"; } 
 p { font-size: 110%; }
 h1,h2,h3,h4 { font-weight: 200; margin: 0 15% 1em 15%; text-align:center; border-bottom: 1px solid black;}
 h2,h3,h4 { margin-top: 3em; border-bottom: 1px solid darkgray;}

 a { color: inherit; text-decoration: none; }
 a.visible { color: blue; border-bottom: 1px dashed rgb(100, 100, 252); }
 a.visible:hover { border-bottom: 0; text-decoration: underline rgb(17, 29, 116); }

 img { overflow:hidden; object-fit:cover; width:100%; height:100%; transition: transform 0.5s; }

  
 .s { margin-top: 3em; }
 .smaller { font-size: 80%; color:darkgray; }
 .center { max-width: 95vw; margin: 0 auto; }
 .noborder { border: 0; }

  
 .iconLarge { font-size: 2rem; }

 .top-nav { position: fixed; left:0; top:0; width:100%; z-index:10; background-color: white;
 display: flex; flex-direction: row; align-items: center; justify-content: space-between; 
 height: calc(50px + 2em); margin: 0; padding: 1em; 
 & a.sel { font-weight: bold; text-decoration-color: #151515; text-decoration-line: underline; }
 }

 .top-logo { display: block; width: 240px; height: 50px; font-size: 1.4rem; font-weight: bold; 
 & img { display: inline-block; }
 }
 .top-filler { min-height: calc(50px + 3em); }

 .footer { position:fixed; width:100%; bottom: 0; background-color: white;
 font-weight: 300; font-size: 0.8rem; 
 padding: 5px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; }

 @media (max-width: 700px) {
 .top-nav, .footer { position: relative; height:fit-content; } 
 .top-logo { max-height: 50px; }
 .top-filler { min-height: 2em;}
 }

  
 #whiteboard { width:100vw; height:100vh; position: absolute; left:0; top:0; z-index:20; 
 background-color:white; display: flex; justify-content: center; align-items: center; 
 animation-name: whiteboard-hide; animation-play-state: paused; }
 #whitetext { font-size: 2rem; font-weight: 300; text-align: center; line-height: 1.6; } 
 .whiteword { display: inline-block; opacity: 0; animation: whiteword-fadeIn 1s forwards; margin-right: 0.35em; } @keyframes whiteword-fadeIn { to { opacity: 1; } } 

 @keyframes whiteboard-hide {
 from { transform: translateY(0); }
 to { transform: translateY(-110vh); }
 }

 #homereel { margin:0 25%; width: 50%; padding:0; object-fit: cover; box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
 @media (max-width: 700px) { #homereel { margin: 0 5%; width: 90%;} }

 .zoomable { cursor:zoom-in; }
 .zoomable:hover, .photo:hover { transform: scale(0.9); } 
 
 .minus { display: inline-block; } .minus::after { content: "\00A0-\00A0"; }
 @media (max-width: 700px) {.minus { display: block; } .minus::after { content: ""; } }

  
 .homehtml { 
 margin: 1em 15%; text-align: center; line-height: 1.25;
 & p, & ul, & li { margin: 1em 2em; text-align: center; }
 }
 .chisonohtml { 
 padding: 0 1em; margin:auto; width:85%; display: grid; grid-template-columns: 1fr 300px; gap: 2em; grid-auto-flow: dense;
 & p { margin: 1em 2em; line-height: 1.5;}
 & img { padding: 1em 0; }
 }
 .contattihtml { 
 padding: 0 1em; margin:auto; width:85%; 
 display: flex; flex-direction: row; flex-wrap: wrap; gap: 1em; justify-content: space-evenly; justify-items: space-between; 
 & .icon { padding:0; margin:0; width: 1em; height: 1em; }
 }
 .preventivihtml { 
 padding: 0 1em; margin:auto; width:85%; display: grid; grid-template-columns: 1fr 2fr; gap: 2em; grid-auto-flow: dense;
 & p { margin: 0; line-height: 1.5;}
 & img { padding: 1em 0; }
 }

 @media (max-width: 800px) { 
 .homehtml { margin: 1em 0; }
 .contattihtml { width: 95%; padding: 0 0 1em 0; } 

 .chisonohtml, .preventivihtml { width:95%; padding: 0; grid-template-columns: 1fr; place-items: center; }
 .chisonohtml p { margin: 1em 0; } 
 }
 
  
 .photobox { column-gap: 16px; padding: 8px; }
 @media (max-width:10000px){ .photobox{ column-count: 5; } }
 @media (max-width:1500px){ .photobox{ column-count: 4; } }
 @media (max-width:1200px){ .photobox{ column-count: 3; } }
 @media (max-width:900px) { .photobox{ column-count: 2; } }
 @media (max-width:600px) { .photobox{ column-count: 1; } }

 .photoframe { break-inside: avoid; margin: 0 0 16px; padding: 6px; box-shadow: 0 6px 10px rgba(0,0,0,0.25); overflow: hidden; width: 100%;
 & div { position: relative; overflow: hidden; }
 & img { position: absolute; top: -9999px; left: -9999px; right: -9999px; bottom: -9999px; margin: auto; }
 }  
 figure { inline-size: fit-content; margin-inline: auto; }
 figcaption { contain: inline-size; }

 .mw { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1em; justify-content: center; align-items: center;}
 .mwSlide { position: relative; margin:0; padding: 0; text-align: center; }
   .mwS { width:160px; } .mhS { height: 120px; } .mhcS { height: calc(120px + 10ex); }
 .mwPS { width:120px; } .mhPS { height: 160px; } .mhcPS { height: calc(160px + 10ex); } .mwM { width:240px; } .mhM { height: 180px; } .mhcM { height: calc(180px + 10ex); }
 .mwPM { width:180px; } .mhPM { height: 240px; } .mhcPM { height: calc(240px + 10ex); } .mwL { width:300px; } .mhL { height: 225px; } .mhcL { height: calc(225px + 10ex); }
 .mwPL { width:225px; } .mhPL { height: 300px; } .mhcPL { height: calc(300px + 10ex); } .mwXL { width:400px; } .mhXL { height: 300px; } .mhcXL { height: calc(300px + 10ex); }
 .mwPXL { width:300px; } .mhPXL { height: 400px; } .mhcPXL { height: calc(400px + 10ex); }
  
 .videoBox { margin: 0 auto; text-align: center; } 
 .videoPlayer { display: block; } 

  
 .menu { display: flex; flex-direction: row; flex-wrap: wrap; list-style-type: none; margin: 0; padding: 0; align-items: center; }
 .menu > li { margin: 0 1rem; overflow: hidden; font-size: 0.9rem; }
 .menu-button-container { display: none; height: 100%; width: 30px; }
 #menu-toggle { display: none; }
 .menu-button { display: block; color: #151515; font-size: 1.8rem; }
 .menu-button::after { content: "\2999\2999\2999"; }
 #menu-toggle:checked + .menu-button-container .menu-button::after { content: "\26CC"; }
 @media (max-width: 700px) {
 .menu { display: none; position: absolute; z-index: 13; right: 0; top: 0; width:100%; 
 margin-top: calc(50px + 2em); flex-direction: column; background: white; }
 .menu-button-container { display: flex; cursor: pointer; flex-direction: column; }
 #menu-toggle:checked ~ .menu { display: block; text-align: right; width: 100%; height: 90vh; }
 #menu-toggle:checked ~ .menu li { border-bottom: 1px solid #ddd; height: 2.5em; padding: 0.5em; }
 }