:root {
    --color-offwhite: #f5eff3;
    --color-light-mauve: #e1d2db;
    --color-dark-mauve: #b5899c;
    --color-text-dark: #333333;
    --color-text-light: #888888;
    --color-copyright-bg: #e6d3dd;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text-dark);
}

.strip {
    width: 100%;
    display: flex;
    justify-content: center;
}

.strip-light {
    background-color: var(--color-light-mauve);
}

.strip-dark {
    background-color: var(--color-dark-mauve);
}

.strip-copyright {
    background-color: var(--color-copyright-bg);
}

.container {
    width: 100%;
    max-width: 980px;
    background-color: var(--color-offwhite);
    box-sizing: border-box;
}

/* Header */
.main-header {
    text-align: center;
    padding: 50px 20px 30px;
}

.logo-text {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #111;
    margin-bottom: 5px;
}

.logo-subtext {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 14px;
    color: #444;
    margin-left: 14px;
    text-transform: uppercase;
}

/* Nav */
.main-nav {
    width: 100%;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    flex: 1;
}

.main-nav li a {
    display: block;
    text-align: center;
    padding: 16px 0;
    text-decoration: none;
    color: #888;
    font-size: 16px;
    font-style: italic;
    font-weight: 300;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav li.active a,
.main-nav li a:hover {
    background-color: var(--color-dark-mauve);
    color: #fff;
}

/* Page Title */
.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin: 45px 0 40px 0;
    letter-spacing: 0.5px;
}

/* Main Image */
.main-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Top (Info) */
.footer-info {
    text-align: center;
    padding: 30px 20px 40px;
}

.footer-logo {
    width: 50px;
    height: auto;
    margin-bottom: 25px;
}

.footer-info p {
    margin: 8px 0;
    font-size: 12px;
    font-weight: 300;
    color: #888;
    letter-spacing: 0.5px;
}

.footer-info p a {
    color: #888;
    text-decoration: none;
}

/* Footer Bottom (Copyright) */
.footer-copyright {
    text-align: center;
    padding: 25px;
    width: 100%;
}

.social-icons {
    margin-bottom: 12px;
}

.social-icon {
    display: inline-block;
    margin: 0 12px;
    color: #333;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.copyright-text {
    font-size: 11px;
    color: #888;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.copyright-text a {
    color: #888;
    text-decoration: underline;
}

/* About Me Page */
.about-container {
    background-color: #fff;
    padding-bottom: 50px;
}

.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 60px 40px 40px;
}

.about-image {
    width: 45%;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    width: 55%;
    padding: 0 40px;
    text-align: center;
    box-sizing: border-box;
}

.about-title {
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    color: #111;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.about-content p {
    font-size: 11px;
    line-height: 1.8;
    color: #888;
    font-weight: 300;
    margin-bottom: 20px;
}

.about-content p.intro {
    font-weight: 500;
    color: #666;
}

.contact-section {
    text-align: center;
    padding: 0 20px;
}

.contact-section .about-title {
    margin-bottom: 20px;
}

.contact-info p {
    margin: 5px 0;
    font-size: 11px;
    font-weight: 300;
    color: #888;
    letter-spacing: 0.5px;
}

.contact-info p a {
    color: #888;
    text-decoration: none;
}

/* Gallery Page */
.gallery-wrapper {
    padding: 30px 10px;
    background-color: transparent;
    /* Allows dark mauve to show behind */
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery-item {
    flex: 1 1 300px;
    height: 300px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    max-width: 450px;
}

.gallery-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 85%;
}

.lightbox-content img {
    max-height: 100%;
    max-width: 90%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}

.close-lightbox:hover {
    color: #bbb;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 50px;
    transition: 0.6s ease;
    user-select: none;
    z-index: 1000;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover {
    color: #bbb;
}

/* --- Responsive Media Queries --- */

/* Tablet and Smaller */
@media screen and (max-width: 768px) {

    /* Header & Navigation */
    .logo-text {
        font-size: 30px;
    }

    .logo-subtext {
        font-size: 9px;
        letter-spacing: 10px;
        margin-left: 10px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav li a {
        padding: 12px 0;
        border-bottom: 1px solid var(--color-light-mauve);
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    /* Page Title */
    .page-title {
        font-size: 22px;
        margin: 30px 20px;
    }

    /* About Me Page */
    .about-image {
        width: 100%;
        margin-bottom: 30px;
    }

    .about-content {
        width: 100%;
        padding: 0 15px;
    }

    /* Gallery Page */
    .gallery-item {
        flex: 1 1 100%;
        /* Force 1 item per row on smaller screens */
        max-width: 100%;
        height: auto;
        /* Let height adapt to aspect ratio */
        aspect-ratio: 3/2;
        /* Maintain a nice rectangle */
    }

    /* Lightbox controls */
    .prev,
    .next {
        font-size: 30px;
        padding: 10px;
    }
}

/* Small Phones */
@media screen and (max-width: 480px) {
    .logo-text {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .logo-subtext {
        font-size: 8px;
        letter-spacing: 6px;
        margin-left: 6px;
    }

    .page-title {
        font-size: 18px;
    }

    .lightbox-content {
        height: 70%;
    }
}