

/* ============================================
   GALERIA - PARTE 3
   ============================================ */
.artist-form-parte3-wrapper .field-gallery {
    margin-bottom: 32px;
}

#tab-parte3 {
     font-family: 'Source Sans Pro', sans-serif;
}



.artist-form-parte3-wrapper .gallery-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.artist-form-parte3-wrapper .gallery-upload-wrapper .button {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
    border: 2px solid #e8e8f0;
    border-radius: 10px;
    background: #fafafc;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.25s ease;
}

.artist-form-parte3-wrapper .gallery-upload-wrapper .button:hover {
    background: #f0f0f8;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.artist-form-parte3-wrapper .gallery-count {
    font-size: 14px;
    color: #8e8ea0;
    font-weight: 500;
}

.artist-form-parte3-wrapper .gallery-upload-wrapper .description {
    font-size: 13px;
    color: #8e8ea0;
    font-style: italic;
    margin: 4px 0 0 0;
    width: 100%;
}

/* ============================================
   GRID DA GALERIA
   ============================================ */
.artist-form-parte3-wrapper .gallery-preview-wrapper {
    min-height: 60px;
}

.artist-form-parte3-wrapper .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 12px;
    background: #fafafc;
    border-radius: 12px;
    border: 2px dashed #e8e8f0;
    min-height: 80px;
}

.artist-form-parte3-wrapper .gallery-grid:empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0c0;
    font-size: 14px;
}

.artist-form-parte3-wrapper .gallery-grid:empty::after {
    content: 'Nenhuma imagem na galeria. Clique em "Adicionar imagens" para começar.';
}

/* ============================================
   ITEM DA GALERIA
   ============================================ */
.artist-form-parte3-wrapper .gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid #e8e8f0;
    transition: all 0.2s ease;
    cursor: default;
}

.artist-form-parte3-wrapper .gallery-item:hover {
    border-color: #6c63ff;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.12);
}

.artist-form-parte3-wrapper .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Remove a restrição do handle */
.artist-form-parte3-wrapper .gallery-item {
    cursor: grab;
}

.artist-form-parte3-wrapper .gallery-item:active {
    cursor: grabbing;
}

/* Remove o drag-handle ou deixa invisível */
.artist-form-parte3-wrapper .drag-handle {
    display: none;
}

/* Botão remover */
.artist-form-parte3-wrapper .remove-gallery-item {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 2;
}

.artist-form-parte3-wrapper .gallery-item:hover .remove-gallery-item {
    opacity: 1;
}

.artist-form-parte3-wrapper .remove-gallery-item:hover {
    background: #d63638;
    transform: scale(1.1);
}

/* Drag handle */
.artist-form-parte3-wrapper .drag-handle {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 10px;
    border-radius: 6px;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
    font-weight: 300;
    letter-spacing: 2px;
    user-select: none;
}

.artist-form-parte3-wrapper .gallery-item:hover .drag-handle {
    opacity: 1;
}

.artist-form-parte3-wrapper .drag-handle:active {
    cursor: grabbing;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 640px) {
    .artist-form-parte3-wrapper .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        padding: 10px;
    }

    .artist-form-parte3-wrapper .gallery-upload-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .artist-form-parte3-wrapper .gallery-upload-wrapper .button {
        width: 100%;
        justify-content: center;
    }
}