* {
    box-sizing: border-box;
}

html {
    font-size: 10px;
}

body {
    margin: 0;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.85);
    font-family: "Times New Roman", Times, serif;
    line-height: 1.5;
    font-size: 1.6rem;
}

a {
    color: rgba(0,0,0,0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: rgba(0,0,0,1);
    text-decoration: underline;
}

/* PAGE LAYOUT */
.page {
    text-align: center;
    padding: 3rem 1.5rem;
}

h1.page-title {
    font-size: 2.4rem;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.site-nav {
    font-size: 1.6rem;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding-bottom: 2rem;
    background-color: white;
    position: relative;
}

.site-nav a {
    color: rgba(0,0,0,0.85);
}

.site-nav a:hover {
    color: rgba(0,0,0,1);
    text-decoration: underline;
}

body.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.home-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: center;
    padding: 2rem;
}

.left-panel {
    order: 1;
}

.home-image {
    order: 2;
    width: 100%;
    max-width: 480px;
}

.right-panel {
    order: 3;
}

.home-image video {
    width: 100%;
    height: auto;
    max-height: 60vh; 
    display: block;
}

.about-panel {
    display: none;
    flex: 0 0 300px;
    font-size: 1.6rem;
    line-height: 1.4;
    text-align: justify;
    align-self: flex-start;
}
.about-panel p:first-child {
    margin-top: 0;
}

.about-panel.open {
    display: block;
}

/* Remove bullet points */
.writing-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.writing-section li {
    margin-bottom: 0.8rem;
}
.writing-container {
    max-width: 800px;   
    margin: 0 auto;    
    padding: 2rem 1.5rem; 
}

.writing-container * {
    text-align: left;
}


.writing-container p:first-child {
    margin-top: 0;
}

.writing-section ul,
.writing-container ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}


@media (max-width: 1024px) {
    .home-layout {
        flex-direction: column;
        align-items: center;
    }

    .home-image {
        max-width: 420px;
    }

    .left-panel,
    .right-panel {
        width: 90%;
        max-width: 600px;
        margin-top: 1.5rem;
    }

    .site-nav {
        order: 3;
        margin-top: 1rem;
    }
}

/* PHONE */
@media (max-width: 768px) {
    .home-image {
        max-width: 340px;
    }
}
.performance-panel {
    margin: 2rem auto 0;
    max-width: 500px;
    text-align: left;
}

.performance-panel img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    margin: 1.5rem auto;
}

.performance-section {
    margin: 20px auto;
    max-width: 1200px; /* Center and limit max width for larger screens */
    padding: 0 20px;  /* Add padding on the sides */
}

/* Performance Item Layout (Stacked for All Screens) */
.performance-item {
    margin-bottom: 40px;
    display: block;  /* Make sure the content is stacked on all screen sizes */
    text-align: left;
}

/* Text Section Styling */
.performance-text {
    font-size: 1.3rem;  /* Larger text size for better readability */
    line-height: 1.8;
    text-align: justify;  /* Justify the text */
    margin: 0;
    padding-right: 20px;
}

/* Image Section Styling */
.performance-images {
    text-align: center; /* Center images inside their container */
    margin-top: 20px; /* Add some spacing between text and images */
}

/* Ensuring images don't stretch beyond a limit */
.performance-images img {
    width: 100%;
    height: auto;
    max-width: 550px;  /* Ensure images don't stretch beyond 550px */
    max-height: 400px;  /* Set a reasonable max height for images */
    object-fit: contain;  /* Maintain aspect ratio */
}

/* Styling for the caption block */
.caption-container {
    text-align: left;  /* Left align the text inside caption block */
    margin-top: 10px;
    max-width: 550px;  /* Limit width of caption text */
    margin: 0 auto; /* Center the caption block under the image */
}

.caption {
    font-size: 1.4rem;  /* Larger captions for better readability */
    text-align: left;  /* Left-align caption text */
    font-style: normal;  /* Remove italics */
    line-height: 1.5;
}

@media (max-width: 768px) {
    .performance-panel {
        max-width: 90%;
    }

    .performance-panel img {
        max-height: 50vh;
    }
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .performance-text {
        font-size: 1.4rem;  /* Increase font size on small screens */
    }

    .caption {
        font-size: 1.3rem;  /* Larger captions on small screens */
    }

    .performance-images img {
        max-height: 300px;  /* Reduce max height on smaller screens */
    }
}

/* For smaller screens (e.g., mobile devices) */
@media (max-width: 480px) {
    .performance-text {
        font-size: 1.5rem;  /* Increase font size for mobile devices */
    }

    .performance-images img {
        max-width: 100%;  /* Ensure images scale to the screen width */
    }

    .caption {
        font-size: 1.2rem;  /* Adjust caption size for better readability */
    }
}

.portfolio-link {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    font-size: 1.7rem;
    color: rgba(0,0,0,1);
    text-decoration: none;
    z-index: 100;
}

.portfolio-link:hover {
    color: rgba(0,0,0,0.85);
    text-decoration: underline;
}
