:root {
    --bg-color: #F6EDE3;
    --text-color1: var(--color6);
    --text-color2: #3D4538;
    --color0: #F3C3B1;
    --color1: #EC9287;
    --color2: #DCCA82;
    --color3: #A9A7EB;
    --color4: #b9ceac;
    --color5: #3A0605;
    --color6: #995F54;
    --logo-text: calc(12px + 0.5vw);
    --latest-text: calc(22px + 0.5vw);
    --latest-line-height: 3;
    --loading-text: calc(25px + 0.5vw);
    --header-text: calc(20px + 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-face {
    font-family: 'Futura Simplex Regular';
    src: url('Hershey-Noailles/Hershey-Noailles-Futura-Simplex-Regular.otf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Futura Duplex Bold';
    src: url('Hershey-Noailles/Hershey-Noailles-Futura-Duplex-Bold.otf');
    font-weight: normal;
    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: 62.5%;
}

body {
    background-color: var(--bg-color);
    border-top: 1px dashed var(--text-color2);
    /* border-bottom: 1px dashed var(--text-color2); */
    margin: 10px;
    font-family: 'Futura Simplex Regular', Arial, Helvetica, sans-serif;
    font-size: var(--body-text);
    color: var(--text-color2);
    line-height: var(--body-line-height);
    display: flex;
    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: 'Futura Simplex Regular', Arial, Helvetica, sans-serif;
    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: 'Hershey-Noailles-Times-Mono-Regular', Times, serif;
    font-style: normal;
    font-weight: normal;
    color: var(--text-color);
    font-size: 40px;
    line-height: 53px;
    text-decoration: underline !important;
    /*margin: 2rem 2rem 0;*/
}

#title {
    font-family: 'Futura Simplex Regular', Arial, Helvetica, sans-serif;
    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%;
}

.title-wrap {
  position: relative;
  display: inline-block;
}

.title-wrap h4 {
  margin: 0;
}

.new-badge {
  position: absolute;
  top: -1.2em;
  left: 0;

  font-size: 12px;
  font-family: monospace;
  letter-spacing: 1px;
}

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

h2 .heading2 {
    line-height: var(--header2-line-height)
}

nav {
    color: var(--text-color1);
    font-family: 'Futura Simplex Regular', Arial, Helvetica, sans-serif;
    font-size: var(--publication-title-text);
    border-bottom: 1px dashed var(--text-color2);
    text-align: center;
    padding: 10px 10px;
    position: absolute;
    top: 1vw;
    right: 1vw;
}

table {
    width: 50%;
}

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

.dropdown-button {
    font-family: 'Futura Simplex Regular', Arial, Helvetica, sans-serif;
    font-size: var(--publication-title-text);
    color: var(--text-color2);
    padding: 10px 10px;
}

.dropdown-content {
    font-family: 'Futura Simplex Regular', Arial, Helvetica, sans-serif;
    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;
}

hr {
    border: 1px dashed var(--text-color2);
}

.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 {
  margin: 0 2.5rem 0 2.5rem;
    /*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);
    margin: 0 2.5rem 0 2.5rem;
}

.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: 'Futura Simplex Regular', Arial, Helvetica, sans-serif;
    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 {
    /*margin: 0 2.5rem 0 2.5rem;*/
    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 2.5rem 0 2.5rem;
    /*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%;
}

thumbnail {
  display: flex;
  max-with: 10%;
}

/* 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;
    object-fit: contain;
    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: 'Futura Simplex Regular', Arial, Helvetica, sans-serif;
    color: var(--text-color2);
    display: block;
    width: 100%;
    margin: 10px 10px 10px 0px;
    padding: 7px 25px 7px 25px;
    background-color: var(--color4) !important;
    border: 1px dashed var(--text-color2);
    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 {
    margin-bottom: 10%;
}

.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: block;
    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: Courier, monospace;
    justify-content: center;
    display: flex;
    width: 100%;
    margin: 0 0;
}

.logo img {
    width: clamp(50px, 12vw, 50px);
    height: auto;
}

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

/* site popups*/
.site-popup {
  position: fixed;
  right: 3rem;
  bottom: 13rem;
  z-index: 9999;
  width: 35rem;
  max-width: calc(100vw - 2rem);
  font-family: inherit;
  display: none;
}

.site-popup.is-visible {
  display: block;
}

.site-popup-inner {
  position: relative;
  background-color: var(--color4);
  padding: 2rem;
  border: 1px dashed var(--text-color2);
  border-radius: 5px;
}

.site-popup-content p {
  margin: 6px 0 8px;
  line-height: 1.4;
  font-size: 12pt;
}

.site-popup-content a {
  color: #231c1b;
  text-decoration: underline;
  font-size: 12pt;
}

.site-popup-close {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: transparent;
  color: #231c1b;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.site-popup.is-hidden {
  display: none;
}

@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%;
    }
    
    .site-popup {
      left: 12px;
      right: 12px;
      bottom: 12px;
      max-width: none;
    }
}