/* HiSoServer Studio — unified visual service gallery, 2026-10-30.
   Same single component + same position below Hero for home and every service route.
   24 original /001.png - /024.png images. Links stay in the same tab.
   Complementary to footer.css and site-premium.css (loaded before this file).
*/
section.hiso-service-gallery {
  --sg-ivory: #faf3e6;
  --sg-gold: #e7c793;
  --sg-gold-soft: #ceb68c;
  --sg-muted: #c5bcb1;
  --sg-line: rgba(237, 201, 141, .21);
  position: relative;
  isolation: isolate;
  padding: clamp(46px, 5.5vw, 78px) 0 clamp(48px, 6.3vw, 89px) !important;
  margin: 0 !important;
  overflow: hidden;
  color: var(--sg-ivory);
  border-top: 1px solid rgba(241, 202, 139, .16);
  border-bottom: 1px solid rgba(241, 202, 139, .16);
  background:
      radial-gradient(ellipse 70% 65% at 12% 0%, rgba(125, 87, 49, .16), transparent 77%),
      radial-gradient(ellipse 55% 58% at 94% 100%, rgba(49, 67, 49, .12), transparent 78%),
      linear-gradient(160deg, #15100e 0%, #100e0d 56%, #0c1010 100%) !important;
  font: 400 15px/1.75 'Noto Sans Thai', 'Sarabun', 'Leelawadee UI', Tahoma, Arial, sans-serif;
  text-align: left;
  letter-spacing: 0;
}
section.hiso-service-gallery *,
section.hiso-service-gallery *::before,
section.hiso-service-gallery *::after { box-sizing: border-box; }
section.hiso-service-gallery :where(h2,h3,p) { margin: 0; padding: 0; }
section.hiso-service-gallery a { text-decoration: none; color: inherit; }
section.hiso-service-gallery .hiso-sg-inner {
  position: relative;
  z-index: 1;
  width: min(var(--hiso-page-max, 1200px), calc(100% - var(--hiso-page-gap, 48px))) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
}
.hiso-service-gallery .hiso-sg-topline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: clamp(19px, 3vw, 32px);
  color: #bcb1a1;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 1.8px;
}
.hiso-service-gallery .hiso-sg-topline-mark {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #efc981; box-shadow: 0 0 0 4px rgba(230, 185, 111, .09);
}
.hiso-service-gallery .hiso-sg-topline-rule {
  width: 58px; height: 1px; background: linear-gradient(90deg,#a78b60,transparent);
}
.hiso-service-gallery .hiso-sg-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 5vw, 68px);
  align-items: end;
  margin-bottom: clamp(26px, 3.7vw, 42px);
}
.hiso-service-gallery .hiso-sg-heading-main { min-width: 0; }
.hiso-service-gallery .hiso-sg-eyebrow {
  display: flex; align-items: center; gap: 9px;
  color: #e6cb9e; font-size: clamp(12px,1.2vw,14px);
  font-weight: 750; letter-spacing: .1px;
}
.hiso-service-gallery .hiso-sg-eyebrow span { font-size: 18px; color: #edcd97; }
.hiso-service-gallery h2#hiso-sg-title {
  color: #fff9ed;
  font-size: clamp(29px, 3.65vw, 49px);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1.3;
  text-shadow: none;
  text-wrap: balance;
  margin: 8px 0 12px;
}
.hiso-service-gallery #hiso-sg-title span {
  color: #ead0a5;
  background: linear-gradient(94deg,#f9deb0 0%,#d8ac72 65%,#f2dfbc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hiso-service-gallery .hiso-sg-intro {
  max-width: 760px;
  color: #c7bfb4;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.9;
}
.hiso-service-gallery .hiso-sg-total {
  display: flex;
  gap: 15px;
  align-items: center;
  min-width: 229px;
  padding: 18px 21px;
  border: 1px solid rgba(228, 195, 144, .30);
  border-radius: 16px;
  background: linear-gradient(125deg, rgba(213, 170, 96, .105), rgba(215, 184, 133, .032));
  box-shadow: inset 0 1px rgba(255, 246, 217, .05);
}
.hiso-service-gallery .hiso-sg-total-n {
  color: #f2d6a3;
  font: 800 clamp(38px, 3.5vw, 49px)/1.04 ui-sans-serif, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.055em;
}
.hiso-service-gallery .hiso-sg-total-n span { font-size: 20px; vertical-align: top; opacity: .68; }
.hiso-service-gallery .hiso-sg-total-text { color: #f3e9d9; font-size: 13px; font-weight: 800; line-height: 1.65; }
.hiso-service-gallery .hiso-sg-total-text small { display: block; color: #a9a095; font-size: 11px; font-weight: 500; }
.hiso-service-gallery .hiso-sg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  width: 100%;
  margin: 0;
  padding: 0;
}
.hiso-service-gallery .hiso-sg-card {
  display: block;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 192, 136, .26);
  border-radius: 19px;
  background: linear-gradient(145deg, #24201d 0%, #171717 55%, #201715 100%);
  box-shadow: 0 14px 30px rgba(0,0,0,.20), inset 0 1px rgba(255,255,255,.04);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(224, 180, 118, .13);
}
.hiso-service-gallery .hiso-sg-card::after {
  content: '';
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: 16px; right: 16px; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(235,190,115,.48),transparent);
  opacity: .47;
}
.hiso-service-gallery .hiso-sg-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: #141211;
  border-bottom: 1px solid rgba(226, 192, 136, .20);
}
.hiso-service-gallery .hiso-sg-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  min-height: 0;
  object-fit: contain !important;
  object-position: center;
  aspect-ratio: 2 / 1;
  filter: saturate(.98);
  transition: transform .35s ease, filter .35s ease;
}
.hiso-service-gallery .hiso-sg-image-index {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 35px; height: 26px;
  color: #f8ddb0;
  background: rgba(14,12,12,.79);
  border: 1px solid rgba(243,202,142,.23);
  border-radius: 7px;
  font: 800 11px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
}
.hiso-service-gallery .hiso-sg-card-body {
  display: flex;
  min-height: 83px;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding: 13px clamp(14px, 1.6vw, 20px) 15px;
}
.hiso-service-gallery .hiso-sg-card-text { min-width: 0; flex: 1; }
.hiso-service-gallery .hiso-sg-category-name {
  display: block;
  color: #baa68c;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: 1.3px;
  margin-bottom: 4px;
}
.hiso-service-gallery .hiso-sg-card h3 {
  color: #f5e7c9;
  font-size: clamp(15px, 1.55vw, 19px);
  font-weight: 820;
  line-height: 1.42;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.hiso-service-gallery .hiso-sg-card-arrow {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px; height: 30px;
  color: #e7c18a;
  border: 1px solid rgba(232,196,145,.24);
  border-radius: 50%;
  background: rgba(238,201,145,.04);
  font: 400 19px/1 ui-sans-serif, system-ui, sans-serif;
  transition: background .2s ease, transform .2s ease;
}
.hiso-service-gallery .hiso-sg-card[aria-current="page"] {
  border-color: rgba(245,207,149,.73);
  box-shadow: 0 18px 42px rgba(0,0,0,.28), 0 0 0 1px rgba(241,205,151,.15), inset 0 1px rgba(255,255,255,.06);
}
.hiso-service-gallery .hiso-sg-card[aria-current="page"] .hiso-sg-card-arrow {
  color: #16100a; background: #e4c38f; border-color: #e4c38f;
}
.hiso-service-gallery .hiso-sg-card:focus-visible {
  outline: 3px solid #ffdd9b;
  outline-offset: 4px;
}
@media (hover:hover) {
  .hiso-service-gallery .hiso-sg-card:hover {
    transform: translateY(-5px);
    border-color: rgba(237, 205, 153, .66);
    box-shadow: 0 23px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(231,197,140,.09);
  }
  .hiso-service-gallery .hiso-sg-card:hover img { transform: scale(1.025); filter: saturate(1.05); }
  .hiso-service-gallery .hiso-sg-card:hover .hiso-sg-card-arrow { transform: translate(2px,-2px); background: rgba(238,201,145,.14); }
}
.hiso-service-gallery .hiso-sg-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(25px, 3.5vw, 38px);
  color: #a9a298;
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
}
.hiso-service-gallery .hiso-sg-bottom-line {
  height: 1px;
  width: 65px;
  flex: none;
  background: linear-gradient(90deg,transparent,rgba(226,190,129,.3),transparent);
}
@media (max-width: 1000px) {
  .hiso-service-gallery .hiso-sg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hiso-service-gallery .hiso-sg-heading { align-items: start; }
  .hiso-service-gallery .hiso-sg-total { min-width: 0; }
}
@media (max-width: 640px) {
  section.hiso-service-gallery { padding: 42px 0 54px !important; }
  .hiso-service-gallery .hiso-sg-inner { width: min(var(--hiso-page-max, 1200px), calc(100% - var(--hiso-page-gap, 24px))) !important; }
  .hiso-service-gallery .hiso-sg-topline { font-size: 9px; gap: 8px; letter-spacing: 1.15px; }
  .hiso-service-gallery .hiso-sg-topline-rule { width: 19px; }
  .hiso-service-gallery .hiso-sg-heading { grid-template-columns: minmax(0,1fr); gap: 20px; margin-bottom: 27px; }
  .hiso-service-gallery h2#hiso-sg-title { font-size: clamp(26px, 6.5vw, 36px); line-height: 1.33; }
  .hiso-service-gallery .hiso-sg-intro { font-size: 14px; }
  .hiso-service-gallery .hiso-sg-total { justify-self: start; padding: 11px 15px; border-radius: 13px; }
  .hiso-service-gallery .hiso-sg-total-n { font-size: 32px; }
  .hiso-service-gallery .hiso-sg-total-text { font-size: 12px; }
  .hiso-service-gallery .hiso-sg-total-text small { font-size: 10px; }
  .hiso-service-gallery .hiso-sg-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .hiso-service-gallery .hiso-sg-card { border-radius: 15px; }
  .hiso-service-gallery .hiso-sg-card-body { min-height: 70px; padding: 10px 14px 12px; }
  .hiso-service-gallery .hiso-sg-card h3 { font-size: 17px; }
  .hiso-service-gallery .hiso-sg-card-arrow { flex-basis: 29px; width: 29px; height: 29px; }
  .hiso-service-gallery .hiso-sg-bottom-line { display: none; }
  .hiso-service-gallery .hiso-sg-bottom { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hiso-service-gallery .hiso-sg-card,
  .hiso-service-gallery .hiso-sg-media img,
  .hiso-service-gallery .hiso-sg-card-arrow { transition: none !important; }
  .hiso-service-gallery .hiso-sg-card:hover { transform: none; }
  .hiso-service-gallery .hiso-sg-card:hover img { transform: none; }
}
