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

body {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #2b2b2b;
    background-color: #fafafa;
    padding: 6em;
}

.container {
    max-width: 1100px;
    width: 80%;
    margin: 0 auto;
    padding: 6em 8em;
    background-color: #fff;
    text-align: center;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

section.readable {
    text-align: left;
    font-size: 1em;
    line-height: 1.7;
}

section.readable p {
    margin-bottom: 1.4em;
}

section.p {
    padding-bottom: 4em;
}

header {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 3em;
    padding-bottom: 1.5em;
}

header nav ul {
    list-style: none;
    text-align: center;
    margin-bottom: 0;
}

header nav ul li {
    display: inline;
    margin-right: 2.5em;
}

header nav ul li:last-child {
    margin-right: 0;
}

header nav ul li a {
    text-decoration: none;
    color: #666;
    font-size: 0.85em;
    font-weight: 400;
    text-transform: uppercase;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

header nav ul li a:hover {
    color: #2b2b2b;
}

header nav ul li.selected a {
    color: #2b2b2b;
    font-weight: 500;
}

h1 {
    font-size: 3.2em;
    text-align: center;
    margin: 0 0 1em;
    font-weight: 300;
    font-family: 'EB Garamond', Georgia, 'Times New Roman', Times, serif;
    letter-spacing: 0.5px;
}

h1 a {
    text-decoration: none;
    color: #2b2b2b;
}

h2 {
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: 1.5em;
    color: #2b2b2b;
    font-family: 'EB Garamond', serif;
}

h3 {
    font-size: 1.2em;
    font-weight: 500;
    margin: 2em 0 1em 0;
    color: #2b2b2b;
    font-family: 'EB Garamond', serif;
}

section a {
    text-decoration: none;
    color: #2b2b2b;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
    transition: border-bottom-color 0.2s ease;
}

section a:hover {
    border-bottom-color: #2b2b2b;
}

section.readable strong {
    color: #333;
    font-weight: 600;
}


/* Responsive Styles */
@media (max-width: 1200px) {
    body {
        padding: 4em;
        font-size: 17px;
    }
    
    .container {
        padding: 4em 6em;
    }
}

@media (max-width: 992px) {
    body {
        padding: 2em;
        font-size: 16px;
    }
    
    .container {
        padding: 3em 4em;
    }
    
    header nav ul li {
        margin-right: 2em;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.6em;
    }

    header {
        margin-bottom: 2em;
        padding-bottom: 1em;
    }

    header nav ul {
        text-align: left;
    }
    
    header nav ul li {
        display: block;
        margin-bottom: 0.7em;
        margin-right: 0;
    }

    .container {
        width: 100%;
        padding: 2em;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2em;
    }

    header nav ul li {
        margin-bottom: 0.5em;
    }

    .container {
        padding: 1.5em;
    }
    
    body {
        padding: 1em;
        font-size: 15px;
    }
}


/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    margin: 2em auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.carousel-images {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

/* Show/hide images without stretching */
.carousel-images img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: none; /* hide all by default */
    margin: 0 auto; /* center when visible */
}

.carousel-images img.active {
    display: block; /* show only the active image */
}

/* New: each slide spans full carousel width; content centered */
.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Important: do NOT force width=100%; only cap by container width */
.carousel-slide img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
}