/* ======================================================================
FOXY FRIAR GALLERY PRO - LUXE ENGINE (V10, counter added in plugin 1.2.0)
====================================================================== */

:root {
    --foxy-accent: #D4AF37;
    --foxy-primary: #1F2937;
    --foxy-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.foxy-gallery-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.foxy-gallery-container.foxy-ready {
    opacity: 1;
}

.foxy-gallery-grid {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
}

.foxy-row {
    display: flex !important;
    width: 100% !important;
    align-items: stretch !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 1. INDIVIDUAL ITEM WRAPPER */
.foxy-gallery-item {
    position: relative !important;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block !important;
    background: #f3f4f6;
    border-radius: 4px;
    box-sizing: border-box !important;
    margin: 0 !important; 
    padding: 0 !important;
    transition: opacity 0.5s ease;
}

.foxy-gallery-item img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: var(--foxy-transition);
}

/* 2. HOVER STYLES */

/* Zoom Fast */
.foxy-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Zoom Slow */
.foxy-hover-zoom-slow:hover img {
    transition-duration: 2.5s !important;
    transform: scale(1.1);
}

/* The Lume (Soft Glow) */
.foxy-hover-lume:hover img {
    filter: brightness(1.1) contrast(1.05);
    transform: scale(1.03);
}
.foxy-hover-lume::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    opacity: 0;
    transition: var(--foxy-transition);
    pointer-events: none;
}
.foxy-hover-lume:hover::after {
    opacity: 1;
}

/* Dreamy Frost (Soft Focus) */
.foxy-hover-frost img {
    filter: blur(10px) saturate(0.8);
    transform: scale(1.1);
    transition: filter 1s ease, transform 1s ease;
}
.foxy-hover-frost:hover img {
    filter: blur(0) saturate(1);
    transform: scale(1);
}

/* Pro Parallax (Deep Slide) */
.foxy-hover-parallax img {
    width: 110% !important;
    height: 110% !important;
    left: -5% !important;
    top: -5% !important;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.foxy-hover-parallax:hover img {
    transform: translate(2%, 2%) scale(1.05);
}

/* The Slate (Overlay) */
.foxy-hover-slate .foxy-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 41, 55, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--foxy-transition);
    pointer-events: none;
    z-index: 10;
}
.foxy-hover-slate:hover .foxy-overlay {
    opacity: 1;
}
.foxy-overlay .foxy-icon {
    color: white;
    font-size: 32px;
    font-weight: 300;
    transform: scale(0.8) translateY(10px);
    transition: var(--foxy-transition);
}
.foxy-hover-slate:hover .foxy-icon {
    transform: scale(1) translateY(0);
}

/* The Monochromist */
.foxy-hover-mono img {
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}
.foxy-hover-mono:hover img {
    filter: grayscale(0%);
}

/* 3. VIDEO INDICATOR */
.foxy-video-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 5;
    pointer-events: none;
    transition: var(--foxy-transition);
}
.foxy-video-indicator svg {
    width: 16px;
    height: 16px;
}
.foxy-gallery-item:hover .foxy-video-indicator {
    background: #D4AF37;
    border-color: #D4AF37;
    transform: scale(1.1);
}

/* 4. REVEAL ANIMATIONS */
.foxy-anim-fade .foxy-gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.foxy-anim-fade .foxy-gallery-item.foxy-revealed {
    opacity: 1 !important;
    transform: translateY(0);
}
.foxy-anim-up .foxy-gallery-item {
    opacity: 0;
    transform: scale(0.92) translateY(50px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.foxy-anim-up .foxy-gallery-item.foxy-revealed {
    opacity: 1 !important;
    transform: scale(1) translateY(0);
}

/* 5. LIGHTBOX & MISC */
.glightbox-container .gslide-image {
    box-shadow: 0 40px 80px rgba(0,0,0,0.4) !important;
}

/* 6. LIGHTBOX COUNTER (e.g. 37 / 130 across every part of a gallery) */
.foxy-lb-counter {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 99999;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    color: rgba(255,255,255,0.9);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
