* { box-sizing: border-box; }
body { max-width: 960px; margin: 0 auto; padding: 28px 24px; font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.6; color: #202020; background: #fff; }
a { color: #174c80; text-underline-offset: 3px; }
a:hover { color: #111; }
a:focus-visible { outline: 2px solid #174c80; outline-offset: 4px; }
header { border-bottom: 1px solid #aaa; padding-bottom: 20px; margin-bottom: 32px; }
h1 { margin: 0 0 12px; font-size: 2.3rem; line-height: 1.2; }
h1 a { color: inherit; text-decoration: none; }
nav { line-height: 2; }
nav [aria-current="page"] { font-weight: bold; color: #202020; text-decoration: none; }
h2 { margin: 32px 0 12px; line-height: 1.3; }
h3 { margin-bottom: 0; }
p { margin: 12px 0; }
.intro { display: grid; grid-template-columns: 1fr minmax(180px, 320px); align-items: center; gap: 40px; margin: 12px 0 36px; }
.portrait { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; height: auto; }
.tagline { font-size: inherit; line-height: inherit; margin: 0; text-align: right; }
table { border-collapse: collapse; width: 100%; overflow-wrap: anywhere; font-size: 1em; }
th, td { border: 1px solid #bbb; padding: 10px; text-align: left; }
.credit { color: #555; margin-top: 2px; }
article { max-width: 760px; }
.cv-download, .buy-button { display: inline-block; border: 1px solid #174c80; padding: 8px 16px; }
footer { margin-top: 40px; }
img { max-width: 100%; }
@media (max-width: 560px) {
 body { padding: 20px 16px; }
 .intro { grid-template-columns: 1fr; gap: 20px; }
 .portrait { max-width: 320px; justify-self: end; }
 th, td { padding: 6px; }
}

.cv-table { width: auto; max-width: 100%; font-size: 1em; }
.cv-table th, .cv-table td { padding: 6px; vertical-align: top; background: transparent; }

.cv-table th[scope="row"], .cv-table tr > :first-child { white-space: nowrap; overflow-wrap: normal; }

.cv-table[aria-labelledby="experience-heading"] tr > :nth-child(2) { width: 22%; overflow-wrap: normal; }

.gallery-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.gallery-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #174c80; background: #fff; color: #174c80; font-size: 1.25em; text-decoration: none; }
a.gallery-arrow:hover { background: #eef3f7; }
span.gallery-arrow { color: #777; border-color: #ccc; }
.screenshot-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #777 #eee; }
.screenshot-gallery figure { margin: 0; min-width: 0; scroll-snap-align: start; scroll-margin-block-start: 16px; }
.screenshot-gallery figure:last-child { scroll-snap-align: end; }
.screenshot-frame { display: block; width: 100%; height: auto; object-fit: contain; }
.screenshot-gallery:focus-visible { outline: 2px solid #174c80; outline-offset: 4px; }

.mediamuster-gallery { grid-auto-columns: minmax(280px, 1fr); align-items: start; }
@media (max-width: 560px) {
 .screenshot-gallery { grid-auto-columns: 82%; gap: 16px; }
}

/* Match the width at which every screenshot fits without scrolling. */
@media (min-width: 908px) {
 .screenshot-gallery .gallery-controls { display: none; }
}
@media (min-width: 628px) {
 .mediamuster-gallery .gallery-controls { display: none; }
}
