body {
    font-family: Times, serif;
    margin: 0;
    padding: 0;
    background-color: white;
    height: 100vh;
    overflow: hidden;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    height: 12vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: white;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.header p {
    margin: 0;
    margin-bottom: 16px;
}

.nav {
    font-size: 16px;
}

.nav a {
    color: blue;
    text-decoration: underline;
    margin: 0 8px;
}

.nav a.active {
    color: black;
    text-decoration: none;
}

.slideshow {
    font-size: 16px;
    color: blue;
    text-decoration: underline;
    margin: 0 8px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 4px;
}

.slideshow:first-of-type {
    left: 20px;
}

.slideshow:last-of-type {
    right: 20px;
}

.content {
    height: 88vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-container::before {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    grid-area: 1/1/2/2;
}

.image-container img {
    object-fit: contain;
    display: none;
    max-height: 100%;
    max-width: calc(100vh - 12vh - 10px);
    height: auto;
    width: auto;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.5);
}

.image-container img.active {
    display: block;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 60%;
    padding: 0 60px;
    align-self: flex-start;
    margin-top: 20px;
}

.profile-photo {
    width: 25%;
    height: 30%;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo p {
    margin: 0;
    font-style: italic;
}

.about-text {
    font-size: 16px;
    line-height: 1.5;
}

.about-text h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.about-text p {
    margin: 0 0 20px 0;
}

.slideshow-mobile {
    display: none;
}

.slideshow-mobile-controls {
    display: none;
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }
    
    .container {
        height: auto;
        min-height: 100vh;
    }
    
    .content {
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 20px 5px;
    }

    .header {
        height: auto;
        padding: 20px 0;
    }

    .header h1 {
        font-size: 20px;
    }

    .nav {
        font-size: 14px;
    }

    .nav a {
        margin: 0 6px;
    }

    .about-content {
        max-width: 85%;
        padding: 0 20px;
        gap: 15px;
    }

    .profile-photo {
        float: left;
        width: 25%;
        height: 30%;
        margin: 0 15px 10px 0;
    }

    .about-text {
        font-size: 14px;
        text-align: left;
    }

    .about-text h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .slideshow {
        display: none;
    }

    .image-container {
        width: 100%;
        height: 70vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: white;
        margin-bottom: 15px;
        position: relative;
    }

    .image-container img {
        object-fit: contain;
        display: none;
        max-height: 90vw;
        max-width: 90%;
        height: auto;
        width: auto;
    }

    .slideshow-mobile-controls {
        display: flex;
        gap: 20px;
        justify-content: center;
        position: static;
        width: 100%;
        margin-top: 10px;
    }

    .slideshow-mobile {
        display: inline-block;
        font-size: 16px;
        color: blue;
        text-decoration: underline;
        cursor: pointer;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 8px 12px;
        border-radius: 4px;
    }
}