/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000000;
    color: #ffffff;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation Bar */
/* Canvas Wrapper */
.canvas-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    cursor: grab;
    background-color: #000000;
    z-index: 1;
}

.canvas-wrapper:active {
    cursor: grabbing;
}

/* Drag Hint */
.canvas-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.canvas-hint.hidden {
    opacity: 0;
}

.hint-icon {
    font-size: 20px;
    animation: hintPulse 2s ease-in-out infinite;
}

.hint-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes hintPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Infinite Canvas */
.infinite-canvas {
    position: absolute;
    will-change: transform;
    top: 0;
    left: 0;
}

/* Tile Container */
.tile-container {
    position: absolute;
    will-change: transform;
}

/* Gallery Item - Masonry Style */
.gallery-item {
    position: absolute;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.3s ease;
    will-change: transform, opacity;
    background-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    background-color: #1a1a1a;
    transform: scale(1.03); /* Zoom in by 3% */
}

.gallery-item:hover {
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .canvas-hint {
        bottom: 30px;
        padding: 10px 20px;
    }

    .hint-text {
        font-size: 13px;
    }
}
