* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    cursor: none !important;
    background-color: #d9d9d9;
    color: #7b636b;
    /* allow scrolling on this page */
    overflow-y: auto; 
    overflow-x: hidden;
}

body {
    font-family: "Jersey 20", sans-serif;
    line-height: 1.4;
}

.custom-cursor {
    position: fixed;
    width: 100px;
    height: 100px;
    background-image: url('./cursors/current/ncursor2.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    opacity: 0;
}
.custom-cursor.active { opacity: 1; }
.custom-cursor.hover { transform: translate(-50%, -50%) scale(1.5); }

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 18vh;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 4vh 2vh 4vh;
    z-index: 100;
    background-color: #d9d9d9;
}

.name-link { text-decoration: none; color: inherit; }

.name {
    font-size: clamp(40px, 14vh, 120px);
    line-height: 0.8;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.name:hover { opacity: 0.7; }

.menu-options {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.menu-options a, .menu-options p {
    font-size: 20px;
    text-decoration: underline;
    color: #7b636b;
}

.active-page {
    text-decoration: none !important;
    font-weight: bold;
    opacity: 0.5;
}

.menu-options a:hover { opacity: 0.7; }

.portfolio-container {
    padding-top: 22vh; /* starts below the 18vh header with spacing */
    padding-left: 4vh;
    padding-right: 4vh;
    padding-bottom: 80px;
    width: 100%;
}

.gallery {
    display: grid;
    /* adjust minmax() to change how many images appear per row */
    grid-template-columns: repeat(auto-fit, minmax(660px, 1fr));
    gap: 4vh;
}

.gallery img {
    width: 100%;
    height: 400px; /* fixed height for uniform grid look */
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    body { cursor: auto; }
    .custom-cursor { display: none; }

    .main-header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding-top: 20px;
    }

    .menu-options {
        align-items: flex-start;
        margin-top: 10px;
    }

    .name {
        font-size: 48px;
    }

    .portfolio-container {
        padding-top: 28vh;
    }

    .gallery {
        grid-template-columns: 1fr; /* single column on phones */
    }

    .gallery img {
        height: 300px;
    }
}