/* Pathologie Lübeck – site styles.
   Look follows the original "Care" theme (2015): Open Sans, navy #333366, headings #284b80,
   links #3498db, light-blue caption boxes – slightly larger type and more whitespace. */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/open-sans-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/open-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/open-sans-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/open-sans-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/open-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/open-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/open-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/open-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #333366;        /* top bar, page header, menu */
  --heading: #284b80;     /* h2 */
  --link: #3498db;
  --sky: rgba(63, 177, 248, .82); /* caption boxes on the hero image */
  --text: #4f4f4f;
  --text-strong: #444;
  --muted: #999;
  --line: #dddddd;
  --soft: #f7f7f7;
  --footer: #f5f5f5;
  --footer-bottom: #eeeeee;
  --shadow: 0 0 6px rgba(0, 0, 0, .12);
  --wrap: 1170px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font: 16px/1.7 var(--font); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
h1, h2, h3, h4, h5 { line-height: 1.3; margin: 1.6em 0 .55em; }
h1 { font-size: clamp(1.5rem, 2.6vw, 1.85rem); font-weight: 600; margin: 0; }
h2 { font-size: 1.5rem; font-weight: 400; color: var(--heading); }
h3 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--text-strong); }
h4, h5 { font-size: 1rem; font-weight: 600; color: var(--text-strong); }
p, ul, ol { margin: 0 0 1em; }
strong, b { color: var(--text-strong); font-weight: 600; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- top bar & header ---------- */
.topbar { background: var(--navy); color: #fff; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 6px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand { display: flex; align-items: center; }
.brand img { width: 96px; height: auto; display: block; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; }
.site-nav a { display: block; padding: 0 14px; line-height: 84px; color: var(--navy); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none; position: relative; }
.site-nav > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 22px; height: 2px; background: var(--link); transform: scaleX(0); transition: transform .2s; }
.site-nav > ul > li > a:hover::after, .site-nav > ul > li > a[aria-current="page"]::after, .site-nav .is-active > a::after { transform: scaleX(1); }
.site-nav a:hover { color: var(--navy); text-decoration: none; }
.site-nav .has-sub { position: relative; display: flex; align-items: center; }
.site-nav .has-sub > a { padding-right: 24px; }
.site-nav .has-sub > a::before { content: ""; position: absolute; right: 9px; top: 50%; width: 5px; height: 5px; margin-top: -4px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.site-nav .has-sub > ul { list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border-top: 2px solid var(--link); box-shadow: 0 6px 18px rgba(0,0,0,.12); display: none; }
.site-nav .has-sub:hover > ul, .site-nav .has-sub:focus-within > ul { display: block; }
.site-nav .has-sub > ul a { line-height: 1.4; padding: 11px 20px; color: #444; border-bottom: 1px solid #f0f0f0; }
.site-nav .has-sub > ul li:last-child a { border-bottom: 0; }
.site-nav .has-sub > ul a:hover, .site-nav .has-sub > ul a[aria-current="page"] { background: var(--soft); color: var(--link); }
.sub-toggle { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .site-header .wrap { min-height: 70px; }
  .brand img { width: 80px; }
  .nav-toggle { display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
    content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--navy); transition: .2s; }
  .nav-toggle span:first-child { top: 21px; }
  .nav-toggle span:first-child::before { left: 0; top: -7px; }
  .nav-toggle span:first-child::after { left: 0; top: 7px; }
  .nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
  .nav-toggle[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 2px solid var(--link);
    box-shadow: 0 8px 18px rgba(0,0,0,.12); display: none; max-height: calc(100vh - 110px); overflow: auto; }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; padding: 6px 0 12px; }
  .site-nav a { line-height: 1.4; padding: 13px 24px; font-size: .85rem; border-bottom: 1px solid #f0f0f0; }
  .site-nav > ul > li > a::after, .site-nav .has-sub > a::before { display: none; }
  .site-nav .has-sub { flex-wrap: wrap; }
  .site-nav .has-sub > a { flex: 1; padding-right: 24px; }
  .site-nav .has-sub > ul { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 16px; width: 100%; background: var(--soft); }
  .site-nav .has-sub:hover > ul, .site-nav .has-sub:focus-within > ul { display: none; }
  .site-nav .has-sub.is-open > ul { display: block; }
  .sub-toggle { display: block; width: 52px; height: 47px; border: 0; border-bottom: 1px solid #f0f0f0; background: none; cursor: pointer; }
  .sub-toggle::after { content: ""; display: block; margin: auto; width: 8px; height: 8px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: .2s; }
  .has-sub.is-open .sub-toggle::after { transform: rotate(-135deg); }
  .hide-sm { display: none; }
}

/* ---------- page header (navy band like the original) ---------- */
.page-head { background: var(--navy); color: #fff; padding: 30px 0; }
.page-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.page-head h1 { color: #fff; }
.page-head .lead { flex-basis: 100%; order: 3; margin: 2px 0 0; color: #d3d3e6; font-size: 1rem; max-width: 760px; }
.breadcrumbs { order: 2; font-size: .82rem; color: #b9b9d6; }
.breadcrumbs a { color: #fff; }
.breadcrumbs .sep { margin: 0 6px; opacity: .7; }

/* ---------- content ---------- */
.content { padding-top: 40px; padding-bottom: 64px; }
.content:not(.content--wide):not(.has-tour) > * { max-width: 860px; }
.content > :first-child, .content section > h2:first-child { margin-top: 0; }
.content img { margin: .4em 0 1.1em; display: block; box-shadow: var(--shadow); padding: 5px; background: #fff; }
.content a.zoom { display: inline-block; cursor: zoom-in; }
.content section { scroll-margin-top: 100px; }
.content section + section { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 34px; }
.content ul li, .content ol li { margin-bottom: .3em; }
.content blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--link); background: var(--soft); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.content table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.content th, .content td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.content th, .content tr:first-child td { background: var(--soft); }
.content details { border: 1px solid var(--line); margin: 0 0 -1px; background: #fff; }
.content details > summary { cursor: pointer; padding: 11px 44px 11px 16px; color: var(--link); list-style: none; position: relative; }
.content details > summary:hover { background: var(--soft); }
.content details > summary::-webkit-details-marker { display: none; }
.content details > summary::after { content: "+"; position: absolute; right: 16px; top: 6px; font-size: 1.35rem; color: var(--muted); }
.content details[open] > summary { background: var(--soft); color: var(--text-strong); font-weight: 600; }
.content details[open] > summary::after { content: "–"; }
.content details > :not(summary) { margin-left: 18px; margin-right: 18px; }
.content details > summary + * { margin-top: 16px; }
.content details > :last-child { margin-bottom: 18px; }
.content details + :not(details) { margin-top: 1.6em; }

/* chapter navigation – like the original vertical "tour" tabs, but all text stays visible */
.content.has-tour { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.tour-nav { position: sticky; top: 104px; }
.tour-nav strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.tour-nav ul { list-style: none; margin: 0; padding: 0; }
.tour-nav li { border: 1px solid var(--line); margin-bottom: -1px; }
.tour-nav a { display: block; padding: 9px 15px; font-size: .92rem; line-height: 1.35; }
.tour-nav a:hover { background: var(--soft); text-decoration: none; }
.tour-nav a.is-current { background: var(--soft); color: var(--text-strong); box-shadow: inset 3px 0 0 var(--link); }
.tour-body { min-width: 0; max-width: 860px; }
.tour-body > :first-child { margin-top: 0; }
@media (max-width: 900px) {
  .content.has-tour { display: block; }
  .tour-nav { position: static; margin-bottom: 30px; }
  .tour-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .tour-nav li { border: 0; margin: 0; }
  .tour-nav a { border: 1px solid var(--line); padding: 5px 11px; font-size: .88rem; }
}

/* ---------- components ---------- */
.btn { display: inline-block; padding: 10px 20px; background: transparent; color: #777; border: 1px solid #c4c4c4; font: 600 .75rem/1.2 var(--font);
  text-transform: uppercase; letter-spacing: .06em; cursor: pointer; text-decoration: none; transition: .15s; }
.btn:hover { border-color: var(--link); color: var(--link); text-decoration: none; }
.btn--navy { background: var(--navy); border-color: var(--navy); color: #fff; padding: 13px 24px; }
.btn--navy:hover { background: var(--link); border-color: var(--link); color: #fff; }
.btn--sky { background: var(--link); border-color: var(--link); color: #fff; }
.btn--sky:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
ul.plain { list-style: none; padding: 0; }

.section-title { margin-bottom: 30px; }
.section-title h2 { margin: 0; font-size: clamp(1.4rem, 2.3vw, 1.75rem); }
.section-title p { margin: 4px 0 0; color: var(--muted); }
.section-title::after { content: ""; display: block; border-bottom: 1px solid var(--line); margin-top: 14px; }

/* teaser: portrait image left, text right (original home layout) */
.teasers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px 44px; }
.teaser { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; }
.teaser img { box-shadow: var(--shadow); padding: 5px; background: #fff; display: block; aspect-ratio: 2/3; object-fit: cover; width: 100%; }
.teaser h2 { margin: 0; font-size: 1.4rem; }
.teaser .sub { color: var(--muted); font-size: .9rem; margin: 2px 0 12px; }
.teaser p { font-size: .95rem; }
@media (max-width: 900px) { .teasers { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .teaser { grid-template-columns: 100px 1fr; gap: 16px; } .teaser h2 { font-size: 1.2rem; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; margin: 0 0 30px; }
.card { background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.content .card img { margin: 0; padding: 0; box-shadow: none; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 6px; color: var(--heading); text-transform: none; font-weight: 400; font-size: 1.2rem; letter-spacing: 0; }
.card p { color: #777; font-size: .93rem; flex: 1; }
.card .btn { align-self: flex-start; }

/* team (framed photos, uppercase names) */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px; margin: 0 0 34px; }
.person img, .content .person img { box-shadow: var(--shadow); padding: 6px; background: #fff; aspect-ratio: 540/580; object-fit: cover; width: 100%; margin: 0 0 12px; display: block; }
.person h3 { margin: 0; font-size: .85rem; font-weight: 700; color: var(--text-strong); }
.person p { margin: 0 0 12px; font-size: .74rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

.info-box { background: var(--soft); border-left: 3px solid var(--link); padding: 16px 22px; margin: 0 0 1.5em; }
.info-box > :last-child { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 40px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.content .gallery a { display: block; }
.content .gallery img { margin: 0; aspect-ratio: 3/2; object-fit: cover; width: 100%; }

.sitemap { list-style: none; padding: 0; columns: 2 280px; }
.sitemap li { break-inside: avoid; }
.sitemap .lvl-2 { padding-left: 18px; } .sitemap .lvl-3 { padding-left: 36px; } .sitemap .lvl-4 { padding-left: 54px; }

/* click-to-load embeds */
.embed { position: relative; background: var(--navy); overflow: hidden; aspect-ratio: 16/9; margin: 0 0 1.5em; }
.embed--map { aspect-ratio: 16/10; background: var(--soft); border: 1px solid var(--line); }
.content .embed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; padding: 0; box-shadow: none; opacity: .4; }
.embed__notice { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; gap: 12px; }
.embed--video .embed__notice, .embed--video .embed__notice strong { color: #fff; }
.embed--video .embed__notice a { color: #fff; text-decoration: underline; }
.embed--video .btn { color: #fff; border-color: #fff; }
.embed__notice p { max-width: 520px; margin: 0; font-size: .9rem; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- home ---------- */
.hero { position: relative; background: #f7f7f7 url(../img/home-slider-1.jpg) center / cover no-repeat; }
.hero .wrap { position: relative; min-height: clamp(380px, 46vw, 560px); display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 12px; padding-top: 40px; padding-bottom: 40px; }
.hero .cap { background: var(--sky); color: #fff; padding: 8px 16px; font-size: clamp(1.1rem, 2.3vw, 1.75rem); line-height: 1.3; font-weight: 600; margin: 0; max-width: 100%; }
.hero h1.cap { font-size: clamp(1.1rem, 2.3vw, 1.75rem); }
.hero .cap--names { font-weight: 400; }
.hero .cap--names span { white-space: nowrap; }
.hero .cap--tag { margin-top: clamp(0px, 4vw, 50px); }
@media (max-width: 640px) {
  .hero .wrap { align-items: flex-start; justify-content: flex-end; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(51,51,102,.4)); }
}

.section { padding: 64px 0; }
.section--soft { background: var(--soft); }
.welcome { display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: center; }
.welcome img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 200px; box-shadow: 0 0 0 6px #fff, var(--shadow); }
.welcome blockquote { margin: 0; font-style: italic; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.6; color: #696969; }
.welcome .sig { text-align: right; font-size: .85rem; color: #777; margin: 14px 0 0; font-style: italic; }
@media (max-width: 700px) { .welcome { grid-template-columns: 1fr; gap: 24px; justify-items: center; } .welcome img { width: 150px; } }
.team-row { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
@media (max-width: 900px) { .team-row { grid-template-columns: 1fr; } }

/* ---------- footer (light grey like the original) ---------- */
.site-footer { background: var(--footer); color: #666; font-size: .92rem; border-top: 1px solid #e6e6e6; }
.site-footer a { color: var(--navy); }
.site-footer h2 { color: var(--text-strong); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 34px; padding-top: 54px; padding-bottom: 40px; }
.footer-grid ul.plain { margin: 0; }
.footer-grid ul.plain li { border-bottom: 1px solid #e3e3e3; padding: 6px 0; margin: 0; }
.footer-grid ul.plain li:first-child { padding-top: 0; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: grid; grid-template-columns: 24px 1fr; padding: 0 0 10px; }
.footer-contact svg { width: 14px; height: 14px; margin-top: 5px; fill: var(--navy); }
.footer-logo { width: 96px; margin-top: 10px; display: block; }
.footer-seal img { width: 120px; display: block; }
.footer-bottom-bar { background: var(--footer-bottom); color: var(--muted); font-size: .82rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.footer-bottom a { color: #777; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; background: rgba(51,51,102,.8); border: 0; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top::before { content: ""; display: block; width: 10px; height: 10px; margin: 6px auto 0; border: solid #fff; border-width: 2px 0 0 2px; transform: rotate(45deg); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 10, 25, .9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* CV pages */
.cv { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.content .cv > img { margin: 0; position: sticky; top: 110px; }
@media (max-width: 680px) { .cv { grid-template-columns: 1fr; } .content .cv > img { position: static; max-width: 240px; } }

@media print {
  .topbar, .site-header, .site-footer, .tour-nav, .embed, .to-top { display: none !important; }
  .page-head { background: none; color: #000; padding: 0; } .page-head h1 { color: #000; }
  .content.has-tour { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* home: all four doctors in one row, like the original */
.team-row .team { grid-template-columns: repeat(4, minmax(0, 180px)); margin: 0; }
@media (max-width: 700px) { .team-row .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* images inside running text float right, as in the original */
@media (min-width: 700px) {
  .content p > img, .content p > a.zoom, .content p > a > img { float: right; max-width: min(45%, 380px); margin: .3em 0 1em 26px; }
  .content p > a.zoom > img { max-width: 100%; margin: 0; float: none; }
  .content h2, .content h3, .content h4, .content section, .content details, .content ul, .content ol, .content table { clear: both; }
}
