/* =========================================================
   GALLERY
   ========================================================= */

.gk-gallery-page {
    --gk-gallery-soft: #f7f5f8;
    --gk-gallery-shadow: 0 14px 40px rgba(36, 28, 54, .09);
    background: #fff;
}

/* ---------- Hero/search ---------- */
.gk-gallery-page .gk-main {
            width: min(1440px, calc(100% - 40px));
            margin: 0 auto;
            padding: 54px 0 72px;
        }

        .gk-gallery-page .gk-hero {
            max-width: 790px;
            margin: 0 auto 40px;
            text-align: center;
        }

        .gk-gallery-page .gk-eyebrow {
            margin-bottom: 12px;
            color: var(--gk-purple);
            font-size: 13px;
            font-weight: 800;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .gk-gallery-page .gk-title {
            margin: 0;
            font-size: clamp(38px, 6vw, 68px);
            line-height: .98;
            letter-spacing: -.055em;
            font-weight: 800;
        }

        .gk-gallery-page .gk-subtitle {
            margin: 20px auto 0;
            max-width: 610px;
            color: var(--gk-muted);
            font-size: 18px;
            line-height: 1.55;
        }

        .gk-gallery-page .gk-search-wrap {
            position: relative;
            max-width: 720px;
            margin: 30px auto 0;
        }

        .gk-gallery-page .gk-search-icon {
            position: absolute;
            left: 22px;
            top: 50%;
            transform: translateY(-50%);
            color: #89828e;
            font-size: 17px;
            pointer-events: none;
        }

        .gk-gallery-page .gk-search {
            width: 100%;
            height: 64px;
            padding: 0 58px 0 54px;
            border: 1px solid var(--gk-line);
            border-radius: 20px;
            outline: 0;
            background: #fff;
            color: var(--gk-ink);
            font-size: 16px;
            box-shadow: var(--gk-gallery-shadow);
            transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
        }

        .gk-gallery-page .gk-search:focus {
            border-color: rgba(112,87,255,.45);
            box-shadow: 0 18px 50px rgba(74, 55, 130, .13), 0 0 0 4px rgba(112,87,255,.08);
        }

        .gk-gallery-page .gk-clear {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            border: 0;
            border-radius: 50%;
            background: transparent;
            color: #817a86;
            cursor: pointer;
            display: none;
        }

        .gk-gallery-page .gk-clear:hover { background: var(--gk-gallery-soft); }

        .gk-gallery-page .gk-chips {
            max-width: 900px;
            margin: 22px auto 0;
            display: flex;
            justify-content: center;
            gap: 9px;
            flex-wrap: wrap;
        }

        .gk-gallery-page .gk-chip {
            appearance: none;
            border: 1px solid var(--gk-line);
            background: #fff;
            color: #514b55;
            padding: 9px 14px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 650;
            cursor: pointer;
            transition: all .18s ease;
        }

        .gk-gallery-page .gk-chip:hover {
            transform: translateY(-1px);
            border-color: rgba(112,87,255,.22);
            background: #faf9ff;
        }

        .gk-gallery-page .gk-chip.is-active {
            border-color: transparent;
            background: var(--gk-purple-soft);
            color: #5037d6;
            box-shadow: inset 0 0 0 1px rgba(112,87,255,.1);
        }

        /* ---------- Gallery ---------- */
.gk-gallery-page .gk-gallery-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 0 2px 18px;
            min-height: 26px;
        }

        .gk-gallery-page .gk-count {
            color: var(--gk-muted);
            font-size: 13px;
            font-weight: 600;
        }

        .gk-gallery-page .gk-reset {
            border: 0;
            background: transparent;
            padding: 4px 0;
            color: var(--gk-purple);
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            opacity: 0;
            pointer-events: none;
        }

        .gk-gallery-page .gk-reset.is-visible { opacity: 1; pointer-events: auto; }

        .gk-gallery-page .gk-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 24px 20px;
        }

        .gk-gallery-page .gk-card {
            min-width: 0;
        }

        .gk-gallery-page .gk-card.is-hidden { display: none; }

        .gk-gallery-page .gk-card-link {
            position: relative;
            display: block;
            border-radius: 16px;
            overflow: hidden;
            background: var(--gk-gallery-soft);
            box-shadow: 0 1px 0 rgba(29,27,32,.02);
            text-decoration: none !important;
            transform: translateZ(0);
            transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease;
        }

        .gk-gallery-page .gk-card-link::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            box-shadow: inset 0 0 0 1px rgba(29,27,32,.055);
            pointer-events: none;
        }

        .gk-gallery-page .gk-card-link:hover,
.gk-gallery-page .gk-card-link:focus-visible {
            transform: translateY(-5px);
            box-shadow: 0 18px 35px rgba(36,28,54,.13);
        }

        .gk-gallery-page .gk-card-link:focus-visible {
            outline: 3px solid rgba(112,87,255,.28);
            outline-offset: 3px;
        }

        .gk-gallery-page .gk-thumb {
            display: block;
            width: 100%;
            height: auto;
            border: 0;
            border-radius: 0;
            transition: transform .35s cubic-bezier(.2,.7,.2,1);
        }

        .gk-gallery-page .gk-card-link:hover .gk-thumb { transform: scale(1.018); }

        .gk-gallery-page .gk-open {
            position: absolute;
            right: 12px;
            bottom: 12px;
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255,255,255,.94);
            color: var(--gk-ink);
            box-shadow: 0 8px 20px rgba(29,27,32,.16);
            opacity: 0;
            transform: translateY(5px);
            transition: opacity .18s ease, transform .18s ease;
        }

        .gk-gallery-page .gk-card-link:hover .gk-open,
.gk-gallery-page .gk-card-link:focus-visible .gk-open {
            opacity: 1;
            transform: translateY(0);
        }

        .gk-gallery-page .gk-empty {
            display: none;
            margin: 70px auto 30px;
            max-width: 540px;
            text-align: center;
            color: var(--gk-muted);
        }

        .gk-gallery-page .gk-empty.is-visible { display: block; }
        .gk-gallery-page .gk-empty-icon { font-size: 28px; margin-bottom: 12px; color: #aaa3af; }
        .gk-gallery-page .gk-empty strong { display: block; color: var(--gk-ink); font-size: 18px; margin-bottom: 6px; }

        @media (max-width: 1199px){
            .gk-gallery-page .gk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        }

        @media (max-width: 900px){
            .gk-gallery-page .gk-main { padding-top: 42px; }
            .gk-gallery-page .gk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
            .gk-gallery-page .gk-subtitle { font-size: 17px; }
        }

        @media (max-width: 680px){
.gk-gallery-page .gk-main { width: min(100% - 24px, 1440px); }
.gk-gallery-page .gk-main { padding: 34px 0 52px; }
            .gk-gallery-page .gk-hero { margin-bottom: 30px; }
            .gk-gallery-page .gk-eyebrow { margin-bottom: 9px; font-size: 11px; }
            .gk-gallery-page .gk-title { font-size: clamp(38px, 12vw, 54px); }
            .gk-gallery-page .gk-subtitle { margin-top: 15px; font-size: 15px; line-height: 1.5; }
            .gk-gallery-page .gk-search-wrap { margin-top: 24px; }
            .gk-gallery-page .gk-search { height: 58px; border-radius: 17px; font-size: 16px; }

            .gk-gallery-page .gk-chips {
                justify-content: flex-start;
                flex-wrap: nowrap;
                overflow-x: auto;
                margin-left: -12px;
                margin-right: -12px;
                padding: 0 12px 6px;
                scrollbar-width: none;
            }
            .gk-gallery-page .gk-chips::-webkit-scrollbar { display: none; }
            .gk-gallery-page .gk-chip { white-space: nowrap; flex: 0 0 auto; }

            .gk-gallery-page .gk-gallery-toolbar { margin-bottom: 12px; }
            .gk-gallery-page .gk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
            .gk-gallery-page .gk-card-link { border-radius: 12px; }
            .gk-gallery-page .gk-open { display: none; }
        }

        @media (prefers-reduced-motion: reduce){
            .gk-gallery-page .gk-card-link,
.gk-gallery-page .gk-thumb,
.gk-gallery-page .gk-chip,
.gk-gallery-page .gk-open { transition: none !important; }
        }
