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

/* body */
body {
    font-family: Baskerville;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* navigation */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #6a0707e5;
    color: white;
    padding: 1rem 6rem;
}

header p {
    font-size: 32px;
    white-space: nowrap;
}

header a {
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

nav ul li a:hover {
    background: #5e0404e5;
    border-radius: 5px;
}

a {
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    header p {
        display: none;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
}

/* main content - common */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
    height: 100%;
    font-size: 18px;
    min-width: 300px;
}

h1 {
    margin-bottom: 1rem;
}

h2,
h3 {
    text-align: center;
}

img {
    width: 400px;
    max-width: 100%;
    height: auto;
}

main ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    list-style: none;
}

iframe {
    width: 400px;
    max-width: 100%;
    height: 240px;
    max-height: 100%;
    border: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: 24px;
        margin-bottom: 0;
    }
}

/* footer */
footer {
    align-self: flex-end;
    font-size: 12px;
    color: black;
    padding-right: 12px;
}

/* Home page */
.home-content {
    height: 100%;
    width: 100%;
    padding: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-image {
    width: 900px;
}

/* Media page */
.media-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* .media-content a {
    color: #b43807;
}

.media-content a:hover {
    color: #800000;
} */

.media-audio-subtitle,
.media-video-subtitle,
.media-photos-subtitle {
    margin: 40px 0 20px;
}

.media-audio {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-audio-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.media-audio-caption {
    text-align: center;
}

.media-video-grid,
.media-photos-grid {
    max-width: 1500px;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.media-photo,
.media-photo-3x2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-photo img,
.media-photo-3x2 img {
    width: 600px;
    margin: 1rem 1rem 0;
}

.media-photo span,
.media-photo-3x2 span {
    font-size: 14px;
}

/* About page */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image-and-bio {
    max-width: 1200px;
    margin-bottom: 30px;
}

.about-image-and-credit {
    float: right;
    margin: 0 0 0 20px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.about-image {
    width: 300px;
    margin: 0;
}

.about-credit {
    font-size: 10px;
}

.about-bio {
    text-align: justify;
}

@media (max-width: 768px) {
    .about-content {
        margin-top: 20px;
    }

    .about-image-and-bio {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-image-and-credit {
        float: none;
        margin: 0 0 20px 0;
    }
}

/* Contact page */
.contact-content {
    max-width: 600px;
    margin: auto;
}

.contact-content input,
.contact-content textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    resize: none;
}

.contact-content button {
    background: #6a0707e5;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.contact-content button:hover {
    background: #5e0404e5;
}
