﻿
/*============================================================
SECTION 3b — GALLERY COLLAGE SHOWCASE
============================================================*/


/* ── Entry keyframes — clean, no rotation mid-flight ── */
@keyframes gc-fly-top {
    0%

{
    transform: translateY(-80px) rotate(4deg);
    opacity: 0;
}

60% {
    opacity: 1;
}

100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

}

@keyframes gc-fly-bottom {
    0% {
        transform: translateY( 80px) rotate(-4deg);
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes gc-fly-left {
    0% {
        transform: translateX(-80px) rotate(-4deg);
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes gc-fly-right {
    0% {
        transform: translateX( 80px) rotate( 4deg);
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes gc-scale-in {
    0% {
        transform: scale(0.78) rotate(3deg);
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ── All collage images start invisible ── */
.gc-img {
    opacity: 0;
    will-change: transform;
}

/* ── Animation classes — 1.4s spring easing, NO animation-delay (JS handles stagger) ── */
.gc-do-top {
    animation: gc-fly-top 1.4s cubic-bezier(0.16,1,0.3,1) both;
}

.gc-do-bottom {
    animation: gc-fly-bottom 1.4s cubic-bezier(0.16,1,0.3,1) both;
}

.gc-do-left {
    animation: gc-fly-left 1.4s cubic-bezier(0.16,1,0.3,1) both;
}

.gc-do-right {
    animation: gc-fly-right 1.4s cubic-bezier(0.16,1,0.3,1) both;
}

.gc-do-scale {
    animation: gc-scale-in 1.5s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── Parallax: CSS transition for smooth scroll movement ── */
.gc-parallax {
    transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}

/*============================================================
SECTION 3c — CARD SHOWCASE (image-from-pocket)
============================================================ */

/* ── Card image: initially hidden inside holder ── */
.cs-img {
    opacity: 0;
    transform: rotate(-5.43deg) translateY(110%);
    will-change: transform, opacity;
}


/* ============================================================
SECTION: TOP SELLING PAINTING (Fan Cards)
============================================================ */

/* ──────────────────────────────────────────────
   TSP: Card Wrap — Figma exact proportions
   179px × 467px (scaled from Figma 185px × 483px)
   Centered: left = calc(50% - 89.5px ≈ 90px)
             top  = calc(50% - 233.5px ≈ 234px)
   ────────────────────────────────────────────── */
.tsp-cw {
    position: absolute;
    left: calc(50% - 90px);
    top: calc(50% - 234px);
    width: 195px;
    height: 350px;
    opacity: 0;
    /* Collapsed: all cards stacked at center, extra-rotated + thin */
    transform: translateX(0px) rotateZ(-55deg) skewX(-40deg) scaleX(0.04);
    will-change: transform, opacity;
}



/* Final fanned-out state — rotation matches Figma exactly */
.tsp-cw.tsp-open {
    opacity: 1;
    transform: translateX(var(--ttx)) rotateZ(-30.79deg) skewX(-30.79deg);
    transition: transform .3s ease, filter .3s ease;
}
    /* Hover: float up within stage bounds — translateY applied before rotation so lift is vertical in screen space */
    .tsp-cw.tsp-open:hover {
        transform: translateX(var(--ttx)) translateY(-60px) rotateZ(-30.79deg) skewX(-30.79deg);
        transition: transform 0.3s ease;
        /* filter: drop-shadow(0 22px 42px rgba(0,0,0,.5)); */
        /*         z-index: 30 !important;*/
    }
/* ── Card inner surface ── */
.tsp-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    /* Depth shadow: left-side shadow simulates physical card thickness stacked left-to-right */
    /* box-shadow: -7px 4px 22px rgba(0,0,0,0.4), 0 0 6px rgba(0,0,0,0.2); */
}

    .tsp-card img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
/* Gradient overlay: left-edge darker → simulates card face angling away on the left,
   matching Figma's depth perspective look */
.tsp-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.18) 38%, transparent 60%);
}
/* Card heading: top 13px / left 11px — after rotation appears at lower-left of card in screen space */
.tsp-hd {
    position: absolute;
    top: 13px;
    left: 11px;
    right: 11px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
}

.tsp-lbl {
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 0 1px 5px rgba(0,0,0,.6);
}

.tsp-ico {
    color: rgba(255,255,255,.75);
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 3px;
}

.tsp-bd {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(57,57,57,0.9);
    border-radius: 12px;
    pointer-events: none;
}
/* ── Mobile scroll cards ── */
.tsp-mcrd {
    flex: 0 0 140px;
    height: 215px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    cursor: pointer;
    opacity: 0;
    transform: translateX(30px) scale(.92);
    transition: transform .55s ease, opacity .45s ease, filter .25s ease;
}

    .tsp-mcrd.tsp-open {
        opacity: 1;
        transform: none;
    }

    .tsp-mcrd:hover {
/*        filter: drop-shadow(0 14px 28px rgba(0,0,0,.35));*/
        transform: translateY(-9px) scale(1.04) !important;
    }

    .tsp-mcrd img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* 1024px se niche screen par */
@media (max-width: 1100px) {
    .tsp-cw {
        width: 170px;
        height: 320px;
    }
}

