/* Shared by both sites: fonts, post text, pictures, galleries, forms, picture viewer. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url(fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url(fonts/cormorant-garamond-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: italic; font-display: swap; src: url(fonts/cormorant-garamond-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: Raleway; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/raleway-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Raleway; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/raleway-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Raleway; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/raleway-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: Raleway; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/raleway-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Raleway; font-weight: 700; font-style: italic; font-display: swap; src: url(fonts/raleway-latin-700-italic.woff2) format("woff2"); }
/* Stand-ins for the two licensed Wix fonts: Avenir Light and Futura Light. Apple devices use their own copies. */
@font-face { font-family: "Nunito Sans"; font-weight: 300; font-display: swap; src: url(fonts/nunito-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url(fonts/nunito-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Jost; font-weight: 300; font-display: swap; src: url(fonts/jost-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: Jost; font-weight: 400; font-display: swap; src: url(fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 300; font-display: swap; src: url(fonts/work-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 400; font-display: swap; src: url(fonts/work-sans-latin-400-normal.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- post text ---- */
.post-body { overflow-wrap: break-word; }
.post-body::after { content: ""; display: block; clear: both; }
.post-body p { margin: 0; }
.post-body.spaced p { margin: 0 0 1.5em; }           /* posts written after the move: a gap after each paragraph */
.post-body.spaced p.blank { display: none; }
.post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 { margin: 0; font-weight: inherit; }
.post-body ul, .post-body ol { margin: 0; padding-left: 1.5em; }
.post-body li { margin-left: 1.5em; }
.post-body blockquote { margin: 0.8em 0; padding: 0.3em 0 0.3em 18px; border-left: 3px solid var(--accent, #917237); }
.post-body hr { border: 0; border-top: 1px solid currentColor; opacity: 0.4; margin: 1.5em 0; }
.post-body a { color: var(--accent, #917237); }
.post-body .file a { display: inline-block; padding: 12px 18px; border: 1px solid currentColor; text-decoration: none; color: inherit; }
.post-body .file span { margin-left: 10px; font-size: 0.85em; opacity: 0.7; }

/* posts made from Word documents */
.post-body.spaced h2, .post-body.spaced h3, .post-body.spaced h4 { margin: 1.6em 0 0.6em; }
.post-body.spaced ul, .post-body.spaced ol { margin: 0 0 1.5em; }
.post-body p.caption { text-align: center; font-size: 0.85em; opacity: 0.85; }
.post-body .table { overflow-x: auto; margin: 0 0 1.5em; }
.post-body table { border-collapse: collapse; width: 100%; }
.post-body td, .post-body th { border: 1px solid rgba(0, 0, 0, 0.25); padding: 6px 10px; vertical-align: top; text-align: left; }
.post-body td p, .post-body th p { margin: 0; }

/* pictures: full width of the text, or small and set beside it */
.post-body figure { margin: 0; }
.post-body .pic, .post-body .gallery, .post-body .video { margin: 20px auto; }
.post-body .pic img { display: block; width: 100%; }
.post-body .pic figcaption, .post-body .video figcaption { padding-top: 8px; text-align: center; font-size: 0.85em; opacity: 0.85; }
.post-body .size-small { width: 350px; max-width: 100%; }
.post-body .size-custom { max-width: 100%; }
.post-body .size-content, .post-body .size-fullwidth, .post-body .size-original { width: 100%; }
.post-body .pic.align-left:not(.size-content), .post-body .gallery.align-left.size-small { float: left; margin: 5px 30px 16px 0; }
.post-body .pic.align-right:not(.size-content), .post-body .gallery.align-right.size-small { float: right; margin: 5px 0 16px 30px; }
.post-body .pic.align-center, .post-body .gallery.align-center { clear: both; }
@media (max-width: 640px) {
  .post-body .pic.align-left:not(.size-content), .post-body .pic.align-right:not(.size-content),
  .post-body .gallery.align-left.size-small, .post-body .gallery.align-right.size-small { float: none; margin: 20px auto; width: 100% !important; }
}

/* galleries */
.gallery { display: grid; gap: 5px; grid-template-columns: repeat(var(--cols, 3), 1fr); clear: both; }
.gallery a { display: block; overflow: hidden; }
.gallery img { display: block; width: 100%; height: 100%; aspect-ratio: var(--ratio, 1); object-fit: cover; }
.gallery[data-crop="fit"] img { object-fit: contain; }
.gallery[data-count="1"] { display: block; }
.gallery[data-count="1"] img { aspect-ratio: auto; height: auto; }
.gallery[data-layout="masonry"], .gallery[data-layout="collage"] { display: block; columns: 3 220px; column-gap: 5px; }
.gallery[data-layout="masonry"] a, .gallery[data-layout="collage"] a { margin-bottom: 5px; break-inside: avoid; }
.gallery[data-layout="masonry"] img, .gallery[data-layout="collage"] img { aspect-ratio: auto; height: auto; }
.gallery[data-layout="panorama"] { display: block; }
.gallery[data-layout="panorama"] a { margin-bottom: 5px; }
.gallery[data-layout="panorama"] img { aspect-ratio: auto; height: auto; }
.gallery[data-layout="slider"] { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 5px; }
.gallery[data-layout="slider"] a { flex: 0 0 100%; scroll-snap-align: center; }
.gallery[data-layout="slider"] img { aspect-ratio: var(--ratio, 1.7778); object-fit: contain; background: rgba(0, 0, 0, 0.04); }
@media (max-width: 640px) { .gallery:not([data-layout]) , .gallery[data-layout="grid"] { grid-template-columns: repeat(min(var(--cols, 3), 2), 1fr); } }

/* video */
.video { clear: both; max-width: 100%; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video video { display: block; width: 100%; background: #000; }

/* forms: the line that answers after sending */
.form-note { margin: 12px 0 0; }
.form-note.bad { color: #b00020; }
form.sent > *:not(.form-note) { display: none; }

/* picture viewer */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.92); }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lightbox p { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; color: #fff; font: 14px/1.4 sans-serif; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 12px 18px; }
.lightbox .x { top: 4px; right: 6px; }
.lightbox .prev { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 0; top: 50%; transform: translateY(-50%); }
a.zoom { cursor: zoom-in; }
