/* Annie Leibovitz Photography Website - Student Project */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f7f5f0;
    color: #1a1a1a;
    line-height: 1.6;
}

header {
    background-color: #111111;
    color: white;
    text-align: center;
    padding: 28px 20px 20px;
}

.logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    letter-spacing: 4px;
    font-weight: normal;
}

.tagline {
    font-size: 0.85rem;
    letter-spacing: 5px;
    margin-top: 6px;
    color: #d6d6d6;
}

nav {
    margin-top: 22px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 16px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

nav a:hover {
    color: #c7b8a0;
}

main {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

.hero {
    text-align: center;
}

.hero img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    display: block;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.8rem;
    margin-top: 35px;
    font-weight: normal;
    letter-spacing: 2px;
}

.hero-subtitle {
    margin: 10px 0 20px;
    letter-spacing: 3px;
    color: #555555;
}

.intro {
    max-width: 760px;
    margin: 0 auto 25px;
    font-size: 1.05rem;
}

.button {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 24px;
    background-color: #111111;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.button:hover {
    background-color: #444444;
}

.page-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    text-align: center;
    font-weight: normal;
    letter-spacing: 3px;
    margin-bottom: 35px;
}

.bio-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.bio-layout img {
    width: 42%;
    min-width: 280px;
}

.bio-text {
    flex: 1;
}

.bio-text p {
    margin-bottom: 18px;
}

.portfolio-categories {
    text-align: center;
    margin-bottom: 35px;
}

.portfolio-categories a {
    color: #333333;
    text-decoration: none;
    margin: 0 12px;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.portfolio-categories a:hover {
    text-decoration: underline;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.gallery figure {
    background-color: white;
    padding: 10px;
}

.gallery img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block;
}

.gallery figcaption {
    text-align: center;
    padding: 10px 5px 5px;
    font-size: 0.85rem;
    color: #666666;
}

.contact-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
    padding: 50px 35px;
}

.contact-box h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    margin-bottom: 15px;
}

.contact-box p {
    margin-bottom: 20px;
}

.contact-box a {
    color: #111111;
}

.contact-label {
    margin-top: 30px;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: bold;
}

footer {
    background-color: #111111;
    color: #cccccc;
    text-align: center;
    padding: 22px 15px;
    margin-top: 55px;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

@media (max-width: 750px) {
    nav a {
        display: block;
        margin: 10px 0;
    }

    .bio-layout {
        flex-direction: column;
    }

    .bio-layout img {
        width: 100%;
        min-width: 0;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery img {
        height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }
}
