/* Album Grid */
.mtw-drive-album {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.mtw-drive-image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.mtw-drive-image-card:hover {
    transform: translateY(-5px);
}

.mtw-drive-image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mtw-drive-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mtw-drive-image-card:hover .mtw-drive-image-overlay {
    opacity: 1;
}

/* Lightbox */
.mtw-drive-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.mtw-drive-lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.mtw-drive-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.mtw-drive-lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Selection Panel */
.mtw-drive-selection-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mtw-drive-selection-panel.active {
    transform: translateX(0);
}

/* Forms */
.mtw-drive-note-form {
    margin-top: 15px;
}

.mtw-drive-note-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.mtw-drive-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mtw-drive-button:hover {
    background: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .mtw-drive-album {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .mtw-drive-selection-panel {
        width: 100%;
    }
}