@font-face {
    font-family: montserrat;
    src:url(montserrat.ttf)
}

body 
{
    font-family: montserrat;
    color:#faebd7;
    background-color: #111;
    align-items: center;
    justify-content: center;
    margin:0;
    height:100%
}

main {
    min-height: 70vh;
    padding: 1rem 5vw;
}

.gallery {
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:1rem;

    list-style: none;

    max-width: 100vw;
    box-sizing: border-box;
    padding: 1rem;
    overflow: hidden; /* safety net */
}

@media screen and (max-width: 1000px) {
    .gallery {
        grid-template-columns: repeat(1,1fr);
    }
}

.gallery li img{
    width: 100%;
    height: 100%;
    aspect-ratio: calc(2/3);
    border-radius: 1em;
    object-fit: cover;
    min-width: 0;
}

.bar{
    display:flex;
    flex-direction: column;
    background-color: #000;
    font-size: 24px;
    align-items: center;
}

.bar ul {
    display: flex;
    flex-direction:row;
    justify-content: center;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.bar ul li {
    display:flex;
    flex:1;
}


.bar ul li a {
    display:flex;
    justify-content: center;
    color:inherit;
    width: 100%;
    padding:22px;
    font-size: 42px;
    text-decoration: none;

}

.bar ul li a:hover {
    background-color: #222;
    color: darksalmon;
}

.bar a {
  color: inherit;
  text-decoration: none;
}

footer nav {
    display: flex;
    flex-direction: column;
    padding: 5%;
    background-color: #000;

}

.gallery-img {
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    cursor: pointer;
}

.gallery_item.hidden  img{
  display: none;
}

.gallery_item.hidden {
  display: none; /* THIS hides the <li> */
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:15%;
}

.store-l img {
    width: 100%;
    aspect-ratio: 1;
}

.store-view {
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap: 5%;

    list-style: none;

    max-width: 100vw;
    box-sizing: border-box;
    padding: 5%;
    overflow: hidden; /* safety net */
    perspective: 800px;
}

.store-view img{
    width:100%;
    height:auto;
    display:block;
}

.cool-float:hover {
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform: translateZ(0);
    transform: translateZ(20px) scale(1.05);
}

.cart-header {
    display:flex;
    justify-content: flex-end;
}

.cart-header a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color:inherit;
    padding-bottom: .5em;
    padding-top: .5em;
    padding-right: 1em;
    padding-left: 1em;
    border-radius: 50px;
}

.cart-view {
    display:flex;
    flex-direction: column;
    row-gap: 16px;
}

.cart-entry {
    display:flex;
    flex-direction: row;
    background-color: #000;
    padding-right:32px;

}

.cart-entry img {
    width:256px;
    height:256px;
    margin: 16px;
}

.cart-entry h2{
    align-self: center;
}

.cart-remove {
    margin-left: auto;
}

button {
    inherits: true;
    background-color: #353535;
    width: 200px;
    height: 50px;
    font-size: 23;
    font-family: inherit;
    border:none;
    border-radius: 25px;
    margin: 10px;
}

a:link {
    text-decoration: none!important;
}

.clickable, button {
    color: inherit;
    cursor: pointer;

}

.clickable:hover, button:hover {
    background-color: #222;
    color:darksalmon;
}
