.artist-works-container,
.artist-lightbox-overlay {
    font-family: var(--artwork-font, "Kook", IRANSans, iranyekan, sans-serif);
}

/* ================================
   Tabs
   ================================ */
.artist-works-tabs {
    display: flex;
    justify-content: center;
    gap: 0px;
    border-bottom: 1px solid #dbdbdb;
    margin-bottom: 20px;
}
.artist-tab-link {
    font-size: 14px;
    font-weight: 600;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent !important;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.artist-tab-link.active,
.artist-tab-link:hover {
    color: #262626;
    border-bottom-color: #262626;
}
.artist-tab-link.active {
    border-bottom-width: 2px;
    color: #58c7bb;
}

/* ================================
   Grid (Instagram Style)
   ================================ */
.artist-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px !important;
}
@media (min-width: 768px) {
    .artist-works-grid {
        gap: 12px !important;
    }
}

/* ================================
   Work Item - با تغییرات جدید و UI/UX حرفه‌ای
   ================================ */

/* اسکلتون لودینگ و کانتینر اصلی */
.artist-work-item-link {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}
.artist-works-grid a{
	border-radius: 12px;
}
/* اسکلتون لودینگ */
/* .artist-work-item-link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
} */

/* وقتی تصویر لود شد، اسکلتون رو مخفی کن */
/* .artist-work-item-link .artist-work-thumbnail-main.loaded ~ .artist-work-item-link::before {
    opacity: 0;
    animation: none;
} */

.artist-work-thumbnail {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #111;
	    border: #a9a2a2 1.5px solid;
}

/* تصویر پس زمینه محو */
.artist-work-thumbnail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    transform: scale(1.25);
    filter: blur(24px) brightness(0.3);
    opacity: 1;
    z-index: 1;
    transition: transform 0.5s ease;
}

.artist-work-item-link:hover .artist-work-thumbnail-bg {
    transform: scale(1.4);
}

/* لایه تیره گرادیان دار */
.artist-work-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
    transition: opacity 0.4s ease;
}

.artist-work-item-link:hover .artist-work-thumbnail::after {
    opacity: 0.7;
}

/* تصویر اصلی با انیمیشن لود شدن */
.artist-work-thumbnail-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 60%;
    height: auto;
    object-fit: contain;
    z-index: 3;
    padding: 12px;
    box-sizing: border-box;
/*     opacity: 0; */
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* .artist-work-thumbnail-main.loaded {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
} */
/* .artist-work-thumbnail-main {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: calc(100% - 20px);
    height: calc(100% - 20px);

    object-fit: contain;

    z-index: 3;

    padding: 10px;
    box-sizing: border-box;

    opacity: 1;
} */
.artist-work-item-link:hover .artist-work-thumbnail-main.loaded {
    transform: translate(-50%, -50%) scale(1.06);
}

/* افکت هاور حرفه‌ای */
.work-hover-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
}

.artist-work-item-link:hover .work-hover-overlay {
    opacity: 1;
}

.work-hover-content {
    text-align: center;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.artist-work-item-link:hover .work-hover-content {
    transform: translateY(0) scale(1);
}

.work-hover-title {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.work-hover-type {
    display: inline-block;
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-weight: 400;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 0.3px;
}

/* آیکون ویدئو بهبود یافته */
.artist-work-thumbnail .work-type-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.artist-work-item-link:hover .work-type-icon {
    transform: scale(1.1);
    background: rgba(88, 199, 187, 0.8);
}

.artist-work-thumbnail .work-icon-video {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-size: 18px 18px;
    background-position: center 55%;
    background-repeat: no-repeat;
}

/* ================================
   Lightbox
   ================================ */
.artist-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.artist-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}
body.artist-lightbox-active {
    overflow: hidden;
}
.artist-lightbox-close {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 99999;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.artist-lightbox-close:hover {
    opacity: 1;
}
.artist-lightbox-close::before,
.artist-lightbox-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 2px;
    background: #ffffff;
    transform-origin: center;
}
.artist-lightbox-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.artist-lightbox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* --- Navigation Wrapper --- */
.artist-lightbox-nav-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row-reverse !important;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 10;
    pointer-events: none;
}
@media (max-width: 767px) {
    .artist-lightbox-nav-wrapper {
        padding: 0 5px;
    }
    .artist-lightbox-caption {
        padding: 4px;
    }
}

.artist-lightbox-nav {
    position: relative;
    top: auto;
    transform: none;
    z-index: 99998;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #dbdbdb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s ease, background 0.2s ease;
    pointer-events: all;
}
.artist-lightbox-nav:hover {
    opacity: 1;
    background: #58c7bb;
}
.artist-lightbox-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 3px solid #262626;
    border-right: 3px solid #262626;
}
.artist-lightbox-nav.artist-lightbox-prev::before {
    transform: translate(-50%, -50%) rotate(45deg);
    margin-left: -2px;
}
.artist-lightbox-nav.artist-lightbox-next::before {
    transform: translate(-50%, -50%) rotate(-135deg);
    margin-left: 2px;
}
body.touch-device .artist-lightbox-nav {
    display: none;
}

.artist-lightbox-content {
    position: relative;
    background: #fff;
    width: 85%;
    max-width: 1100px;
    height: 82vh;
    max-height: 750px;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    align-items: stretch;
    overflow: hidden;
}
.artist-lightbox-media {
    flex: 1 1 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center !important;
    overflow: hidden;
    position: relative;
    min-height: 300px;
    user-select: none;
}
.artist-lightbox-overlay.active .artist-lightbox-content {
    transform: scale(1);
}
@media (min-width: 900px) {
    .artist-lightbox-content {
        flex-direction: row;
    }
}

.artist-lightbox-caption-header img {
    border-radius: 50px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 2px solid #75bdbe !important;
}
.artist-lightbox-media img,
.artist-lightbox-media video,
.artist-lightbox-media iframe {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.artist-lightbox-media iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
}
.artist-lightbox-media video {
    width: 100%;
    height: 100%;
    background: #fff;
}
.artist-lightbox-caption {
    flex: 1 1 50%;
    padding: 25px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #262626;
    border-top: 1px solid #efefef;
    background: #fff;
    direction: rtl;
    text-align: right;
}
@media (max-width: 899px) {
    .artist-lightbox-caption {
        flex-basis: auto;
        flex-grow: 0;
        flex-shrink: 1;
        max-height: 30vh;
    }
}
@media (min-width: 900px) {
    .artist-lightbox-media {
        flex-basis: 50%;
        max-height: 100%;
    }
    .artist-lightbox-caption {
        flex-basis: 50%;
        height: 100%;
        max-height: 82vh;
        border-top: none;
        border-left: 1px solid #efefef;
    }
}
.artist-lightbox-caption-header {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #efefef;
}
.artist-caption-pic {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    object-fit: cover;
    margin-left: 10px;
}
.artist-caption-name {
    font-weight: 600;
    font-size: 15px;
    color: #262626;
}
.artist-lightbox-caption-body strong {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #262626;
}
.artist-caption-text p {
    margin: 0 0 1em;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}
.artist-caption-text p:last-child {
    margin-bottom: 0;
}

/* ================================
   Follow Button
   ================================ */
.artist-follow-button {
    background-color: #0095f6;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 5px 9px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.artist-follow-button:hover {
    background-color: #0077c6;
}
.artist-follow-button.following {
    background-color: transparent;
    color: #262626;
    border: 1px solid #dbdbdb;
}
.artist-follow-button.following:hover {
    background-color: #fafafa;
}
.artist-follow-button.loading {
    opacity: 0.7;
    cursor: wait;
}
.follow-button-wrapper {
    position: relative;
    display: inline-block;
}
.artist-login-notice {
    display: block;
    font-size: 12px;
    color: #ed4956;
    margin-top: 5px;
}

/* ================================
   Responsive - بهبود برای موبایل
   ================================ */
@media (max-width: 767px) {
    .work-hover-title {
        font-size: 12px;
    }
    .work-hover-type {
        font-size: 10px;
        padding: 3px 10px;
    }
    .artist-work-thumbnail .work-type-icon {
        width: 26px;
        height: 26px;
        top: 8px;
        right: 8px;
    }
    .artist-work-thumbnail .work-icon-video {
        background-size: 14px 14px;
    }
    .artist-work-thumbnail-main {
        padding: 8px;
    }
    
    /* بهبود نمایش در موبایل */
    .artist-works-grid {
        gap: 5px !important;
    }
}

/* ================================
   بهبود برای تاچ دیوایس‌ها
   ================================ */
@media (hover: none) {
    .work-hover-overlay {
        opacity: 0;
        pointer-events: none;
    }
    .artist-work-item-link:hover .work-hover-overlay {
        opacity: 0;
    }
    .artist-work-thumbnail-main {
        padding: 4px;
    }
}

/* Single artist page */
.aw-single-artist {
    --aw-single-black: #050505;
    --aw-single-ink: #111111;
    --aw-single-muted: #6f6f73;
    --aw-single-line: #e4e4e4;
    --aw-single-soft: #f6f6f6;
    --aw-single-pattern: url("../brand/artwork-pattern-transparent.webp");
    background: #fff;
    color: var(--aw-single-ink);
    direction: rtl;
    overflow: hidden;
    scroll-behavior: smooth;
}

.aw-single-artist *,
.aw-single-artist *::before,
.aw-single-artist *::after {
    box-sizing: border-box;
}

.aw-single-artist__hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: stretch;
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(48px, 7vw, 92px) 0 clamp(44px, 6vw, 78px);
}

.aw-single-artist__hero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc((100vw - 100%) / -2);
    width: min(72vw, 880px);
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 78%),
        linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 86%),
        var(--aw-single-pattern);
    background-repeat: repeat;
    background-size: auto, auto, 680px auto;
    opacity: 0.17;
    z-index: 0;
}

.aw-single-artist__media,
.aw-single-artist__copy {
    position: relative;
    z-index: 1;
}

.aw-single-artist__media {
    min-height: clamp(420px, 48vw, 620px);
    border: 1px solid var(--aw-single-line);
    background: #fff;
}

.aw-single-artist__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1);
}

.aw-single-artist__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(18px, 3vw, 42px) 0;
    text-align: right;
}

.aw-single-artist__label {
    width: max-content;
    max-width: 100%;
    margin-bottom: 22px;
    padding: 10px 15px;
    border: 1px solid var(--aw-single-line);
    color: var(--aw-single-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

main.aw-single-artist .aw-single-artist__copy h1 {
    margin: 0;
    color: var(--aw-single-black);
    max-width: 100%;
    font-size: clamp(46px, 6.4vw, 86px) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    overflow-wrap: break-word;
}

.aw-single-artist__bio {
    max-width: 720px;
    margin-top: 28px;
    color: var(--aw-single-muted);
    font-size: clamp(16px, 1.28vw, 20px);
    font-weight: 500;
    line-height: 2.15;
}

.aw-single-artist__bio p {
    margin: 0 0 12px;
}

.aw-single-artist__bio p:last-child {
    margin-bottom: 0;
}

.aw-single-artist__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 34px;
}

.aw-single-artist__meta > span,
.aw-single-artist__meta a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    border: 1px solid var(--aw-single-line);
    padding: 0 16px;
    color: var(--aw-single-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.aw-single-artist__works-link {
    gap: 10px;
}

.aw-single-artist__works-link i {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.aw-single-artist__meta a:not(.aw-single-artist__works-link) {
    background: var(--aw-single-black);
    border-color: var(--aw-single-black);
    color: #fff;
}

.aw-single-artist__works-link:hover,
.aw-single-artist__works-link:focus-visible {
    background: var(--aw-single-black);
    border-color: var(--aw-single-black);
    color: #fff;
}

#aw-single-artist-works-title {
    scroll-margin-top: 110px;
}

.aw-single-artist__works {
    border-top: 1px solid var(--aw-single-line);
    background: var(--aw-single-soft);
    padding: clamp(46px, 6vw, 82px) 0 clamp(58px, 7vw, 96px);
}

.aw-single-artist__section-head,
.aw-single-artist__grid,
.aw-single-artist__products,
.aw-single-artist__empty {
    width: min(1220px, calc(100% - 48px));
    margin-inline: auto;
}

.aw-single-artist__products {
    margin-top: 0;
}

.aw-single-artist__products .wd-product .product-wrapper {
    direction: rtl;
    text-align: right;
}

.aw-single-artist__products .wd-product .wd-entities-title,
.aw-single-artist__products .wd-product .wd-entities-title a,
.aw-single-artist__products .wd-product .aw-loop-product-artist,
.aw-single-artist__products .wd-product .price {
    width: 100%;
    direction: rtl;
    text-align: right !important;
}

.aw-single-artist__products .wd-product .aw-loop-product-artist {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: var(--aw-single-muted);
    font-size: 13px;
    line-height: 1.8;
}

.aw-single-artist__products .wd-product .aw-loop-product-artist strong {
    color: var(--aw-single-ink);
    font-size: 14px;
    font-weight: 800;
}

.aw-single-artist__products .wd-product .price,
.aw-single-artist__products .wd-product .call-for-price-link {
    display: block;
    color: var(--aw-single-ink);
    font-weight: 700;
    text-align: right !important;
}

.aw-single-artist__products .wd-product .aw-mobile-product-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-end;
    min-height: 44px;
    margin-top: 16px;
    padding: 0 18px;
    border: 1px solid var(--aw-single-black);
    background: var(--aw-single-black);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.aw-single-artist__products .wd-product .aw-mobile-product-action i {
    font-style: normal;
    line-height: 1;
}

.aw-single-artist__section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 34px;
    direction: rtl;
    text-align: right;
}

main.aw-single-artist .aw-single-artist__section-head h2 {
    width: 100%;
    margin: 0;
    color: var(--aw-single-black);
    font-size: clamp(34px, 4.4vw, 64px) !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
}

.aw-single-artist__section-head p {
    width: 100%;
    margin: 0;
    max-width: 520px;
    color: var(--aw-single-muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
}

.aw-single-artist__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.aw-single-work {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid var(--aw-single-line);
    background: #fff;
}

.aw-single-work__media {
    display: flex;
    aspect-ratio: 1 / 1.08;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--aw-single-line);
    background: #fff;
    overflow: hidden;
}

.aw-single-work__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(20px, 3vw, 42px);
    transition: transform 180ms ease;
}

.aw-single-work:hover .aw-single-work__media img {
    transform: scale(1.025);
}

.aw-single-work__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 16px;
    align-items: end;
    min-height: 116px;
    padding: 22px;
    text-align: right;
}

.aw-single-work__body h3 {
    margin: 0;
    color: var(--aw-single-ink);
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 800;
    line-height: 1.65;
}

.aw-single-work__button {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--aw-single-line);
    color: var(--aw-single-black);
    text-decoration: none;
}

.aw-single-work__button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.aw-single-work__button i {
    display: block;
    width: 15px;
    height: 15px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 12L12 3M12 3H5M12 3V10' stroke='black' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: scaleX(-1);
}

.aw-single-work__button:hover,
.aw-single-work__button:focus-visible {
    background: var(--aw-single-black);
    border-color: var(--aw-single-black);
    color: #fff;
}

.aw-single-artist__empty {
    border: 1px solid var(--aw-single-line);
    background: #fff;
    padding: 28px;
    color: var(--aw-single-muted);
    font-size: 16px;
}

@media (max-width: 1024px) {
    .aw-single-artist__hero,
    .aw-single-artist__section-head {
        grid-template-columns: 1fr;
    }

    .aw-single-artist__media {
        min-height: auto;
        aspect-ratio: 1 / 1;
    }

    .aw-single-artist__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .aw-single-artist__hero,
    .aw-single-artist__section-head,
    .aw-single-artist__grid,
    .aw-single-artist__products,
    .aw-single-artist__empty {
        width: min(100% - 32px, 1220px);
    }

    main.aw-single-artist .aw-single-artist__copy h1 {
        font-size: clamp(38px, 11vw, 52px) !important;
    }

    .aw-single-artist__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .aw-single-work__body {
        min-height: 98px;
        padding: 18px;
    }

    .aw-single-artist__products .wd-product .product-wrapper {
        display: flex !important;
        min-height: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .aw-single-artist__products .wd-product .product-element-top {
        aspect-ratio: 1 / 1 !important;
        max-height: none !important;
        padding: 26px !important;
    }

    .aw-single-artist__products .wd-product .product-element-bottom {
        min-height: 0 !important;
        padding: 18px !important;
    }

    .aw-single-artist__products .wd-product .wd-entities-title {
        margin: 0 !important;
        font-size: 17px !important;
        line-height: 1.75 !important;
    }

    .aw-single-artist__products .wd-product .aw-loop-product-artist,
    .aw-single-artist__products .wd-product .price {
        margin-top: 10px !important;
    }

    .aw-single-artist__products .wd-product .aw-mobile-product-action {
        width: 100% !important;
        min-width: 0 !important;
        margin: 16px 0 0 !important;
    }
}

/* Final product-card parity for artist work listings. */
.aw-single-artist__products.wd-products,
.aw-single-artist__products.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

.aw-single-artist__products .wd-product.product-grid-item {
    display: flex !important;
    min-height: 100% !important;
    padding: 0 !important;
    background: var(--aw-white, #fff) !important;
    border: 1px solid var(--aw-line, #e5e0d8) !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.aw-single-artist__products .wd-product .product-wrapper {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 100% !important;
    padding: 0 !important;
    background: var(--aw-white, #fff) !important;
    direction: rtl !important;
    text-align: right !important;
}

.aw-single-artist__products .wd-product .product-element-top {
    position: relative !important;
    display: grid !important;
    aspect-ratio: 1 / 1 !important;
    place-items: center !important;
    margin: 0 !important;
    padding: clamp(22px, 3vw, 34px) !important;
    background: var(--aw-white, #fff) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--aw-line, #e5e0d8) !important;
    overflow: hidden !important;
}

.aw-single-artist__products .wd-product .product-element-top::after {
    content: "" !important;
    position: absolute !important;
    inset: 12px !important;
    border: 1px solid var(--aw-line, #e5e0d8) !important;
    pointer-events: none !important;
}

.aw-single-artist__products .wd-product .product-image-link {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    place-items: center !important;
    background: var(--aw-white, #fff) !important;
}

.aw-single-artist__products .wd-product .product-element-top img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: clamp(8px, 1.2vw, 16px) !important;
    object-fit: contain !important;
}

.aw-single-artist__products .wd-product .product-element-bottom {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: var(--aw-white, #fff) !important;
    text-align: right !important;
}

.aw-single-artist__products .wd-product .wd-entities-title,
.aw-single-artist__products .wd-product .wd-entities-title a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 18px 4px !important;
    color: var(--aw-black, #050505) !important;
    font-size: clamp(15px, 1.04vw, 17px) !important;
    font-weight: 900 !important;
    line-height: 1.65 !important;
    text-align: right !important;
    text-decoration: none !important;
    white-space: normal !important;
}

.aw-single-artist__products .wd-product .aw-loop-product-artist {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 18px 8px !important;
    color: var(--aw-muted, #777) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.8 !important;
    text-align: right !important;
}

.aw-single-artist__products .wd-product .aw-loop-product-artist strong {
    color: var(--aw-ink, #181619) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.aw-single-artist__products .wd-product .price,
.aw-single-artist__products .wd-product .call-for-price-link {
    display: block !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 6px 18px 20px !important;
    color: var(--aw-black, #050505) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.7 !important;
    text-align: right !important;
}

.aw-single-artist__products .wd-product .wrapp-buttons {
    position: absolute !important;
    inset: auto auto 16px 16px !important;
    z-index: 4 !important;
    display: block !important;
    width: 116px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: visible !important;
    transform: translateY(8px) !important;
    transition: opacity .18s ease, transform .18s ease !important;
    direction: ltr !important;
}

.aw-single-artist__products .wd-product:hover .wrapp-buttons,
.aw-single-artist__products .wd-product .product-wrapper:hover .wrapp-buttons,
.aw-single-artist__products .wd-product:focus-within .wrapp-buttons {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.aw-single-artist__products .wd-product .aw-mobile-product-action {
    display: none !important;
}

@media (max-width: 1024px) {
    .aw-single-artist__products.wd-products,
    .aw-single-artist__products.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}

@media (max-width: 767px) {
    .aw-single-artist__products.wd-products,
    .aw-single-artist__products.products {
        grid-template-columns: 1fr !important;
    }

    .aw-single-artist__products .wd-product .wrapp-buttons {
        display: none !important;
    }

    .aw-single-artist__products .wd-product .price {
        padding-bottom: 12px !important;
    }

    .aw-single-artist__products .wd-product .aw-mobile-product-action {
        display: inline-flex !important;
        width: calc(100% - 36px) !important;
        min-height: 46px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 9px !important;
        margin: 0 18px 20px !important;
        padding: 0 15px !important;
        background: var(--aw-black, #050505) !important;
        border: 1px solid var(--aw-black, #050505) !important;
        color: var(--aw-white, #fff) !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-decoration: none !important;
    }
}

/* Final rhythm: keep the artist works section close to the footer without a large empty tail. */
main.aw-single-artist .aw-single-artist__works {
    padding-bottom: clamp(28px, 4vw, 48px) !important;
}

main.aw-single-artist .aw-single-artist__products {
    margin-bottom: 0 !important;
}
