/* Grand Inter: site-specific components and overrides. Loaded after the theme CSS. */

:root {
  --gi-navy: #17234e;
  --gi-pink: #f7edf4;
  --gi-font-ui: "Founders Grotesk Regular", Helvetica, Arial, sans-serif;
  --gi-font-display: "Bw Beto", Georgia, serif;
  --gi-hero-interval: 6s; /* time each hero slide stays on screen */
}

/* The theme's off-canvas menu panel sits just past the right edge; never let the page scroll sideways. */
html, body { overflow-x: clip; }

/* ------------------------------------------------------------------ Thai text
   The theme fonts have no Thai glyphs. These faces reuse the theme's family names but cover only the
   Thai block, so Thai characters render in Anuphan / Noto Serif Thai while Latin text keeps the theme fonts. */
/* Latin faces redeclared with the same weight range as the Thai faces below; otherwise a weight-300
   request matches only the Thai face and Latin text falls back to Georgia/Helvetica. */
@font-face {
  font-family: "Founders Grotesk Regular";
  src: url("../fonts/founders-grotesk-regular.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Bw Beto";
  src: url("../fonts/BwBeto-Light.woff2") format("woff2"), url("../fonts/BwBeto-Light.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Founders Grotesk Regular";
  src: url("../fonts/anuphan-thai.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  size-adjust: 110%; /* Thai glyphs read smaller than the Latin face at the same font-size */
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Bw Beto";
  src: url("../fonts/noto-serif-thai-thai.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* Thai needs room for stacked vowels and tone marks, and no negative tracking */
:lang(th) .so-formatted-title,
.so-formatted-title:lang(th) { letter-spacing: 0; line-height: 1.35; }

/* ------------------------------------------------------------------ Header layout */

/* 8 menu items + language + Book Now need more room than the theme's 900px breakpoint:
   below 1200px use the compact (burger) header instead. */
@media (min-width: 900px) and (max-width: 1199.98px) {
  .nav-container .nav-container__global-nav-desktop,
  .nav-container .nav-container__top-part { display: none; }
  .so-mobile-header-container { display: flex; }
  .so-mobile-header-container .nav-container__book { margin-left: auto; }
}

/* Header sits over the full-screen hero: white until the page scrolls */
.gi-has-hero .nav-container:not(.nav-container--scrolled-from-top) .nav-container__global-nav-desktop,
.gi-has-hero .nav-container:not(.nav-container--scrolled-from-top) .nav-container__global-nav-desktop .so-top-nav-item,
.gi-has-hero .nav-container:not(.nav-container--scrolled-from-top) .nav-container__global-nav-desktop .current-menu-item a,
.gi-has-hero .nav-container:not(.nav-container--scrolled-from-top) .so-mobile-header-container .open-so-mobile-menu {
  color: #fff;
}
.gi-has-hero .nav-container:not(.nav-container--scrolled-from-top) .so-top-nav-item,
.gi-has-hero .nav-container:not(.nav-container--scrolled-from-top) .gi-lang__toggle,
.gi-has-hero .nav-container:not(.nav-container--scrolled-from-top) .so-mobile-header-container .open-so-mobile-menu {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.gi-has-hero .nav-container:not(.nav-container--scrolled-from-top) .so-top-nav-item::after {
  background-color: #fff;
}
.gi-has-hero .nav-container:not(.nav-container--scrolled-from-top) .so-mobile-header-container .burger-menu b {
  background-color: #fff;
}
.gi-has-hero .nav-container:not(.nav-container--scrolled-from-top) .so-mobile-header-container {
  border-bottom-color: rgba(255, 255, 255, .24);
}

/* ------------------------------------------------------------------ Logo */

/* photo/hotel_logo.png is a 400×400 PNG with transparent space around the artwork,
   so it is sized by height and allowed to sit slightly past its box. */
.nav-container .nav-container__top-part .nav-container__logo .gi-logo,
.nav-container .so-mobile-header-container .nav-container__logo .gi-logo {
  display: block;
  width: auto;
  height: 64px;
  max-width: none;
}
.footer .footer-column-logo-top .gi-logo--footer {
  display: block;
  width: auto;
  height: 130px; /* the footer logo row is 115px tall; the artwork itself is ~95px */
  max-width: none;
}

/* Footer social icons (replace the template's Ennismore block under the logo) */
.gi-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  width: 100%;
}
/* matches the footer column headings (BANGKOK, LINKS, SOCIAL) */
.gi-social__title {
  margin: 0;
  color: rgba(35, 37, 78, .56);
  font-family: var(--gi-font-ui);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .1em;
  line-height: 12px;
  text-transform: uppercase;
}
.gi-social__icons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.gi-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #7d8193;
  transition: color .2s, background-color .2s;
}
.gi-social a::before,
.gi-social a::after { display: none; }
.gi-social a:hover { color: var(--gi-navy); background-color: rgba(23, 35, 78, .06); }
.gi-social a:focus-visible { outline: 2px solid var(--gi-navy); outline-offset: 2px; }
/* mobile footer: the theme draws a divider 72px down this row (it separated the old Ennismore block) */
.footer .footer__container .footer-column.footer-column-mobile::before { display: none; }
.footer-column-mobile .gi-social { padding-bottom: 1.5rem; }

/* ------------------------------------------------------------------ Language switcher */

.gi-lang {
  position: relative;
  margin-left: 1.5rem;
  font-family: var(--gi-font-ui);
  font-size: .875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gi-lang__toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: 1;
  cursor: pointer;
}
.gi-lang__flag {
  flex: none;
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}
.gi-lang__chevron { transition: transform .3s; }
.gi-lang.is-open .gi-lang__chevron { transform: rotate(180deg); }

.gi-lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  min-width: 150px;
  margin: 0;
  padding: .5rem 0;
  list-style: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(23, 35, 78, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.gi-lang.is-open .gi-lang__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s, transform .2s;
}
.nav-container .nav-container__global-nav-desktop .gi-lang__menu li { line-height: 1; }
.gi-lang__menu a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.1rem;
  color: var(--gi-navy) !important;
  text-decoration: none;
}
.gi-lang__menu a::after { display: none; }
.gi-lang__menu a:hover,
.gi-lang__menu a:focus-visible { background: var(--gi-pink); }
.gi-lang__menu a[aria-current="true"] { opacity: .5; }

/* inline version inside the mobile menu */
.gi-lang-inline {
  display: flex;
  gap: .75rem;
  padding: 1.5rem 0 .5rem;
}
.gi-lang-inline a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.1rem;
  border: 1px solid rgba(23, 35, 78, .24);
  border-radius: 100px;
  color: var(--gi-navy);
  font-family: var(--gi-font-ui);
  font-size: .875rem;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
.gi-lang-inline a[aria-current="true"] {
  border-color: var(--gi-navy);
  background: var(--gi-navy);
  color: #fff;
}

/* ------------------------------------------------------------------ Hero slider */

.gi-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--gi-navy);
  color: #fff;
}
.gi-hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.gi-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s ease;
}
.gi-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}
.gi-hero__slide.is-active img { transform: scale(1); }

/* shading so the white header, title and controls stay readable on any photo */
.gi-hero::before,
.gi-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}
.gi-hero::before { top: 0; height: 200px; background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .25) 55%, transparent); }
.gi-hero::after { bottom: 0; height: 55%; background: linear-gradient(transparent, rgba(0, 0, 0, .3) 45%, rgba(0, 0, 0, .65)); }

.gi-hero__title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 88px;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-family: var(--gi-font-display);
  font-size: clamp(2.3375rem, 6.8vw, 6.375rem); /* 85% of the original clamp(2.75rem, 8vw, 7.5rem) */
  font-weight: 300;
  line-height: .95;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

/* navigator: prev · progress bars · next · pause */
.gi-hero__nav {
  position: absolute;
  right: 24px;
  bottom: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.gi-hero__arrow,
.gi-hero__pause {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.gi-hero__arrow:hover,
.gi-hero__pause:hover { background: #fff; border-color: #fff; color: var(--gi-navy); }
.gi-hero__arrow:focus-visible,
.gi-hero__pause:focus-visible,
.gi-hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.gi-hero__dots { display: flex; gap: 6px; margin: 0 .25rem; }
.gi-hero__dot {
  position: relative;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.gi-hero__dot::before,
.gi-hero__dot-fill {
  position: absolute;
  left: 0;
  top: 11px;
  height: 2px;
  border-radius: 2px;
}
.gi-hero__dot::before { content: ""; right: 0; background: rgba(255, 255, 255, .4); }
.gi-hero__dot-fill { width: 0; background: #fff; }
.gi-hero__dot.is-active .gi-hero__dot-fill { width: 100%; }

/* autoplay: the active bar fills up; when its animation ends the script moves on */
.gi-hero.is-playing .gi-hero__dot.is-active .gi-hero__dot-fill {
  animation: gi-hero-progress var(--gi-hero-interval) linear forwards;
}
.gi-hero.is-playing:focus-within .gi-hero__dot.is-active .gi-hero__dot-fill,
.gi-hero.is-playing .gi-hero__nav:hover .gi-hero__dot.is-active .gi-hero__dot-fill {
  animation-play-state: paused;
}
@keyframes gi-hero-progress { from { width: 0; } to { width: 100%; } }

.gi-hero__pause .gi-icon-play { display: none; }
.gi-hero:not(.is-playing) .gi-hero__pause .gi-icon-play { display: block; }
.gi-hero:not(.is-playing) .gi-hero__pause .gi-icon-pause { display: none; }

@media (max-width: 767.98px) {
  .gi-hero__title { left: 16px; right: 16px; bottom: 96px; }
  .gi-hero__nav { left: 16px; right: 16px; bottom: 28px; justify-content: space-between; }
  .gi-hero__dots { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .gi-hero__slide,
  .gi-hero__slide.is-active,
  .gi-hero__slide img { transition: none; }
  .gi-hero__slide img { transform: none; }
}

/* Forces the next word of a spread-out heading (.so-space-between) onto a new line */
.gi-line-break { flex-basis: 100%; height: 0; }
@media (max-width: 767.98px) {
  .gi-line-break { display: none; }
  .gi-line-break + span { align-self: flex-start !important; }
}

/* Colour block shown behind images while they load (theme default was #739cce) */
.so-content-animation-container .so-animation-background-color { background-color: #83a7e9; }

/* Contact anchor lands below the fixed header */
#contact { scroll-margin-top: 72px; }
/* "Find Us" panel sits on the blue #83a7e9 background */
#contact .column-title { color: rgba(23, 35, 78, .72); opacity: 1; }
#contact .c-wysiwyg a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ================================================================== Rooms page (rooms.html) */

/* shorter hero for inner pages */
.gi-hero--page {
  height: 72vh;
  height: 72svh;
  min-height: 460px;
}

/* intro + quick links to each room */
.gi-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 24px clamp(48px, 6vw, 80px);
  text-align: center;
}
.gi-intro p {
  margin: 0 0 2.5rem;
  font-size: 1.125rem;
  line-height: 1.75;
}
.gi-room-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .625rem;
}
.gi-room-nav a {
  padding: .7rem 1.2rem;
  border: 1px solid rgba(23, 35, 78, .24);
  border-radius: 100px;
  color: var(--gi-navy);
  font-family: var(--gi-font-ui);
  font-size: .875rem;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.gi-room-nav a::before,
.gi-room-nav a::after { display: none; }
.gi-room-nav a:hover { background: var(--gi-navy); border-color: var(--gi-navy); color: #fff; }

/* one block per room type: gallery + details, alternating sides */
.gi-rooms { padding-bottom: clamp(80px, 10vw, 140px); }
.gi-room {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 24px;
  scroll-margin-top: 96px;
}
.gi-room + .gi-room { margin-top: clamp(80px, 10vw, 150px); }
.gi-room--reverse .gi-room__media { order: 2; }

.gi-room__type {
  margin: 0 0 1.25rem;
  color: rgba(23, 35, 78, .56);
  font-family: var(--gi-font-ui);
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 12px;
  text-transform: uppercase;
}
.gi-room__body .so-formatted-title { margin-bottom: 1.75rem !important; }
.gi-room__body .c-wysiwyg p { line-height: 1.7; }

.gi-room__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(23, 35, 78, .16);
}
.gi-room__features li {
  padding: .8rem 0;
  border-bottom: 1px solid rgba(23, 35, 78, .16);
  font-size: .9375rem;
  line-height: 1.4;
}
.gi-room__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

@media (max-width: 899.98px) {
  .gi-room { grid-template-columns: minmax(0, 1fr); }
  .gi-room--reverse .gi-room__media { order: 0; }
}
@media (max-width: 479.98px) {
  .gi-room__features { grid-template-columns: minmax(0, 1fr); }
}

/* photo gallery: native swipe/scroll-snap, arrows and counter */
.gi-gallery { position: relative; }
.gi-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: #83a7e9;
}
.gi-gallery__track::-webkit-scrollbar { display: none; }
.gi-gallery__track:focus-visible { outline: 2px solid var(--gi-navy); outline-offset: 3px; }
.gi-gallery__slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 3 / 2;
  scroll-snap-align: start;
}
.gi-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gi-gallery__bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  padding-top: 1rem;
}
.gi-gallery__count {
  min-width: 4.5em;
  font-family: var(--gi-font-ui);
  font-size: .875rem;
  letter-spacing: .08em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.gi-gallery__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(23, 35, 78, .24);
  border-radius: 50%;
  background: transparent;
  color: var(--gi-navy);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.gi-gallery__btn:hover { background: var(--gi-navy); border-color: var(--gi-navy); color: #fff; }
.gi-gallery__btn:focus-visible { outline: 2px solid var(--gi-navy); outline-offset: 2px; }

/* "In every room" band */
.gi-amenities {
  padding: clamp(64px, 8vw, 112px) 24px;
  background: #83a7e9;
  color: var(--gi-navy);
}
.gi-amenities__inner { max-width: 1160px; margin: 0 auto; }
.gi-amenities .so-formatted-title { margin-bottom: clamp(40px, 5vw, 64px) !important; }
.gi-amenities__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gi-amenities__list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.4;
}
.gi-amenities__list svg { flex: none; width: 32px; height: 32px; }
.gi-amenities__note {
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(23, 35, 78, .24);
  font-size: 1rem;
  line-height: 1.6;
}
.gi-amenities__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899.98px) {
  .gi-amenities__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479.98px) {
  .gi-amenities__list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

/* Rooms page fixes: button colour, spacing above the feature list, tighter "In Every Room" heading */
.gi-room__actions .so-button-link { color: var(--gi-navy); }
.gi-room__body .c-wysiwyg { margin-bottom: 2rem; }
.gi-room__body .c-wysiwyg p:last-child { margin-bottom: 0; }
.gi-amenities .so-formatted-title { max-width: 620px; }
a[href^="tel:"] { white-space: nowrap; }

/* ================================================================== Meetings & Events page (meetings.html) */

/* key facts under the intro */
.gi-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1160px;
  margin: 0 auto clamp(72px, 9vw, 128px);
  padding: 0 24px;
}
.gi-facts__item {
  padding: 1.75rem 1.5rem 0 0;
  border-top: 1px solid rgba(23, 35, 78, .24);
}
.gi-facts__value {
  display: block;
  margin-bottom: .75rem;
  font-family: var(--gi-font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.gi-facts__label { font-size: .9375rem; line-height: 1.5; }
@media (max-width: 899.98px) {
  .gi-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}
@media (max-width: 479.98px) {
  .gi-facts { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
}

/* centred heading that opens a group of blocks ("Our Venues") */
.gi-section-head {
  max-width: 760px;
  margin: 0 auto clamp(56px, 7vw, 96px);
  padding: 0 24px;
  text-align: center;
}
.gi-section-head .so-formatted-title { display: block !important; margin-bottom: 1.5rem !important; }
.gi-section-head p { margin: 0; font-size: 1.0625rem; line-height: 1.75; }
.gi-venues {
  padding-top: clamp(80px, 10vw, 140px);
  border-top: 1px solid rgba(23, 35, 78, .16);
}

/* venue spec rows: label + value */
.gi-specs {
  margin: 0 0 2.25rem;
  border-top: 1px solid rgba(23, 35, 78, .16);
}
.gi-specs > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(23, 35, 78, .16);
}
.gi-specs dt {
  padding-top: .2rem;
  color: rgba(23, 35, 78, .64);
  font-family: var(--gi-font-ui);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gi-specs dd { margin: 0; font-size: .9375rem; line-height: 1.5; }
@media (max-width: 479.98px) {
  .gi-specs > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
}

/* "Plan your event" contact band */
.gi-enquire {
  padding: clamp(72px, 9vw, 120px) 24px;
  background: #83a7e9;
  color: var(--gi-navy);
}
.gi-enquire__inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  max-width: 1160px;
  margin: 0 auto;
}
.gi-enquire .so-formatted-title { margin-bottom: 1.75rem !important; }
.gi-enquire p { margin: 0 0 1.5rem; font-size: 1.0625rem; line-height: 1.7; }
.gi-enquire__checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gi-enquire__checklist li { display: flex; gap: .6rem; font-size: .9375rem; line-height: 1.5; }
.gi-enquire__checklist li::before { content: "—"; opacity: .6; }
.gi-enquire__contacts {
  margin: 0;
  border-top: 1px solid rgba(23, 35, 78, .32);
}
.gi-enquire__contacts > div {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(23, 35, 78, .32);
}
.gi-enquire__contacts dt {
  margin-bottom: .35rem;
  color: rgba(23, 35, 78, .72);
  font-family: var(--gi-font-ui);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gi-enquire__contacts dd { margin: 0; font-size: 1.125rem; line-height: 1.6; }
.gi-enquire__contacts a { color: inherit; text-decoration: none; }
.gi-enquire__contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gi-enquire__contacts a[href^="mailto:"] { overflow-wrap: anywhere; }
.gi-enquire__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.gi-enquire .so-button-link { color: var(--gi-navy); border-color: rgba(23, 35, 78, .4); }
.gi-enquire .so-button-link--solid { background: var(--gi-navy); border-color: var(--gi-navy); color: #fff; }
@media (max-width: 899.98px) {
  .gi-enquire__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479.98px) {
  .gi-enquire__checklist { grid-template-columns: minmax(0, 1fr); }
}

/* Meetings page fixes */
.gi-facts__value { white-space: nowrap; font-size: clamp(1.75rem, 3vw, 2.75rem); }
.gi-room__actions .so-text-link { color: var(--gi-navy); }
#venues, #enquire, #capacity { scroll-margin-top: 88px; }

/* ================================================================== Gallery page (gallery.html) */

/* category filter: sticks under the fixed header while the grid scrolls */
.gi-filter {
  position: sticky;
  top: 72px;
  z-index: 5;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding: .875rem 24px;
  background: rgba(247, 237, 244, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 35, 78, .12);
}
.gi-filter__inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 1344px; /* = grid width minus its 24px side padding, so the buttons line up with the photos */
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.gi-filter__inner::-webkit-scrollbar { display: none; }
.gi-filter button {
  flex: none;
  padding: .65rem 1.1rem;
  border: 1px solid rgba(23, 35, 78, .24);
  border-radius: 100px;
  background: transparent;
  color: var(--gi-navy);
  font-family: var(--gi-font-ui);
  font-size: .8125rem;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.gi-filter button:hover { border-color: var(--gi-navy); }
.gi-filter button[aria-pressed="true"] { background: var(--gi-navy); border-color: var(--gi-navy); color: #fff; }
.gi-filter button:focus-visible { outline: 2px solid var(--gi-navy); outline-offset: 2px; }
.gi-filter__count {
  margin-left: auto;
  padding-left: 1rem;
  flex: none;
  color: rgba(23, 35, 78, .64);
  font-family: var(--gi-font-ui);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 767.98px) { .gi-filter__count { display: none; } }

/* photo grid */
.gi-gal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 24px clamp(80px, 10vw, 140px);
}
@media (max-width: 1024.98px) { .gi-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .gi-gal { padding-left: 16px; padding-right: 16px; } }
.gi-gal__item { margin: 0; }
.gi-gal__item[hidden] { display: none; }
.gi-gal__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #83a7e9;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
}
.gi-gal__open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gi-gal__open:hover img { transform: scale(1.04); }
.gi-gal__open:focus-visible { outline: 2px solid var(--gi-navy); outline-offset: 3px; }
.gi-gal__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: .4rem .7rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, .9);
  color: var(--gi-navy);
  font-family: var(--gi-font-ui);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.gi-gal__open:hover .gi-gal__tag,
.gi-gal__open:focus-visible .gi-gal__tag { opacity: 1; transform: none; }
@media (hover: none) { .gi-gal__tag { display: none; } }

/* lightbox */
.gi-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 20, 44, .96);
  color: #fff;
}
.gi-lightbox::backdrop { background: rgba(14, 20, 44, .96); }
.gi-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.gi-lightbox__top,
.gi-lightbox__bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 16px 24px;
  font-family: var(--gi-font-ui);
}
.gi-lightbox__count { font-size: .875rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.gi-lightbox__close { margin-left: auto; }
.gi-lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 72px;
}
.gi-lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}
.gi-lightbox__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.gi-lightbox__btn:hover { background: #fff; color: var(--gi-navy); }
.gi-lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gi-lightbox__prev,
.gi-lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.gi-lightbox__prev { left: 16px; }
.gi-lightbox__next { right: 16px; }
.gi-lightbox__bottom { justify-content: center; min-height: 64px; text-align: center; }
.gi-lightbox__cat {
  color: rgba(255, 255, 255, .64);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gi-lightbox__caption { max-width: 720px; margin: 0; font-size: .9375rem; line-height: 1.5; }
@media (max-width: 767.98px) {
  .gi-lightbox__stage { padding: 0; }
  .gi-lightbox__prev,
  .gi-lightbox__next { top: auto; bottom: -56px; transform: none; }
  .gi-lightbox__bottom { flex-direction: column; gap: .35rem; padding: 16px 72px 20px; }
}
@media (max-width: 479.98px) { .gi-filter { padding-left: 16px; padding-right: 16px; } }

/* Home: Meetings & Events card links to meetings.html */
.gi-card-link .image-block-container { display: block; overflow: hidden; }
.gi-card-link .image-block-container .image-block { transition: transform .6s ease; }
.gi-card-link .image-block-container:hover .image-block { transform: scale(1.04); }
.gi-card-link h2 a { color: inherit; text-decoration: none; }
.gi-card-link h2 a::before,
.gi-card-link h2 a::after { display: none; }
.gi-card-link h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.gi-card-link h2 a:focus-visible { outline: 2px solid var(--gi-navy); outline-offset: 4px; }

/* Home: button under the "Discover Our Event" carousel */
.gi-carousel-cta { display: flex; justify-content: center; padding: clamp(32px, 4vw, 56px) 24px 0; }
.gi-carousel-cta .so-button-link { color: var(--gi-navy); }
/* On phones the theme fixes the slide frame at 100% height, so long captions spilled out under the button */
@media (max-width: 899.98px) {
  .image-carousel-block .image-carousel-block__container .image-carousel-block-inner .image-carousel-wrapper .card-item .image-block-container { height: auto; }
}

/* ================================================================== Blog (blog.html + article pages) */

/* article cards */
.gi-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px);
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 24px clamp(80px, 10vw, 140px);
}
.gi-posts--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; padding-bottom: 0; }
@media (max-width: 1024.98px) { .gi-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .gi-posts, .gi-posts--two { grid-template-columns: minmax(0, 1fr); } }
.gi-post { display: flex; flex-direction: column; margin: 0; }
.gi-post__img {
  display: block;
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: #83a7e9;
  aspect-ratio: 3 / 2;
}
.gi-post__img::before, .gi-post__img::after { display: none; }
.gi-post__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gi-post__img:hover img { transform: scale(1.04); }
.gi-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin: 0 0 .9rem;
  color: rgba(23, 35, 78, .64);
  font-family: var(--gi-font-ui);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gi-post__title {
  margin: 0 0 1rem;
  font-family: var(--gi-font-display);
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
}
.gi-post__title a { color: inherit; text-decoration: none; }
.gi-post__title a::before, .gi-post__title a::after { display: none; }
.gi-post__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.gi-post__excerpt { margin: 0 0 1.5rem; font-size: 1rem; line-height: 1.8; }
.gi-post .so-text-link { align-self: flex-start; margin-top: auto; color: var(--gi-navy); }

/* article page */
.gi-hero__title--article {
  max-width: 1100px;
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  line-height: 1.3;
  text-transform: none;
}
.gi-hero__eyebrow {
  position: absolute;
  left: 24px;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-family: var(--gi-font-ui);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.gi-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.75rem 24px;
  border-bottom: 1px solid rgba(23, 35, 78, .16);
  color: rgba(23, 35, 78, .72);
  font-family: var(--gi-font-ui);
  font-size: .875rem;
}
.gi-article-meta a { color: inherit; }
.gi-article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 24px clamp(64px, 8vw, 104px);
}
.gi-article > * + * { margin-top: 1.5rem; }
.gi-article p,
.gi-article li { font-size: 1.125rem; line-height: 1.9; }
.gi-article p { margin-bottom: 0; }
.gi-article .gi-lead { font-size: 1.3125rem; line-height: 1.8; }
.gi-article h2 {
  margin-top: clamp(48px, 6vw, 72px);
  font-family: var(--gi-font-display);
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
}
.gi-article h3 { margin-top: 2rem; font-size: 1.25rem; font-weight: 500; line-height: 1.5; }
.gi-article ul { padding-left: 1.25rem; }
.gi-article li + li { margin-top: .35rem; }
.gi-article a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.gi-article a::before, .gi-article a::after { display: none; }
.gi-article strong { font-weight: 500; }
.gi-article figure { margin: clamp(32px, 4vw, 48px) 0; }
.gi-article figure img { display: block; width: 100%; height: auto; background: #83a7e9; }
.gi-article figcaption {
  margin-top: .75rem;
  color: rgba(23, 35, 78, .72);
  font-size: .9375rem;
  line-height: 1.6;
}
.gi-article .gi-figure-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gi-article .gi-figure-pair img { aspect-ratio: 4 / 3; object-fit: cover; }
.gi-article .gi-figure-pair figcaption { grid-column: 1 / -1; margin-top: 0; }
@media (min-width: 1100px) {
  .gi-article .gi-wide { margin-left: -120px; margin-right: -120px; }
}

/* highlight box and tables */
.gi-callout {
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--gi-navy);
  background: rgba(131, 167, 233, .22);
}
.gi-callout > * + * { margin-top: .75rem; }
.gi-callout__title {
  margin: 0;
  font-family: var(--gi-font-ui);
  font-size: 12px !important;
  letter-spacing: .1em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}
.gi-callout ul { margin: 0; }
.gi-table-wrap { overflow-x: auto; }
.gi-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.gi-table caption { margin-bottom: .75rem; text-align: left; color: rgba(23, 35, 78, .72); font-size: .9375rem; }
.gi-table th,
.gi-table td { padding: .85rem 1rem .85rem 0; border-bottom: 1px solid rgba(23, 35, 78, .16); text-align: left; vertical-align: top; }
.gi-table thead th {
  border-bottom-color: rgba(23, 35, 78, .4);
  color: rgba(23, 35, 78, .72);
  font-family: var(--gi-font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gi-table td.num, .gi-table th.num { text-align: right; padding-right: 0; padding-left: 1rem; white-space: nowrap; }
.gi-note { color: rgba(23, 35, 78, .72); font-size: .9375rem !important; }

/* contact box at the end of an article */
.gi-article-cta {
  margin-top: clamp(48px, 6vw, 72px) !important;
  padding: clamp(28px, 4vw, 44px);
  background: #83a7e9;
}
.gi-article-cta h2 { margin-top: 0; }
.gi-article-cta dl { margin: 1.5rem 0 0; border-top: 1px solid rgba(23, 35, 78, .32); }
.gi-article-cta dl > div {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(23, 35, 78, .32);
}
.gi-article-cta dt { font-size: .9375rem; color: rgba(23, 35, 78, .8); }
.gi-article-cta dd { margin: 0; font-size: 1.0625rem; }
.gi-article-cta dd a { text-decoration: none; }
.gi-article-cta dd a:hover { text-decoration: underline; }
.gi-article-cta .gi-enquire__actions { margin-top: 1.75rem; }
.gi-article-cta .so-button-link { color: var(--gi-navy); border-color: rgba(23, 35, 78, .4); text-decoration: none; }
.gi-article-cta .so-button-link--solid { background: var(--gi-navy); border-color: var(--gi-navy); color: #fff; }
@media (max-width: 479.98px) {
  .gi-article-cta dl > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
}

/* "more articles" block */
.gi-related {
  padding: clamp(64px, 8vw, 104px) 0 clamp(80px, 10vw, 140px);
  border-top: 1px solid rgba(23, 35, 78, .16);
}
.gi-related .gi-section-head { margin-bottom: clamp(32px, 4vw, 56px); }

/* Blog fixes: long Thai titles on a busy photo need a stronger shade; tables hint that they scroll */
.gi-hero:has(.gi-hero__title--article)::after { height: 75%; background: linear-gradient(transparent, rgba(0, 0, 0, .35) 35%, rgba(0, 0, 0, .72)); }
.gi-hero__title--article { text-shadow: 0 2px 20px rgba(0, 0, 0, .45); }
@media (max-width: 767.98px) {
  .gi-hero__title--article { bottom: 40px; font-size: 1.75rem; }
}
.gi-table-wrap { position: relative; }
@media (max-width: 639.98px) {
  .gi-table-wrap::after {
    content: "เลื่อนดูเพิ่มเติม →";
    display: block;
    margin-top: .5rem;
    color: rgba(23, 35, 78, .64);
    font-size: .8125rem;
    text-align: right;
    position: sticky;
    left: 0;
  }
}

/* Footer language switch (replaces the template's WPML dropdown) */
.gi-lang-inline--footer { flex-wrap: wrap; padding: 0; gap: .5rem; }
.gi-lang-inline--footer a { padding: .55rem .9rem; font-size: .75rem; }
.gi-lang-inline--footer a::before, .gi-lang-inline--footer a::after { display: none; }

/* Room / venue titles scale with their text column so long words ("TWIN/DOUBLE", "& CELEBRATIONS")
   never run past it in the narrow two-column range (about 900–1200px). */
.gi-room__body { container-type: inline-size; }
.gi-room__body .so-formatted-title { font-size: min(3.5rem, 10cqi); line-height: 1.15; }
:lang(th) .gi-room__body .so-formatted-title { line-height: 1.35; }

.gi-nowrap { white-space: nowrap; }

/* Meetings key facts: size each value to its own column so "IN-HOUSE" / "ON-SITE" never overlap (about 900–1200px) */
.gi-facts__item { container-type: inline-size; }
.gi-facts__value { font-size: min(2.75rem, 14.5cqi); }

/* Meetings: room size & capacity table */
.gi-capacity { max-width: 1344px; margin: 0 auto clamp(72px, 9vw, 120px); padding: 0 24px; }
.gi-capacity__title {
  margin: 0 0 1.5rem;
  font-family: var(--gi-font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 300;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.gi-cap { width: 100%; min-width: 860px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.gi-cap caption { margin-bottom: 1rem; text-align: left; color: rgba(23, 35, 78, .72); font-size: .9375rem; }
.gi-cap th, .gi-cap td { padding: 1rem .75rem; border-bottom: 1px solid rgba(23, 35, 78, .16); vertical-align: middle; }
.gi-cap thead th {
  color: rgba(23, 35, 78, .72);
  font-family: var(--gi-font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: left;
  vertical-align: bottom;
}
.gi-cap thead .gi-cap__group { padding-bottom: .5rem; text-align: center; border-bottom-color: rgba(23, 35, 78, .4); }
.gi-cap thead tr:last-child th, .gi-cap thead th[rowspan] { border-bottom-color: rgba(23, 35, 78, .4); }
.gi-cap .num { text-align: right; white-space: nowrap; }
.gi-cap .gi-cap__layout { text-align: center; min-width: 76px; }
.gi-cap__icon { display: block; width: 26px; height: 26px; margin: 0 auto .5rem; color: var(--gi-navy); }
.gi-cap tbody th { text-align: left; font-weight: 500; font-size: 1rem; line-height: 1.35; }
.gi-cap tbody th span { display: block; }
.gi-cap__floor { margin-top: .2rem; color: rgba(23, 35, 78, .6); font-size: .8125rem; font-weight: 400; }
.gi-cap tbody td { font-size: 1.0625rem; }
.gi-cap tbody td:nth-child(n+4) { text-align: center; }
.gi-cap tbody tr:first-child { background: rgba(131, 167, 233, .18); }
.gi-cap__dims { color: rgba(23, 35, 78, .8); font-size: .9375rem !important; }
.gi-capacity .gi-note { margin: 1rem 0 0; }
/* first column stays visible while the table scrolls sideways on small screens */
@media (max-width: 899.98px) {
  .gi-cap tbody th, .gi-cap thead .gi-cap__room { position: sticky; left: 0; z-index: 1; background: #f7edf4; min-width: 170px; }
  .gi-cap tbody tr:first-child th { background: #e9e3f4; }
}
/* table scroll hint: English by default, Thai on Thai pages */
@media (max-width: 899.98px) { .gi-table-wrap.gi-cap__wrap::after { content: "Swipe to see all layouts →"; display: block; margin-top: .5rem; color: rgba(23, 35, 78, .64); font-size: .8125rem; text-align: right; position: sticky; left: 0; } }
@media (max-width: 639.98px) { .gi-table-wrap::after { content: "Swipe to see more →"; } }
@media (max-width: 639.98px) { :lang(th) .gi-table-wrap::after { content: "เลื่อนดูเพิ่มเติม →"; } }
@media (max-width: 899.98px) { :lang(th) .gi-table-wrap.gi-cap__wrap::after { content: "เลื่อนดูรูปแบบการจัดห้องเพิ่มเติม →"; } }

/* Rooms: single-line room names. --fit / --fit-th = how many cqi make each name exactly fill its column (measured per font) */
.gi-room__body .gi-room__title--one { display: block !important; white-space: nowrap; font-size: min(3.5rem, calc(var(--fit) * 1cqi)); }
:lang(th) .gi-room__body .gi-room__title--one { font-size: min(3.5rem, calc(var(--fit-th) * 1cqi)); }

/* Rooms: room size shown as a full-width first row of the feature list */
.gi-room__features .gi-room__size { grid-column: 1 / -1; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Home "Find Us": always show the whole map; any space the map doesn't fill is light grey */
#contact .image-block-container .so-content-animation-container { background: #eceef1; }
#contact .image-block-container img.image-block { object-fit: contain; object-position: center; }
/* the theme makes contact links inline-block, which pushed the text after "Sinsakhon Industrial Estate" onto a new line */
#contact .c-wysiwyg a[href*="maps.app.goo.gl/uCvG"] { display: inline; text-decoration: underline; text-underline-offset: 3px; }
