:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #252a22;
  --muted: #52584b;
  --line: #d2d0c4;
  --green: #263c30;
  font-family: "Noto Sans Thai", "Thonburi", "Leelawadee UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, figure, h1, h2, p { margin: 0; }
body { line-height: 1.6; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #845025; outline-offset: 4px; }
.shell { width: min(100% - 80px, 1220px); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: 10px auto auto 10px; transform: translateY(-150%); background: white; padding: 10px 18px; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; font: 1.34rem/1 Georgia, serif; letter-spacing: .12em; text-decoration: none; }
.wordmark span { font: 650 .65rem/1.1 system-ui, sans-serif; letter-spacing: .12em; }
nav, .actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
nav { gap: clamp(16px, 2.5vw, 36px); }
nav a { font-size: .93rem; text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero { padding-top: clamp(28px, 4vw, 56px); }
.hero-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px 35px; padding-bottom: 24px; }
h1 { font: 400 clamp(2.65rem, 6.6vw, 6.3rem)/.99 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.hero-location { font-size: clamp(1rem, 1.65vw, 1.35rem); margin-top: .7rem; }
.hero-details { flex-shrink: 0; }
.hero-details p { color: var(--muted); margin-bottom: .55rem; }
.hero-photo { aspect-ratio: 2.15; object-fit: cover; object-position: center 56%; background: #c7c8b8; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .6rem .95rem; border: 1px solid transparent; font-size: .95rem; font-weight: 680; line-height: 1.35; text-decoration: none; text-align: center; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #375442; }
.secondary { border-color: #a1a79a; }
.secondary:hover { background: #e9eae0; }
.text-link { font-weight: 650; text-underline-offset: .26em; }
.text-link:hover { color: #56664a; }
h2 { font-size: clamp(1.5rem, 2.55vw, 2.36rem); line-height: 1.35; font-weight: 680; }
.section { padding-block: clamp(42px, 6.2vw, 80px); }
.section h2 { margin-bottom: 17px; }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 14px; }
.gallery-item { grid-column: span 2; }
.gallery-item:nth-child(-n+2) { grid-column: span 3; }
.gallery-item a { display: block; overflow: hidden; background: #e4e0d4; }
.gallery-item img { aspect-ratio: 1.6; object-fit: cover; }
.gallery-item a:hover img { filter: brightness(.92); }
.gallery-item figcaption { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.location { border-block: 1px solid var(--line); padding-block: clamp(28px, 5vw, 58px); }
.location-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .77fr); align-items: center; gap: clamp(24px, 7vw, 99px); }
.location img { aspect-ratio: 1.9; object-fit: cover; }
address { font-style: normal; color: var(--muted); margin: .65rem 0 .85rem; }
address strong { color: var(--ink); }
.booking { padding-block: clamp(32px, 5.3vw, 70px); }
.booking-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px 30px; flex-wrap: wrap; }
.booking p { color: var(--muted); margin-top: .4rem; }
footer { background: #ece9df; border-top: 1px solid var(--line); }
.footer-inner { padding-block: 18px; display: flex; justify-content: space-between; gap: 12px; font-size: .91rem; }
.footer-inner div { display: flex; gap: 15px; }
footer a { text-decoration: none; }
.mobile-book { display: none; }
.lightbox { width: min(calc(100% - 26px), 960px); max-height: 94dvh; border: 0; padding: 12px; background: #232b22; color: white; }
.lightbox::backdrop { background: #141911ee; }
.lightbox img { max-height: 71dvh; object-fit: contain; }
.lightbox-head, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lightbox-head { padding: 0 0 8px 6px; }
.lightbox-controls { padding-top: 8px; }
.lightbox button { border: 1px solid #b7bbae; background: transparent; color: white; min-width: 44px; min-height: 44px; padding: 4px 10px; }
[data-close] { font-size: 1.5rem; line-height: 1; }
@media (max-width: 900px) {
  .hero-heading { align-items: start; flex-direction: column; gap: 12px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; }
  .wordmark { flex-direction: column; gap: 4px; font-size: 1.16rem; }
  .wordmark span { font-size: .53rem; }
  nav { gap: 10px; }
  nav a { font-size: .84rem; padding-block: 10px; }
  .hero-heading { padding-bottom: 16px; }
  .hero-photo { aspect-ratio: 1.39; object-position: center; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }
  .gallery-item, .gallery-item:nth-child(-n+2) { grid-column: span 1; }
  .gallery-item:first-child { grid-column: span 2; }
  .location-grid { grid-template-columns: 1fr; }
  .location img { order: 1; }
  footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .mobile-book { position: fixed; z-index: 2; display: grid; grid-template-columns: 1.7fr 1fr; gap: 8px; left: 0; right: 0; bottom: 0; padding: 8px 18px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
}

.photo-albums { margin-top: clamp(32px, 5vw, 60px); }
.photo-albums h3 { font-size: 1.2rem; margin: 0 0 12px; }
.album-count { margin-left: auto; white-space: nowrap; font-weight: 400; color: var(--muted); font-size: .92rem; }
.album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-bottom: 20px; }
.album-grid a { display: block; background: #e4e0d4; }
.album-grid img { aspect-ratio: 4 / 3; object-fit: cover; }
.album-grid a:hover img { filter: brightness(.92); }
@media (max-width: 760px) {
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

.album-links { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.album-links li { border-top: 1px solid var(--line); }
.album-links a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 3px; text-decoration: none; font-weight: 650; }
.album-links a:hover span:first-child { text-decoration: underline; text-underline-offset: .25em; }
.album-links a::after { content: ""; width: 8px; height: 8px; margin: 0 5px 0 0; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.album-page { min-height: 65vh; }
.album-page h1 { font: 680 clamp(2rem, 5vw, 4rem)/1.2 "Noto Sans Thai", "Thonburi", "Leelawadee UI", system-ui, sans-serif; letter-spacing: normal; margin: .8rem 0 .32rem; }
.album-page > p { color: var(--muted); }
.album-page .photo-albums { margin-top: clamp(22px, 4vw, 44px); }

.album-tabs { position: sticky; top: 0; z-index: 3; background: var(--paper); box-shadow: 0 3px 8px #252a2212; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line); }
.album-tabs a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 61px; padding: 8px 5px; border-bottom: 3px solid transparent; text-decoration: none; text-align: center; font-weight: 650; line-height: 1.3; }
.album-tabs a:hover, .album-tabs [aria-selected="true"] { color: var(--green); background: #eeefe7; }
.album-tabs [aria-selected="true"] { border-color: var(--green); }
.tab-count { color: var(--muted); font-size: .82rem; font-weight: 400; }
.album-panel { scroll-margin-top: 74px; padding-top: 22px; }
.album-panel h2 { font-size: clamp(1.2rem, 2.4vw, 1.75rem); }
@media (max-width: 450px) {
  .album-tabs a { font-size: .86rem; }
}
