/*
 * Containment for user-authored content.
 *
 * A long word, identifier or URL must never enlarge the central page column.
 * Keep this stylesheet after the legacy desktop/mobile styles in base.html.
 */

.artisan-dashboard {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
}

.artisan-dashboard,
.artisan-dashboard > .dashboard-main,
.artisan-dashboard > .dashboard-side,
.artisan-dashboard .dashboard-card,
.artisan-dashboard .dashboard-side > article,
.artisan-dashboard .dashboard-profile-header,
.artisan-dashboard .dashboard-profile-title-zone,
.artisan-dashboard .dashboard-profile-title-line,
.artisan-dashboard .artisan-dashboard-actions {
    min-width: 0;
    max-width: 100%;
}

.artisan-dashboard .dashboard-card > p,
.artisan-dashboard .dashboard-side p,
.artisan-dashboard .dashboard-side a,
.artisan-dashboard .dashboard-profile-title-zone,
.artisan-dashboard .artisan-dashboard-actions .btn {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.artisan-search-page,
.artisan-search-page .artisan-grid,
.artisan-search-page .artisan-card,
.artisan-search-page .artisan-top,
.artisan-search-page .artisan-top > *,
.artisan-search-page .work-gallery,
.artisan-search-page .work-gallery > * {
    min-width: 0;
    max-width: 100%;
}

.artisan-search-page .artisan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artisan-search-page .artisan-card {
    overflow: hidden;
}

.artisan-search-page .artisan-top {
    grid-template-columns: 82px minmax(0, 1fr) auto;
}

.artisan-search-page .artisan-card-description,
.artisan-search-page .artisan-card > p,
.artisan-search-page .artisan-top h3,
.artisan-search-page .artisan-top p,
.artisan-search-page .artisan-top a,
.artisan-search-page .contact-row,
.artisan-search-page .contact-row > * {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.artisan-search-page .contact-row {
    min-width: 0;
    flex-wrap: wrap;
}

.artisan-search-page .work-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
}

.artisan-search-page .work-gallery > a,
.artisan-search-page .work-gallery > div {
    display: block;
    overflow: hidden;
}

.artisan-search-page .work-gallery img {
    max-width: 100%;
}

.customer-announcement-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.customer-announcement-actions form {
    margin: 0;
}

.customer-announcement-actions .btn {
    width: 100%;
}

@media (max-width: 1050px) {
    .artisan-search-page .artisan-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .artisan-dashboard {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .artisan-search-page .artisan-top {
        grid-template-columns: 72px minmax(0, 1fr) 34px !important;
    }
}
