/* Host mobile controls v1. Immutable asset, loaded after Site UX 2.1.
   Keep the existing dashboard wrapping and gallery grid at every width. */

.host-page .host-listing-actions > a,
.portal-form-page .host-photo-grid button.danger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 12px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    border-radius: 10px;
}

/* The existing form sits 8px from the photo's right and bottom edges.
   Bound its width so longer labels can wrap inside the clipped figure. */
.portal-form-page .host-photo-grid form {
    max-width: calc(100% - 16px);
}

.portal-form-page .host-photo-grid button.danger-link {
    border: 0;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.host-page .host-listing-actions > a:focus-visible,
.portal-form-page .host-photo-grid button.danger-link:focus-visible {
    outline: 3px solid #7952b3;
    outline-offset: 3px;
}

/* Separate the focus ring from both light and dark photograph details. */
.portal-form-page .host-photo-grid button.danger-link:focus-visible {
    box-shadow: 0 0 0 3px #fff;
}
