body{
    background-color: white;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: baskerville-urw, serif;
    font-size: small;
    font-style: normal;
    font-weight: 400;
}
h1{
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 1.5rem;
}
h2{
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 1.5rem;

}
h3{
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 1.5rem;
    margin-bottom: 3rem;
}
p{
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 400;
}
/* Navigation here */
.topnav{
    background-color: black;
    font-style: normal;
    font-weight: 400;
    width: 100%;
    font-size: 1.75em;
    height: 2em;
    display: flex;
    align-items: center;

    position: relative;
    z-index: 999;
}
.topnav a{
    color: white;
    margin: 1rem;
    text-decoration: none;
}

@media (max-width: 600px) {
    .topnav a {
        margin: 0.5rem;
    }
}
a:hover{
    color: #EE1C25;
}
a{
    text-decoration: none;
    color: #000000;
}
/* Landing page logo graphic*/
.logo{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 75%;
    margin: auto;
}
.logo img{
    max-width: 100%;
    max-height: 100vh;
    height: auto;
    width: auto;
    display: block;
}
/* Info page/ Shanzhai is... */
.split {
  height: 100%;
  width: 50%;
  position: fixed;
  z-index: 1;
  top: 0;
  overflow-x: hidden;
  padding-top: 20px;
}

.left {
  left: 0;
  margin-top: 1.5rem;
}
.left a{
    color: #EE1C25;
}

.right {
  right: 0;
  margin-top: 1.5rem;
}
.right div{
    display: grid;
    grid-template-columns: auto auto;
}
.right h1{
    font-size: 1.5rem;
    /* font-weight: 600; */
    margin-left: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}
.right h2{
    margin-top: 1rem;
}
iframe{
    margin: 1.5rem;
}
#postupgif{
    margin-right: 1.5rem;
    width: 22rem;
    height: auto;
}
#gif-caption{
    display: block;
}
@media (max-width: 900px) {

  .split {
    position: relative;   /* remove fixed */
    width: 100%;          /* full width */
    height: auto;         /* allow content to expand */
    top: auto;
    left: auto;
    right: auto;
    margin-top: 0;
    padding-top: 0;
  }
  .left,
  .right {
    margin-top: 0;
  }
  @media (max-width: 900px){
    .left h3{
        display: none;
    }
    }
  .right div {
    grid-template-columns: 1fr; /* stack grid items instead of 2 columns */
  }
  #postupgif{
    margin-right: 1.5rem;
    width: 20rem;
    height: auto;
}
  #gif-caption{
    display: block;
    width: 22rem;
    height: auto;
    margin-left: 1.5rem;
}
    iframe{
        width: 20rem;
        height: 11.25rem;
        margin-bottom: 6rem;
    }
}
/* Gallery archive page */
#myFile{
    display: none;
    /* position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0; */
}
.upload-buttons{
    display: flex;
    flex-direction: column;
    width: 12rem;
    margin-left: 1rem;
    gap: 0.75rem;
}
.custom-file-upload{
    padding: 0.75rem;
    text-align: center;
    background-color: black;
    font-family: baskerville-urw, serif;
    color: white;
    font-size: 1.25rem;
    font-weight: 400;
    border-radius: 6px;
    cursor: pointer;
    border: 1.75px solid #000000;
}
.upload{
    background-color: white;
    border-radius: 6px;
    border: 1.75px solid #000000;
    padding: 0.75rem;
    width: 100%;
    /* padding-left: 3rem;
    padding-right: 3rem; */
    font-family: baskerville-urw, serif;
    font-size: 1.2rem;
    cursor: pointer;
}
.custom-file-upload:hover{
    background-color: white;
    border: 1.75px solid #000000;
    color: #000000;
}
#upload-img-descrip{
    width: 63%;
}
.img-descrip{
    padding: 1rem;
    height: 5.1rem;
    width: 100%;
    font-family: baskerville-urw, serif;
    border: 1.75px solid #000000;
    /* padding-bottom: 6rem; */
    margin: 0;
    border-radius: 7px;
}
@media (max-width:900px){
    .img-descrip{
        width: 60%;
        height: 7.75rem;
    }
}
#demo{
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 0.25rem;
}
.collapse-menu {
  margin: 0.5rem 0;
  margin-top: 1.5em;
  display: block;
}
.collapse-menu h6{
    font-weight: 500;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-top: 0;
}
.upload-container{
    margin-left: 1rem;
}
.collapse-toggle {
    /* margin: 1.5rem; */
  cursor: pointer;
  font-weight: 500;
  font-size: 1.5rem;
}
.collapse-content {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1em;
}
button a{
    color: black;
    text-decoration: none;
}
/* Logo Home button */
.homebutton{
    position: fixed;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    right: 1.5rem;
    z-index: 999;

    display: flex;            
    align-items: center;
    justify-content: center;
}
.homebutton img{
    width: 15em;
    height: auto;
    display: block;
}
/* Library referencce page */
/* References Library Source page */
#books{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: 500;
    font-size: 2em;
    margin-left: 2rem;
    margin-top: 1.5rem;
}
.labels {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: 500;
    font-size: 2em;
    margin-left: 2rem;
}
.labels input[type=text] {
    transform: none;
    width: 18em;
    margin-bottom: 0.5rem;

    font-size: 1rem;
    padding: 0.5em 1em; /* adds some space inside the input */
    border-radius: 2em; /* rounded corners */
    border: 1px solid #000000; /* optional: visible border */
}
@media (min-width: 768px) {
  .labels {
    display: block;
  }
.labels input[type=text] {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
  }
}
.Librarycarousel{
    display: flex;
    margin-left: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem;
    scrollbar-width: none;
}
.Librarycarousel .item{
    flex: 0 0 280px; /* width of each card */
    scroll-snap-align: start;
    margin: 1rem;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.2;
    color: black;
    text-decoration: none;
}
.description2 p{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.25rem;
}
.description2 a{
      display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
  height: calc(1.2em * 2); /* force 2 lines */
  /* margin-bottom: 0.25em; */
  color: black;
  text-decoration: none;
}
/* item refers to the inidividual block for work that I'm linking */
.item a{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;

    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.2;

    color: black;
    text-decoration: none;
}
.item a:hover{
    color: #EE1C25;
}
.Librarycarousel img{
    max-width: 100%;
    height: 20rem;
    object-fit: cover;
    margin-bottom: 1rem;
}
.Librarycarousel::-webkit-scrollbar{
  display: none;
}
@media (max-width: 800px){
  .Librarycarousel .item {
    flex: 0 0 80%;
  }
}
@media (max-width: 800px){
    .Library div img{
        width: 7em;
        max-height: 13em;
    }
}
.carousel-wrapper{
    position: relative;
}

.carousel-btn{
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    color: black;

    z-index: 10;

    background: none;
    cursor: pointer;
    border: none;
    font-size: 3.5em;
    line-height: 1;
    padding: 0;

text-shadow:
    -0.5px -0.5px 0 white,
     0px   -0.5px 0 white,
     0.5px -0.5px 0 white,
    -0.5px  0px   0 white,
     0.5px  0px   0 white,
    -0.5px  0.5px 0 white,
     0px    0.5px 0 white,
     0.5px  0.5px 0 white
}

.carousel-btn.prev{
    left: 0.45rem;
}

.carousel-btn.next{
    right: 0.45rem;
}
.carousel-btn:hover{
    color: #EE1C25;
}
/* /* .description2 h2{
/*     display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; */
/* }
.description2 h2:hover::after {
  content: attr(data-full);
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.5em;
  white-space: normal;
  width: max-content;
  max-width: 300px;
  z-index: 10;
}

/* This is the old styling for the library page. 
.Library{
    display: grid;
    grid-template-columns: 1fr;
    margin: 1em;
    gap: 1em;
}
@media (min-width: 768px){
    .Library {
        grid-template-columns: repeat(2, 1fr);
    }
}
.Library div{
    display: flex;
    padding: 1em;
    font-size: 1.25rem;
    height: 16em;
}
.Library div img{
    width: 9em;
    max-height: 15em;
}
.Library div.description{
    display: block;
    margin-left: 0.5em;
}
.Library div.description a{
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.2;
    color: black;
    text-decoration: none;
}
.Library div.description a:hover{
    color: #EE1C25;
} */
/* Gallery Page styling here */
.info-upload-container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 600px){
    .info-upload-container{
        grid-template-columns: repeat(1, 1fr);
    }
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 1em;
    gap: 1em;
}
/* tablet hoizontal*/
@media (max-width: 1280px){
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }    
}
/* Tablet */
@media (max-width: 800px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Mobile */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
.gallery-grid div{
    padding: 1em;
}
.gallery-grid img{
    width: 100%;
    height: 21rem;
    object-fit: cover;
}
/* Modal background */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);

    flex-direction: column;
    /* justify-content: center;
    align-items: center; */
}
#modalImg {
    margin: auto;
    display: block;
    max-width: 70vw;
    max-height: 70vh;

    width: auto;
    height: auto;
}
/* Caption (alt text) */
#caption {
    text-align: center;
    font-family: baskerville-urw, serif;
    font-weight: 400;
    color: white;
    font-size: 1.2rem;
}

/* Close button */
.close {
    position: absolute;
    top: 1rem;
    right: 4rem;
    color: white;
    font-size: 4rem;
    cursor: pointer;
}
.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
/* Optional: make grid images responsive */
.gallery-grid div img {
    width: 100%;
    height: 21rem;
    object-fit: cover;
    cursor: pointer;
}

/* Here is the spawn styling */
.spawn-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* allows clicks only on images */
}
.spawned-img {
  position: absolute;
  height: 25%;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transform: scale(1);
  transition: transform 1s ease, opacity 1s ease;
}
@media (max-width: 700px){
    .spawned-img{
        position: absolute;
        width: 25%;
        height: auto;
        pointer-events: auto;
        cursor: pointer;
        opacity: 0;
        transform: scale(1);
        transition: transform 1s ease, opacity 1s ease;
    }
}
.spawned-img.show {
  opacity: 1;
  transform: scale(1);
}
.spawned-img.hide {
  opacity: 0;
  transform: scale(0);
}


