/* ========================
   Header Layout Styles
======================== */
.header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.no-wrap-text {
    margin-bottom: 0;
    white-space: nowrap;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.social-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* ========================
   Global Container Width
======================== */
/* Overrides the narrow default width to reduce empty side margins */
.container {
    max-width: 1400px; /* Expands the maximum width */
    width: 95%;        /* Uses 95% of the screen, leaving a small, clean border */
    margin: 0 auto;    /* Keeps everything perfectly centered */
}
/* ========================
   Gallery Grid Styles
======================== */
.gallery-grid {
    display: grid;
    /* Increased to 4 columns to make images smaller and tighter */
    grid-template-columns: repeat(4, 1fr);
    /* Lowered base height so it doesn't stretch down forever */
    grid-auto-rows: 150px;
    /* Dense packing ensures no empty holes are left behind */
    grid-auto-flow: dense;
    /* Tighter gap */
    gap: 10px;
    padding: 1rem 0;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid #212529; /* NES.css default black border */
    image-rendering: pixelated; /* Keeps that retro crunch */
    
    /* Prepares the image for a smooth animation */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

/* The Hover Zoom Effect */
.gallery-grid img:hover {
    transform: scale(1.05); /* Zooms in slightly */
    box-shadow: 8px 8px 0px rgba(33, 37, 41, 0.5); /* Retro drop-shadow on hover */
    z-index: 10; /* Ensures the zoomed image overlaps the others */
    position: relative;
}

/* ========================
   Gallery Size Classes 
   (These act like the puzzle piece shapes)
======================== */
.img-normal {
    grid-column: span 1;
    grid-row: span 1;
}

.img-large {
    grid-column: span 2;
    grid-row: span 2;
}

.img-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.img-tall {
    grid-column: span 1;
    grid-row: span 2;
}

/* ========================
   Mobile Responsiveness
======================== */
/* On small screens, shrink it back to 2 columns so they don't get microscopic */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
    }
}