:root {
    --border-thickness: 2px;
    --header-height: 25px;
    --brand-blue: #008aa4;
    --white: #ffffff;
}

body {
    font-family: "MyCustomFont", Arial, sans-serif;
    margin: 0;
}

.main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.about-main {
    flex: 0 0 150px;
    min-width: 290px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: sticky;
    top: 20px;
    color: var(--brand-blue);
}

.about-text {
    color: black;
    font-family: "MaiaN", "JandaSafeandSound", "MyCustomFont", Arial, sans-serif;
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 26px;
    /* min-height: 485px; */
    padding: 0 10%;
}

.about-info {
    padding: 17px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-info .illustrator {
    text-align: left;
}

.about-info .icons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-self: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.about-info img {
    display: block;
    width: 33px;
    padding: 13px;
}

.about-nav-link,
.about-nav-link:visited {
    color: inherit;
    text-decoration: none;
}

.about-nav-link:hover,
.about-nav-link:focus-visible {
    text-decoration: underline;
}

.about-text h5 {
    white-space: pre-line;
}

.about-profile {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-susanna {
    position: absolute;
    padding: 30px;
    top: 352px;
    left: 16px;
    width: 70%;
    max-width: 380px;
    transform: translateY(-50%);
    pointer-events: auto;
    z-index: 0;
    text-align: right;
}

.about-susanna a {
    display: inline-block;
    text-decoration: none;
}

.about-me .butterflies {
    width: 130px;
    height: auto;
}

.about-me img {
    width: 250px;
    height: auto;
    margin: 30px auto;
    display: block;
}

.about-susanna img {
    display: block;
    width: 100%;
    height: auto;
}

.about-susanna span {
    font-size: 17px;
}
.about {
    height: 365px;
    overflow: hidden;
    position: relative;
}

.about::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white) 88%);
    pointer-events: none;
}

.about img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.gallery {
    flex: 1 1 0;
    min-width: 0;
}

div {
    font-size: 20px;
    /* border: 1px solid black; */
}

.narrative .content img,
.poems .content img,
.wimmelbooks .content img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 14px;
    break-inside: avoid;
    object-fit: cover;
    object-position: center center;
    cursor: zoom-in;
    transform: scale(1);
    transition: transform 180ms ease;
}

@media (hover: hover) {
    .narrative .content img:hover,
    .poems .content img:hover,
    .wimmelbooks .content img:hover {
        transform: scale(1.02);
    }
}

.narrative .content,
.poems .content,
.wimmelbooks .content {
    column-count: 4;
    column-gap: 14px;
}

@media (max-width: 1700px) {
    .narrative .content,
    .poems .content,
    .wimmelbooks .content {
        column-count: 3;
    }
}

@media (max-width: 1500px) {
    .narrative .content,
    .poems .content,
    .wimmelbooks .content {
        column-count: 2;
    }
}

@media (max-width: 1080px) {
    .narrative .content,
    .poems .content,
    .wimmelbooks .content {
        column-count: 2;
    }
    
    .main {
        flex-direction: column;
        gap: 0;
    }

    .about-main {
        position: unset;
        width: 100%;
    }
    /* this is to review - next three entries */
    .about-profile {
        position: absolute;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        top: 35px;
        left: auto;
        right: 30px;
        width: auto;
        max-width: 100%;
        text-align: left;
    }

    .about-susanna {
        position: static;
        display: flex;
        flex-direction: column;
        width: auto;
        max-width: 100%;
        padding: 0;
        text-align: right;
        align-items: flex-end;
        transform: none;
    }

    .about-susanna a {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .about-info span {
        font-size: 3vw;
    }

    .about-susanna img {
        max-width: min(28vw, 240px);
        width: auto;
    }

    .about-info {
        padding: 0 10px;
        /* position: static; */
        display: flex;
        flex-direction: row;
        align-items: center;
        /* justify-content: flex-start; */
        width: 100%;
        /* gap: 10px; */
    }
    .about-info .illustrator {
        font-size: 3vw;
        /* margin-right: 10px; */
        width: 100%;
        text-align: left;
    }
    .about-info .icons {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: flex-end;
        /* width: 20%; */
        /* margin-right: 10px; */
        margin-top: 0;
        margin-right: 10px;
    }

    .about-info img {
        width: 4.4vw;
        padding: 0;
    }

    .about {
        height: 100%;
    }

    .about img {
        height: auto;
    }

    .about::after {
        background: none;
    }
}
.bottom {
    height: 800px;
}

.section-header {
    position: sticky;
    height: var(--header-height);
    line-height: var(--header-height);
    padding: 0 60px;
    color: var(--white);
    cursor: pointer;
    background-color: var(--brand-blue);
    transition: background-color 0.4s ease;
    border-top: var(--border-thickness) solid var(--white);
    border-bottom: var(--border-thickness) solid var(--white);
}

.section-header.contacts-header {
    cursor: default;
}

.section-header.active {
    background-color: #d03844;
}

.narrative-header {
    top: 0px;
    z-index: 40;
}

.poems-header {
    top: var(--header-height);
    bottom: calc(var(--header-height) * 3);
    z-index: 30;
}

.wimmelbooks-header {
    top: calc(var(--header-height) * 2);
    bottom: calc(var(--header-height) * 2);
    z-index: 20;
}

.about-me-header {
    top: calc(var(--header-height) * 3);
    bottom: var(--header-height);
    z-index: 10;
}

.contacts-header {
    top: calc(var(--header-height) * 4);
    bottom: 0;
    z-index: 10;
    /* display: flex;
    align-items: center; */
}

.contacts-header a {
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    padding: 0 10px;
    /* flex: 0 0 auto; */
}

.contacts-header a img {
    display: block;
    width: 24px;
    height: auto; 
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    cursor: default;
    user-select: none;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    z-index: 1001;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 72px;
    font-weight: 100;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
    padding: 0 20px;
    opacity: 0.7;
    transition: opacity 0.15s;
    line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

.lightbox span {
        text-shadow: 1px 1px 2px #6e6d6d;
}

@font-face {
    font-family: "MyCustomFont";
    src: url("./fonts/Firenight-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JandaSafeandSound";
    src: url("./fonts/JandaSafeandSound.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MaiaN";
    src: url("./fonts/maian.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}