@font-face {
    font-family: 'BookmanWeb';
    src: url('fonts/bookman-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

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


body {
    background: #ffffff;
    font-family: 'American Typewriter', 'Courier New', serif;
    color: #333;
}

/* ── Page wrapper ────────────────────────────────── */
#wrapper {
    width: 800px;
    margin: 0 auto;
    height: 600px;
    display: flex;
    flex-direction: column;
}

/* ── Top strip ───────────────────────────────────── */
#top-bar {
    height: 37px;
    flex-shrink: 0;
}

/* ── Middle row ──────────────────────────────────── */
#middle {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Left strip (13px) ───────────────────────────── */
#left-strip {
    width: 13px;
    flex-shrink: 0;
}

/* ── Nav column ──────────────────────────────────── */
#nav-col {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 175px;
    padding-left: 18px;
    padding-bottom: 47px;
}

nav ul {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

nav ul li a {
    text-decoration: none;
    color: #c0c0c0;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
}

nav ul li a:hover {
    color: #1a1a1a;
    font-weight: 700;
}

nav ul li a.active {
    color: #1a1a1a;
    font-weight: 700;
}

/* ── Content column ──────────────────────────────── */
#content-col {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    min-height: 0;
    position: relative;
}

#home-image {
    margin: 0 35px 55px 80px;
}

#home-name {
    position: absolute;
    bottom: 10px;
    left: 80px;
    right: 35px;
    text-align: center;
    font-family: 'BookmanWeb', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #cecece;
    margin: 0;
}

/* ── Alle pagina's: Y-as en X-as via CSS ──────────── */
/* Gedeelde as-posities (gemeten uit gecropte afbeeldingen):
   y-as: left=77px, top=256px, bottom=55px
   x-as: bottom=55px, left=77px */

/* Etsen + beginpagina: as overlay zonder layout-wijziging */
.has-axes {
    position: relative;
}
.has-axes::before {
    content: '';
    position: absolute;
    left: 76px;
    top: 239px;
    bottom: 53px;
    width: 3px;
    background: #e8e8e8;
    pointer-events: none;
}
.has-axes::after {
    content: '';
    position: absolute;
    left: 76px;
    right: 339px;
    bottom: 53px;
    height: 3px;
    background: #e8e8e8;
    pointer-events: none;
}

/* Tekstpagina's: as + scrollbare content */
#content-col.with-axes {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 63px;
    position: relative;
}
#content-col.with-axes::before {
    content: '';
    position: absolute;
    left: 76px;
    top: 239px;
    bottom: 53px;
    width: 3px;
    background: #e8e8e8;
    pointer-events: none;
}
#content-col.with-axes::after {
    content: '';
    position: absolute;
    left: 76px;
    right: 339px;
    bottom: 53px;
    height: 3px;
    background: #e8e8e8;
    pointer-events: none;
}

.content-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 0 35px 0 105px;
    margin-top: 137px; /* scrollgebied begint ~1cm boven Beginpagina */
}

/* ── Bottom strip ────────────────────────────────── */
#bottom-bar {
    height: 48px;
    flex-shrink: 0;
}

/* ── Etsen viewer ────────────────────────────────── */
#etsen-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 515px;
}

#etsen-image-wrap {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 15px 20px 0px 50px;
    overflow: hidden;
}

#etsen-image-wrap img {
    max-width: 100%;
    max-height: 430px;
    object-fit: contain;
    display: block;
}

#etsen-controls {
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 20px 0 80px;
    gap: 0;
}

#img-title {
    flex: 1;
    font-size: 10px;
    color: #c3c3c3;
    letter-spacing: 1px;
    line-height: 1.5;
}

#nav-arrows {
    display: flex;
    gap: 6px;
    align-items: center;
}

#nav-arrows img {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
}

#nav-arrows img:hover {
    opacity: 1;
}

/* ── Content pages (text) ────────────────────────── */
.page-content {
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #555;
    width: 100%;
    max-width: 480px;
    padding-top: 30px;
    padding-bottom: 40px;
    display: flow-root;
}

.page-content h2 {
    font-size: 12px;
    color: #555;
    font-weight: bold;
    margin: 24px 0 0;
}

figure.inline-img.float-right {
    float: right;
    clear: right;
    margin: 0 0 12px 18px;
    text-align: center;
}

figure.inline-img.float-left {
    float: left;
    clear: left;
    margin: 0 28px 12px 20px;
    text-align: center;
}

figure.inline-img.float-left img {
    display: block;
    max-width: 140px;
    border: none;
}

figure.inline-img.float-right img {
    display: block;
    max-width: 190px;
    border: none;
}

figure.inline-img:not(.float-right):not(.float-left):not(.narrow):not(.narrow-sm) {
    clear: both;
    margin: 20px 0;
    display: block;
    width: 100%;
}

figure.inline-img.narrow {
    width: 85%;
    margin: 20px auto;
}

figure.inline-img.narrow figcaption {
    font-size: 9px;
    color: #bbb;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

figure.inline-img.narrow-sm {
    width: 50%;
    margin: 20px auto;
}

figure.inline-img.narrow-sm img {
    width: 100%;
    border: none;
}

figure.inline-img.narrow img {
    width: 100%;
    border: none;
}

figure.inline-img:not(.float-right):not(.float-left) img {
    display: block;
    width: 100%;
    border: none;
}

figure.inline-img figcaption {
    font-size: 8px;
    color: #c3c3c3;
    letter-spacing: 1px;
    margin-top: 4px;
    line-height: 1.4;
}

.inline-img-pair {
    clear: both;
    display: flex;
    gap: 20px;
    margin: 16px 30px;
}

.inline-img-pair.aligned {
    width: 85%;
    margin: 16px auto;
    justify-content: space-between;
}

.inline-img-pair figure {
    margin: 0;
    text-align: center;
}

.inline-img-pair figure img {
    display: block;
    max-width: 140px;
    border: none;
}

.inline-img-pair figcaption {
    font-size: 8px;
    color: #c3c3c3;
    letter-spacing: 1px;
    margin-top: 4px;
    line-height: 1.4;
}

.page-content h1 {
    font-size: 12px;
    color: #555;
    font-weight: normal;
    margin-bottom: 4px;
}

.page-content p {
    margin-bottom: 16px;
}

.page-content p.right-align {
    text-align: right;
}

.page-content a {
    color: #aaa;
    text-decoration: underline;
}

.page-content a:hover {
    color: #333;
}

.page-content img {
    border: 1px solid #000;
}

.inline-img.float-right {
    float: right;
    margin: 0 0 16px 24px;
}

.inline-img {
    margin: 20px 0;
    clear: both;
}

.inline-img img {
    width: 100%;
    border: none;
}

.page-content::after {
    content: '';
    display: table;
    clear: both;
}

/* ── Homepage ────────────────────────────────────── */
#home-image {
    display: block;
}

/* Y-as beginpagina iets verder omhoog */
#content-col.has-axes::before {
    top: 175px;
}

/* Etsen-pagina: CSS-assen verborgen, as zit baked-in in de afbeeldingen */
#etsen-col.has-axes::before,
#etsen-col.has-axes::after {
    display: none;
}


