
.image-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.image-wrapper .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.image-wrapper:hover .zoom-icon {
    opacity: 1;
    pointer-events: auto;
}
.image-wrapper img {
    transition: opacity 0.3s ease;
}
.image-wrapper:hover img {
    opacity: 0.8;
}
.gallery-separator {
    margin: 2rem auto;
    width: 80%;
    border-top: 2px solid #ccc;
    opacity: 0.5;
}
.dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}
.dz-hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 0.5rem;
}
.preview-grid .item {
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
    padding: 4px;
}
.preview-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.preview-grid .remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.modal-form .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}
.modal-form .form-row > * {
    flex: 1;
}
.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}
.text-danger-small {
    color: #c53030;
    font-size: 0.85rem;
}
/* --- basicLightbox modal fixes (z-index, layout, readable inputs) --- */
.basicLightbox { z-index: 30050 !important; background: rgba(0,0,0,.65) !important; }
.basicLightbox__placeholder { display: flex; align-items: center; justify-content: center; padding: 16px; }
.basicLightbox .modal-form.container { background: #fff; border-radius: 12px; box-shadow: 0 15px 50px rgba(0,0,0,.25); width: 100%; max-width: 860px; }

/* Inputs & labels inside modal should be visible regardless of global resets */
.modal-form label { display: block; font-weight: 700; color: #214842; margin-bottom: 6px; }
.modal-form .form-control { background: #fff; color: #214842; border: 1px solid #c8c8c8; border-radius: 8px; height: 44px; padding: 0 12px; width: 100%; }
.modal-form textarea.form-control { min-height: 110px; height: auto; padding: 10px 12px; }

/* Improve dropzone contrast on dark overlay */
.modal-form .dropzone { background: #fff; border-color: #c8c8c8; }
.modal-form .dropzone.drag { border-color: #258f67; box-shadow: 0 0 0 3px rgba(37,143,103,.15); }

/* Buttons area spacing on small screens */
.modal-actions { padding-top: 8px; }