/* ==================================================================
   YoYo Tattoo Pattaya — index-690926.php · shared structure
   ------------------------------------------------------------------
   Always loaded. Layout of the new blocks (header logo, pinned styles,
   portfolio gallery, team, reviews). Colours come from tokens set by
   the active theme file:
     theme-690926.css ......... Dark (black + logo blue)
     theme-690926-light.css ... Light "White & Navy" / "Airy Sky"
   ================================================================== */

/* ---- Header / preloader / footer: new logo (no badge box, no duplicate text) ---- */
.site-header .brand__badge {
    width: auto;
    height: 56px;
    border-radius: 0;
    overflow: visible;
    background: none;
}
.site-header .brand__badge img { width: auto; height: 100%; object-fit: contain; transform: none; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); }
.site-header .brand__text { display: none; }
.preloader__logo { width: 190px; height: 217px; }
.site-footer .brand__badge--lg { width: auto; height: 132px; border-radius: 0; overflow: visible; background: none; }
.site-footer .brand__badge--lg img { width: auto; height: 100%; object-fit: contain; transform: none; }
.site-footer .brand__text { display: none; }

/* ---- Styles: desktop = pinned, scroll opens the cards one by one (class added in JS) ---- */
.styles.st--pin {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: calc(var(--header-h) + 26px) 0 54px;
}
.st--pin > .container-xl { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.st--pin .section-head { flex: 0 0 auto; margin-bottom: 30px; }
.st--pin .xpand { position: relative; flex: 1 1 auto; height: auto; min-height: 380px; }
.st--pin .xpand__panel { transition: flex-grow .9s var(--ease-io); }
.st--pin .xpand::after {                                   /* progress line under the cards */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    height: 2px;
    border-radius: 2px;
    background:
        linear-gradient(90deg, var(--c-blue-dk), var(--c-blue-lt)) no-repeat 0 0 / calc(var(--st-p, 0) * 100%) 100%,
        var(--c-line);
}

/* ---- Gallery zoom chip (lightbox) --------------------------------- */
.gallery__zoom { background: var(--c-blue); color: #fff; }
.pf-item .gallery__open:hover .gallery__zoom,
.pf-item .gallery__open:focus-visible .gallery__zoom { opacity: 1; transform: none; }

/* ==================================================================
   Portfolio slider
   ================================================================== */
.pf { overflow: hidden; }
.pf-slider {
    overflow: visible;                       /* slides bleed to the right edge … */
    clip-path: inset(-30px -100vw -30px 0);  /* … but never past the container on the left */
}
.pf-item { margin: 0; }
.pf-item .gallery__open { border-radius: 14px; box-shadow: 0 0 0 1px var(--c-line); transition: box-shadow .4s; }
.pf-item .gallery__open:hover { box-shadow: 0 0 0 1px var(--c-blue), 0 18px 40px -18px var(--c-blue-glow); }
.pf-item__cap { display: flex; align-items: baseline; gap: 10px; padding-top: 12px; }
.pf-item__num { font-family: var(--f-head); font-size: 13px; font-weight: 800; color: var(--c-accent); }
.pf-item .gallery__title { font-size: 14px; color: var(--c-heading); }

.pf-bar { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.pf-bar__hint { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--c-muted); white-space: nowrap; }
.pf-bar__hand { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(26, 159, 204, .15); color: var(--c-accent); animation: pf-nudge 1.8s ease-in-out infinite; }
.pf-bar__hand .icon { width: 14px; height: 14px; }
@keyframes pf-nudge { 50% { transform: translateX(5px); } }
.pf-bar__progress { position: relative; flex: 1; height: 2px; background: var(--c-line); overflow: hidden; }
.pf-bar__progress span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-blue-dk), var(--c-blue-lt)); transform: scaleX(.06); transform-origin: left; transition: transform .3s; }
.pf-bar__nav { display: flex; gap: 8px; }
.pf-bar__nav .swiper-button-disabled { opacity: .35; pointer-events: none; }
.pf-hint--scroll { display: none; }

/* Desktop: scroll-driven horizontal gallery (section pinned by GSAP, class added in JS) */
.pf.pf--pin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: calc(var(--header-h) + 34px) 0 44px;
}
.pf--pin .section-head { margin-bottom: 34px; }
.pf--pin .pf-slider { clip-path: none; }                 /* works slide off the left edge of the screen */
.pf--pin .swiper-wrapper { gap: 22px; will-change: transform; }
.pf--pin .swiper-slide { flex: 0 0 auto; width: min(22vw, 34vh); }
.pf--pin .pf-item .gallery__open { border-radius: 16px; }
.pf--pin .pf-bar { margin-top: 26px; }
.pf--pin .pf-bar__nav { display: none; }                 /* the scroll drives it — no arrows needed */
.pf--pin .pf-hint--swipe { display: none; }
.pf--pin .pf-hint--scroll { display: inline; }
.pf--pin .pf-bar__hand { animation-name: pf-nudge-down; }
.pf--pin .pf-bar__hand .icon { transform: rotate(90deg); }
@keyframes pf-nudge-down { 50% { transform: translateY(4px); } }

@media (max-width: 575.98px) {
    .pf-bar__hint { display: none; }
    .pf-item .gallery__title { font-size: 12px; }
    .pf-item__cap { gap: 6px; padding-top: 8px; }
    .pf-item .gallery__open { border-radius: 10px; }
}

/* ==================================================================
   Team — 3 artists, photo slider each
   ================================================================== */
.team__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 768px)  { .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

.team-card { position: relative; min-width: 0; }
.team-card__media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--c-gray-2);
    box-shadow: 0 0 0 1px var(--c-line);
    transition: box-shadow .4s;
}
.team-card:hover .team-card__media { box-shadow: 0 0 0 1px var(--c-blue), 0 24px 50px -24px var(--c-blue-glow); }
.team-card__slider { aspect-ratio: 4 / 5; }
.team-card__slider .swiper-slide { background: var(--c-gray-2); }
.team-card__slider img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-card__num {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(4, 5, 6, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-family: var(--f-head); font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--c-blue-lt);
}
.team-card--lead .team-card__num { background: linear-gradient(135deg, var(--c-blue), var(--c-blue-dk)); color: #fff; }
.team-card__controls {
    position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 6px; border-radius: 999px;
    background: rgba(4, 5, 6, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.team-card__btn {
    display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff;
    transition: background .3s;
}
.team-card__btn:hover { background: var(--c-blue); }
.team-card__btn .icon { width: 16px; height: 16px; }
.team-card__dots { position: static; display: flex; justify-content: center; gap: 6px; width: auto !important; }
.team-card__dots .swiper-pagination-bullet { width: 7px; height: 7px; margin: 0 !important; background: rgba(255, 255, 255, .45); opacity: 1; transition: width .35s, background .35s; border-radius: 999px; }
.team-card__dots .swiper-pagination-bullet-active { width: 22px; background: var(--c-blue-lt); }
.team-card__body { padding: 18px 4px 0; }
.team-card__role { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-accent); }
.lang-th .team-card__role { letter-spacing: .04em; font-size: 14px; font-weight: 600; }
.team-card__name { margin: 0 0 12px; font-family: var(--f-head); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.team-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team-card__ig { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--c-line-dk); border-radius: 50%; color: var(--c-heading); }
.team-card__ig:hover { background: var(--c-blue); border-color: var(--c-blue); }
.team-card__ig .icon { width: 18px; height: 18px; }

/* ==================================================================
   Google reviews
   ================================================================== */
.reviews { overflow: hidden; }
.reviews::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 55% at 50% 0%, rgba(26, 159, 204, .14), transparent 70%);
}
.rv-g { width: 26px; height: 26px; flex: 0 0 auto; }
.rv-stars { color: #fbbc05; letter-spacing: .12em; font-size: 15px; line-height: 1; }

.rv-summary { display: grid; gap: 16px; margin-bottom: 26px; }
@media (min-width: 992px) { .rv-summary { grid-template-columns: minmax(280px, .8fr) 2fr; align-items: stretch; } }
.rv-score {
    display: flex; align-items: center; gap: 16px;
    padding: 22px 24px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(26, 159, 204, .18), rgba(11, 99, 136, .06));
    box-shadow: inset 0 0 0 1px rgba(98, 210, 240, .25);
}
.rv-score__num { font-family: var(--f-head); font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--c-heading); }
.rv-score__total { margin: 6px 0 0; font-size: 13px; color: var(--c-muted); }
.rv-studios { display: grid; gap: 12px; }
@media (min-width: 768px) { .rv-studios { grid-template-columns: 1fr 1fr; } }
.rv-studio {
    display: flex; flex-direction: column; gap: 6px;
    padding: 20px 22px; border-radius: 16px;
    background: var(--c-gray); box-shadow: inset 0 0 0 1px var(--c-line);
    color: var(--c-text);
    transition: box-shadow .35s, transform .35s var(--ease-out);
}
.rv-studio:hover { color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-blue), 0 18px 40px -22px var(--c-blue-glow); transform: translateY(-2px); }
.rv-studio__name { font-family: var(--f-head); font-size: 1.05rem; font-weight: 800; text-transform: uppercase; }
.lang-th .rv-studio__name { font-weight: 600; }
.rv-studio__meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--c-muted); }
.rv-studio__meta b { color: var(--c-heading); }
.rv-studio__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--c-accent); }
.rv-studio__cta .icon { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.rv-studio:hover .rv-studio__cta .icon { transform: translateX(4px); }

.rv-praise { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; }
.rv-praise__label { margin-right: 6px; font-size: 13px; color: var(--c-muted); }
.rv-chip { padding: 7px 14px; border-radius: 999px; background: rgba(26, 159, 204, .12); box-shadow: inset 0 0 0 1px rgba(98, 210, 240, .25); font-size: 13px; font-weight: 600; color: var(--rv-chip-fg, var(--c-blue-ice)); }

.rv-grid { display: grid; gap: 14px; }
@media (min-width: 768px)  { .rv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .rv-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.rv-card {
    display: flex; flex-direction: column; gap: 14px; margin: 0;
    padding: 22px; border-radius: 16px;
    background: var(--c-gray); box-shadow: inset 0 0 0 1px var(--c-line);
}
.rv-card__top { display: flex; align-items: center; justify-content: space-between; }
.rv-card__top .rv-g { width: 20px; height: 20px; }
.rv-card__text { flex: 1; margin: 0; font-size: 15px; line-height: 1.65; color: var(--c-text); }
.rv-card__by { display: flex; align-items: center; gap: 12px; }
.rv-card__by strong { display: block; font-size: 14px; }
.rv-card__by small { display: block; font-size: 12px; color: var(--c-muted); }
.rv-card__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--c-blue), var(--c-blue-dk)); font-weight: 800; color: #fff; }
/* Empty slot (no review pasted yet) — reads as a placeholder */
.rv-card--ph { background: repeating-linear-gradient(45deg, var(--ph-stripe, rgba(255, 255, 255, .025)) 0 14px, transparent 14px 28px), var(--c-gray); box-shadow: inset 0 0 0 1px var(--ph-edge, rgba(255, 255, 255, .14)); outline: 1px dashed rgba(98, 210, 240, .45); outline-offset: -8px; }
.rv-card--ph .rv-card__text, .rv-card--ph .rv-card__by strong { color: var(--c-muted); font-style: italic; }
.rv-card--ph .rv-card__avatar { background: var(--c-gray-2); color: var(--c-muted); }

/* ==================================================================
   TEMPORARY theme switcher (client preview) — above the Messenger button
   Same look in every theme. Remove this block + the markup when a theme is chosen.
   ================================================================== */
.theme-switch {
    position: fixed;
    right: 16px;
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 3 * 54px + 2 * 10px + 14px);   /* on top of the 3 chat buttons */
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.theme-switch__toggle {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 45%),
        conic-gradient(from 200deg, #06080a 0 33%, #1596c7 33% 66%, #bfe9f8 66% 100%);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .55);
    transition: transform .35s var(--ease-out);
}
.theme-switch__toggle svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.theme-switch__toggle:hover, .theme-switch.is-open .theme-switch__toggle { transform: rotate(-18deg) scale(1.05); }
.theme-switch__menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 190px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(10, 16, 22, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
    opacity: 0;
    transform: translateX(10px) scale(.96);
    transform-origin: right center;
    pointer-events: none;
    transition: opacity .25s, transform .35s var(--ease-out);
}
.theme-switch.is-open .theme-switch__menu { opacity: 1; transform: none; pointer-events: auto; }
.theme-switch__label { padding: 2px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.theme-switch__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    transition: background .2s;
}
.theme-switch__opt:hover { background: rgba(255, 255, 255, .08); }
.theme-switch__opt[aria-pressed="true"] { background: rgba(21, 150, 199, .28); box-shadow: inset 0 0 0 1px rgba(98, 210, 240, .5); }
.theme-switch__sw { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.theme-switch__sw--dark { background: linear-gradient(135deg, #06080a 50%, #1a9fcc 50%); }
.theme-switch__sw--navy { background: linear-gradient(135deg, #ffffff 50%, #0b1b2c 50%); }
.theme-switch__sw--sky  { background: linear-gradient(135deg, #ffffff 50%, #7fd3f0 50%); }
.theme-switch[hidden] { display: none !important; }   /* currently hidden — client picked "Airy Sky" */
@media print { .theme-switch { display: none !important; } }

/* ---- Headings written in English on both languages (e.g. "Top Tattoo Studio in Pattaya")
        keep the English look in Thai mode instead of the Thai heading style ---- */
.lang-th .display-title.display-title--latin {
    font-weight: 800;
    line-height: .96;
    letter-spacing: -.03em;
    font-size: clamp(2.5rem, 10.5vw, 3.4rem);
}
@media (min-width: 768px)  { .lang-th .display-title.display-title--latin { font-size: clamp(3.4rem, 7.4vw, 4.6rem); } }
@media (min-width: 1200px) { .lang-th .display-title.display-title--latin { font-size: clamp(4.4rem, 5.4vw, 5.6rem); } }

/* ---- About — studio gallery (main photo + thumbnails) ---- */
.about-gal { display: flex; flex-direction: column; gap: 12px; }
.about-gal__main { margin: 0; }
.about-gal__swiper { position: absolute; inset: 0; }
.about-gal__swiper .swiper-slide { background: var(--c-gray-2); }
.about-gal__swiper img,
.about-gal__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-gal__main .about__caption { z-index: 3; }
.about-gal__controls {
    position: absolute; right: 14px; bottom: 14px; z-index: 3;
    display: flex; align-items: center; gap: 8px;
    padding: 5px; border-radius: 999px;
    background: rgba(4, 5, 6, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff;
}
.about-gal__btn {
    display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff;
    transition: background .3s;
}
.about-gal__btn:hover { background: var(--c-blue); }
.about-gal__btn .icon { width: 16px; height: 16px; }
.about-gal__count { min-width: 54px; text-align: center; font-family: var(--f-head); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.about-gal__count b { color: #fff; }
.about-gal__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgba(255, 255, 255, .18); }
.about-gal__progress span { display: block; height: 100%; background: var(--c-blue-lt); transform: scaleX(0); transform-origin: left; }
.about-gal__thumbs { width: 100%; }
.about-gal__thumbs .swiper-slide {
    aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; cursor: pointer;
    opacity: .55; box-shadow: 0 0 0 1px var(--c-line);
    transition: opacity .35s, box-shadow .35s;
}
.about-gal__thumbs .swiper-slide:hover { opacity: .85; }
.about-gal__thumbs .swiper-slide-thumb-active { opacity: 1; box-shadow: 0 0 0 2px var(--c-blue); }
@media (max-width: 575.98px) { .about-gal__main .about__caption { display: none; } }

/* ---- About gallery: posters are shown whole (contain) over a blurred copy ---- */
.about-gal__main.about__figure { aspect-ratio: 4 / 5; background: #0b0d0f; }
@media (min-width: 992px) { .about-gal__main.about__figure { aspect-ratio: 1 / 1; } }
.about-gal__swiper .swiper-slide { position: relative; overflow: hidden; background: #0b0d0f; }
.about-gal__blur {
    position: absolute; inset: -40px;
    background-size: cover; background-position: center;
    filter: blur(30px) brightness(.5) saturate(1.1);
    transform: scale(1.1);
}
.about-gal__swiper .about-gal__img {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45));
}
.about-gal__thumbs .swiper-slide { aspect-ratio: 4 / 5; background: #0b0d0f; }
.about-gal__main .about__caption { display: none; }   /* posters carry their own titles */
/* <picture> wrapper (WebP) must fill the slide too, otherwise the poster
   keeps its own height and gets cut off by the frame */
.about-gal__swiper picture { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.about-gal__swiper .about-gal__img { display: block; max-width: 100%; }
.about-gal__thumbs picture { display: block; width: 100%; height: 100%; }
/* No thumbnail strip any more — the arrow buttons are the main navigation, so make them easier to hit */
.about-gal__controls { right: 16px; bottom: 16px; padding: 6px; }
.about-gal__btn { width: 42px; height: 42px; }
.about-gal__btn .icon { width: 18px; height: 18px; }
.about-gal__count { min-width: 64px; font-size: 13px; }

/* ---- About gallery v3: the frame takes each poster's own shape (no dark side bars).
        Swiper autoHeight animates the height between posters of different ratios. ---- */
.about-gal__main.about__figure { aspect-ratio: auto; height: auto; background: transparent; }
.about-gal__swiper { position: relative; inset: auto; }
.about-gal__swiper .swiper-wrapper { transition-property: transform, height; }
.about-gal__swiper .swiper-slide { height: auto; background: transparent; }
.about-gal__swiper picture { height: auto; }
.about-gal__swiper .about-gal__img { width: 100%; height: auto; object-fit: initial; filter: none; }
.about-gal__blur { display: none; }

/* ---- About highlights 01–04: larger on desktop so the list roughly matches the poster gallery height ---- */
@media (min-width: 992px) {
    .about__body > .col-lg-6 { display: flex; align-items: center; }      /* centre the list next to the gallery */
    .about__body .highlights { width: 100%; }
    .about__body .highlights__item { grid-template-columns: 72px 1fr; padding: 38px 0 40px; }
    .about__body .highlights__num { font-size: 1.15rem; padding-top: .55em; }
    .about__body .highlights__title { margin-bottom: 12px; font-size: clamp(1.7rem, 2.1vw, 2.35rem); letter-spacing: -.02em; }
    .lang-th .about__body .highlights__title { font-size: clamp(1.55rem, 1.9vw, 2.1rem); letter-spacing: 0; }
    .about__body .highlights__text { font-size: clamp(1.05rem, 1.15vw, 1.25rem); line-height: 1.65; max-width: 34em; }
}
@media (min-width: 992px) {   /* fine-tune: titles stay on one line in EN, Thai body a touch larger */
    .about__body .highlights__item { padding: 30px 0 32px; }
    .about__body .highlights__title { font-size: clamp(1.45rem, 1.7vw, 2rem); }
    .lang-th .about__body .highlights__title { font-size: clamp(1.45rem, 1.75vw, 2rem); }
    .about__body .highlights__text { font-size: clamp(1.02rem, 1.05vw, 1.18rem); }
    .lang-th .about__body .highlights__text { font-size: clamp(1.1rem, 1.2vw, 1.3rem); color: var(--c-text); opacity: .72; }
}

/* ---- Tattoo categories (6 cards): photo slider inside each card ---- */
.xpand__gal { position: absolute; inset: 0; }
.xpand__gal .swiper-slide { background: #0b0d0f; overflow: hidden; }
.xpand__gal .swiper-slide picture { display: block; width: 100%; height: 100%; }
.xpand__gal .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.xpand__index span { letter-spacing: .14em; }
.xpand__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.xpand__galnav {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff;
}
.xpand__galbtn {
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff;
    transition: background .3s;
}
.xpand__galbtn:hover { background: var(--c-blue); }
.xpand__galbtn .icon { width: 16px; height: 16px; }
.xpand__galcount { min-width: 58px; text-align: center; font-family: var(--f-head); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.xpand__galcount b { color: #fff; }
/* 6 cards: slightly smaller vertical labels so long names fit */
@media (min-width: 992px) {
    .xpand--6 .xpand__vtitle { font-size: 1.3rem; white-space: nowrap; }
    .lang-th .xpand--6 .xpand__vtitle { font-size: 1.2rem; }
}

/* ---- Tattoo categories v2: photos are designed 4:5 posters with their own titles.
        Open card = poster shown WHOLE on the right, text on a dark panel on the left. ---- */
.xpand--6 .xpand__panel { background: #0c0f12; }
.xpand--6 .xpand__gal { transition: width .9s var(--ease-io), left .9s var(--ease-io); }
.xpand--6 .xpand__title { font-size: clamp(1.9rem, 2.5vw, 2.9rem); line-height: 1.12; }
.lang-th .xpand--6 .xpand__title { font-size: clamp(1.75rem, 2.2vw, 2.5rem); line-height: 1.35; }

@media (min-width: 992px) {
    .xpand--6 .xpand__panel { container-type: size; }               /* lets the poster size itself from the card height */
    .xpand--6 .xpand__panel.is-active { flex-grow: 9; }
    .xpand--6 .xpand__panel.is-active .xpand__gal { left: auto; right: 0; width: min(80cqh, 62cqw); }
    .xpand--6 .xpand__panel.is-active .xpand__media::after {
        background: linear-gradient(90deg, rgba(12, 15, 18, 1) 0%, rgba(12, 15, 18, 0) 18%);
        left: auto; width: min(80cqh, 62cqw);
    }
    .xpand--6 .xpand__panel.is-active .xpand__media img { filter: none; transform: none; object-position: center; }
    .xpand--6 .xpand__content {
        top: 0; bottom: 0;
        display: flex; flex-direction: column; justify-content: center;
        width: calc(100cqw - min(80cqh, 62cqw));
        padding: 40px 36px 40px 44px;
    }
    .xpand--6 .xpand__text { max-width: none; }
}

@media (max-width: 991.98px) {
    .xpand--6 .xpand__panel.is-active { height: auto; }
    .xpand--6 .xpand__panel.is-active .xpand__media { position: relative; z-index: 0; aspect-ratio: 4 / 5; }
    .xpand--6 .xpand__panel.is-active .xpand__media::after { display: none; }
    .xpand--6 .xpand__panel.is-active .xpand__media img { filter: none; transform: none; object-position: center; }
    .xpand--6 .xpand__panel.is-active .xpand__content { position: relative; padding: 22px 20px 26px; }
}

/* ---- Team: artist posters (1414×2000) shown whole — the name is printed on the photo ---- */
.team-card__slider { aspect-ratio: 1000 / 1414; }
.team-card__slider .swiper-slide picture { display: block; width: 100%; height: 100%; }
.team-card__name-th { margin-left: 6px; font-family: var(--f-body); font-size: .55em; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--c-muted); }

/* ---- Inside the studio (customer atmosphere) — under the stats in About ---- */
.vibe { margin-top: 90px; }
.vibe__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 60px; margin-bottom: 36px; }
.vibe__title.display-title { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.lang-th .vibe__title.display-title { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.vibe__lead.section-head__lead { margin: 0 0 6px; }
.vibe__grid {                               /* phones: swipe sideways */
    display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.vibe__grid::-webkit-scrollbar { display: none; }
.vibe__item { scroll-snap-align: start; }
.vibe__item .gallery__open { border-radius: 16px; box-shadow: 0 18px 44px -26px rgba(11, 30, 45, .45); }
@media (min-width: 768px) {
    .vibe { margin-top: 120px; }
    .vibe__grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; gap: 20px; margin: 0; padding: 0; overflow: visible; }
}
@media (min-width: 992px) {
    .vibe__grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}
.vibe__grid { scroll-padding-left: var(--gutter); }   /* keep the side gutter when a photo snaps */
@media (min-width: 768px) { .vibe__grid { scroll-padding-left: 0; } }

/* ==================================================================
   Google reviews v2 (17 Oct 2026) — real reviews, masonry, translation toggle
   ================================================================== */
.rv-grid { display: block; columns: 1; column-gap: 18px; }
@media (min-width: 768px)  { .rv-grid { columns: 2; } }
@media (min-width: 1200px) { .rv-grid { columns: 3; column-gap: 20px; } }
.rv-grid .rv-card { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 18px; padding: 26px; gap: 16px; }
@media (min-width: 1200px) { .rv-grid .rv-card { margin-bottom: 20px; } }
.rv-card__text { font-size: 15.5px; line-height: 1.7; }
.rv-card__text p { margin: 0; white-space: pre-line; }
.rv-card__tr { display: none; }
.rv-card.is-tr .rv-card__orig { display: none; }
.rv-card.is-tr .rv-card__tr { display: block; }

/* "Original in French · See translation" */
.rv-card__tr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: -4px; font-size: 13px; color: var(--c-muted); }
.rv-tr-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--c-blue); cursor: pointer; }
.rv-tr-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.rv-tr-btn__hide, .rv-card.is-tr .rv-tr-btn__show { display: none; }
.rv-card.is-tr .rv-tr-btn__hide { display: inline; }
/* English site + English review → nothing to translate */
body[data-lang="en"] .rv-card[data-tr-en="0"] .rv-card__tr-bar,
body[data-lang="th"] .rv-card[data-tr-th="0"] .rv-card__tr-bar { display: none; }

/* Reviewer */
.rv-card__by { padding-top: 16px; border-top: 1px solid var(--c-line); }
.rv-card__avatar { flex: none; width: 44px; height: 44px; font-size: 18px; font-weight: 600; }
.rv-card__avatar--img { overflow: hidden; background: var(--c-gray-2); }
.rv-card__avatar--img picture, .rv-card__avatar--img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-card__by strong { font-size: 15px; }
/* flag emoji only (font is subset to the flags in the reviews — every other character falls through) */
.rv-card__text p { font-family: 'Noto Color Emoji', var(--f-body); }

/* ==================================================================
   Mobile / tablet sliders (18 Oct 2026)
   - Styles: the 6 cards → slider, the next card peeking in; scrolling slides them (pinScrub)
   - About: posters → slider, the next poster peeking in; scrolling slides them (pinScrub), no buttons
   The sliders overflow visibly so the peek runs to the screen edge (no negative-margin bleed:
   ScrollTrigger's pin would cut it off). Desktop unchanged.
   ================================================================== */
.xpand__track { display: contents; }                 /* desktop: cards stay direct flex items of .xpand */
.xpand__panel.is-active .xpand__gal { cursor: zoom-in; }   /* open card's photo → full-screen viewer */

@media (max-width: 991.98px) {
    #styles, #about { overflow-x: hidden; overflow-x: clip; }   /* slides beyond the screen edge never widen the page */

    /* ---- Style cards slider ---- */
    .xpand.xpand--carousel { display: block; height: auto; padding: 4px 0 28px; overflow: visible; }   /* bottom room for the card shadow */
    .xpand--carousel .xpand__track { display: flex; }      /* beats the desktop "display: contents" */
    .xpand--carousel .xpand__panel {
        height: auto; display: flex; flex-direction: column; cursor: grab; transition: opacity .45s;
        /* fills the phone width, but never so tall that it does not fit the screen while pinned */
        width: var(--card-w, 86vw);                       /* phones: wide like the About posters (JS may narrow it to fit) */
    }
    @media (min-width: 600px) {
        .xpand--carousel .xpand__panel {
            width: var(--card-w, max(300px, min(62vw, calc((100vh - 320px) * .8))));
        }
    }
    .xpand--carousel .xpand__panel:not(.is-active) { opacity: .55; }
    .xpand--carousel .xpand__trigger { display: none; }
    .xpand--carousel .xpand__media { position: relative; inset: auto; z-index: 0; flex: none; aspect-ratio: 4 / 5; }
    .xpand--carousel .xpand__media::after { display: none; }
    .xpand--carousel .xpand__media img { filter: none; transform: none; object-position: center; }
    .xpand--carousel .xpand__content {
        position: relative; flex: 1;
        display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; column-gap: 12px;
        padding: 18px 18px 22px;
        opacity: 1; transform: none; pointer-events: auto; transition: none;
    }
    .xpand--carousel .xpand__content > * { grid-column: 1 / -1; }
    .xpand--carousel .xpand__content > .xpand__index { grid-column: 1; align-self: center; margin: 0; }
    /* photo arrows + counter: right of the "01 / 06 · …" label, under the photo */
    .xpand--carousel .xpand__content > .xpand__galnav { grid-column: 2; grid-row: 1; align-self: center; margin: 0; padding: 3px; gap: 4px; }
    .xpand--carousel .xpand__content > .xpand__galnav .xpand__galbtn { width: 32px; height: 32px; }
    .xpand--carousel .xpand__content > .xpand__galnav .xpand__galcount { min-width: 46px; font-size: 11.5px; }
    .xpand--carousel .xpand__title { margin-top: 12px; font-size: 1.7rem; }
    .lang-th .xpand--carousel .xpand__title { font-size: 1.55rem; }

    /* ---- About posters slider ---- */
    .about-gal--carousel .about-gal__main { overflow: visible; border-radius: 0; clip-path: none !important; }
    .about-gal--carousel .about-gal__swiper { overflow: visible; }
    .about-gal--carousel .about-gal__swiper .swiper-wrapper { align-items: center; }
    .about-gal--carousel .about-gal__swiper .swiper-slide {
        border-radius: 14px; overflow: hidden; cursor: grab; transition: opacity .45s;
        /* poster width: fills the phone, but the whole poster always fits the screen height */
        width: max(240px, min(82vw, calc((100vh - 90px) * .7)));
        width: max(240px, min(82vw, calc((100svh - 90px) * .7)));
    }
    @media (min-width: 600px) {
        .about-gal--carousel .about-gal__swiper .swiper-slide {
            width: max(300px, min(56vw, calc((100vh - 110px) * .7)));
            width: max(300px, min(56vw, calc((100svh - 110px) * .7)));
        }
    }
    .about-gal--carousel .about-gal__swiper .swiper-slide:not(.is-current) { opacity: .55; }
    .about-gal--carousel .about-gal__controls,
    .about-gal--carousel .about-gal__progress { display: none; }

    /* ---- Scroll-driven mode (pinScrub): our own swipe / drag, no text or image dragging ---- */
    .is-scrub { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
    .is-scrub img { -webkit-user-drag: none; pointer-events: none; }
}

/* ---- Inside the studio (vibe photos): mobile / tablet slider (scroll-driven, see 4b2) ---- */
.vibe__track { display: contents; }                  /* desktop: photos stay direct grid items */
@media (max-width: 991.98px) {
    .vibe__grid.vibe--carousel { display: block; margin: 0; padding: 0 0 8px; overflow: visible; scroll-snap-type: none; }
    .vibe--carousel .vibe__track { display: flex; }
    .vibe--carousel .vibe__item {
        transition: opacity .45s;
        /* 4:5 photos: fill the phone width, but always fit the screen height while pinned */
        width: var(--card-w, max(240px, min(78vw, calc((100vh - 140px) * .8))));
    }
    @media (min-width: 600px) {
        .vibe--carousel .vibe__item {
            width: var(--card-w, max(300px, min(52vw, calc((100vh - 160px) * .8))));
        }
    }
    .vibe--carousel .vibe__item:not(.is-current) { opacity: .55; }
}

/* ---- Team: mobile / tablet slider (scroll-driven, see 5b) — the next artist peeks in ---- */
.team__track { display: contents; }                  /* desktop: cards stay direct grid items */
@media (max-width: 991.98px) {
    .team__grid.team--carousel { display: block; padding-bottom: 8px; overflow: visible; }
    #artists { overflow-x: hidden; overflow-x: clip; }
    .team--carousel .team__track { display: flex; }
    .team--carousel .team-card {
        transition: opacity .45s;
        /* poster (1000×1414) + name: fill the phone width, but always fit the screen height while pinned */
        width: var(--card-w, max(240px, min(78vw, calc((100vh - 190px) * .707))));
    }
    @media (min-width: 600px) {
        .team--carousel .team-card {
            width: var(--card-w, max(300px, min(50vw, calc((100vh - 210px) * .707))));
        }
    }
    .team--carousel .team-card:not(.is-current) { opacity: .5; }
}

/* ---- Portfolio on mobile / tablet: bigger works (1.35 / 2.2 per view), no arrow buttons —
        swipe / drag; the hint + progress line stay ---- */
@media (max-width: 991.98px) {
    .pf-bar__nav { display: none; }
    .pf-bar__hint { display: flex; }
    .pf-bar { gap: 14px; margin-top: 22px; }
    .pf-item .gallery__open { border-radius: 16px; }
}

/* ---- Pinned sliders keep their section heading on screen (pinScrub opts.pin, 18 Oct 2026):
        tighter heading spacing; card width may be reduced by JS (--card-w) so heading + cards fit ---- */
@media (max-width: 991.98px) {
    .is-pinwrap .section-head { margin-bottom: 18px; }
    .is-pinwrap .vibe__head { margin-bottom: 18px; }
    /* tablets: style cards keep their full text (description + tags) while pinned — the card width adapts instead */
}
@media (max-width: 599.98px) {
    #styles.is-pinwrap .section-head__lead { display: none; }   /* phones: title stays, the one-line intro makes room for the card */
    /* phones: heading + a 4:5 poster + text do not fit one screen → the pinned card shows
       label, name and the CTA (the description returns when the slider is unpinned / on tablets) */
    .is-pinwrap .xpand--carousel .xpand__text { display: none; }
    .is-pinwrap .xpand--carousel .xpand__label { display: none; }   /* "04 / 06" only — the name below says the style */
    .is-pinwrap .xpand--carousel .xpand__index { white-space: nowrap; }
    .is-pinwrap .xpand--carousel .xpand__title { font-size: 1.4rem; margin-bottom: 14px; }
    .lang-th .is-pinwrap .xpand--carousel .xpand__title { font-size: 1.3rem; }
}
/* short phones (≤ 800px tall): a slimmer heading so heading + style card still fit one screen while pinned */
@media (max-width: 599.98px) and (max-height: 800px) {
    #styles.is-pinwrap .section-head .eyebrow { display: none; }
    #styles.is-pinwrap .section-head .display-title { font-size: 1.95rem; }
    #styles.is-pinwrap .section-head { margin-bottom: 12px; }
}
/* About posters: click / tap → full-screen viewer */
.about-gal__swiper .swiper-slide { cursor: zoom-in; }
@media (max-width: 991.98px) { .about-gal--carousel .about-gal__swiper .swiper-slide:not(.is-current) { cursor: pointer; } }
@media (max-width: 991.98px) { .about-gal--carousel .about-gal__swiper .swiper-slide.is-current { cursor: zoom-in; } }

/* ==================================================================
   App-style contact bar — mobile / tablet (18 Oct 2026)
   Replaces the floating Messenger / LINE / WhatsApp buttons below 992px.
   Call · LINE · [Book — raised centre button] · WhatsApp · Messenger
   ================================================================== */
.appbar { display: none; }
@media (max-width: 991.98px) {
    .appbar {
        position: fixed; left: 10px; right: 10px; z-index: 85;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
        max-width: 520px; margin: 0 auto;
        height: 66px; padding: 0 4px 9px;
        border-radius: 24px;
        background: rgba(255, 255, 255, .9);
        -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
        box-shadow: 0 16px 40px -14px rgba(11, 30, 45, .38), 0 2px 8px -2px rgba(11, 30, 45, .12), inset 0 0 0 1px rgba(255, 255, 255, .7);
        transform: translateY(calc(100% + 24px)); opacity: 0;
        transition: transform .55s cubic-bezier(.16, 1, .3, 1), opacity .3s;
    }
    .appbar.is-visible { transform: none; opacity: 1; }
    body.menu-open .appbar, body.lightbox-open .appbar { transform: translateY(calc(100% + 24px)); opacity: 0; }

    .appbar__item {
        display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0;
        font-size: 11px; font-weight: 600; line-height: 1.1; color: #22303a; text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .appbar__label { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .appbar__icon {
        display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff;
        transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    }
    .appbar__icon .icon { width: 19px; height: 19px; }
    .appbar__item:active .appbar__icon { transform: scale(.9); }
    .appbar__item--call .appbar__icon      { background: linear-gradient(135deg, #3cc3e8, #1a9fcc); }
    .appbar__item--line .appbar__icon      { background: #06c755; }
    .appbar__item--whatsapp .appbar__icon  { background: #25d366; }
    .appbar__item--messenger .appbar__icon { background: linear-gradient(45deg, #0099ff 0%, #a033ff 60%, #ff5280 90%, #ff7061 100%); }
    .appbar__item--line .appbar__icon .icon { width: 21px; height: 21px; }

    /* raised centre button — Book */
    .appbar__item--book { color: #0d7aa3; }
    .appbar__item--book .appbar__icon {
        width: 58px; height: 58px; margin-top: -30px; border-radius: 50%;
        background: linear-gradient(140deg, #62d2f0 0%, #1a9fcc 55%, #0d7aa3 100%);
        box-shadow: 0 0 0 5px rgba(255, 255, 255, .95), 0 12px 26px -8px rgba(13, 122, 163, .65);
    }
    .appbar__item--book .appbar__icon .icon { width: 25px; height: 25px; }

}
/* About wrappers pinned on mobile / tablet: keep the children's margins inside (no margin collapse),
   otherwise the content jumps by the stats' top margin the moment the block gets pinned (position: fixed) */
.about__pin, .about__more { display: flow-root; }
/* phones, while the team cards slide: heading title only + a tighter name block → bigger artist cards */
@media (max-width: 599.98px) {
    #artists.is-pinwrap .section-head__lead { display: none; }
    #artists.is-pinwrap .team-card__body { padding-top: 12px; }
    #artists.is-pinwrap .team-card__name { margin-bottom: 6px; font-size: 1.45rem; }
}

/* Style card CTA: full label normally, short one in the compact (pinned phone) layout */
.xpand__cta-short { display: none; }
/* Phones, style cards while sliding: one compact row under the photo — 01 / 06 · photo arrows · Enquire —
   then the style name, so the photo can be as big as the About posters */
@media (max-width: 599.98px) {
    .is-pinwrap .xpand--carousel .xpand__content {
        grid-template-columns: auto 1fr auto; column-gap: 8px; row-gap: 10px; align-items: center;
        padding: 14px 14px 16px;
    }
    .is-pinwrap .xpand--carousel .xpand__content > .xpand__index { grid-column: 1; grid-row: 1; }
    .is-pinwrap .xpand--carousel .xpand__content > .xpand__galnav { grid-column: 2 / -1; grid-row: 1; justify-self: end; padding: 2px; gap: 2px; }
    .is-pinwrap .xpand--carousel .xpand__content > .xpand__galnav .xpand__galbtn { width: 30px; height: 30px; }
    .is-pinwrap .xpand--carousel .xpand__content > .xpand__galnav .xpand__galcount { min-width: 40px; font-size: 11px; }
    .is-pinwrap .xpand--carousel .xpand__content > .xpand__actions { grid-column: 3; grid-row: 1; margin: 0; }
    .is-pinwrap .xpand--carousel .xpand__content > .xpand__title {
        grid-column: 1 / -1; grid-row: 2; margin: 0;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .lang-th .is-pinwrap .xpand--carousel .xpand__content > .xpand__title { font-size: 1.2rem; }
    .is-pinwrap .xpand--carousel .xpand__actions .btn { min-height: 0; padding: 8px 12px; gap: 6px; font-size: 13px; }
    .is-pinwrap .xpand--carousel .xpand__actions .btn .icon { width: 14px; height: 14px; }
    .is-pinwrap .xpand--carousel .xpand__cta-long { display: none; }
    .is-pinwrap .xpand--carousel .xpand__cta-short { display: inline; }
}
/* Mobile / tablet: the top menu steps aside while a card slider is pinned, so the section title stays visible */
@media (max-width: 991.98px) {
    html.is-pinning .site-header { transform: translateY(-100%) !important; }
}
/* short phones (≤ 800px tall): slimmer team heading so the artist card clears the bottom app bar */
@media (max-width: 599.98px) and (max-height: 800px) {
    #artists.is-pinwrap .section-head .eyebrow { display: none; }
    #artists.is-pinwrap .section-head { margin-bottom: 12px; }
}
/* the style cards have no CTA button any more: the slider layout hides the now empty actions row */
.xpand--carousel .xpand__actions { display: none; }
/* tablets too: while the style cards slide, the one-line intro under the title steps aside (title stays) */
@media (max-width: 991.98px) {
    #styles.is-pinwrap .section-head__lead { display: none; }
}

/* App-style contact bar: HIDDEN for now (client, 19 Oct 2026) — the floating Messenger / LINE / WhatsApp buttons
   are back on phones. To bring the bar back: delete this rule, and add back in the app-bar block above
   ".float-chat { display: none !important; }" and the .site-footer bottom padding. */
.appbar { display: none !important; }
/* Floating Messenger / LINE / WhatsApp buttons: hidden on phones / tablets too (client, 19 Oct 2026) —
   the contact cards in the first section and the Contact section remain. Desktop keeps them. */
@media (max-width: 991.98px) { .float-chat { display: none !important; } }
