:root {
    --bg-color: #F6EDE3;
    --text-color1: #995F54;
    --text-color2: #3D4538;
    --dark-text: #3D4538;
    --color4: #b9ceac;
    --font-size-root: 62.5%;
    --latest-text: calc(22px + 0.5vw);
    --latest-line-height: 3;
    --loading-text: calc(25px + 0.5vw);
    --header2-line-height: 2;
    --body-text: calc(15px + 0.5vw);
    --body-line-height: 1.125;
    --publication-card-title-text: calc(18px + 0.5vw);
    --publication-card-line-height: 0.1;
    --publication-title-text: calc(17px + 0.5vw);
    --caption-text: calc(8px + 0.5vw);
    --close: calc(35px + 0.5vw);
    --font-primary: 'Compagnon', 'Times New Roman', Times, serif;
    --font-secondary: 'Hershey', 'Helvetica', Arial, sans-serif;
    --sidebar-width: 30%;
    --sidebar-gap: clamp(1rem, 2vw, 2rem);
}

@font-face {
    font-family: 'Compagnon';
    src: url('../assets/Compagnon/Compagnon-Light.otf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Compagnon';
    src: url('../assets/Compagnon/Compagnon-Script.otf');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Hershey';
    src: url('../assets/Hershey/Hershey-Noailles-Futura-Simplex-Bold.otf');
    font-weight: 400;
    font-style: normal;
}

*,
::after,
::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: var(--font-size-root);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    border-top: 1px dashed var(--text-color2);
    /* border-bottom: 1px dashed var(--text-color2); */
    margin: 10px;
    font-family: var(--font-primary);
    font-size: var(--body-text);
    color: var(--text-color2);
    line-height: var(--body-line-height);
    flex-direction: column;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style-type: none;
    margin: 0;
}

.sub-index p {
    margin-bottom: 1em;
}

strong {
    font-family: var(--font-primary);
    font-weight: bold;
}

a:link,
a:visited,
a:hover,
a:active {
    color: var(--text-color2);
    text-decoration: none;
}


a:hover {
    transition: all 0.5s ease;
    font-weight: bold;
}

.header-content {
    display: flex;
    justify-content: space-between;
}


.header-item:nth-of-type(2) {
    flex-grow: 2;
}

.title {
    margin: 0.5rem 0.5rem 0;
    width: 100%;
}

.blurb {
    margin: 0 0.5rem 0;
    padding-bottom: 5vh;
    width: 125%;
}


.title-tag h1 {
    /* Sojourners for Justice Press */
    font-family: var(--font-primary);
    font-style: normal;
    font-weight: normal;
    color: var(--text-color2);
    font-size: 40px;
    line-height: 53px;
    text-decoration: underline !important;
    margin: 5rem 5rem 0;
}

#title {
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: var(--publication-card-title-text);
    line-height: var(--publication-card-line-height);
    color: var(--text-color2);
    text-decoration: none;
    width: 65%;
}

.latest-item p {
    width: 65%;
}

h2,
.heading2 {
    line-height: var(--header2-line-height);
    font-weight: 400;
}


table {
    width: 50%;
}

.dropdown {
    z-index: 1000;
    position: relative;
    display: inline-block;
    cursor: context-menu;
}

.dropdown-button {
    font-family: var(--font-primary);
    font-size: var(--publication-title-text);
    color: var(--text-color2);
    padding: 10px 10px;
}

.dropdown-content {
    font-family: var(--font-primary);
    font-size: var(--publication-title-text);
    display: none;
    position: absolute;
    left: 0;
    background-color: var(--bg-color);
    border-bottom: 1px dashed var(--text-color2);
    min-width: 100%;
    padding: 15px 15px !important;
}

.dropdown:hover .dropdown-content {
    display: block;
    cursor: context-menu;
}

.arrow::after {
    content: "\25be"
}

.close::after {
    content: "\21e2"
}

.close {
    font-size: var(--close);
    vertical-align: top;
    float: right;
    cursor: pointer;
    margin-top: 0;
    margin-right: 0;
}

.sub-index {
    padding: 10px;
    padding-bottom: 35%;
}

.latest {
    display: flex;
    justify-content: center;
    border-left: 1px dashed var(--text-color2);
    border-right: 1px dashed var(--text-color2);
}

.latest:first-child {
    border-left: 0px !important;
}

.latest:last-child {
    border-right: 0px !important;
}

#latest {
    /* font-family: 'Times Triplex Italic Regular' !important; */
    /* font-family: 'Courier New',  Courier, Fixed; */
    font-family: var(--font-primary);
    text-transform: lowercase;
    font-variant: small-caps;
    font-weight: bolder;
    font-size: var(--latest-text);
    line-height: var(--latest-line-height);
    text-align: center;
}

.latest-item {
    flex-grow: 2;
    width: 25vw;
    height: auto;
    margin: 0.5em;
    padding: 1rem;
    border-right: 1px dashed var(--text-color2);
}

.latest-item:last-child {
    border-right: 0px !important;
}

.latest-item img {
    /* border: 1px dashed var(--text-color2); */
    padding: 0.5em;
    display: block;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 65%;

}

.loading {
    font-size: var(--loading-text);
}

.publicationList,
.eventList {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100vw;
}


/* outer border */
.publicationDiv,
.eventDiv {
    flex-grow: 1;
    flex-basis: 25%;
    align-items: center;
    max-width: 25vw;
    height: auto;
    margin: 0.5em;
    padding: 1rem;
}

/* inner border */
.publicationDiv img {
    /* border: 1.125px solid var(--text-color2); */
    padding: 0.5em;
    display: block;
    margin-top: 1.25rem;
    margin-left: auto;
    margin-right: auto;
    max-width: calc(65% + 0.5vw);
}

.eventDiv img {
    border-bottom: 1.125px solid var(--text-color2);
    padding: 0.5em;
    display: block;
    margin-top: 1.25rem;
    margin-left: auto;
    margin-right: auto;
    max-width: calc(90% + 0.5vw);
}

.eventImg {
    max-width: 100% !important;
    border-radius: calc(10px + 0.5vw);

}

.inlineImg {
    display: inline-flex;
    float: right;
    max-width: 25%;
    height: auto;
    padding: 0.5rem;
    filter: invert(20%) sepia(18%) saturate(449%) hue-rotate(53deg) brightness(105%) contrast(70%);
    border-radius: calc(10px + 0.5vw);
}

.inlineImgLeft {
    display: inline-flex;
    float: left;
    width: 25%;
    height: auto;
    padding: 0.5rem;
    padding-right: 2rem;
    filter: invert(20%) sepia(18%) saturate(449%) hue-rotate(53deg) brightness(105%) contrast(70%);
    border-radius: calc(10px + 0.5vw);
}

figcaption {
    display: inline-flex;
    clear: right;
    justify-content: flex-end;
    font-size: var(--caption-text);
    filter: none !important;
    padding: 0.5rem;
}

.publicationTitle {
    width: 40%;
    overflow-wrap: word-break;
}

img {
    display: block;
    max-width: 100%;
}

/* detail page */
.publicationDetail {
    flex-grow: 2;
    position: relative;
    top: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 2rem;
    max-width: 50%;
    border-left: 1px dashed var(--text-color2);
}

#publicationImg {
    margin: 1rem 1rem 1rem 0;
    display: inline-block;
    background-size: cover;
}

.carousel {
    /* overflow-x: auto !important;
    overflow-y: hidden !important; */
    overflow: auto;
    white-space: nowrap;
    margin-bottom: 1%;
}

.carousel:first-child {
    height: 50vh !important;
    display: inline-block;
    overflow: hidden;
}

.carousel img {
    /* width: auto !important; */
    height: 50vh;
    cursor: url(asset/right-cursor.png), pointer;
}

.publication-credits {
    margin-top: 2rem;
}

.button-container {
    outline: none;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    text-align: center;
    justify-content: flex-end;
}

.button {
    font-family: var(--font-primary);
    color: var(--dark-text);
    display: block;
    width: 100%;
    margin: 10px 10px 10px 0px;
    padding: 7px 25px 7px 25px;
    background-color: var(--color4) !important;
    border: 1px dashed var(--dark-text);
    border-radius: 5px;
    text-align: center;
    /* align-items: flex-end; */
}

.button:link {
    color: var(--text-color2);
    text-decoration: none;
}

.header {
    display: flex;
    position: relative;
    left: 0;
    top: 0;
    margin-bottom: 2vh;
}

main {
    padding-bottom: 25%;
}

.footer {
    display: flex;
    justify-content: space-between;
    position: fixed;
    left: 0;
    bottom: 0;
    margin: 10px 10px 0px 10px;
    width: 98vw;
    height: auto;
    background-color: var(--bg-color);
    /* background: linear-gradient(to top, #F6EDE3 10%, 30%, #FFFFFF00 90%); */
}

.header-item,
.footer-item {
    display: initial;
    width: 100%;
    margin: 2vh 2vw;

}

.footer-copy {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    border-top: 1px dashed var(--text-color2);
}

.footer-item:last-child {
    position: absolute;
    bottom: 0;
    width: 50%;
    text-align: right;
}

.logo {
    font-family: var(--font-primary);
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo img {
    width: 10%;
}

.logo sub {
    font-size: var(--body-text);
}


@media only screen and (max-width: 600px) {

    .latest {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .latest-item {
        width: 95vw;
        height: auto;
        margin-bottom: 3rem;
    }

    .publicationList,
    .eventList {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .publicationDiv,
    .eventDiv {
        max-width: 95vw;
        height: auto;
        margin-bottom: 3rem;
    }

    .title {
        margin: 1.5rem 1.5rem 0;
        max-width: 80vw;
    }

    .blurb {
        margin: 0 1.5rem 0;
        max-width: 80vw;
    }

    .dropdown {
        min-width: 100%;
    }

    .publicationDetail {
        z-index: 1000;
        overflow: scroll;
        background-color: var(--bg-color);
        position: fixed;
        top: 0;
        left: 0;
        min-width: 100vw;
        height: 100%;
        border-left: 0px !important;
    }

    footer {
        width: 95vw;
    }

    .footer-item:last-child {
        display: none;
    }

    .logo img {
        width: 50%;
    }
}

.safari .safariSpecific {
    display: none;
}