* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    display: none;
}

body{
    background-color: #5e5858;
}

nav{
    background-color: orange;
    width: 100%;
    height: 70px;
    align-items: center;
    position: fixed;
    z-index: 9;
    padding: 10px;
}
#grid img, header img {
    width: 100%;
    height: 100%;
    
}
.grid-item img {
    width: 60%;
    aspect-ratio: 9/9;
    object-fit: cover;
}

  #grid{
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        height: 300px;
        place-items: center;
        object-fit: cover;
    }
#grid img{
  max-width: 400px;
  object-fit: cover;
  aspect-ratio: 16/9;
}

main{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    padding-top: 60px;
    width: 100vw;
    z-index: 1;
}
h3 {
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
    color: black;
}

h3 {
    margin-top: 0;
    font-size: 1.728rem;
    text-align: center;
    background-color: orange;
}
figcaption {
    transform: translateY(-1.482rem);
    background: rgb(240 240 240 / 0.7);
}
figcaption {
    width: 100%;
    text-align: center;
    font-size: 1;
    color: rgb(16 16 16 / 1);
}

nav a, a p{
    color: white;
}

a:hover, a:hover p{
    color: #091011;
}

h1{
    color: #F2F2F2;
    font-family: "Bona Nova SC", serif;
    font-weight: 700;
    font-style: normal;
}

.category{
    margin: 20px 0px;
}

.h2{
    margin-right: 200px;
}

h2{
    padding-left: 20px;
    width: 100%;
    background-color: orange;
    font-family: "Bona Nova SC", serif;
    font-weight: 400;
    font-style: normal;
}

.prj{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 20px;
    position: relative;
    transition: transform 0.25s;
}

.prj section{
    position: relative;
    overflow: hidden;
}

.prj section p{
    position: absolute;
    bottom: 8px;
    left: 16px;
    font-size: 30px;
}

.prj section img{
    width: 100%;
    object-fit: cover;
    object-position: top;
    position: absolute;
    top: 0;
}
.grid{
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 70px;
    padding: 20px;
}
.grid-item {
    background-color: black;
    padding: 10px;
    text-align: center;
    box-shadow: 10px 10px 13px grey;
    transition: 
          transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.45s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.grid-item:hover {
   transform: scale(1.3);
    box-shadow: 0 0 25px #D96117;
}

article section{
    background-color: #1E5AC9;
    height: 200px;
}

.prj img .over{
    height: auto;
}

.prj .over{
    position: relative;
    opacity: 0;
    transition: 0.25s;
}


.prj a:hover .over{
    opacity: 1;
    
}

.prj .base{
    opacity: 1;
    transition: 0.25s;
}

.prj a:hover .base{
    opacity: 0.25;
}