
.backgrounds{
    position: relative;
}

p{
    column-count: auto;
    column-width: 450px;
}



div.mainWrapper{
    width: calc(100vw - 200px);
    background: #fcd7d6;
    mix-blend-mode: lighten;
    margin: 0;
    height: 70%;
    padding: 25px;
}

.backgrounds .mainWrapper ul li{
    display: table;
    height: unset;
    width: 40vw;
}

.backgrounds .mainWrapper ul{
    padding: 0;
    gap:15px;
}

div.foot-marg{
    height: 130px;
    position: relative;
    left: -25px;
    top: 25px;
    width: calc(100% + 50px);
}
div.bgLayer{
    position: absolute;
    top: 0;
    left: 0;
}

a.glitch{
    height: 25vh;
    width: 100%;
    font-size: 3vh;
    padding-left: 2vh;
    text-decoration: none;
    font-weight: bold;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    color: white;
    border-radius: 10px;
    vertical-align: bottom;
    padding-bottom: 10px;
}

a.glitch:hover{
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
    background-position-y: -10px;
    transition: all 0.3s;
    text-shadow: 0px 4px 0px rgba(155,0,255,0.4);
    box-shadow: rgba(140, 46, 250, 0.4) 0 5px, rgba(140, 46, 250, 0.3) 0 10px, rgba(240, 46, 170, 0.2) 0 15px, rgba(140, 46, 255, 0.1) 0 20px, rgba(140, 46, 250, 0.05) 0 25px;

}

a.pub{
    background-image: url(https://ik.imagekit.io/7cnvczgmka/sl/Archival-Vol-1-Louise-Rouse-Deanna-MacDonald-Ed.jpg);

}

a.history{
    background-image: url(https://ik.imagekit.io/7cnvczgmka/sl/Archival-Glitch-History_Art+Feminism_Japan.JPG);
}


  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
    gap: 10px;
  }

  .grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
  }

  .grid-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Add this line */
  }

  body.pub .backgrounds ul li {
    height: calc(20vh - 75px);
    list-style: none;
  }

  @media screen and (max-width: 980px) {
    .grid-container {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
  }


@media all and (max-width: 700px) {

    body.agTop h1{
        font-size: 10.5vw;
    }

    body.pub h1{
      font-size: 4.6vh;
    }

    body.pub .mainWrapper{
      width: calc(100% - 50px);
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      }

}