/* Centered intro photo with wide margins on large screens */
.intro-centered {
        display: flex;
        justify-content: center;
        margin: 2.5em 0 2em 0;
}
.intro-photo {
    max-width: 100%;
    width: auto;
    height: auto;
    max-width: 600px;
    /* border-radius: 1em; */
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-height: 50vh;
}
.intro-text-centered {
    max-width: 600px;
    margin: 0 auto 2em auto;
    font-size: 1.1em;
    text-align: justify;
}

h1 {
    text-align: center;
}

/* Responsive intro section for front page */
/* Site title and subtitle styling */

.site-title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #244248;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.2em;
}

.site-subtitle {
    font-family: 'Open Sans', 'Times New Roman', Times, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #244248;
    letter-spacing: 0.01em;
    margin-bottom: 0.3em;
    /* margin: 0 auto; */
}

/* Magnifier effect for portfolio piece page */
.magnifier-container {
    position: relative;
    display: inline-block;
}

.magnifier-lens {
    position: absolute;
    border: 2px solid #244248;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-repeat: no-repeat;
    box-shadow: 0 2px 8px rgba(184, 92, 56, 0.15);
    pointer-events: none;
    z-index: 10;
}


main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1.5em auto;
}

body {
    margin: 0;
    font-family: 'Open Sans', 'Inter', Arial, sans-serif;
    font-size: 18px;
    background: #f7e9e0;
    color: #244248;
    line-height: 1.7;
}

/*the icons at the bottom of the page*/
a {
    color: #244248;
    text-decoration: none;
    transition: color 0.2s;
}
/*when you hover*/
a:hover {
    color: #244248;
}

header {
    background: #92c1a7;
    color: #244248;
    padding: 1rem 1rem 0.5rem 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    min-height: 3.5rem;
    transition: min-height 0.2s, padding 0.2s, font-size 0.2s, line-height 0.2s;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 4px solid #92c1a7;
}


@media (max-width: 600px) {
    header {
        padding: 0.1rem 1rem 0.1rem 1rem;
        font-size: 1rem;
        min-height: 2.2rem;
    }
    header .site-title {
        font-size: 0.9em;
        margin-bottom: 0;
    }
    header .site-subtitle {
        font-size: 1em;
        margin-bottom: 0;
    }
}

header nav {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.1rem;
    margin-top: 0.2em;
}

main {
    max-width: 900px;
    margin: 2em auto;
    padding: 0 1em;
    font-family: 'Inter', 'Montserrat', Arial, sans-serif;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2em;
}

.portfolio-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(184, 92, 56, 0.08);
    padding: 1em;
    text-align: center;
    font-family: 'Montserrat', Arial, sans-serif;
}

.portfolio-item img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5em;
}

.caption {
    font-size: 1.1rem;
    color: #244248;
}

.desc {
    color: #244248;
    font-size: 1.25rem;
    margin-top: 0.3em;
    margin-bottom: 1em;
    font-family: 'EB Garamond', 'Times New Roman', Times, serif;
    text-align: center;
}

footer {
    background: #92c1a7;
    color: #244248;
    text-align: center;
    padding: 1.5em 1em 1em 1em;
    font-size: 1rem;
    border-top: 4px solid #92c1a7;
    margin-top: 3em;
}

main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1.5em auto;
    /* border-radius: 10px; */
}

/* 
 .header>* {
     flex: 1;
 } */

header :link {
    color: fbfcfc;
}

header :visited {
    color: fbfcfc;
}

header .site-title {
    text-wrap: nowrap;
    font-size: 1.1em;
    margin-bottom: 0.1em;
    font-family: 'Truculenta', Arial, sans-serif;
    transition: font-size 0.2s, margin 0.2s, line-height 0.2s;
}

* header .site-subtitle {
    font-size: 2.2em;
    font-family: 'Truculenta', 'Times New Roman', Times, serif;
    margin-bottom: 0.1em;
    transition: font-size 0.2s, margin 0.2s, line-height 0.2s;
} */

body.scrolled header .site-title {
    font-size: 0.9em;
    margin-bottom: 0;
}

body.scrolled header .site-subtitle {
    font-size: 1em;
    margin-bottom: 0;
}
header .site-nav {
    font-family: sans-serif;
}

footer {
    text-align: center;
    font-size: small;
}

.footer-social {
    /* space icons apart */
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-bottom: 0.5em;
}

.social-links {
    font-size: medium;
}

.nav-item {
    display: inline-block;
    padding-right: 2em;
}