/* Gallery skeleton loading primitives */

:root {
    --gallery-skeleton-base: rgba(234, 241, 255, 0.16);
    --gallery-skeleton-highlight: rgba(234, 241, 255, 0.32);
    --gallery-skeleton-muted: rgba(144, 144, 144, 0.2);
    --gallery-skeleton-radius-sm: var(--border-radius-sm);
    --gallery-skeleton-radius-md: var(--border-radius-md);
    --gallery-skeleton-radius-lg: 14px;
    --gallery-skeleton-radius-circle: 999px;
}

@keyframes gallery-skeleton-pulse {
    0% {
        opacity: 0.72;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.72;
    }
}

.gallery-skeleton,
.gallery-skeleton-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--gallery-skeleton-base);
}

.gallery-skeleton {
    animation: gallery-skeleton-pulse 1.35s ease-in-out infinite;
}

.gallery-skeleton::after,
.gallery-skeleton-card::after {
    content: none;
    pointer-events: none;
}

.gallery-skeleton--line {
    height: 16px;
    border-radius: var(--gallery-skeleton-radius-sm);
}

.gallery-skeleton--block {
    border-radius: var(--gallery-skeleton-radius-md);
}

.gallery-skeleton--circle {
    border-radius: var(--gallery-skeleton-radius-circle);
    aspect-ratio: 1 / 1;
}

.gallery-skeleton--button {
    height: 43px;
    border-radius: var(--gallery-skeleton-radius-sm);
}

.gallery-skeleton--media {
    border-radius: var(--gallery-skeleton-radius-md);
}

.gallery-skeleton-grid {
    width: 100%;
}

.gallery-skeleton--w-50 {
    width: 50%;
}

.gallery-skeleton--w-60 {
    width: 60%;
}

.gallery-skeleton--w-75 {
    width: 75%;
}

.artist-card--skeleton,
.collection-item--skeleton,
.discover-view__card--skeleton,
.latest-artworks__card--skeleton,
.artist-card__slider--skeleton,
.artist-profile-skeleton,
.artwork-detail-skeleton,
.collection-detail-skeleton {
    pointer-events: none;
    user-select: none;
}

.artist-card--skeleton .artist-card__background {
    min-height: 0;
}

.artist-card--skeleton .artist-card__avatar {
    flex: 0 0 auto;
}

.artist-card__skeleton-country {
    width: 72px;
    height: 14px;
}

.artist-card__skeleton-name {
    width: clamp(150px, 52%, 220px);
    height: 28px;
}

.artist-card__skeleton-roles {
    width: clamp(130px, 42%, 190px);
    height: 18px;
}

.artist-card__stats {
    margin-top: var(--spacing-xs);
}

.artist-card--skeleton .artist-card__skeleton-stats {
    width: clamp(140px, 48%, 210px);
    height: 16px;
}

.artist-card__skeleton-action {
    width: 50px;
}

.artist-card__skeleton-action--wide {
    width: min(190px, 54%);
}

.artist-card__slider-skeleton-name {
    width: 180px;
    height: 24px;
}

.artist-card__slider-skeleton-location {
    width: 120px;
    height: 18px;
}

.artist-card__slider--skeleton .artist-card__carousel-track {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}

.artist-card__slider--skeleton .artist-card__carousel-item {
    flex: 0 0 var(--artist-skeleton-item-width, 220px);
    height: 320px;
}

.artist-card__slider--skeleton .artist-card__carousel-img,
.artist-card__slider--skeleton .gallery-skeleton--media {
    width: 100%;
    height: 100%;
}

.artist-card__slider--skeleton .artist-card__carousel-wrapper {
    margin: 0 var(--spacing-5xl) var(--spacing-6xl);
    overflow: hidden;
}

.artist-card__slider--skeleton .artist-card__carousel-nav-wrapper {
    display: block;
}

.artist-card__slider-nav-skeleton {
    position: absolute;
    width: 50px;
    height: 100px;
    background: rgba(234, 241, 255, 0.08);
}

.artist-card__slider-nav-skeleton::after {
    opacity: 0.65;
}

.artist-card__slider--skeleton .artist-card__scrollbar {
    width: 100%;
    height: 8px;
    background: rgba(234, 241, 255, 0.08);
    border-radius: 4px;
}

.artist-card__slider--skeleton .artist-card__scroll-track {
    position: absolute;
    inset: 0;
    height: 8px;
    background: rgba(234, 241, 255, 0.08);
}

.artist-card__scroll-thumb--skeleton {
    position: absolute;
    left: 4%;
    top: 50%;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    transform: translateY(-50%) rotate(45deg);
    background: rgba(234, 241, 255, 0.16);
}

.collection-item--skeleton {
    background-color: var(--color-secondary);
    background-image: none !important;
}

.collection-item--skeleton::before {
    background: rgba(14, 17, 24, 0.38);
}

.collection-item--skeleton .collection-item__label,
.collection-item--skeleton .collection-item__details {
    position: relative;
    z-index: 1;
}

.collection-item__skeleton-label {
    width: 150px;
}

.collection-item__skeleton-title {
    width: clamp(170px, 48%, 260px);
    height: 24px;
}

.collection-item__skeleton-meta {
    width: 92px;
    height: 16px;
}

.collection-item__skeleton-meta:last-child {
    width: 108px;
}

.collection-item__skeleton-image {
    width: 80px;
    height: 60px;
}

.discover-view__card--grid-skeleton .discover-view__image-wrap,
.discover-view__card--grid-skeleton .discover-view__skeleton-image {
    aspect-ratio: 1 / 1;
}

.discover-view__card--masonry-skeleton .discover-view__image-wrap,
.discover-view__card--masonry-skeleton .discover-view__skeleton-image {
    height: var(--artwork-skeleton-media-height, 280px);
}

.discover-view__card--skeleton .discover-view__image-wrap {
    overflow: hidden;
}

.discover-view__skeleton-hover {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    right: var(--spacing-md);
}

.discover-view__skeleton-avatar,
.discover-view__skeleton-favorite {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px;
    background: rgba(234, 241, 255, 0.12);
}

.discover-view__card--grid-skeleton .discover-view__skeleton-hover {
    opacity: 0.76;
}

.discover-view__card--masonry-skeleton .discover-view__skeleton-hover {
    opacity: 0.64;
}

.discover-view__skeleton-title-row {
    width: 100%;
}

.discover-view__skeleton-title {
    width: min(72%, 210px);
    height: 22px;
}

.discover-view__skeleton-year {
    width: 34px;
    height: 12px;
}

.discover-view__skeleton-medium {
    width: min(58%, 170px);
    height: 16px;
}

.discover-view__skeleton-dims {
    width: min(46%, 145px);
    height: 16px;
}

.discover-view__skeleton-divider {
    width: 100%;
    height: 1px;
    background: rgba(234, 241, 255, 0.08);
}

.discover-view__skeleton-price-label {
    width: 42px;
    height: 12px;
}

.discover-view__skeleton-price-value {
    width: 96px;
    height: 22px;
}

.discover-view__skeleton-cta {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    background: rgba(234, 241, 255, 0.14);
}

.latest-artworks__card--skeleton .latest-artworks__image-wrap,
.latest-artworks__card--skeleton .gallery-skeleton--media {
    aspect-ratio: 1 / 1;
}

.latest-artworks__skeleton-title {
    width: 72%;
    height: 22px;
}

.latest-artworks__skeleton-meta {
    width: 58%;
    height: 16px;
}

.latest-artworks__skeleton-meta:last-child {
    width: 46%;
}

.latest-artworks__skeleton-price {
    width: 92px;
    height: 22px;
}

.artist-profile-skeleton__heading {
    width: clamp(190px, 30%, 320px);
    height: 38px;
}

.artist-profile-skeleton__latest-card {
    min-height: 320px;
}

.artist-profile-skeleton__about-line {
    width: 100%;
    height: 20px;
}

.artist-profile-skeleton__about-line:nth-child(2) {
    width: 86%;
}

.artist-profile-skeleton__about-line:nth-child(3) {
    width: 72%;
}

.artist-profile-skeleton__career-card {
    width: 100%;
    min-height: 96px;
}

.artist-profile-header--skeleton .large-banner__photo-wrapper {
    width: 183px;
    height: 210px;
    max-width: 183px;
    max-height: 210px;
}

.artist-profile-header--skeleton .large-banner__photo {
    width: 100%;
    height: 100%;
    max-width: 183px;
    max-height: 210px;
}

.artist-profile-header__skeleton-country {
    width: 86px;
    height: 14px;
}

.artist-profile-header__skeleton-name {
    width: clamp(180px, 38vw, 340px);
    height: 32px;
}

.artist-profile-header__skeleton-bio {
    width: min(620px, 72vw);
    height: 18px;
}

.artist-profile-header__skeleton-bio:last-child {
    width: min(480px, 60vw);
}

.collection-detail-skeleton__title {
    width: min(520px, 72vw);
    height: 58px;
    margin-inline: auto;
}

.collection-detail-skeleton__count {
    width: min(180px, 36vw);
    height: 24px;
    margin-inline: auto;
}

.collection-detail-skeleton__description {
    width: 100%;
    height: 20px;
}

.collection-detail-skeleton__description:nth-child(2) {
    width: 88%;
    margin-inline: auto;
}

.collection-detail-skeleton__description:nth-child(3) {
    width: 72%;
    margin-inline: auto;
}

.artwork-detail-skeleton__main-image {
    width: min(720px, 100%);
    min-height: clamp(360px, 46vw, 680px);
}

.artwork-detail-skeleton .artwork-page__main-part {
    width: 100%;
}

.artwork-detail-skeleton .main-image-wrapper {
    width: 100%;
}

.artwork-detail-skeleton__thumbnail {
    width: 74px;
    height: 74px;
}

.artwork-detail-skeleton__thumbnail-action {
    background: rgba(1, 107, 255, 0.26);
}

.artwork-detail-skeleton__showcase {
    width: 348px;
    height: 455px;
}

.artwork-detail-skeleton__indicator {
    height: 6px;
}

.artwork-detail-skeleton__year {
    width: 140px;
    height: 40px;
}

.artwork-detail-skeleton__detail-title {
    width: 210px;
    height: 20px;
}

.artwork-detail-skeleton__detail-line {
    width: min(100%, 640px);
    height: 18px;
}

.artwork-detail-skeleton__detail-line-short {
    width: min(72%, 420px);
    height: 18px;
}

.artwork-detail-skeleton__side-title {
    width: 150px;
    height: 20px;
}

.artwork-detail-skeleton__side-meta {
    width: 120px;
    height: 16px;
}

.artwork-detail-skeleton__price {
    width: 180px;
    height: 54px;
}

.artwork-detail-skeleton__currency {
    width: 78px;
    height: 22px;
}

.artwork-detail-skeleton__frame-card {
    width: 100%;
    height: 92px;
}

.artwork-detail-skeleton__button--gold {
    background: rgba(255, 199, 31, 0.24);
}

.artwork-detail-skeleton__info-icon {
    width: 17px;
    height: 17px;
}

.artwork-detail-skeleton__info-title {
    width: min(100%, 360px);
    height: 16px;
}

.artwork-detail-skeleton__info-arrow {
    width: 14px;
    height: 8px;
    flex: 0 0 auto;
}

.artwork-detail-skeleton__status-title {
    width: min(78%, 360px);
    height: 54px;
}

.artwork-detail-skeleton__status-title--sold {
    width: min(45%, 210px);
}

.artwork-detail-skeleton__status-subtitle {
    width: min(100%, 430px);
    height: 24px;
}

.artwork-detail-skeleton__status-line {
    width: 100%;
    height: 18px;
}

.artwork-detail-skeleton__status-line-short {
    width: 72%;
    height: 18px;
}

.artwork-detail-skeleton__status-cta {
    margin-top: var(--spacing-sm);
}

@media (max-width: 1440px) {
    .artwork-detail-skeleton__main-image {
        min-height: 600px;
    }
}

@media (max-width: 700px) {
    .artwork-detail-skeleton__main-image {
        min-height: 500px;
    }
}

@media (max-width: 580px) {
    .artwork-detail-skeleton__main-image {
        min-height: 400px;
    }
}

@media (max-width: 520px) {
    .artwork-detail-skeleton__main-image {
        min-height: 350px;
    }

    .artwork-detail-skeleton__thumbnail {
        width: 60px;
        height: 60px;
    }
}
