/* Wallpaper Gallery Styles */
.wallpaper-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.wallpaper-gallery::-webkit-scrollbar {
    width: 6px;
}

.wallpaper-gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.wall-preset-btn,
.wall-img-btn {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wall-preset-btn:hover,
.wall-img-btn:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.wall-preset-btn img,
.wall-img-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wall-preset-btn:hover img,
.wall-img-btn:hover img {
    transform: scale(1.1);
}

.wall-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wall-preset-btn:hover .wall-label,
.wall-img-btn:hover .wall-label {
    opacity: 1;
}

.wall-preview-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

#pf-wall-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#pf-wall-canvas {
    width: 100%;
    height: 100%;
    display: none;
}