
@font-face {
    font-family: erasLight;
    src: url(../fonts/ITC\ Eras\ Light\ Regular.otf) format("truetype");
}
@font-face {
    font-family: erasMedium;
    src: url(../fonts/eras-itc-medium.ttf) format("truetype");
}

main {
    background: #eaf1e8;
    color: black;
    display: grid;
    grid-template-columns: 20% 1fr;
    row-gap: 20px;
    column-gap: 20px;    
    margin-top: 19vh;
    width: 100%;
    position: relative;
}

.sidenav {
    width: 100%;
}

#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    grid-auto-flow: dense;
    grid-auto-rows: 250px;
    gap: 15px;
    padding: 20px;
}

#projectImages {
    display: contents; /* Ensures list items follow grid layout */
}

#projectImages li {
    list-style-type: none;
}

/*editing the images to look nice on grid. I wanted them to be bigger, but couldn't figure it out without making them have awkward borders*/
#projectImages img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures images fit without cropping */
    border-radius: 10px; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#projectImages video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures images fit without cropping */
    border-radius: 10px; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* trying to get the images to be bigger */
 li:nth-child(1) {
    grid-column: span 2;
}
li:nth-child(2) {
    grid-column: span 2;
}
li:nth-child(3) {
    grid-column: span 2;
}
li:nth-child(4) {
    grid-row: span 1;
    grid-column: span .5;
}
li:nth-child(5) {
    grid-row: span 1;
    grid-column: span .5;
}
li:nth-child(6) {
    grid-row: span 1;
    grid-column: span .5;
}
li:nth-child(7) {
    grid-column: span 2;
}
li:nth-child(8) {
    grid-column: span 2;
}
li:nth-child(9) {
    grid-column: span 2;
}
li:nth-child(10) {
    grid-column: span 2;
}
li:nth-child(11) {
    grid-column: span 2;
} 

li {
    list-style-type: none;
    padding-bottom: 1em;
    padding-top: 1em;
    display: list-item;
}

#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    grid-auto-rows: auto;
    gap: 15px;
    padding: 20px;
}


/* Tried to get this to work, but it didn't even get close T_T
    .modelingImages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    grid-auto-rows: 50px;
    grid-auto-flow: dense;
    /* flex: 1; */
    /* z-index: 3000; */

/* .modelingImages {
    display: grid;
    grid-template-columns: 30% 30% 30%;
    grid-template-rows: 30% 30% 30%;
    grid-gap: 15px;
    padding: 50px;
    margin-left: 20vh;
    grid-auto-rows: 50px;
    grid-auto-flow: dense;
} */

/* li:nth-child(1) {
    grid-row: span 1.5;
}
li:nth-child(2) {
    grid-row: span 1.5;
} */

.sidenav a:hover {
    color: green;
    border: none;
  }

#DTProjects a {
    color: green;
}

#DTFall a {
    color: green;
}

#DTSpring a {
    color: green;
}

#DTGame a {
    color: green;
}

#DTModel a {
    color: green;
}
