*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #f1f1f1;
  --text:         #2d2d2d;
  --muted:        #999;
  --accent:       #0077ff;
  --font:         Verdana, Geneva, sans-serif;
  --trans:        100ms ease;

  --page-w:       1440px;
  --margin-h:     110px;
  --left-col-w:   398px;
  --col-gap:      46px;
}

html, body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Page shell ── */
.page-frame {
  width: 100%;
  max-width: var(--page-w);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.page-frame::before,
.page-frame::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.page-frame::before { left: calc(var(--margin-h) - 8px); }
.page-frame::after  { right: calc(var(--margin-h) - 8px); }


/* ── Inner content ── */
.page-inner {
  padding: 0 var(--margin-h) 118px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Nav ── */
.site-nav {
  display: flex;
  align-items: center;
  height: 35px;
  margin-top: 79px;
  margin-bottom: 19px;
}

.nav-link {
  font-family: var(--font);
  font-weight: bold;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  padding: 0 8px;
  transition: color var(--trans);
  white-space: nowrap;
}

.nav-link:first-child { padding-left: 0; }

.nav-link:hover { color: var(--text); }

/* Span wraps the text — its ::after is exactly text-width wide */
.nav-link span {
  position: relative;
  isolation: isolate;
}

.nav-link span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--text);
  transform: scaleY(0);
  transform-origin: top;
  z-index: -1;
}

.nav-link.active {
  color: var(--text);
  /* text-shadow in the bg colour creates skip-ink gaps over the bar */
  text-shadow:
    2px  0    var(--bg), -2px  0    var(--bg),
    0    2px  var(--bg),  0   -2px  var(--bg),
    2px  2px  var(--bg), -2px  2px  var(--bg),
    2px -2px  var(--bg), -2px -2px  var(--bg);
}

.nav-link.active span::after {
  animation: underline-grow 150ms ease forwards;
}

@keyframes underline-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.nav-sep {
  display: inline-block;
  font-size: 0;
  width: 1px;
  height: 16px;
  background: var(--muted);
  vertical-align: middle;
  margin: 0 2px;
  user-select: none;
}

/* ── Two-column layout ── */
.main-content {
  display: grid;
  grid-template-columns: var(--left-col-w) var(--col-gap) 776px;
  gap: 0;
  align-items: start;
}

.col-divider {
  position: relative;
  align-self: stretch;
}

.col-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--muted) 0,
    var(--muted) 4px,
    transparent 4px,
    transparent 8px
  );
}

/* ── Left column ── */
.left-col {
  display: flex;
  flex-direction: column;
}

/* Thumbnail grid */
.thumb-grid {
  display: grid;
  grid-template-columns: 195px 195px;
  gap: 8px;
}

.thumb-item {
  width: 195px;
  height: 141px;
  border: 1px solid var(--muted);
  padding: 2px;
  cursor: pointer;
  position: relative;
  background: none;
  overflow: hidden;
  transition: border-color var(--trans);
  display: block;
}

.thumb-item:focus { outline: none; }

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #fff;
  opacity: 0.3;
  transition: opacity var(--trans), width 80ms ease, height 80ms ease, margin 80ms ease;
}

.thumb-item.active .thumb-img {
  opacity: 1;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  margin: -2px;
}

.thumb-label {
  position: absolute;
  bottom: 0;
  left: -1px;
  right: -1px;
  height: 0;
  overflow: hidden;
  background: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 4px;
  transition: height var(--trans), background var(--trans);
}

.thumb-label span {
  font-family: var(--font);
  font-size: 10px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
}

.thumb-item:hover .thumb-label { height: 16px; }

.thumb-item.active {
  border-color: var(--text);
}

.thumb-item.active .thumb-label {
  height: 16px;
  background: var(--text);
  transition: background var(--trans);
}

.thumb-item.active .thumb-label span { color: #fff; }

/* Description panel */
.project-info {
  width: 100%;
  min-height: 115px;
  margin-top: 30px;
  padding-left: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-info::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 16px;
  background: var(--text);
}

@keyframes barGrow {
  from { width: 1px; }
  to   { width: 16px; }
}

@keyframes infoFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.project-info.is-animating {
  animation: infoFadeIn 150ms ease-out forwards;
}

.project-info.is-animating::before {
  animation: barGrow 150ms ease-out forwards;
}

.project-title {
  font-family: var(--font);
  font-weight: bold;
  font-size: 16px;
  color: var(--text);
  line-height: normal;
}

.project-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tag {
  background: var(--text);
  color: #fff;
  font-family: var(--font);
  font-size: 10px;
  padding: 1px 4px;
  line-height: 1.5;
}

.project-desc {
  font-family: var(--font);
  font-size: 10px;
  color: var(--text);
  line-height: 1.5;
}

/* ── Right column ── */
.right-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-panel {
  width: 100%;
  aspect-ratio: 776 / 556;
  border: 1px solid var(--text);
  overflow: hidden;
  background: transparent;
  padding: 2px;
}

.preview-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.see-more-link {
  font-family: var(--font);
  font-size: 10px;
  color: #00e;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-end;
  transition: color var(--trans);
}

.see-more-link:hover {
  text-decoration: underline;
}

.see-more-link:active {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 24px;
  text-align: center;
  position: relative;
}

.footer-rule {
  position: absolute;
  top: 0;
  left: var(--margin-h);
  right: var(--margin-h);
  height: 1px;
  background: var(--muted);
}

.footer-links {
  font-family: var(--font);
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; }

.footer-sep {
  color: var(--muted);
  user-select: none;
}

.footer-copy {
  font-family: var(--font);
  font-size: 10px;
  color: var(--muted);
}

/* ── About Me page ── */
.about-layout {
  display: grid;
  grid-template-columns: 262px 290px;
  gap: 0 7px;
}

.about-photo-frame {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
  width: 262px;
  border: 1px solid var(--text);
  padding: 2px;
  overflow: hidden;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-fav-links {
  grid-column: 1;
  grid-row: 3;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.about-section-label {
  font-family: var(--font);
  font-weight: bold;
  font-style: normal;
  font-size: 10px;
  color: var(--text);
  line-height: 12px;
}

.fav-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.fav-link-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 12px;
}

.fav-link-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--muted);
  flex-shrink: 0;
}

.fav-link-list a {
  font-family: var(--font);
  font-style: normal;
  font-size: 10px;
  color: #1e1eee;
  text-decoration: none;
  line-height: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.fav-link-list a:hover { text-decoration: underline; }

/* Bio column — upper portion (row 1) */
.about-bio-top {
  grid-column: 2;
  grid-row: 1;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
}

.about-greeting {
  font-family: var(--font);
  font-weight: bold;
  font-style: normal;
  font-size: 10px;
  color: var(--text);
  line-height: 12px;
  margin-bottom: 12px;
}

.about-bio {
  font-family: var(--font);
  font-style: normal;
  font-size: 10px;
  color: var(--text);
  line-height: 1.5;
  text-align: justify;
  margin-bottom: 14px;
}

.about-bio strong {
  font-weight: bold;
  font-style: normal;
}

.about-divider {
  border-top: 1px dashed var(--muted);
  margin-bottom: 10px;
}

.currently-table {
  display: flex;
  flex-direction: column;
  margin-bottom: 43px;
}

.currently-row {
  display: flex;
  align-items: center;
  height: 14px;
}

.currently-label {
  font-family: var(--font);
  font-weight: bold;
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  width: 64px;
  flex-shrink: 0;
}

.currently-value {
  font-family: var(--font);
  font-style: normal;
  font-size: 10px;
  color: var(--text);
}

.about-connect-row {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.connect-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.connect-label {
  font-family: var(--font);
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
}

.connect-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.connect-icons img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
  transition: transform 80ms ease;
}

.connect-icons a:hover img {
  transform: scale(1.25);
}

.connect-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.download-label {
  font-family: var(--font);
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  line-height: 14px;
}

.about-download-links {
  display: flex;
  gap: 8px;
}

.about-download-links a {
  font-family: var(--font);
  font-style: normal;
  font-size: 10px;
  color: #00e;
  text-decoration: none;
  line-height: 14px;
}

.about-download-links a:hover { text-decoration: underline; }

/* ── Static page content (about, contact) ── */
.page-body {
  padding: 40px 0 60px;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-heading {
  font-family: var(--font);
  font-weight: bold;
  font-size: 16px;
  color: var(--text);
}

.page-text {
  font-family: var(--font);
  font-size: 10px;
  color: var(--text);
  line-height: 1.7;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.contact-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.contact-label {
  font-family: var(--font);
  font-weight: bold;
  font-size: 10px;
  color: var(--muted);
  min-width: 72px;
}

.contact-link {
  font-family: var(--font);
  font-size: 10px;
  color: var(--text);
  text-decoration: none;
}

.contact-link:hover { text-decoration: underline; }

/* ── Project detail pages ── */
.detail-page {
  height: 100vh;
  overflow: hidden;
}

.detail-page .page-inner {
  padding-bottom: 8px;
  overflow: hidden;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 35px;
  width: 100%;
  margin-top: 79px;
  margin-bottom: 19px;
}

.detail-left {
  display: flex;
  flex-direction: column;
  position: relative;
}

.detail-nav-links {
  display: flex;
  gap: 16px;
}

.back-link,
.prev-link,
.next-link {
  font-family: var(--font);
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.back-link {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 4px;
}

.back-link:hover,
.prev-link:hover,
.next-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.detail-title {
  font-family: var(--font);
  font-weight: bold;
  font-size: 16px;
  color: var(--text);
}

.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 8px 0 0;
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
}

/* ── Vista '07 scrollbar (spacehey source) ── */
.image-gallery::-webkit-scrollbar {
  width: 16px;
}

.image-gallery::-webkit-scrollbar-corner {
  background: #eee;
}

.image-gallery::-webkit-scrollbar-track:vertical {
  background: linear-gradient(90deg, #e5e5e5, #f0f0f0 20%);
}

.image-gallery::-webkit-scrollbar-thumb {
  background-color: #eee;
  border: 1px solid #8e8f8f;
  border-radius: 3px;
  box-shadow: inset 0 -1px 1px hsla(0,0%,100%,.8), inset 0 1px 1px #fff;
}

.image-gallery::-webkit-scrollbar-thumb:vertical {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAIAAADpZ+PpAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAADrSURBVChTTc5LboJQGAXguyoCu4ERCzAGlRk7UOwGWIDh0s4M4kxb06RSq/jAB6AxJkJ4lTDrue3AnvyzP+fLId+/yfM8juP7PQmCCOf7B3e+ZD+O40RRVFW12VQUpd3r9U3T2m4OpKoqWZYNwzBZLEqfh0N7NnvfrPcEWlEUWZb9mWF4Ph6D0ylcLbfM5HkeJrhGA2hb15/QXnv+w7RYXsDatjOdvnmrHSnLEizMNE2v11sUXQBCnn98kbquBUGQJAlmq9WB2e3qg4HJdqKkaRql1HGc0WgMcDJ5dd0F24kediZJ8t/ELT69H+8py0CYSIO5AAAAAElFTkSuQmCC") 50% no-repeat, linear-gradient(90deg, #eee 45%, #ddd 0, #bbb);
}

.image-gallery::-webkit-scrollbar-thumb:hover:vertical {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAIAAADpZ+PpAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAADrSURBVChTTc5LboJQGAXguyoCu4ERCzAGlRk7UOwGWIDh0s4M4kxb06RSq/jAB6AxJkJ4lTDrue3AnvyzP+fLId+/yfM8juP7PQmCCOf7B3e+ZD+O40RRVFW12VQUpd3r9U3T2m4OpKoqWZYNwzBZLEqfh0N7NnvfrPcEWlEUWZb9mWF4Ph6D0ylcLbfM5HkeJrhGA2hb15/QXnv+w7RYXsDatjOdvnmrHSnLEizMNE2v11sUXQBCnn98kbquBUGQJAlmq9WB2e3qg4HJdqKkaRql1HGc0WgMcDJ5dd0F24kediZJ8t/ELT69H+8py0CYSIO5AAAAAElFTkSuQmCC") 50% no-repeat, linear-gradient(90deg, #e5f4fd 45%, #b3e0f9 0);
  border-color: #3c7fb1;
}

.image-gallery::-webkit-scrollbar-thumb:active:vertical {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAIAAADpZ+PpAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAADrSURBVChTTc5LboJQGAXguyoCu4ERCzAGlRk7UOwGWIDh0s4M4kxb06RSq/jAB6AxJkJ4lTDrue3AnvyzP+fLId+/yfM8juP7PQmCCOf7B3e+ZD+O40RRVFW12VQUpd3r9U3T2m4OpKoqWZYNwzBZLEqfh0N7NnvfrPcEWlEUWZb9mWF4Ph6D0ylcLbfM5HkeJrhGA2hb15/QXnv+w7RYXsDatjOdvnmrHSnLEizMNE2v11sUXQBCnn98kbquBUGQJAlmq9WB2e3qg4HJdqKkaRql1HGc0WgMcDJ5dd0F24kediZJ8t/ELT69H+8py0CYSIO5AAAAAElFTkSuQmCC") 50% no-repeat, linear-gradient(90deg, #cee9f8 45%, #86c6e8 0);
  border-color: #6d91ab;
}

.image-gallery::-webkit-scrollbar-button:vertical:end:decrement,
.image-gallery::-webkit-scrollbar-button:vertical:start:increment {
  display: none;
}

.image-gallery::-webkit-scrollbar-button {
  border: 1px solid transparent;
}

.image-gallery::-webkit-scrollbar-button:vertical {
  height: 17px;
}

.image-gallery::-webkit-scrollbar-button:vertical:start {
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6IzMzMztzdG9wLW9wYWNpdHk6MSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6I2FhYTtzdG9wLW9wYWNpdHk6MSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik04IDZIN3YxSDZ2MUg1djFINHYxaDdWOWgtMVY4SDlWN0g4VjZaIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+") , linear-gradient(90deg, #e5e5e5, #f0f0f0 20%);
}

.image-gallery::-webkit-scrollbar-button:vertical:end {
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6IzMzMztzdG9wLW9wYWNpdHk6MSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6I2FhYTtzdG9wLW9wYWNpdHk6MSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik0xMSA2SDR2MWgxdjFoMXYxaDF2MWgxVjloMVY4aDFWN2gxVjZaIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+") , linear-gradient(90deg, #e5e5e5, #f0f0f0 20%);
}

.image-gallery::-webkit-scrollbar-button:hover {
  background-color: #eee;
  border-color: #8e8f8f;
  border-radius: 3px;
  box-shadow: inset 0 -1px 1px hsla(0,0%,100%,.8), inset 0 1px 1px #fff;
}

.image-gallery::-webkit-scrollbar-button:hover:vertical:start {
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6IzMzMztzdG9wLW9wYWNpdHk6MSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6I2FhYTtzdG9wLW9wYWNpdHk6MSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik04IDZIN3YxSDZ2MUg1djFINHYxaDdWOWgtMVY4SDlWN0g4VjZaIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+") , linear-gradient(90deg, #e5f4fd 45%, #b3e0f9 0);
  border-color: #3c7fb1;
}

.image-gallery::-webkit-scrollbar-button:hover:vertical:end {
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6IzMzMztzdG9wLW9wYWNpdHk6MSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6I2FhYTtzdG9wLW9wYWNpdHk6MSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik0xMSA2SDR2MWgxdjFoMXYxaDF2MWgxVjloMVY4aDFWN2gxVjZaIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+") , linear-gradient(90deg, #e5f4fd 45%, #b3e0f9 0);
  border-color: #3c7fb1;
}

.image-gallery::-webkit-scrollbar-button:active {
  background-color: #eee;
  border-color: #8e8f8f;
  border-radius: 3px;
  box-shadow: inset 0 -1px 1px hsla(0,0%,100%,.8), inset 0 1px 1px #fff;
}

.image-gallery::-webkit-scrollbar-button:active:vertical:start {
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6IzMzMztzdG9wLW9wYWNpdHk6MSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6I2FhYTtzdG9wLW9wYWNpdHk6MSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik04IDZIN3YxSDZ2MUg1djFINHYxaDdWOWgtMVY4SDlWN0g4VjZaIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+") , linear-gradient(90deg, #cee9f8 45%, #86c6e8 0);
  border-color: #6d91ab;
}

.image-gallery::-webkit-scrollbar-button:active:vertical:end {
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6IzMzMztzdG9wLW9wYWNpdHk6MSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6I2FhYTtzdG9wLW9wYWNpdHk6MSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik0xMSA2SDR2MWgxdjFoMXYxaDF2MWgxVjloMVY4aDFWN2gxVjZaIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+") , linear-gradient(90deg, #cee9f8 45%, #86c6e8 0);
  border-color: #6d91ab;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--muted);
  display: block;
}

/* DocBox: single tall image — renders at natural height, no 16:9 crop */
.gallery-img--natural {
  aspect-ratio: auto;
}

.detail-page .site-footer {
  flex-shrink: 0;
  margin-top: 48px;
}

.detail-page .footer-rule {
  left: 0;
  right: 0;
}

/* ── Responsive breakpoints ── */
@media (max-width: 1199px) {
  :root {
    --margin-h:   40px;
    --left-col-w: 280px;
    --col-gap:    32px;
  }

  .main-content {
    grid-template-columns: var(--left-col-w) var(--col-gap) 1fr;
  }

  .thumb-grid {
    grid-template-columns: 1fr 1fr;
  }
  .thumb-item {
    width: auto;
    height: auto;
    aspect-ratio: 195 / 141;
  }

  .about-layout {
    grid-template-columns: 1fr 1fr;
  }
  .about-photo-frame {
    width: auto;
  }
}

@media (max-width: 767px) {
  :root {
    --margin-h: 20px;
    --col-gap:  0px;
  }

  .page-inner {
    padding-bottom: 48px;
  }

  .site-nav {
    margin-top: 36px;
  }

  .main-content {
    grid-template-columns: 1fr;
  }

  .col-divider {
    display: none;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-photo-frame {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    height: 260px;
  }
  .about-fav-links {
    grid-column: auto;
    grid-row: auto;
  }

  .about-connect-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .detail-header {
    height: auto;
    min-height: 35px;
    margin-top: 36px;
  }
}
