
@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 to li is all to get images to be in uniform rows in a CSS grid. Sizing adjustments made  */
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);
}

/* 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-column: span 2;
} */
li:nth-child(5) {
    grid-column: span 2;
}
li:nth-child(11) {
    grid-column: span 3;
    grid-row: span 2;
}
/* li:nth-child(6) {
    grid-column: span 2;
} */

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

#DTButton {
    background-color: black;
    color: white;
}

.sidenav a:hover {
    color: #258f99;
    border: none;
  }

#VD a {
    color:#258f99;
}

#TD a {
    color:#258f99;
}

#S a {
    color:#258f99;
}

#CD a {
    color:#258f99;
}

body, html {
    font-family: nameFont, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eaf1e8;
    color: #258f99;
}


header {
    background: #eaf1e8;
    color: #258f99;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
}

.navbar a {
    color: #258f99;
}
