/*==================================================
    VALENTINO X — GALLERY CAROUSEL (stacked fan)
    Replaces the old scroll-pinned circular gallery.
==================================================*/

.vx-gallery-page{
    --gc-gold: #B38728;
    --gc-gold-light: #FCF6BA;
    --gc-gold-grad: linear-gradient(135deg,#FCF6BA 0%,#D4AF37 45%,#B38728 100%);
    --cw: 176px;
    --ch: 264px;
    --stage-h: 400px;

    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0B0B0B;
    color: #fff;
    padding: 130px 0 70px;
}

.vx-gc-glow{
    position:absolute;
    left:50%; top:46%;
    width:900px; height:900px;
    max-width:140vw;
    transform:translate(-50%,-50%);
    background: radial-gradient(circle, rgba(179,135,40,.16) 0%, rgba(179,135,40,0) 62%);
    pointer-events:none;
}

/* ---------- Heading ---------- */
.vx-gc-head{
    position:relative;
    text-align:center;
    margin-bottom: 14px;
}
.vx-gc-title{
    font-family:'Playfair Display', serif;
    font-weight:700;
    color:#fff !important;
    font-size:44px;
    line-height:1.2;
    margin:6px 0 10px;
    word-spacing:.08em;
}
.vx-gc-sub{
    font-family:Poppins,sans-serif;
    font-size:14px;
    color:#C9B896;
    margin:0;
    opacity:.9;
}

/* ---------- Stage ---------- */
.vx-gc{
    position:relative;
    width:100%;
    padding:34px 0;
    margin:-10px 0 -10px;
    -webkit-mask-image: linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%);
            mask-image: linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%);
}
.vx-gc-stage{
    position:relative;
    width:100%;
    max-width:1280px;
    height:var(--stage-h);
    margin:0 auto;
    touch-action:pan-y;
    cursor:grab;
    user-select:none;
    -webkit-user-select:none;
    -webkit-tap-highlight-color:transparent;
    outline:none;
}
.vx-gc-stage.is-dragging{ cursor:grabbing; }
.vx-gc-stage:focus-visible{ box-shadow:0 0 0 2px rgba(179,135,40,.55) inset; border-radius:18px; }

.vx-gc-card{
    position:absolute;
    left:50%; top:50%;
    width:var(--cw); height:var(--ch);
    margin:calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2);
    border-radius:20px;
    overflow:hidden;
    background:#161616;
    border:1px solid rgba(179,135,40,.22);
    box-shadow:0 28px 55px -22px rgba(0,0,0,.85);
    will-change:transform,opacity;
    backface-visibility:hidden;
    transition:border-color .4s ease, box-shadow .4s ease;
}
.vx-gc-card.is-active{
    border-color:rgba(212,175,55,.75);
    box-shadow:0 30px 70px -22px rgba(0,0,0,.9), 0 0 38px -6px rgba(179,135,40,.45);
}
.vx-gc-card img{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:cover;
    pointer-events:none;
    -webkit-user-drag:none;
}
.vx-gc-shade{
    position:absolute; inset:0;
    background:#000;
    opacity:0;
    pointer-events:none;
}
.vx-gc-grad{
    position:absolute; inset:0;
    background:linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.2) 45%, transparent 100%);
    pointer-events:none;
}
.vx-gc-badge{
    position:absolute;
    top:12px; right:12px;
    padding:4px 11px;
    border-radius:999px;
    background:var(--gc-gold-grad);
    color:#111;
    font-family:Poppins,sans-serif;
    font-size:10px;
    font-weight:700;
    letter-spacing:1.6px;
    word-spacing:.35em;
    text-transform:uppercase;
    box-shadow:0 4px 14px rgba(0,0,0,.35);
}
.vx-gc-text{
    position:absolute;
    left:14px; right:14px; bottom:18px;
    color:#fff;
    text-align:left;
    pointer-events:none;
}
.vx-gc-text strong{
    display:block;
    font-family:'Playfair Display', serif;
    font-weight:700;
    font-size:17px;
    line-height:1.2;
    margin-bottom:3px;
    text-shadow:0 2px 8px rgba(0,0,0,.6);
}
.vx-gc-text em{
    display:none;
    font-family:Poppins,sans-serif;
    font-size:11.5px;
    line-height:1.5;
    color:rgba(255,255,255,.75);
}

/* ---------- Manual image changer ---------- */
.vx-gc-controls{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:22px;
    margin:18px auto 0;
    padding:0 16px;
}
.vx-gc-btn{
    flex:0 0 auto;
    width:54px; height:54px;
    border-radius:50%;
    border:1.5px solid rgba(212,175,55,.55);
    background:rgba(20,20,20,.7);
    color:var(--gc-gold-light);
    font-size:15px;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    transition:background .3s ease,color .3s ease,transform .25s ease,box-shadow .3s ease,border-color .3s ease;
}
.vx-gc-btn:hover,
.vx-gc-btn:focus-visible{
    background:var(--gc-gold-grad);
    color:#111;
    border-color:transparent;
    box-shadow:0 8px 26px rgba(179,135,40,.45);
    outline:none;
}
.vx-gc-btn:active{ transform:scale(.92); }

.vx-gc-info{
    flex:0 1 420px;
    min-width:0;
    text-align:center;
}
.vx-gc-info.is-in .vx-gc-cap-title,
.vx-gc-info.is-in .vx-gc-cap-desc{ animation:vxGcRise .55s ease both; }
.vx-gc-info.is-in .vx-gc-cap-desc{ animation-delay:.06s; }
@keyframes vxGcRise{
    from{ opacity:0; transform:translateY(10px); }
    to{ opacity:1; transform:none; }
}
.vx-gc-count{
    font-family:Poppins,sans-serif;
    font-size:13px;
    letter-spacing:2px;
    color:#8c7a55;
    margin-bottom:4px;
}
.vx-gc-count b{
    font-family:'Playfair Display', serif;
    font-size:30px;
    font-weight:700;
    letter-spacing:1px;
    margin-right:6px;
    background:var(--gc-gold-grad);
    -webkit-background-clip:text;
            background-clip:text;
    -webkit-text-fill-color:transparent;
            color:transparent;
}
.vx-gc-cap-title{
    font-family:'Playfair Display', serif;
    font-weight:700;
    font-size:22px;
    line-height:1.25;
    color:#fff;
    word-spacing:.06em;
}
.vx-gc-cap-desc{
    font-family:Poppins,sans-serif;
    font-size:13.5px;
    line-height:1.6;
    color:#B9AE96;
    margin-top:4px;
}

.vx-gc-progress{
    width:min(260px,60%);
    height:2px;
    margin:18px auto 22px;
    background:rgba(255,255,255,.1);
    border-radius:2px;
    overflow:hidden;
}
.vx-gc-progress span{
    display:block;
    height:100%;
    width:5%;
    background:var(--gc-gold-grad);
    border-radius:2px;
    transition:width .5s cubic-bezier(.22,.8,.3,1);
}

.vx-gc-thumbs{
    position:relative;
    display:flex;
    gap:10px;
    max-width:900px;
    margin:0 auto;
    padding:8px 20px 12px;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}
.vx-gc-thumbs::-webkit-scrollbar{ display:none; }
.vx-gc-thumb{
    flex:0 0 auto;
    width:50px; height:75px;
    padding:0;
    border:1.5px solid transparent;
    border-radius:10px;
    overflow:hidden;
    background:#151515;
    opacity:.45;
    cursor:pointer;
    transition:opacity .3s ease, transform .3s ease, border-color .3s ease;
}
.vx-gc-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.vx-gc-thumb:hover{ opacity:.85; }
.vx-gc-thumb.is-active{
    opacity:1;
    border-color:#D4AF37;
    transform:translateY(-4px) scale(1.08);
    box-shadow:0 8px 20px rgba(179,135,40,.35);
}
.vx-gc-thumb:focus-visible{ outline:2px solid #D4AF37; outline-offset:2px; opacity:1; }

/* ---------- Tablet ---------- */
@media (min-width:640px){
    .vx-gallery-page{ --cw:224px; --ch:336px; --stage-h:470px; padding-top:140px; }
    .vx-gc-badge{ top:16px; right:16px; font-size:10.5px; padding:5px 13px; }
    .vx-gc-text{ left:18px; right:18px; bottom:24px; }
    .vx-gc-text strong{ font-size:19px; }
    .vx-gc-text em{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    .vx-gc-thumb{ width:56px; height:84px; }
}

/* ---------- Desktop ---------- */
@media (min-width:1024px){
    .vx-gallery-page{ --cw:272px; --ch:408px; --stage-h:540px; padding-top:150px; }
    .vx-gc-title{ font-size:52px; }
    .vx-gc-text{ left:22px; right:22px; bottom:30px; }
    .vx-gc-text strong{ font-size:22px; }
    .vx-gc-text em{ font-size:12.5px; }
    .vx-gc-cap-title{ font-size:26px; }
    .vx-gc-btn{ width:60px; height:60px; font-size:17px; }
    .vx-gc-controls{ gap:34px; }
}

/* ---------- Mobile ---------- */
@media (max-width:639.98px){
    .vx-gallery-page{ padding-top:104px; padding-bottom:56px; }
    .vx-gc-title{ font-size:30px; }
    .vx-gc-sub{ font-size:12.5px; }
    .vx-gc-btn{ width:46px; height:46px; font-size:13px; }
    .vx-gc-controls{ gap:12px; }
    .vx-gc-cap-title{ font-size:19px; }
    .vx-gc-cap-desc{ font-size:12.5px; }
    .vx-gc-thumb{ width:44px; height:66px; }
}

@media (prefers-reduced-motion:reduce){
    .vx-gc-info.is-in .vx-gc-cap-title,
    .vx-gc-info.is-in .vx-gc-cap-desc{ animation:none; }
}


/*==================================================
    SIMPLE GALLERY — glass arrows, no captions/badges/thumbs
==================================================*/
.vx-gc-controls { display: none; }           /* old below-stage controls (now overlaid on stage) */

.vx-gc { overflow: visible; }
.vx-gc-btn-wrap { display: none; }

.vx-gc-stage { overflow: visible; }

/* Cards: glass frame, no dark gradient */
.vx-gc-card {
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.06);
}
.vx-gc-card.is-active {
    border-color: rgba(255,255,255,.55);
    box-shadow: 0 30px 70px -22px rgba(0,0,0,.9), 0 0 40px -8px rgba(212,175,55,.35);
}

/* Glass arrows pinned to the sides of the stage */
.vx-gc { position: relative; }
.vx-gc-controls {
    display: block;
    position: absolute; inset: 0;
    pointer-events: none; margin: 0; padding: 0; z-index: 300;
}
.vx-gc-btn {
    position: absolute; top: 50%; margin-top: -26px;
    width: 52px; height: 52px; border-radius: 50%;
    color: #fff; font-size: 14px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.35);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
            backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35);
    pointer-events: auto;
}
#vxGcPrev { left: max(16px, 4vw); }
#vxGcNext { right: max(16px, 4vw); }
.vx-gc-btn:hover, .vx-gc-btn:focus-visible {
    background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.6);
    box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 22px rgba(212,175,55,.35), inset 0 1px 0 rgba(255,255,255,.5);
}

/* Mobile: bigger cards (neighbours still peek in as a small preview) */
@media (max-width: 639.98px) {
    .vx-gallery-page { --cw: 250px; --ch: 375px; --stage-h: 470px; padding-top: 100px; }
    .vx-gc-btn { width: 40px; height: 40px; margin-top: -20px; font-size: 12px; }
    #vxGcPrev { left: 8px; }
    #vxGcNext { right: 8px; }
}
@media (min-width: 640px) and (max-width: 1023.98px) { .vx-gallery-page { --cw: 250px; --ch: 375px; --stage-h: 500px; } }
@media (min-width: 1024px) { .vx-gallery-page { --cw: 290px; --ch: 435px; --stage-h: 570px; } }
.vx-gc-wrap { position: relative; }
.vx-gc-controls { position: absolute; inset: 34px 0; }
