* {
    box-sizing: border-box;
}

:root {
    --site-bg: #040b79;
}

a {
    color: #ff0000;
}

/* Mobile Settings */
@media (max-width: 768px) {
    body {
        padding: 0 10px;
        background-color: #485c5d;
    }

    body.work-page {
        flex-direction: column;
        padding: 0 10px;
        height: auto;
    }

    .left-panel {
        margin-left: 50px;
        padding: 50px 0px 50px 25px;
    }

    .page-column {
        margin-left: 50px;
        padding: 50px 25px;
    }

    .project-row p {
    flex: 0 0 100%;
    min-width: 100%;
    margin: 0;
    padding-left: 10px;
    line-height: 1.7;
    font-size: 14px;
    }
}

body {
    margin: 0;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-color: var(--site-bg);
    color: #ffffff;
    min-height: 100vh;
    padding: 0 20px;
    position: relative;
}

body.work-page {
    display: flex;
    gap: 0px;
    padding: 0 20px;
    height: 100vh;
    overflow: hidden;
}

.left-panel {
    width: max-content;
    min-width: 220px;
    margin-left: 100px;
    padding: 50px 0px 50px 50px;
    overflow-y: auto;
    overflow-x: hidden;
}

.right-panel {
    flex-grow: 1;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    height: 100vh;
    overflow: hidden;
}

.page-column {
    max-width: 220px;
    min-height: 100vh;
    margin: 0 0 0 100px;
    padding: 50px 50px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: normal;
}

h2 {
    padding-left:10px;
    margin-top: 0;
    margin-bottom: 3px;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: normal;
}

p {
    margin-top: 0;
    margin-bottom: 36px;
    line-height: 1.6;
}

.button-links {
    display: flex;
    flex-direction: column;
}

.button-link {
    display: inline-block;
    padding: 2px 6px 2px 6px;
    text-align: left;
    white-space: nowrap;
    background-color: #ffffff;
    color: #0a127d; 
    text-decoration: none;
        font-weight: normal;
}

.button-link:hover,
.button-link:focus {
    color: #ffffff;
    background-color: #6a5cc5;
}

.page-column > .button-link {
    display: block;
    width: 100%;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.page-column > .button-link + .button-link {
    margin-top: -1px;
}

.page-column > .button-link:hover,
.page-column > .button-link:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.dropdown-menu {
    --dropdown-toggle-width: 100px;
    margin-bottom: -1px;
}

.dropdown-toggle {
    display: block;
    width: var(--dropdown-toggle-width);
    padding: 2px 10px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

:is(.dropdown-links, .project-list) {
    gap: 0;
    margin-top: -1px;
    padding: 0px 0 0 20px;
    align-items: flex-start;
}

:is(.dropdown-links, .project-list) .button-link {
    width: auto;
    align-self: flex-start;
    position: relative;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.dropdown-links .button-link {
    width: calc(var(--dropdown-toggle-width) * 2);
}

:is(.dropdown-links, .project-list) .button-link + .button-link {
    margin-top: -1px;
}

:is(.dropdown-links, .project-list) .button-link:hover,
:is(.dropdown-links, .project-list) .button-link:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.project-list .button-link.active {
    background-color: #b70000;
    color: #ffffff;
}

:is(.dropdown-links, .project-list) .button-link[data-tooltip]::after {
    content: attr(data-tooltip);
    position: fixed;
    left: 20px;
    top: auto;
    width: 129px;
    padding: 6px 32px 6px 10px;
    background-color: transparent;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: normal;
    line-height: 1.5;

    border-top: 1px solid #ffffff;
    border-radius: 0;
    white-space: pre-line;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
}

:is(.dropdown-links, .project-list) .button-link[data-tooltip]:hover::after {
    opacity: 1;
}

.project-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
}

.project-container {
    --image-gap: 12px;
    display: flex;
    flex-direction: column;
    gap: var(--image-gap);
}

.project-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--image-gap);
    min-width: 0;
}

.project-row p {
    flex: 0 1 15%;
    min-width: 140px;

    margin: 3px 0;
    padding-left: 10px;
    line-height: 1.7;
    font-size: 14px;

}

.project-row .project-text {
    flex: 0 1 15%;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    padding-left: 10px;
}

.project-row .project-image {
    flex: 0 1 80%;
    min-width: 140px;
    width: 80%;
}

.project-row .image-gallery {
    flex: 1 1 80%;
    max-width: 85%;
    min-width: 0;
    margin-left: auto;
    display: flex;
    gap: var(--image-gap);
    align-items: flex-start;
    overflow: hidden;
}

.project-row .image-gallery .project-image {
    flex: 1 1 0;
    width: 0;
    max-width: none;
    max-height: 70vh;
    margin-left: 0;
}

.project-row .image-gallery.image-diptych .project-image {
    flex: 0 1 calc((100% - var(--image-gap)) / 2);
    width: calc((100% - var(--image-gap)) / 2);
}

.project-image {
    display: block;
    width: auto;
    max-width: 85%;
    max-height: 90vh;
    height: auto;
    object-fit: contain;
    object-position: right center;
    margin-left: auto;
    border: 0px solid rgba(255, 255, 255, 0.25);
}

body.project-page {
    margin: 0;
    min-height: 100%;
    padding: 20px;
    background-color: var(--site-bg);
    color: #ffffff;
    text-align: right;
}

body.project-page h2 {
    margin-top: 0;
    margin-bottom: 18px;
}