#bo_gall #gall_ul{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 22px;margin:20px 0;padding:0;list-style:none}#bo_gall #gall_ul .kmhd-card{float:none!important;width:auto!important;margin:0!important;padding:0!important;position:relative;min-width:0;border:0;background:none}.kmhd-media{position:relative;aspect-ratio:1;background:#f5f5f5;border-radius:14px;overflow:hidden}.kmhd-media>a{display:flex;width:100%;height:100%;align-items:center;justify-content:center}.kmhd-media img{display:block;width:100%;height:100%;object-fit:contain}.kmhd-share{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:38px;height:38px;border:1px solid #ffffff80;border-radius:50%;background:#57575766;color:white;cursor:pointer}.kmhd-share:hover{background:#303030aa}.kmhd-share:focus-visible{outline:3px solid #4169e1;outline-offset:-3px}.kmhd-hot{position:absolute;top:0;left:0;padding:7px 13px;background:#7446f5;color:white;font-size:17px;font-weight:700;border-radius:0 0 12px 0}.kmhd-hot[hidden]{display:none!important}.kmhd-details{padding:12px 6px 0}.kmhd-shop{display:flex;align-items:center;gap:6px;min-height:23px;font-size:14px;color:#525965;margin-bottom:6px}.kmhd-shop img{width:16px;height:16px;object-fit:contain}.kmhd-title{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:52px!important;line-height:23px!important;font-size:16px!important;font-weight:400!important;color:#171717!important;text-decoration:none;word-break:break-word;margin:0 0 8px}.kmhd-price{color:#e60023;font-size:18px;line-height:22px;min-height:22px}.kmhd-price strong{font-weight:800;font-variant-numeric:tabular-nums}.kmhd-price span{font-size:16px;font-weight:400;margin-left:2px}.kmhd-date{display:block;margin-top:8px;font-size:14px;line-height:22px;color:#92969d}.kmhd-check{position:absolute;top:8px;right:8px;z-index:2}.kmhd-noimage{color:#92969d}@media(max-width:1100px){#bo_gall #gall_ul{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){#bo_gall #gall_ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.kmhd-title{font-size:16px!important;line-height:24px!important;height:48px!important}.kmhd-price{font-size:21px}.kmhd-details{padding-left:2px;padding-right:2px}}

/* v2: 比率保持・中央トリミング */
.kmhd-media img{object-fit:cover;object-position:top}.kmhd-details{display:block;text-decoration:none!important;color:inherit}.kmhd-price{letter-spacing:-.8px;word-spacing:0;font-family:Arial,"Malgun Gothic",sans-serif}.kmhd-price strong{font-weight:700;letter-spacing:-.4px}.kmhd-price span{margin-left:0;letter-spacing:-.4px;font-weight:400}

/* v3: title takes its actual lines; reserve space on the whole details block */
#bo_gall .kmhd-card .kmhd-title{height:auto!important;min-height:0!important;max-height:52px!important}#bo_gall .kmhd-card .kmhd-details{min-height:140px;box-sizing:border-box}@media(max-width:700px){#bo_gall .kmhd-card .kmhd-title{max-height:48px!important}#bo_gall .kmhd-card .kmhd-details{min-height:163px}}

.kmhd-votes{position:absolute;top:10px;left:10px;display:flex;align-items:center;gap:5px;padding:7px 10px;border-radius:18px;background:#3339;color:#fff;font-size:13px;line-height:18px;pointer-events:none;backdrop-filter:blur(6px)}.kmhd-votes.hot{background:#3a8afd;color:white;box-shadow:0 2px 8px #e9502033}.kmhd-votes.super{background:#fd3a3a;box-shadow:0 3px 12px #7446f566;font-weight:700}.kmhd-votes.super strong{font-size:16px}.kmhd-popular{margin:20px 0 34px;padding:22px;border:1px solid #e1dcf4;border-radius:16px;background:#faf8ff}.kmhd-popular h2{font-size:22px;margin:0 0 6px;color:#322258}.kmhd-popular>p{font-size:13px;color:#777;margin:0 0 18px}.kmhd-popular ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding:0;margin:0;list-style:none}#bo_gall .kmhd-popular .kmhd-card{float:none;width:auto;margin:0;padding:0;min-width:0;border:0}.kmhd-popular .kmhd-check{display:none}@media(max-width:700px){.kmhd-popular{padding:14px}.kmhd-popular ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}}

/* Compact title/price/date spacing; text-only price at 80% */
#bo_gall .kmhd-card .kmhd-title{margin-bottom:6px}#bo_gall .kmhd-card .kmhd-date{margin-top:1px}#bo_gall .kmhd-card .kmhd-price-text{font-size:18.4px}#bo_gall .kmhd-card .kmhd-price-text strong{font-size:inherit}@media(max-width:700px){#bo_gall .kmhd-card .kmhd-price-text{font-size:16.8px}}

.kmhd-search{display:flex;align-items:center;gap:12px;background:#f3f4f6;border-radius:20px;padding:12px 18px;margin:20px 0 26px;max-width:760px;min-height:62px}.kmhd-search button{display:grid;place-items:center;border:0;background:none;padding:4px;color:#98a1b0;cursor:pointer}.kmhd-search input[type=search]{flex:1;min-width:0;width:100%;border:0;outline:none;background:transparent;box-shadow:none;font-size:18px;color:#243247;height:36px}.kmhd-search input::placeholder{color:#98a1b0}.kmhd-search:focus-within{outline:2px solid #9fb9ec}.kmhd-search a{font-size:13px;white-space:nowrap;color:#63728a}.kmhd-more-wrap{text-align:center;margin:25px 0}.kmhd-more-next{display:inline-flex;justify-content:center;align-items:center;gap:25px;min-width:280px;padding:15px 28px;border:1px solid #d9dfe8;border-radius:12px;background:white;font-size:16px;color:#293a50;text-decoration:none}.kmhd-more-next[hidden]{display:none}.kmhd-more-next[aria-disabled=true]{opacity:.6;pointer-events:none}.kmhd-more-next:hover{background:#f4f6fa}.kmhd-more-status{margin:10px;color:#7e8795;font-size:13px}@media(max-width:700px){.kmhd-search{padding:10px 12px;border-radius:16px;gap:8px}.kmhd-search input[type=search]{font-size:16px}}


/* Original white-to-gray fade, starting at the bottom of search. */
body:has(.kmhd-search){background-color:#f5f5f8;background-image:linear-gradient(#fff,#fff),linear-gradient(180deg,#fff,hsla(0,0%,100%,0));background-size:100% var(--kmhd-fade-start,100vh),100% 600px;background-position:0 0,0 var(--kmhd-fade-start,100vh);background-repeat:no-repeat}
.kmhd-feed-surface{position:relative;background:transparent}.kmhd-feed-surface::before{content:none}body:has(.kmhd-search) .kmhd-popular{background:transparent}

.kmhd-intro{text-align:center;padding:40px 16px 22px}.kmhd-kicker{display:inline-block;padding:6px 16px;border:1px solid #ff414d;border-radius:30px;color:#f43e49;font-size:14px;font-weight:600}.kmhd-intro h1{font-size:46px;line-height:1.25;font-weight:800;letter-spacing:-1.5px;color:#111;margin:14px 0}.kmhd-description{font-size:18px;color:#414854;margin:0 0 16px}.kmhd-disclosure{font-size:14px!important;color:#a2a7af!important;line-height:1.6;margin:0}.kmhd-toolbar{display:flex;align-items:center;gap:20px;margin:20px 0 26px}.kmhd-toolbar .kmhd-search{flex:1;max-width:none;margin:0}.kmhd-sort{display:flex;gap:10px;flex-shrink:0}.kmhd-sort a{padding:13px 22px;border:1px solid #e2e6ed;border-radius:30px;background:white;color:#4c586b;text-decoration:none;font-size:16px;white-space:nowrap}.kmhd-sort a.active{background:#f33d49;border-color:#f33d49;color:white;font-weight:700}.kmhd-list-note{text-align:right;font-size:12px;color:#969da8;margin:18px 0 -6px}.kmhd-toolbar a:focus-visible{outline:3px solid #8ca9e3;outline-offset:2px}@media(max-width:700px){.kmhd-intro{padding-top:28px}.kmhd-intro h1{font-size:36px}.kmhd-description{font-size:16px}.kmhd-toolbar{flex-wrap:wrap;gap:12px}.kmhd-toolbar .kmhd-search{flex-basis:100%}.kmhd-sort{margin-left:auto}.kmhd-sort a{font-size:14px;padding:10px 18px}}

.kmhd-detail-link{display:inline-block;margin:4px 6px 0;padding:4px 10px;border:1px solid #d5d9df;border-radius:8px;color:#737c89;background:transparent;font-size:12px;line-height:18px;text-decoration:none}.kmhd-detail-link:hover{background:#eef0f4;color:#344359}.kmhd-detail-link:focus-visible{outline:2px solid #8aa6d1;outline-offset:2px}

/* Legacy gallery overlays must not intercept card links. */
#bo_gall .kmhd-card *::after{pointer-events:none}#bo_gall .kmhd-card .kmhd-detail-link{position:relative;z-index:2;pointer-events:auto}#bo_gall .kmhd-card .kmhd-detail-link::after{content:none}

/* Neutralize old gallery pseudo-element covers, including mobile. */
#bo_gall .kmhd-card::before,#bo_gall .kmhd-card::after,#bo_gall .kmhd-card *::before,#bo_gall .kmhd-card *::after{content:none!important;pointer-events:none!important;background:none!important;box-shadow:none!important}
#bo_gall .kmhd-card .kmhd-price{display:block;text-decoration:none}#bo_gall .kmhd-card .kmhd-title:hover{color:#416bb0!important}#bo_gall .kmhd-card .kmhd-media{isolation:isolate}#bo_gall .kmhd-card .kmhd-share{z-index:3}#bo_gall .kmhd-card .kmhd-votes{z-index:2}
@media(max-width:700px){body:has(.kmhd-search) main{width:100%;max-width:100%;padding-left:12px;padding-right:12px;box-sizing:border-box}body:has(.kmhd-search) #bo_gall{width:100%!important;max-width:100%;box-sizing:border-box}.kmhd-intro{padding:24px 4px 18px}.kmhd-intro h1{font-size:30px;margin:12px 0;letter-spacing:-1px}.kmhd-kicker{font-size:12px;padding:5px 12px}.kmhd-description{font-size:14px;line-height:1.6;margin-bottom:12px}.kmhd-disclosure{font-size:14px!important;line-height:1.65;word-break:keep-all}.kmhd-toolbar{gap:10px;margin:14px 0 18px}.kmhd-toolbar .kmhd-search{min-height:48px;padding:7px 12px;gap:8px;border-radius:15px}.kmhd-search input[type=search]{font-size:15px;height:32px}.kmhd-search button svg{width:20px;height:20px}.kmhd-sort{gap:8px}.kmhd-sort a{padding:8px 16px;font-size:13px}.kmhd-popular{padding:12px!important;margin:16px 0 24px!important;border-radius:14px;background:rgba(255,255,255,.65)!important}.kmhd-popular>p{font-size:11px;line-height:1.6;margin-bottom:12px}.kmhd-popular ul{gap:20px 12px!important}.kmhd-popular h2{font-size:18px}#bo_gall .kmhd-card{background:transparent!important;border-radius:0!important;box-shadow:none!important}#bo_gall .kmhd-card .kmhd-media{border-radius:11px}#bo_gall .kmhd-card .kmhd-details{padding:9px 2px 0;min-height:132px}#bo_gall .kmhd-card .kmhd-shop{font-size:12px;min-height:18px;gap:4px;margin-bottom:5px}#bo_gall .kmhd-card .kmhd-shop img{width:14px;height:14px}#bo_gall .kmhd-card .kmhd-title{font-size:14px!important;line-height:21px!important;max-height:42px!important;margin-bottom:6px}#bo_gall .kmhd-card .kmhd-price{font-size:19px;line-height:26px;min-height:26px}#bo_gall .kmhd-card .kmhd-price span{font-size:15px}#bo_gall .kmhd-card .kmhd-price-text{font-size:15.2px}#bo_gall .kmhd-card .kmhd-date{font-size:12px;line-height:18px;margin-top:4px}#bo_gall .kmhd-card .kmhd-detail-link{font-size:11px;padding:3px 8px;margin:2px 2px 0}#bo_gall .kmhd-card .kmhd-votes{top:7px;left:7px;padding:5px 7px;gap:4px;font-size:11px;line-height:15px}#bo_gall .kmhd-card .kmhd-votes strong{font-size:12px}#bo_gall .kmhd-card .kmhd-votes svg{width:14px;height:14px}#bo_gall .kmhd-card .kmhd-share{width:32px;height:32px;right:8px;bottom:8px}#bo_gall .kmhd-card .kmhd-share svg{width:17px;height:17px}.kmhd-list-note{font-size:11px}}

#bo_gall .kmhd-card .kmhd-detail-link{background:#17191d;color:#fff;border-color:#17191d;font-weight:600;padding:5px 12px}#bo_gall .kmhd-card .kmhd-detail-link:hover{background:#34373d;border-color:#34373d;color:#fff}

/* Use installed Arial for price digits, with the site font for Korean glyphs. */
#bo_gall .kmhd-card .kmhd-price,#bo_gall .kmhd-card .kmhd-price:not(.kmhd-price-text) strong{font-family:Arial,"Pretendard","Malgun Gothic",sans-serif}#bo_gall .kmhd-card .kmhd-price-text,#bo_gall .kmhd-card .kmhd-price-text strong{font-family:"Pretendard",-apple-system,BlinkMacSystemFont,"Malgun Gothic",sans-serif}
