/* =========================================================
   PERFECT U CLINIC — HOME GALLERY SLIDER (continuous marquee)
   Palette: blush #FBF1EC · charcoal-plum #2E2422 · rose-gold #B8785A
            deep rose #8C4A34 · warm ivory #FFFDFB
   Fonts: 'Playfair Display' (display) + 'Poppins' (body/labels)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500&family=Poppins:wght@300;400;500;600&display=swap');

.puc-gallery-section {
    --puc-blush: #FBF1EC;
    --puc-ivory: #FFFDFB;
    --puc-ink: #2E2422;
    --puc-rose: #B8785A;
    --puc-rose-deep: #8C4A34;

    background: var(--puc-blush);
    padding: 88px 0 96px;
    box-sizing: border-box;
    overflow: hidden;
}

.puc-gallery-section * { box-sizing: border-box; }

/* ---------- Heading ---------- */
.puc-gallery-heading {
    max-width: 640px;
    margin: 0 auto 52px;
    padding: 0 20px;
    text-align: center;
}

.puc-eyebrow {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--puc-rose);
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 12px;
}

.puc-eyebrow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 2px;
    background: var(--puc-rose);
}

.puc-title-main {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(30px, 4vw, 44px);
    color: var(--puc-ink);
    margin: 0 0 16px;
    line-height: 1.2;
}

.puc-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 15.5px;
    line-height: 1.7;
    color: #5C4E49;
    margin: 0;
}

/* ---------- Marquee shell ---------- */
.puc-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.puc-marquee-track {
    display: flex;
    width: max-content;
    /* animation-duration & the -50% keyframe distance are set
       inline by JS, scaled to the actual track width so speed
       stays constant no matter how many slides are added */
    animation: puc-scroll linear infinite;
}

.puc-marquee:hover .puc-marquee-track,
.puc-marquee:focus-within .puc-marquee-track {
    animation-play-state: paused;
}

@keyframes puc-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Slide / card ---------- */
.puc-slide {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 20px;
}

.puc-slide-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #ded0c8;
    box-shadow: 0 14px 32px -16px rgba(84, 47, 30, 0.32);
}

.puc-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.puc-slide-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 22px 18px 16px;
    background: linear-gradient(to top, rgba(20, 12, 9, 0.88) 0%, rgba(20, 12, 9, 0.55) 42%, transparent 100%);
    color: var(--puc-ivory);
}

.puc-slide-cat {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--puc-ivory);
    border: 1px solid rgba(255, 253, 251, 0.7);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 9px;
}

.puc-slide-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--puc-ivory);
    margin: 0 0 3px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.puc-slide-date {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    color: rgba(255, 253, 251, 0.85);
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .puc-gallery-section { padding: 64px 0 72px; }
    .puc-gallery-heading { margin-bottom: 40px; }
    .puc-slide { width: 210px; margin-right: 14px; }
    .puc-slide-overlay { padding: 16px 14px 12px; }
    .puc-slide-title { font-size: 13px; }
}

/* Respect reduced-motion preference: still scroll, but gently */
@media (prefers-reduced-motion: reduce) {
    .puc-marquee-track {
        animation-duration: 120s !important;
    }
}