@font-face {
    font-family: 'CenturyExpandedLTStd';
    src: url('centuryexpandedltstd-webfont.woff2') format('woff2'),
         url('centuryexpandedltstd-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'CenturyExpandedLTStd', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    font-size: 16px; /* Base font size for responsiveness */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

h1 {
    text-align: center;
    font-size: 1.5rem; /* Keeps the header text size */
    margin: 0; /* Removes default margin */
    line-height: 1.2; /* Adjusts line height for better spacing */
    color: black; /* Keeps the text color black */
    padding: 5px 0; /* Adds a tiny bit of vertical padding */
}

p {
    text-align: center;
    font-size: 1rem; /* Default paragraph size (16px if base is 16px) */
    line-height: 1.5;
    
}

p:first-of-type {
    text-align: left;
    margin-left: 20px;
    font-size: 1.5rem; /* Equivalent to 24px if base is 16px */
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 80vh; /* Ensures the image fits within the viewport */
    height: auto;
    width: auto;
    object-fit: cover; /* Ensures the image fills the container */
    object-position: center; /* Aligns the image from the center */
}

figure {
    position: sticky; /* Macht die Figure sticky */
    top: 60px; /* Hält die Figure unterhalb des Headers */
    height: calc(100vh - 60px); /* Nimmt die verbleibende Höhe des Viewports ein */
    margin: 0; /* Entfernt Standard-Margins */
    background-color: #ffffff; /* Weißer Hintergrund für die Figure */
    padding: 0; /* Entfernt Padding */
    box-sizing: border-box; /* Bezieht Padding in die Höhe ein */
    display: block; /* Entfernt Flexbox */
}

figure:first-of-type {
    margin-top: 0; /* Removes any space above the first figure */
}

figcaption {
    font-size: 1.2rem; /* Slightly larger captions */
    color: #666;
    margin-top: 10px; /* Adds some space below the image */
    text-align: center; /* Centers the caption text */
}

a {
    text-decoration: underline dashed; /* Keeps the dashed underline for the link */
    color: black; /* Keeps the link color black */
}

header {
    position: sticky; /* Makes the header stick to the top */
    top: 0; /* Sticks the header to the top of the viewport */
    z-index: 10; /* Ensures the header stays above the figures */
    background-color: #ffffff; /* Adds a background to prevent overlap visibility */
    margin: 0;
    padding: 5px 15px; /* Adjusts padding for the header */
    border-bottom: none; /* Removes the bottom border */
}