.shambhala-images-browser {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.shambhala-search-container {
    margin-bottom: 30px;
    text-align: center;
}

.shambhala-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.shambhala-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.shambhala-grid-container {
    position: relative;
}

.shambhala-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.shambhala-grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.shambhala-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.shambhala-item-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.shambhala-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shambhala-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    color: white;
}

.shambhala-grid-item:hover .shambhala-item-overlay {
    opacity: 1;
}

.shambhala-item-info {
    flex: 1;
}

.shambhala-item-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.shambhala-item-alt,
.shambhala-item-description {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

.shambhala-item-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.shambhala-download-btn,
.shambhala-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.shambhala-download-btn:hover,
.shambhala-view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.shambhala-download-btn .dashicons,
.shambhala-view-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.shambhala-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.shambhala-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shambhala-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

/* Responsive design */
@media (max-width: 768px) {
    .shambhala-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .shambhala-item-overlay {
        padding: 15px;
    }
    
    .shambhala-item-title {
        font-size: 14px;
    }
    
    .shambhala-item-alt,
    .shambhala-item-description {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .shambhala-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .shambhala-item-overlay {
        padding: 10px;
    }
    
    .shambhala-download-btn,
    .shambhala-view-btn {
        width: 35px;
        height: 35px;
    }
    
    .shambhala-download-btn .dashicons,
    .shambhala-view-btn .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
}