.quote-photo-help,
.quote-photo-no-script {
    margin: 0;
    color: #5d696e;
    font-size: .95rem;
}

.quote-photo-field input[type="file"] {
    min-height: auto;
    padding: .75rem;
    border-style: dashed;
    background: #f7fafb;
}

.quote-photo-field input[type="file"]::file-selector-button {
    margin-right: .8rem;
    padding: .65rem .85rem;
    border: 1px solid #167abb;
    border-radius: .3rem;
    color: #124b6f;
    background: #eef7fc;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.quote-photo-error {
    margin: 0;
    color: #7a2f2a;
    font-weight: 700;
}

.quote-photo-previews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: .75rem;
}

.quote-photo-preview {
    display: grid;
    gap: .45rem;
    min-width: 0;
    margin: 0;
    padding: .55rem;
    border: 1px solid #cbd9df;
    border-radius: .45rem;
    background: #f7fafb;
}

.quote-photo-preview img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: .25rem;
    background: #dce8ef;
}

.quote-photo-preview figcaption {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .84rem;
}

.quote-photo-remove {
    min-height: 2.75rem;
    padding: .55rem .7rem;
    border: 1px solid #8b2f2b;
    border-radius: .3rem;
    color: #752824;
    background: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.admin-quote-photos {
    display: grid;
    gap: .55rem;
    margin-top: .9rem;
}

.admin-quote-photos > p {
    margin: 0;
}

.admin-quote-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 8.5rem));
    justify-content: start;
    gap: .55rem;
}

.admin-quote-photo {
    display: grid;
    gap: .25rem;
    min-width: 0;
    color: inherit;
    font-size: .78rem;
}

.admin-quote-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border: 1px solid #6f8796;
    border-radius: .3rem;
    background: #dce8ef;
}

.admin-quote-photo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-customer-photos {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid #cbd9df;
    border-radius: .75rem;
    background: #fff;
}

.job-customer-photos-heading {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(12rem, 1fr);
    align-items: end;
    gap: .5rem 1.5rem;
}

.job-customer-photos-heading :is(h2, p),
.job-customer-photos-kicker,
.job-customer-photos-unavailable {
    margin: 0;
}

.job-customer-photos-heading > p {
    max-width: 42rem;
    color: #52616c;
}

.job-customer-photos-kicker {
    color: #52616c;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.job-customer-photos-unavailable {
    padding: .75rem;
    border: 1px solid #c99337;
    border-radius: .5rem;
    background: #fff7df;
    color: #5f4315;
}

.job-customer-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 13rem));
    justify-content: start;
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.job-customer-photo {
    display: grid;
    align-content: start;
    gap: .65rem;
    min-width: 0;
    padding: .65rem;
    border: 1px solid #cbd9df;
    border-radius: .6rem;
    background: #f7fafb;
}

.job-customer-photo.is-hidden {
    background: #f5f6f7;
}

.job-customer-photo-link {
    display: block;
    overflow: hidden;
    border-radius: .4rem;
    background: #e5edf1;
}

.job-customer-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #e5edf1;
}

.job-customer-photo-meta {
    display: grid;
    gap: .35rem;
    min-width: 0;
}

.job-customer-photo-name {
    overflow: hidden;
    color: #24303b;
    font-size: .85rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-customer-photo-status {
    justify-self: start;
    padding: .2rem .45rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
}

.job-customer-photo-status.is-shown {
    background: #e6f3e9;
    color: #235d31;
}

.job-customer-photo-status.is-hidden {
    background: #e9edf0;
    color: #43515a;
}

.job-customer-photo-action {
    margin: 0;
}

.job-customer-photo-action .button {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: .55rem .65rem;
    font-size: .84rem;
}

.job-customer-photo-action .button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

@media (max-width: 36rem) {
    .quote-photo-previews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .job-customer-photos-heading {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .job-customer-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 24rem) {
    .job-customer-photo-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
