/* Base reset and styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Desktop: No scrolling */
html {
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100%;
}

body {
    width: 100%;
    font-family: Helvetica;
    background-color: #ffffff;
    color: #000000;
    cursor: default;
    padding-top: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid #000000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-width 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    border-width: 1px;
}

header {
    background-color: #ffffff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.logo {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: lowercase;
    text-decoration: none;
    color: #000000;
}

.logo:hover {
    opacity: 0.5;
}

nav a {
    font-size: 12px;
    color: #000000;
    text-decoration: none;
    margin-left: 30px;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.5;
}

footer {
    padding: 20px 40px;
    text-align: center;
    background: #ffffff;
    flex-shrink: 0;
}

footer p {
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #000000;
}

.home-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.numbered-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 0px;
    padding: 20px 40px;
}

.grid-item {
    width: 100%;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.caption {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #000000;
}

/* Mobile: Enable scrolling */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        cursor: auto;
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
        -webkit-overflow-scrolling: touch;
    }
    
    .custom-cursor {
        display: none;
    }
    
    header {
        padding: 15px 20px;
    }
    
    nav a {
        margin-left: 15px;
        font-size: 11px;
    }
    
    footer {
        padding: 0px 0px;
    }
    
    .home-content {
        padding: 15px 20px;
        justify-content: flex-start;
        min-height: auto;
        overflow: visible;
        flex: none;
    }
    
    .numbered-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 40px 20px 60px 20px;
        margin-bottom: 0px;
    }
    
    .grid-item:hover img {
        transform: none;
    }
    
    .grid-item img {
        width: 100%;
        height: auto;
    }
    
    .caption {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px;
    }
    
    nav a {
        margin-left: 10px;
        font-size: 10px;
    }
    
    .numbered-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 30px 15px;
    }
    
    footer {
        font-size: 10px;
    }
}
