.pixelate-container {
    position: relative;
    display: inline-block;
    margin-left: 150px; /* Account for 140px sidenav + 10px padding */
    z-index: 10;
}

.grid-item a {
    position: relative;
    display: block;
    overflow: hidden;
}

.grid-item canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
}

.pixelate-controls {
    margin: 10px 0 10px 150px;
    position: relative;
    z-index: 10;
}

.pixelate-controls button {
    margin-right: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pixelate-controls button:hover {
    background: linear-gradient(135deg, #ff1493 0%, #c71585 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.4);
}

.pixelate-controls input[type="range"] {
    margin: 0 10px;
    accent-color: #ff69b4;
}

.pixelate-controls label {
    color: #ff1493;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', sans-serif;
    font-weight: bold;
}