body{
    height: 100%;
    padding-top: 0;
     margin: 0; 
}

.background{
    background-color: #4B7778;
    height: 100%;
}

header{
    padding-top: 0;
    background-color: #C8C7CF;
    margin: 0;
    padding: 0;
    object-fit: cover;
    height: 42vw;
    min-height: 170px;
    max-height: 400px;
}

header h1{
    text-align: center;
    font-size: 13vw;
   font-family: "Pinyon Script";
   font-weight: 200;
}


.container ul{
    list-style: none;
    display: flex;
    justify-content:space-evenly;
    padding-top: 1vw;
}

.container ul li{
    
    font-size: 3vw;
    padding: 2vw;
}

.etsylink{
    justify-content:space-evenly;
    font-size: 3vw;
    text-align: center;
    text-decoration: none;
}

.mainPainting{
    width: 100%;
    height: 100%;
    margin: 0;
}

.maltaPainting{
    margin: 0;
    width: 100%;
    object-fit: cover;
    padding: 0;
    
}

nav{
    background-color: #4B7778;
    margin: 0;
    height: 150px;
}

nav ul{
    justify-content:space-evenly;
    display: flex;
    /*margin-top: 0;*/
    list-style: none;
    /*padding-right: 5.5vw;*/
    margin: 0;
    padding: 0;
    
}
.subject{
    justify-content: space-evenly;
    padding-top: 8vw;
    
}
.writing{
    flex-direction: column;
    text-decoration: none;
    color: rgb(197, 192, 192);
    font-size: 2.5vw;

    padding: 1.5vw 2.5vw;
    border:2px solid rgb(197, 192, 192);
    border-radius: 10px 60px;
    position: relative;
    transition: .5s;
}

.writing:hover{
    border-radius: 60px 10px;
}





.card{
    margin: 0 10vw;
    position: relative;
    flex-direction: column;
    color: black;
    text-decoration: none;
}

.cards{
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: contain;
}




.CSSgal {
    position: relative;
    overflow: hidden;
    /* height: 400px; */
    height: 100%;
    color: #fff;  
    text-align: center;
    top:0;
  }


  /* SLIDER */
  .CSSgal .slider {
    height: 100%;
    white-space: nowrap;
    font-size: 0;
    transition: 0.8s;
  }

  /* SLIDES */
.CSSgal .slider > * {
    font-size: 1rem;
    display: inline-block;
    white-space: normal;
    vertical-align: top;
    height: 100%;
    width: 100%;
    background: none 50% no-repeat;
    background-size: cover;
  }

  /* PREV/NEXT, CONTAINERS & ANCHORS */
.CSSgal .prevNext {
    position: absolute;
    z-index: 1;
    top: 50%;
    width: 100%;
    height: 0;
  }

  .CSSgal .prevNext > div+div {
    visibility: hidden; /* Hide all but first P/N container */
  }

  .CSSgal .prevNext a {
    background: #fff;
    position: absolute;
    /* width:       30px;
    height:      30px; */
    width: 4.5vw;
    height: 4.5vw;
    /* line-height: 60px; If you want to place numbers */
    text-align: center;
    opacity: 0.7;
    -webkit-transition: 0.3s;
            transition: 0.3s;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    left: 0;
  }

  .CSSgal .prevNext a:hover {
    opacity: 1;
  }
  .CSSgal .prevNext a+a {
    left: auto;
    right: 0;
  }

  /* PREV/NEXT CONTAINERS VISIBILITY */
/* ALL: */
.CSSgal >s:target ~ .prevNext >* {      visibility: hidden;}
/* ACTIVE: */
#s1:target ~ .prevNext >*:nth-child(1) {visibility: visible;}
#s2:target ~ .prevNext >*:nth-child(2) {visibility: visible;}
#s3:target ~ .prevNext >*:nth-child(3) {visibility: visible;}
#s4:target ~ .prevNext >*:nth-child(4) {visibility: visible;}
#s5:target ~ .prevNext >*:nth-child(5) {visibility: visible;}

#s1:target ~ .slider {transform: translateX(   0%); -webkit-transform: translateX(   0%);}
#s2:target ~ .slider {transform: translateX(-100%); -webkit-transform: translateX(-100%);}
#s3:target ~ .slider {transform: translateX(-200%); -webkit-transform: translateX(-200%);}
#s4:target ~ .slider {transform: translateX(-300%); -webkit-transform: translateX(-300%);}
#s5:target ~ .slider {transform: translateX(-400%); -webkit-transform: translateX(-400%);}

.CSSgal .slider h2 {

    /* margin-top: 40vh; */
    margin-top: 0;
    font-weight: 200;
    letter-spacing: -0.06em;
    word-spacing: 0.2em;
    /* font-size: 3em; */
    font-size: 9vw;
    font-family: "Pinyon Script";
  }
  .CSSgal .slider p {
    font-weight: 100;
    margin-left: 50px;
    margin-right: 50px;
    /* font-size: 1em; */
    font-size: 3vw;
  }

  .CSSgal .slider h3 {
    font-weight: 100;
    /* margin-left: 50px; */
    margin-left: 7vw;
    margin-right: 7vw;
    /* font-size: 0.9em; */
    font-size: 2vw;
  }

  .CSSgal a {
    border-radius: 50%;
    margin: 0 3px;
    color: rgba(0,0,0,0.8);
    text-decoration: none;
  }




@media screen and (max-width:400px){
    /*header{*/
    /*    height: 100px;*/
    /*}*/
    header h1{
        margin:0;
        padding-top: 5vw;
    }
    /* nav{
        height: 100px;
    }  */
    
}


@media screen and (max-width:767px){
    /*header{*/
    /*    height: 230px;*/
    /*}*/
    header h1{
        margin:0;
        padding-top: 5vw;
    }
    /* nav{
        height: 150px;
    } */
}

@media screen and (min-width: 768px){
    header{
        margin: 0;
        /*height: 220px;*/
        padding-top: 0.5px;
    }
    header h1{
        font-size: 10vw;
        padding-top: 3vw;
        margin: 0;
    }

    .container ul li{
        font-size: 2.8vw;
    }
    /* nav{
        height: 300px;
    } */
}

@media screen and (min-width: 900px){
    header{
        /*height: 250px;*/
        padding-top: 0.5px;
    }
    header h1{
        font-size: 8vw;
        padding-top: 5vw;
        margin: 0;
    }
    .container ul li{
        font-size: 2.5vw;
    }
    nav{
        height: 350px;
    }
}

@media screen and (min-width: 1120px){
    header{
        /*height: 260px;*/
        padding-top: 0.5px;
    }
    header h1{
        font-size: 6vw;
        padding-top: 2vw;
        margin: 0;
    }
    .container ul li{
        font-size: 2.3vw;
    }
    nav{
        height: 300px;
    }
}

@media screen and (min-width: 1320px){
    header{
        /*height: 230px;*/
        padding-top: 0.5px;
    }
    header h1{
        font-size: 4.5vw;
        padding-top: 0.5px;
        margin: 0;
        padding-top: 2vw;
    }
    .container ul li{
        font-size: 2.1vw;
        padding: 0;
    }
    nav{
        height: 270px;
    }
}