/* Small standalone additions to the original Twenty Seventeen theme. */
body, button, input, select, textarea {font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;}
.entry-content {overflow-wrap: anywhere;}
img {height: auto;}
.restored-gallery {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 2em;}
.restored-gallery figure {min-width:0;margin:0;}
.restored-gallery a {display:block;border:2px solid #fff;border-radius:5px;overflow:hidden;box-shadow:0 5px 7px rgba(0,0,0,.25);}
.restored-gallery img {display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transition:transform .2s;}
.restored-gallery a:hover img {transform:scale(1.035);}
.restored-gallery figcaption {font-size:13px;line-height:1.5;padding-top:8px;}
.restored-panorama {position:relative;max-width:800px;width:100%;height:400px;margin:0 auto 2em;background:#181818;overflow:hidden;}
.restored-panorama > a {display:block;width:100%;height:100%;}
.restored-panorama > a > img {display:block;width:100%;height:100%;object-fit:cover;}
.panorama-start {position:absolute;z-index:2;top:50%;left:50%;transform:translate(-50%,-50%);max-width:90%;white-space:nowrap;background:rgba(20,20,20,.88);border:1px solid #ddd;}
.panorama-strip {overflow-x:auto;overflow-y:hidden;max-width:100%;height:320px;cursor:grab;touch-action:pan-x pan-y;scrollbar-width:thin;}
.panorama-strip img {display:block;width:2560px!important;max-width:none!important;height:320px!important;pointer-events:none;user-select:none;}
.panorama-strip.is-dragging {cursor:grabbing;}
.wp-block-video video {display:block;width:100%;max-width:100%;height:auto;background:#111;}
.entry-content .wp-block-table {overflow-x:auto;}
.entry-content .wp-block-table table {min-width:550px;}
.site-info {font-size:14px;}
.restored-lightbox {box-sizing:border-box;position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:60px 64px 48px;border:0;background:rgba(0,0,0,.96);color:white;z-index:999999;}
.restored-lightbox[open] {display:flex;align-items:center;justify-content:center;}
.restored-lightbox::backdrop {background:rgba(0,0,0,.9);}
.restored-lightbox figure {margin:0;max-width:100%;max-height:100%;text-align:center;}
.restored-lightbox img {display:block;max-width:100%;max-height:calc(100dvh - 160px);width:auto;height:auto;margin:auto;object-fit:contain;}
.restored-lightbox figcaption {padding-top:12px;font-size:14px;line-height:1.5;}
.restored-lightbox button {position:absolute;background:rgba(30,30,30,.85);color:#fff;padding:10px 16px;border:1px solid #777;font-size:24px;line-height:1.2;}
.lightbox-close {top:12px;right:12px;}
.lightbox-prev {top:calc(50% - 25px);left:8px;}
.lightbox-next {top:calc(50% - 25px);right:8px;}
body.lightbox-open {overflow:hidden;}
@media(max-width:650px){.restored-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.restored-panorama{height:300px}.panorama-strip{height:240px}.panorama-strip img{height:240px!important;width:1920px!important}.restored-lightbox{padding:64px 46px 38px}.restored-lightbox button{padding:8px 12px}.entry-content .wp-block-media-text{grid-template-columns:1fr!important}.wp-block-media-text .wp-block-media-text__media{grid-column:1!important;grid-row:1!important}.wp-block-media-text .wp-block-media-text__content{grid-column:1!important;grid-row:2!important;padding:1em 0!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
