.ta-gallery,
.ta-detail {
    --ta-muted: #5d5d5d;
    --ta-line: #d8d8d8;
    --ta-accent: #783d31;
    min-width: 0;
}

.ta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(36px, 4.5vw, 76px) clamp(24px, 3vw, 58px);
}

.ta-tile {
    display: block;
    min-width: 0;
    color: inherit;
    text-align: center;
}

.ta-tile-art {
    display: grid;
    aspect-ratio: 1.15;
}

.ta-tile-art img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center bottom;
}

.ta-tile-details {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .25rem .65rem;
    margin-top: .7rem;
}

.ta-tile-name {
    overflow-wrap: anywhere;
    color: #222;
    font-size: 1.13em;
}

.ta-tile:hover .ta-tile-name {
    text-decoration: underline;
}

.ta-meta,
.ta-position {
    color: var(--ta-muted, #5d5d5d);
    font-size: .93em;
}

.ta-badge {
    color: var(--ta-accent);
    font-size: .9em;
}

.ta-detail-nav,
.ta-turns,
.ta-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.ta-detail-nav {
    justify-content: space-between;
    margin-bottom: clamp(20px, 3vw, 45px);
}

.ta-turn,
.ta-dialog-close {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--ta-line);
    background: #fff;
    color: #222;
}

.ta-turn svg,
.ta-dialog-close svg {
    width: 20px;
    height: 20px;
}

.ta-turn:hover,
.ta-dialog-close:hover {
    border-color: #222;
}

.ta-position {
    white-space: nowrap;
}

.ta-work-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.6fr) minmax(210px, 1fr);
    align-items: start;
    gap: clamp(25px, 4.5vw, 80px);
}

.ta-work-art {
    margin: 0;
}

.ta-work-art img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 75vh;
    margin-inline: auto;
    object-fit: contain;
}

.ta-work-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    overflow-wrap: anywhere;
}

.ta-work-copy dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .35rem .9rem;
    margin-bottom: 1.35rem;
}

.ta-work-copy dt,
.ta-work-copy dd {
    margin: 0;
}

.ta-work-copy dt {
    color: var(--ta-muted);
    font-weight: normal;
}

.ta-actions {
    flex-wrap: wrap;
    margin-bottom: .65rem;
}

.ta-actions form {
    margin: 0;
}

.ta-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .95rem;
    border: 1px solid #222;
    background: #fff;
    color: #222;
    font: inherit;
}

.ta-button:hover {
    color: #222;
    background: #eee;
}

.ta-primary,
.ta-primary:hover {
    background: #222;
    color: #fff;
}

.ta-form {
    display: grid;
    gap: .75rem;
    max-width: 35rem;
}

.ta-form label {
    display: grid;
    gap: .25rem;
    margin: 0;
}

.ta-form input:not([type=hidden]),
.ta-form textarea {
    width: 100%;
    min-height: 44px;
    padding: .4rem .6rem;
    border: 1px solid #aaa;
    background: #fff;
    color: #222;
}

.ta-form button {
    justify-self: start;
}

.ta-form-feedback {
    margin: 0 0 .25rem;
}

.ta-form-feedback:empty {
    display: none;
}

.ta-form-feedback[data-error] {
    color: #783d31;
}

.ta-contact-form,
.ta-inquiry-inline {
    margin-top: 1.25rem;
}

.ta-contact-form h2,
.ta-inquiry-fallback summary {
    margin-bottom: .65rem;
}

.ta-dialog {
    width: min(525px, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: clamp(20px, 4vw, 36px);
    border: none;
    background: #fff;
    color: #222;
    box-shadow: 0 12px 43px #2224;
}

.ta-dialog::backdrop {
    background: #2227;
}

.ta-dialog-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.ta-dialog-head h2 {
    margin: 0;
}

.ta-shop-links {
    display: flex;
    gap: 1.3rem;
    margin-bottom: 1.25rem;
}

.woocommerce-cart-form .quantity:has([data-ta-step]):has(.qty[type=number]) {
    display: inline-grid;
    grid-template-columns: 36px 48px 36px;
    align-items: stretch;
    max-width: 100%;
    margin: 0;
    border: 1px solid #aaa;
}

.woocommerce-cart-form .quantity:has([data-ta-step]) :is(.plus, .minus),
.woocommerce-cart-form .quantity:not(:has(.qty[type=number])) [data-ta-step] {
    display: none;
}

.woocommerce-cart-form .quantity:has([data-ta-step]) :is(button, .qty[type=number]) {
    position: static;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #222;
    text-align: center;
}

.woocommerce-cart-form .quantity:has([data-ta-step]) .qty[type=number] {
    appearance: textfield;
    border-inline: 1px solid #ddd;
}

.woocommerce-cart-form .quantity:has([data-ta-step]) .qty::-webkit-inner-spin-button,
.woocommerce-cart-form .quantity:has([data-ta-step]) .qty::-webkit-outer-spin-button {
    appearance: none;
}

.woocommerce-cart-form .quantity:has([data-ta-step]) button:hover {
    background: #eee;
}

@media (max-width: 1200px) {
    .ta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ta-grid,
    .ta-work-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ta-tile-art {
        display: block;
        aspect-ratio: auto;
    }

    .ta-tile-art img {
        width: auto;
        height: auto;
        max-height: 115vw;
        margin-inline: auto;
    }
}
