/* Base Layout Reset */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: sans-serif; }
body { background: #121212; color: #fff; overflow-x: hidden; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}
.card-thumbnail {
width: 100%;
  aspect-ratio: 16 / 9; /* Forces uniform proportions across all cards */
  object-fit: cover;    /* Crops edges cleanly instead of stretching */
  display: block;   
}
.project-card {
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}
.project-card:hover { transform: translateY(-5px); }

/* Virtual Page System */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #121212; /* Matches body background to look like a real page */
    z-index: 1000;
    overflow-y: auto;
    padding: 3rem 2rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}


/* Animations */
.overlay.hidden {
    transform: translateY(100vh); /* Glides in from bottom */
    opacity: 0;
    pointer-events: none;
}

#close-overlay {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

#overlay-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}
.body-content ol {
    margin: 10px;
    font-size: 16px;
}

.body-image {
  display: block;
  margin-inline: auto; /* Shorthand for margin-left: auto; margin-right: auto; */
  max-width: 100%;
  height: auto;
  margin-block: 1.5rem;  
}