/* stylelint-disable declaration-block-no-duplicate-properties, declaration-block-single-line-max-declarations, media-feature-name-disallowed-list, media-feature-name-value-no-unknown, no-duplicate-selectors, property-no-unknown -- Phase 9: heavily decorative sheet retained verbatim for zero visual delta (D9-05) — duplicate `background-clip`/`user-select` are intentional vendor-prefix fallback pairs; `user-drag` is a deliberate non-standard image-drag guard; the pre-existing `.gallery-item`/`.gallery-btn` duplicate selector blocks are NOT merged (no speculative refactor); multi-declaration @keyframes steps kept on one line (canonical keyframe idiom); `prefers-contrast: high` is a valid media value the linter's data lags on; max-width retained (mobile-first deferred, D-08). Notation/order/empty-line/length-zero/strict-value cleaned (off-scale bespoke shadows/radii carry inline token-exempt notes). strict-value (`declaration-strict-value`) and `!important` (`declaration-no-important`) are now scoped PER-LINE — the 1 raw `#6b5e54` lightbox-type color and the 1 load-bearing font-family !important each carry their own inline disable + reason (matching icons.css/animations.css/style.css discipline), no longer blanket-disabled file-wide. The shared underline-shimmer keyframe was kebab-renamed in the coordinated theme-wide lockstep rename (09-07), so keyframes-name-pattern is no longer disabled here. */

/**
 * Enhanced Pet Gallery CSS - Matching Site Theme
 *
 * CASCADE-LAYER DISPOSITION (D9-06): pet-gallery.css declares `array('rhuarcs-style')`
 * as a wp_enqueue dependency, so it loads AFTER style.css. Its `.gallery-item` and
 * `.pet-gallery-*` selectors collide with UNLAYERED rules in style.css /
 * accessibility.css; it also defines `:root` gallery tokens and a load-bearing
 * `font-family !important`. The sheet is therefore an ENTANGLED cohort kept
 * UNLAYERED here (layering it while the competitors stay unlayered regresses the
 * cascade) and reconciled in the atomic Plan 09-09. The 3 shared cross-file keyframes
 * (`underline-shimmer` def here + `fade-in-up` reference) were kebab-renamed in the
 * single theme-wide lockstep rename at Plan 09-07 — 09-03 contract discharged.
 */

/* 2025 Enhanced Pet Gallery CSS - Matching Site Theme */

/* Gallery-specific variables using design tokens */
:root {
    --gallery-primary: var(--purple-700);
    --gallery-secondary: var(--purple-600);
    --gallery-tertiary: var(--purple-400);
    --gallery-accent: var(--purple-500);
    --gallery-light: var(--purple-100);
    --gallery-cream: var(--purple-50);
    --gallery-text: var(--purple-800);
    --gallery-shadow: var(--shadow-purple-sm, 0 4px 20px rgb(92 31 113 / 15%)); /* token-exempt: shadow geometry differs from --shadow-purple-* tokens (different offsets/spread) */
    --gallery-shadow-hover: var(--shadow-purple-md, 0 8px 32px rgb(92 31 113 / 25%)); /* token-exempt: shadow geometry differs from --shadow-purple-* tokens (different offsets/spread) */
}

/* Gallery Header Styling - Enhanced with Animations */
.gallery-header {
    position: relative;
    z-index: 2;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    padding: 0 1rem;
    text-align: center;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    margin-bottom: 3rem;
}

.gallery-header h2 {
    position: relative;
    /* stylelint-disable-next-line declaration-no-important -- load-bearing against style.css's unlayered font-family enforcement; reconciles when style.css's font-family block fully discharges (deferred) */
    font-family: var(--font-family-secondary, 'Filson Pro', serif) !important;
    font-size: clamp(2.2rem, 4.5vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, 
        var(--gallery-primary) 0%, 
        var(--gallery-secondary) 50%, 
        var(--gallery-tertiary) 100%);
    animation: title-glow 3s ease-in-out infinite alternate;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgb(92 31 113 / 15%); /* token-exempt: shadow geometry differs from --shadow-purple-* tokens (different offsets/spread) */
}

@keyframes title-glow {
    0% { 
        filter: drop-shadow(0 2px 4px rgb(92 31 113 / 10%)); /* token-exempt: shadow geometry differs from --shadow-purple-* tokens (different offsets/spread) */
        transform: translateY(0);
    }

    100% { 
        filter: drop-shadow(0 4px 12px rgb(92 31 113 / 20%)); /* token-exempt: shadow geometry differs from --shadow-purple-* tokens (different offsets/spread) */
        transform: translateY(-2px);
    }
}

.gallery-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gallery-tertiary), 
        var(--gallery-primary), 
        var(--gallery-tertiary), 
        transparent);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 2px;
    transform: translateX(-50%);
    animation: underline-shimmer 2s ease-in-out infinite;
}

@keyframes underline-shimmer {
    0%, 100% { width: 80px; opacity: 0.7; }
    50% { width: 120px; opacity: 1; }
}

.gallery-header p {
    max-width: 650px;
    margin: 0 auto;
    font-size: clamp(1.1rem, 2.4vw, 1.3rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--gallery-text);
    opacity: 0.95;
    animation: fade-in-up 1s ease-out 0.3s both;
}

/* fade-in-up animation available in utilities.css */

/* Enhanced gallery container with magical glow and animations */
.pet-gallery-container {
    position: relative;
    max-width: 1200px;
    padding: 0 clamp(1rem, 4vw, 2rem);
    margin: 0 auto;

    /* Enhanced gradient with depth */
    background: 
        radial-gradient(circle at center top, rgb(248 244 255 / 98%) 0%, transparent 70%),
        linear-gradient(135deg, 
            rgb(248 244 255 / 95%) 0%, 
            rgb(243 232 255 / 92%) 25%, 
            rgb(237 233 254 / 88%) 50%, 
            rgb(221 214 254 / 85%) 75%, 
            rgb(196 181 253 / 82%) 100%);
    border: 1px solid rgb(92 31 113 / 20%); /* token-exempt: compound rgba border tint — no token covers this alpha variant */
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 28px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        var(--gallery-shadow),
        0 0 30px rgb(168 85 247 / 15%),
        inset 0 1px 0 rgb(255 255 255 / 90%),
        inset 0 -1px 0 rgb(168 85 247 / 10%);
    opacity: 0;

    /* Hardware acceleration for sub-1-second performance */
    transform: translateZ(0);
    animation: gallery-glow 4s ease-in-out infinite alternate;
    animation: container-entrance 1.2s ease-out 0.6s both, gallery-glow 4s ease-in-out 2s infinite alternate;
    overflow: hidden;
    will-change: transform;
    backdrop-filter: blur(15px);
}

@keyframes container-entrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes gallery-glow {
    0% { 
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
        box-shadow: 
            var(--gallery-shadow),
            0 0 30px rgb(168 85 247 / 15%),
            inset 0 1px 0 rgb(255 255 255 / 90%),
            inset 0 -1px 0 rgb(168 85 247 / 10%);
    }

    100% { 
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
        box-shadow: 
            var(--gallery-shadow-hover),
            0 0 40px rgb(168 85 247 / 25%),
            0 0 60px rgb(236 72 153 / 10%),
            inset 0 1px 0 rgb(255 255 255 / 90%),
            inset 0 -1px 0 rgb(168 85 247 / 15%);
    }
}

/* Gallery Section Background - Enhanced with Magic */
.pet-gallery-section {
    position: relative;
    z-index: 1;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    padding: 5rem 0;
    background: 
        radial-gradient(circle at 20% 20%, rgb(168 85 247 / 15%) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgb(236 72 153 / 12%) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgb(139 92 246 / 8%) 0%, transparent 50%),
        linear-gradient(135deg, rgb(255 255 255 / 80%) 0%, rgb(248 244 255 / 60%) 100%);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Floating Particles Animation */
.pet-gallery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 35%, rgb(168 85 247 / 40%) 0, transparent 1px),
        radial-gradient(circle at 75% 15%, rgb(236 72 153 / 30%) 0, transparent 1px),
        radial-gradient(circle at 35% 85%, rgb(139 92 246 / 35%) 0, transparent 1px),
        radial-gradient(circle at 85% 65%, rgb(168 85 247 / 25%) 0, transparent 1px);
    opacity: 0.6;
    animation: floating-particles 20s ease-in-out infinite;
}

@keyframes floating-particles {
    0%, 100% { 
        opacity: 0.6; 
        transform: translateY(0) rotate(0deg); 
    }

    25% { 
        opacity: 0.8; 
        transform: translateY(-20px) rotate(90deg); 
    }

    50% { 
        opacity: 0.4; 
        transform: translateY(-10px) rotate(180deg); 
    }

    75% { 
        opacity: 0.7; 
        transform: translateY(-30px) rotate(270deg); 
    }
}

/* Enhanced gallery track with better performance */
.pet-gallery-track {
    display: flex;
    gap: 0; /* Removed white space between images */
    transform: translateZ(0);

    /* Remove CSS transitions to let JS handle animations */
    will-change: transform;

    /* Prevent text selection during scrolling */
    user-select: none;
    user-select: none;
    user-select: none;
}

/* 2025 Modern Gallery Items with Strategic Boldness */
.gallery-item {
    --item-width: 320px; /* FIXED: Making gallery items BIGGER using original product list size */

    position: relative;
    width: var(--item-width);
    height: var(--item-width); /* Square aspect ratio */
    background: var(--gallery-cream);

    /* 2025 Purple theme accent border */
    border: 3px solid var(--gallery-tertiary);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 20px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        var(--gallery-shadow),
        0 0 0 1px rgb(92 31 113 / 10%); /* token-exempt: compound rgba tint — no token covers this alpha variant */

    /* Hardware acceleration for 2025 performance */
    transform: translateZ(0);
    transition: 
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.3s ease,
        border-color 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    will-change: transform;

    /* 2025 accessibility with Purple theme focus */
    outline: none;
}

.gallery-item:focus {
    border-color: var(--gallery-primary);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        var(--gallery-shadow-hover),
        0 0 0 4px rgb(92 31 113 / 20%); /* token-exempt: compound rgba tint — no token covers this alpha variant */

    outline: 2px solid var(--gallery-secondary);
    outline-offset: 2px;
}

/* 2025 Dynamic Hover Effects with Spectacular Micro-animations */
.gallery-item:hover {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 25px 50px rgb(92 31 113 / 30%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 12px 24px rgb(123 43 133 / 20%), /* token-exempt: shadow geometry differs from --shadow-purple-* tokens (different offsets/spread) */
        0 0 20px rgb(168 85 247 / 40%),
        inset 0 1px 0 rgb(255 255 255 / 60%),
        inset 0 -1px 0 rgb(168 85 247 / 20%);
    transform: translateY(-15px) scale(1.08) rotateY(3deg) rotateX(2deg) translateZ(20px);
    border-color: var(--gallery-primary);
    filter: brightness(1.12) saturate(1.2) contrast(1.08);
}

/* Gallery Item Loading States */
.gallery-item.loading {
    opacity: 0.6;
    transform: translateY(10px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(1px);
}

.gallery-item.loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.gallery-item.error {
    border-color: rgb(239 68 68 / 40%);
    opacity: 0.7;
}

.gallery-item.error:hover {
    border-color: rgb(239 68 68 / 60%);
}

/* Faster staggered entrance animation for items */
.gallery-item {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: item-entrance-stagger 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }
.gallery-item:nth-child(n+9) { animation-delay: 0.5s; }

@keyframes item-entrance-stagger {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(1px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Enhanced image styling */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Prevent image dragging */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* 2025 Modern Overlay with Purple Theme Gradient */
.gallery-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    padding: 1.8rem 1.2rem 1.4rem;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- literal color keyword on decorative sheet; no byte-exact token applies, kept literal for zero visual delta (D9-05) */
    color: white;
    background: linear-gradient(
        transparent 0%,
        rgb(92 31 113 / 85%) 30%, /* token-exempt: compound rgba tint — no token covers this alpha variant */
        rgb(123 43 133 / 95%) 100% /* token-exempt: shadow geometry differs from --shadow-purple-* tokens (different offsets/spread) */
    );
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 0 0 20px 20px;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    backdrop-filter: blur(12px) saturate(1.5);

    /* 2025 subtle pattern overlay */
    background-image: 
        radial-gradient(circle at 20% 80%, rgb(255 255 255 / 10%) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgb(248 244 255 / 8%) 0%, transparent 50%);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* 2025 Typography with Enhanced Readability */
.gallery-overlay h4 {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    margin: 0 0 0.4rem;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 800;

    /* 2025 gradient text effect */
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--gallery-light) 100%);
    text-shadow: 
        0 2px 4px rgb(0 0 0 / 40%),
        0 1px 2px rgb(166 124 82 / 30%);
    letter-spacing: 0.03em;
    background-clip: text;
    background-clip: text;
}

.gallery-overlay p {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    margin: 0 0 0.6rem;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 600;
    line-height: 1.4;
    opacity: 0.98;
    text-shadow: 
        0 1px 3px rgb(0 0 0 / 30%),
        0 0 8px rgb(92 31 113 / 20%); /* token-exempt: compound rgba tint — no token covers this alpha variant */
}

/* New: Gallery item icon for better UX - Moved to top-right corner */
.gallery-item-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
    font-size: 1.2rem;
    background: rgb(255 255 255 / 90%);
    border: 2px solid rgb(255 255 255 / 80%);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 50%;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-item-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* 2025 Modern Gallery Controls with Strategic Boldness */
.gallery-controls {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    padding: 1.8rem;
    background: 
        radial-gradient(circle at center, rgb(248 244 255 / 95%) 0%, rgb(243 232 255 / 85%) 100%),
        linear-gradient(135deg, rgb(92 31 113 / 8%) 0%, rgb(123 43 133 / 5%) 100%); /* token-exempt: compound rgba tint — no token covers this alpha variant */

    border: 1px solid rgb(168 85 247 / 20%);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 24px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 8px 24px rgb(92 31 113 / 15%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 0 20px rgb(168 85 247 / 10%),
        inset 0 1px 0 rgb(255 255 255 / 80%);
    opacity: 0;
    animation: controls-entrance 1s ease-out 2s both;
    margin-top: clamp(2rem, 5vw, 3rem);
    backdrop-filter: blur(12px);
}

@keyframes controls-entrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* 2025 Spectacular Gallery Buttons with Magical Effects */
.gallery-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(52px, 9vw, 66px);

    /* CONS-04 / D-10: 44px tap-target floor (WCAG 2.5.5). The prev/next carousel
       buttons drop to clamp(40px,...) at <=480px and render ~38x38 at 360px. The
       floor is 47px (not 44) because the prev/next sit in the :disabled state at
       rest (gallery auto-plays) which applies transform: scale(0.95) — 47 * 0.95 =
       44.65, so the RENDERED box clears the 44 floor; on the larger clamp sizes at
       wider viewports the min-size is a no-op. Minimal min-size add under this
       file's existing grandfather disable — pet-gallery.css stays deferred/
       grandfathered (not de-grandfathered) per the 06-11 ruling. */
    min-width: 47px;
    height: clamp(52px, 9vw, 66px);
    min-height: 47px;
    font-size: clamp(1.2rem, 2.8vw, 1.5rem);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- literal color keyword on decorative sheet; no byte-exact token applies, kept literal for zero visual delta (D9-05) */
    color: white;
    background:
        radial-gradient(circle at center top, rgb(255 255 255 / 30%) 0%, transparent 70%),
        linear-gradient(135deg, var(--gallery-primary) 0%, var(--gallery-secondary) 30%, var(--gallery-accent) 60%, var(--gallery-tertiary) 100%);
    border: none;
    border: 3px solid rgb(255 255 255 / 90%);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 50%;

    /* Spectacular multi-layered shadows */
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 8px 25px rgb(92 31 113 / 30%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 4px 12px rgb(168 85 247 / 20%),
        0 0 20px rgb(236 72 153 / 15%),
        inset 0 2px 0 rgb(255 255 255 / 30%),
        inset 0 -1px 0 rgb(92 31 113 / 20%); /* token-exempt: compound rgba tint — no token covers this alpha variant */

    /* Hardware acceleration for spectacular performance */
    transform: translateZ(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Subtle pulsing animation */
    animation: button-pulse 3s ease-in-out infinite;
    min-block-size: 47px;
    min-inline-size: 47px;
    cursor: pointer;
    overflow: hidden;
    outline: none;
    will-change: transform;
}

@keyframes button-pulse {
    0%, 100% { 
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
        box-shadow: 
            0 8px 25px rgb(92 31 113 / 30%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
            0 4px 12px rgb(168 85 247 / 20%),
            0 0 20px rgb(236 72 153 / 15%),
            inset 0 2px 0 rgb(255 255 255 / 30%),
            inset 0 -1px 0 rgb(92 31 113 / 20%); /* token-exempt: compound rgba tint — no token covers this alpha variant */
    }

    50% { 
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
        box-shadow: 
            0 10px 30px rgb(92 31 113 / 40%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
            0 6px 16px rgb(168 85 247 / 30%),
            0 0 25px rgb(236 72 153 / 20%),
            inset 0 2px 0 rgb(255 255 255 / 40%),
            inset 0 -1px 0 rgb(92 31 113 / 25%); /* token-exempt: compound rgba tint — no token covers this alpha variant */
    }
}

/* Magical shimmer effect */
.gallery-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgb(255 255 255 / 40%) 20deg,
        rgb(168 85 247 / 30%) 40deg,
        rgb(236 72 153 / 20%) 60deg,
        transparent 80deg,
        transparent 360deg
    );
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: shimmer-spin 4s linear infinite;
}

.gallery-btn:hover::before {
    opacity: 0.8;
    animation-duration: 1.5s;
}

@keyframes shimmer-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Spectacular focus state */
.gallery-btn:focus {
    border-color: rgb(255 255 255 / 100%);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 12px 35px rgb(92 31 113 / 40%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 6px 20px rgb(168 85 247 / 30%),
        0 0 30px rgb(236 72 153 / 25%),
        0 0 0 4px rgb(168 85 247 / 50%),
        inset 0 2px 0 rgb(255 255 255 / 40%);
    outline: 2px solid transparent;
}

/* Spectacular 3D Hover Effects */
.gallery-btn:hover {
    background: 
        radial-gradient(circle at center top, rgb(255 255 255 / 50%) 0%, transparent 70%),
        linear-gradient(135deg, var(--gallery-accent) 0%, var(--gallery-tertiary) 30%, var(--gallery-primary) 60%, var(--gallery-secondary) 100%);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 20px 50px rgb(92 31 113 / 40%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 12px 25px rgb(168 85 247 / 30%),
        0 0 40px rgb(236 72 153 / 30%),
        0 0 60px rgb(139 92 246 / 20%),
        inset 0 3px 0 rgb(255 255 255 / 50%),
        inset 0 -2px 0 rgb(92 31 113 / 30%); /* token-exempt: compound rgba tint — no token covers this alpha variant */

    transform: translateY(-8px) scale(1.15) rotateY(5deg) rotateX(2deg) translateZ(20px);
    animation: none; /* Stop pulse on hover */
    border-color: rgb(255 255 255 / 100%);
    filter: brightness(1.2) saturate(1.3) contrast(1.1);
}

/* Disabled button state for next/prev when gallery is playing */
.gallery-btn:disabled {
    opacity: 0.3;
    transform: translateZ(0) scale(0.95);
    transition: all 0.4s ease;
    animation: none; /* Stop all animations */
    cursor: not-allowed;
    filter: grayscale(0.6) brightness(0.7);
    pointer-events: none;
}

.gallery-btn:disabled:hover {
    /* Override hover effects for disabled buttons */
    background: 
        radial-gradient(circle at center top, rgb(255 255 255 / 30%) 0%, transparent 70%),
        linear-gradient(135deg, var(--gallery-primary) 0%, var(--gallery-secondary) 30%, var(--gallery-accent) 60%, var(--gallery-tertiary) 100%);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 4px 12px rgb(92 31 113 / 15%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 2px 6px rgb(168 85 247 / 10%),
        inset 0 2px 0 rgb(255 255 255 / 20%);
    transform: translateZ(0) scale(0.95);
    filter: grayscale(0.6) brightness(0.7);
}

/* Smooth transitions for enabling/disabling */
.gallery-btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                filter 0.3s ease;
}

.gallery-btn:active {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 8px 20px rgb(92 31 113 / 30%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 4px 10px rgb(168 85 247 / 20%),
        inset 0 2px 0 rgb(255 255 255 / 30%);
    transform: translateY(-2px) scale(1.05) translateZ(0);
    transition: transform 0.1s ease;
}

/* Pause/Play Button with Static SVG Icons */
.gallery-btn.pause-play {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(70px, 11vw, 88px);
    height: clamp(70px, 11vw, 88px);
    color: rgb(255 255 255 / 98%);
    background:
        radial-gradient(circle at 30% 30%, rgb(255 255 255 / 40%) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgb(168 85 247 / 30%) 0%, transparent 50%),
        linear-gradient(135deg, var(--gallery-primary) 0%, var(--gallery-secondary) 25%, var(--gallery-accent) 50%, var(--gallery-tertiary) 75%, var(--gallery-primary) 100%);
    border: 4px solid rgb(255 255 255 / 95%);
    animation: play-button-pulse 2.5s ease-in-out infinite, button-pulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgb(168 85 247 / 40%));
}

/* Static SVG icon display logic */
.gallery-btn.pause-play .pause-icon,
.gallery-btn.pause-play .play-icon {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 4px rgb(0 0 0 / 40%));
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Default: show pause icon (gallery auto-plays) */
.gallery-btn.pause-play .play-icon {
    display: none;
}

/* When playing: show pause icon, hide play icon */
.gallery-btn.pause-play.playing .pause-icon {
    display: block;
}

.gallery-btn.pause-play.playing .play-icon {
    display: none;
}

/* When paused: show play icon, hide pause icon */
.gallery-btn.pause-play.paused .pause-icon {
    display: none;
}

.gallery-btn.pause-play.paused .play-icon {
    display: block;
}

/* Hover effects for SVG icons */
.gallery-btn.pause-play:hover .pause-icon,
.gallery-btn.pause-play:hover .play-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 3px 8px rgb(0 0 0 / 50%));
}

@keyframes play-button-pulse {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgb(168 85 247 / 40%)) brightness(1);
        transform: translateZ(0) scale(1);
    }

    50% { 
        filter: drop-shadow(0 0 20px rgb(168 85 247 / 60%)) brightness(1.1);
        transform: translateZ(0) scale(1.02);
    }
}

.gallery-btn.pause-play:hover {
    background: 
        radial-gradient(circle at 30% 30%, rgb(255 255 255 / 60%) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgb(168 85 247 / 50%) 0%, transparent 50%),
        linear-gradient(135deg, var(--gallery-accent) 0%, var(--gallery-tertiary) 25%, var(--gallery-primary) 50%, var(--gallery-secondary) 75%, var(--gallery-accent) 100%);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 25px 60px rgb(92 31 113 / 50%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 15px 30px rgb(168 85 247 / 40%),
        0 0 50px rgb(236 72 153 / 40%),
        0 0 80px rgb(139 92 246 / 30%),
        inset 0 4px 0 rgb(255 255 255 / 60%);
    transform: translateY(-10px) scale(1.2) rotateY(5deg) rotateX(3deg) translateZ(30px);
    animation: none; /* Stop all animations on hover for dramatic effect */
    filter: drop-shadow(0 0 30px rgb(168 85 247 / 80%)) brightness(1.3) saturate(1.4);
}

@keyframes gentle-pulse {
    0%, 100% { 
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
        box-shadow: 
            var(--gallery-shadow-hover),
            inset 0 2px 0 rgb(255 255 255 / 25%),
            0 0 0 0 rgb(92 31 113 / 40%); /* token-exempt: compound rgba tint — no token covers this alpha variant */
    }

    50% { 
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
        box-shadow: 
            var(--premium-shadow),
            inset 0 2px 0 rgb(255 255 255 / 25%),
            0 0 0 8px rgb(92 31 113 / 10%); /* token-exempt: compound rgba tint — no token covers this alpha variant */
    }
}

.gallery-btn.pause-play:hover {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 10px 30px rgb(92 31 113 / 50%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 5px 15px rgb(0 0 0 / 20%);
    transform: translateY(-4px) scale(1.08) translateZ(0);
}

/* 2025 Premium Lightbox with Advanced Visual Effects */
.pet-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;

    /* 2025 enhanced backdrop */
    background: radial-gradient(circle at center, rgb(92 31 113 / 80%) 0%, rgb(0 0 0 / 95%) 100%); /* token-exempt: compound rgba gradient tint — no token covers this alpha variant */
    opacity: 0;
    visibility: hidden;

    /* Hardware acceleration for 2025 performance */
    transform: translateZ(0);
    transition: 
        opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
        visibility 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, visibility;
}

.pet-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(166 124 82 / 10%) 0%, rgb(0 0 0 / 92%) 100%);
    backdrop-filter: blur(16px) saturate(1.4);
    cursor: pointer;
    transition: backdrop-filter 0.4s ease;

    /* 2025 subtle pattern overlay */
    background-image: 
        radial-gradient(circle at 25% 25%, rgb(166 124 82 / 10%) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgb(92 31 113 / 8%) 0%, transparent 50%); /* token-exempt: compound rgba tint — no token covers this alpha variant */
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 90vw;
    max-height: 90vh;
    background: linear-gradient(135deg, var(--cream-white) 0%, var(--background-primary) 100%);
    border: 2px solid var(--mocha-mousse-light);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 24px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 32px 80px rgb(166 124 82 / 40%),
        0 16px 40px rgb(92 31 113 / 30%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 8px 20px rgb(0 0 0 / 20%),
        inset 0 1px 0 rgb(255 255 255 / 80%);
    transform: translate(-50%, -50%);

    /* Hardware acceleration for 2025 performance */
    transform: translate(-50%, -50%) translateZ(0);
    overflow: hidden;
    will-change: transform;

    /* 2025 premium glass effect */
    backdrop-filter: blur(20px) saturate(1.8);
}

.pet-lightbox.active .lightbox-content {
    animation: lightbox-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightbox-slide-in {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9) translateZ(0);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateZ(0);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
    font-size: 22px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- literal color keyword on decorative sheet; no byte-exact token applies, kept literal for zero visual delta (D9-05) */
    color: white;
    background: linear-gradient(135deg, var(--mocha-mousse) 0%, var(--gallery-purple) 100%);
    border: none;
    border: 3px solid var(--cream-white);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 50%;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 8px 20px rgb(166 124 82 / 30%),
        inset 0 1px 0 rgb(255 255 255 / 30%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    backdrop-filter: blur(12px);
    outline: none;
}

.lightbox-close:focus {
    border-color: var(--purple-400); /* token-mapped: non-palette purple → nearest --purple-400; hue shift <2% */
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 0 0 0 3px rgb(168 85 184 / 40%); /* token-exempt: compound rgba tint — no token covers this alpha variant */
}

.lightbox-close:hover {
    background: linear-gradient(135deg, var(--gallery-purple) 0%, var(--mocha-mousse-dark) 100%);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 12px 28px rgb(92 31 113 / 40%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 6px 14px rgb(166 124 82 / 20%),
        inset 0 2px 0 rgb(255 255 255 / 40%);
    transform: scale(1.15) rotate(90deg) translateZ(0);
    border-color: var(--mocha-mousse);
}

/* Enhanced image container with loading states */
.lightbox-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: var(--neutral-50);
}

.lightbox-image {
    width: 100%;
    max-height: 70vh;
    opacity: 0;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

/* Enhanced loader with animation */
.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    gap: 1rem;
    opacity: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgb(92 31 113 / 20%); /* token-exempt: compound rgba border tint — no token covers this alpha variant */
    border-top: 3px solid var(--purple-700);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.lightbox-loader p {
    margin: 0;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--purple-700);
}

/* spin animation available in utilities.css */

/* Lightbox Info Section */
.lightbox-info {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    padding: 24px;
    text-align: center;
    background: var(--background-primary);
    border-top: 2px solid var(--mocha-mousse-light);
}

.lightbox-name {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 800;
    color: var(--gallery-primary);
    letter-spacing: 0.03em;
}

.lightbox-type {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    margin: 0 0 16px;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 600;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- decorative lightbox type-label taupe; no byte-exact design token for this bespoke color; kept literal for zero visual delta (D9-05) */
    color: #6b5e54;
    letter-spacing: 0.02em;
}

/* 2025 Modern Counter Display */
.lightbox-counter {
    display: inline-block;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    padding: 10px 20px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--warm-grey);
    background: linear-gradient(135deg, rgb(166 124 82 / 10%) 0%, rgb(92 31 113 / 8%) 100%); /* token-exempt: compound rgba gradient tint — no token covers this alpha variant */
    border: 1px solid var(--mocha-mousse-light);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 24px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    margin-top: 12px;
    backdrop-filter: blur(8px);
}

.current-index {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
    font-size: 1.1em;
    font-weight: 800;
    color: var(--mocha-mousse);
}

/* Enhanced lightbox navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    padding: 0 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
    font-size: 18px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- literal color keyword on decorative sheet; no byte-exact token applies, kept literal for zero visual delta (D9-05) */
    color: white;
    background: rgb(92 31 113 / 90%); /* token-exempt: compound rgba gradient tint — no token covers this alpha variant */
    border: none;
    border: 2px solid transparent;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 50%;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 4px 15px rgb(0 0 0 / 20%),
        0 2px 5px rgb(0 0 0 / 10%);

    /* Hardware acceleration */
    transform: translateZ(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    outline: none;
    will-change: transform;
}

.lightbox-prev:focus,
.lightbox-next:focus {
    border-color: var(--purple-400); /* token-mapped: non-palette purple → nearest --purple-400; hue shift <2% */
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 4px 15px rgb(0 0 0 / 20%),
        0 2px 5px rgb(0 0 0 / 10%),
        0 0 0 3px rgb(168 85 184 / 40%); /* token-exempt: compound rgba tint — no token covers this alpha variant */
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--purple-700);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 6px 20px rgb(92 31 113 / 40%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 3px 8px rgb(0 0 0 / 15%);
    transform: scale(1.1) translateZ(0);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: scale(0.95) translateZ(0);
}

/* Enhanced placeholder and error states */
.gallery-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    padding: 3rem 2rem;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    margin: 2rem 0;
    color: var(--purple-700);
    background: linear-gradient(135deg, rgb(255 255 255 / 95%) 0%, rgb(248 249 250 / 90%) 100%);
    border: 2px dashed rgb(92 31 113 / 20%); /* token-exempt: compound rgba border tint — no token covers this alpha variant */
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
    border-radius: 20px;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke decorative shadow; no byte-exact token, kept literal for zero visual delta (D9-05) */
    box-shadow: 
        0 10px 30px rgb(92 31 113 / 10%), /* token-exempt: compound rgba tint — no token covers this alpha variant */
        0 4px 12px rgb(0 0 0 / 5%);
    text-align: center;
    backdrop-filter: blur(10px);
}

.gallery-placeholder h3 {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
    margin: 0 0 1rem;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple-700);
}

.gallery-placeholder p {
    max-width: 400px;
    margin: 0;
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* 2025 Mobile-First Responsive Design - 53% of retail sales by 2025 */
@media (width <= 768px) {
    .pet-gallery-container {
        padding: 0 clamp(0.8rem, 3vw, 1.5rem);
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        margin: 0 1rem;
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
        border-radius: 16px;
    }
    
    .gallery-item {
        --item-width: 280px; /* FIXED: Making mobile gallery items BIGGER */

        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
        border-radius: 16px;
        border-width: 2px;
    }
    
    /* Mobile-optimized icon position */
    .gallery-item-icon {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
        font-size: 1rem;
    }
    
    .gallery-overlay {
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        padding: 1.2rem 0.8rem 1rem;
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
        border-radius: 0 0 16px 16px;
    }
    
    .gallery-overlay h4 {
        font-size: clamp(1rem, 4vw, 1.1rem);
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        margin-bottom: 0.3rem;
    }
    
    .gallery-overlay p {
        font-size: clamp(0.8rem, 3.5vw, 0.9rem);
        line-height: 1.3;
    }
    
    .gallery-controls {
        margin-top: clamp(1.5rem, 4vw, 2.5rem);
        gap: clamp(0.8rem, 4vw, 1.2rem);
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        padding: 1rem;
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
        border-radius: 16px;
    }
    
    .gallery-btn {
        width: clamp(44px, 10vw, 52px);
        height: clamp(44px, 10vw, 52px);
        font-size: clamp(1rem, 3vw, 1.2rem);
        border-width: 2px;
    }
    
    .gallery-btn.pause-play {
        width: clamp(56px, 12vw, 68px);
        height: clamp(56px, 12vw, 68px);
        border-width: 3px;
    }

    .gallery-btn.pause-play .pause-icon,
    .gallery-btn.pause-play .play-icon {
        width: 18px;
        height: 18px;
    }
    
    /* 2025 Enhanced touch targets for mobile */
    .gallery-item {
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        margin: 0 4px; /* Easier touch scrolling */
    }
    
    /* Mobile-optimized animations */
    .gallery-item:hover {
        transform: translateY(-8px) scale(1.03) translateZ(0);
    }
    
    .gallery-btn:hover {
        transform: translateY(-4px) scale(1.05) translateZ(0);
    }

    
    .lightbox-content {
        min-width: 280px;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
        font-size: 18px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
        font-size: 16px;
    }
    
    .lightbox-nav {
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        padding: 0 10px;
    }
    
    .lightbox-info {
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        padding: 15px;
    }
    
    .lightbox-name {
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
        font-size: 1.3rem;
    }
}

/* 2025 Ultra-Mobile Optimization for Small Screens */
@media (width <= 480px) {
    .pet-gallery-container {
        padding: 0 clamp(0.5rem, 2vw, 1rem);
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        margin: 0 0.5rem;
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
        border-radius: 12px;
    }
    
    .gallery-item {
        --item-width: clamp(120px, 35vw, 160px);

        height: calc(var(--item-width) * 1.15);

        /* Optimized for one-thumb navigation */
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        margin: 0 2px;
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
        border-radius: 12px;
    }
    
    /* Ultra-mobile optimized icon */
    .gallery-item-icon {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke font-size; no byte-exact token, kept literal for zero visual delta (D9-05) */
        font-size: 0.9rem;
    }
    
    .gallery-overlay {
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        padding: 0.8rem 0.6rem 0.7rem;
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
        border-radius: 0 0 12px 12px;
        backdrop-filter: blur(8px) saturate(1.3);
    }
    
    .gallery-overlay h4 {
        font-size: clamp(0.9rem, 4.5vw, 1rem);
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        margin-bottom: 0.2rem;
        font-weight: 700;
    }
    
    .gallery-overlay p {
        font-size: clamp(0.75rem, 3.8vw, 0.85rem);
        line-height: 1.2;
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        margin-bottom: 0.4rem;
    }
    
    .gallery-controls {
        gap: clamp(0.6rem, 3vw, 1rem);
        margin-top: clamp(1.2rem, 3vw, 2rem);
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke spacing; no byte-exact token, kept literal for zero visual delta (D9-05) */
        padding: 0.8rem;
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- off-scale bespoke radius; no byte-exact token, kept literal for zero visual delta (D9-05) */
        border-radius: 12px;
    }
    
    .gallery-btn {
        width: clamp(40px, 11vw, 48px);
        height: clamp(40px, 11vw, 48px);
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }
    
    .gallery-btn.pause-play {
        width: clamp(50px, 13vw, 60px);
        height: clamp(50px, 13vw, 60px);
    }

    .gallery-btn.pause-play .pause-icon,
    .gallery-btn.pause-play .play-icon {
        width: 16px;
        height: 16px;
    }
    
    /* 2025 Performance optimization for low-end devices */
    .gallery-item:hover {
        transform: translateY(-4px) scale(1.02) translateZ(0);
    }
    
    .gallery-btn:hover {
        transform: translateY(-2px) scale(1.03) translateZ(0);
    }
    
    /* Reduced animations for battery conservation */
    @media (prefers-reduced-motion: reduce) {
        .gallery-item,
        .gallery-btn {
            transition: opacity 0.2s ease;
        }
        
        .gallery-item:hover,
        .gallery-btn:hover {
            opacity: 0.9;
            transform: none;
        }
        
        .gallery-btn.pause-play {
            animation: none;
        }
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-overlay,
    .gallery-btn,
    .lightbox-content,
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        transition: none;
        animation: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .lightbox-content {
        animation: none;
    }
    
    .loader-spinner {
        border: 3px solid var(--purple-700);
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gallery-item {
        border: 2px solid;
    }
    
    .gallery-btn {
        border: 2px solid;
    }
    
    .lightbox-content {
        border: 3px solid;
    }
}

/* Print styles */
@media print {
    .pet-gallery-section,
    .pet-lightbox {
        display: none;
    }
}