/* ===================================================
   Our Work Page Styles (trimmed)
   - Retained only variables, base, and project grid
   - Removed unused carousel / hero / fullscreen viewer code
   =================================================== */

/* Theme variables */
:root {
    font-family: Inter, sans-serif;
    --primary-color: #8BCC00;
    --neutral-color-1: #000000;
    --neutral-color-2: #1F1F1F;
    --text-color-primary: #EBEBEB;
    --text-color-secondary: #c2c2c2;
    --text-color-tertiary: #999999;
    --line-height: 1.5;
}

/* Base layout */
body {
    margin: 0;
    background-color: var(--neutral-color-1);
    color: var(--text-color-primary);
    width: 100%;
    overflow-x: hidden;
}

/* Logo (scales similarly to other pages) */
#logo {
    width: 6vw;
    min-width: 64px;
    height: auto;
    flex-shrink: 0;
    fill: var(--text-color-primary);
}

/* ================= Project Grid ================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 3rem;
    max-width: 98%;
    width: 100%;
    margin: 144px auto; /* spacing below fixed header */
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.image-container {
    position: relative;
    aspect-ratio: 1.618 / 1;
    border-radius: 0.25rem;
    overflow: hidden;
    cursor: pointer;
}

.image-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 1rem;
    box-sizing: border-box;
    backdrop-filter: blur(2px);
}

.overlay-title { font-size: 1.50rem; font-weight: 300; letter-spacing: 0%; margin: 0; color: #ffffff;}
.overlay-text  { font-size: 1.1rem; font-weight: 400; line-height: var(--line-height); letter-spacing: 2%; color: var(--text-color-secondary);margin-top: 8px;}

/* Hover / focus reveal */
.image-container:hover .overlay,
.image-container a:focus-visible .overlay { opacity: 1; }

.image-container:hover img,
.image-container a:focus-visible img { transform: scale(1.1); }

/* Accessible focus outline */
.image-container a:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* ============== Responsive ============== */
@media (max-width: 768px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); margin: 96px auto 64px; max-width: 100%; }
}

@media (max-width: 500px) {
    .grid-container { grid-template-columns: 1fr; margin: 80px auto 48px; }
}
@media (max-width: 420px) {
    .overlay-title { font-size: 1.25rem; }
    .overlay-text { font-size: 0.9rem; }
}
