/* Typhu Homes property photo gallery: hero, "See all photos" grid, zoom view. Plain CSS, no library. */
.thg{position:relative}
.thg-hero{display:grid;grid-template-columns:1fr;gap:8px;border-radius:16px;overflow:hidden}
.thg-open{display:block;padding:0;margin:0;border:0;background:#e2e8f0;cursor:zoom-in;position:relative;overflow:hidden;width:100%;height:100%}
.thg-open img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.thg-open:hover img{transform:scale(1.03)}
.thg-open:focus-visible,.thg-all:focus-visible,.thg-btn:focus-visible,.thg-cell:focus-visible{outline:3px solid #0ea5e9;outline-offset:-3px}
.thg-main{aspect-ratio:3/2}
.thg-rail{display:none}
.thg-all{position:absolute;right:12px;bottom:12px;z-index:2;background:#fff;color:#0f172a;border:1px solid #cbd5e1;border-radius:10px;padding:10px 16px;font-family:inherit;font-weight:600;font-size:15px;line-height:1.1;box-shadow:0 2px 8px rgba(0,0,0,.2);cursor:pointer}
.thg-all:hover{background:#f1f5f9}
@media(min-width:640px){
  .thg-hero{grid-template-columns:1fr 1fr;grid-template-rows:1fr;aspect-ratio:2/1}
  .thg-main{aspect-ratio:auto;height:100%}
  .thg-rail{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:8px}
  .thg-rail .thg-open{aspect-ratio:auto}
}
/* overlays */
.thg-ov{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column}
.thg-grid-ov{background:#fff;overflow:hidden}
.thg-lb-ov{background:rgba(2,6,23,.98);z-index:2147483100;touch-action:pan-y}
.thg-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;flex:none}
.thg-grid-ov .thg-bar{border-bottom:1px solid #e2e8f0;color:#0f172a}
.thg-lb-ov .thg-bar{color:#e2e8f0}
.thg-title{font-family:inherit;font-weight:600;font-size:16px;line-height:1.3;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thg-btn{background:transparent;border:0;color:inherit;cursor:pointer;font-family:inherit;font-size:16px;font-weight:600;border-radius:999px;min-width:44px;min-height:44px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center}
.thg-grid-ov .thg-btn:hover{background:#f1f5f9}
.thg-lb-ov .thg-btn:hover{background:rgba(255,255,255,.15)}
.thg-scroll{overflow-y:auto;padding:16px;flex:1;-webkit-overflow-scrolling:touch}
.thg-cells{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;max-width:1200px;margin:0 auto}
@media(min-width:700px){.thg-cells{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1000px){.thg-cells{grid-template-columns:repeat(4,1fr)}}
.thg-cell{padding:0;border:0;background:#e2e8f0;border-radius:10px;overflow:hidden;cursor:zoom-in;aspect-ratio:3/2;display:block}
.thg-cell img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}
.thg-cell:hover img{transform:scale(1.04)}
.thg-stage{flex:1;position:relative;display:flex;align-items:center;justify-content:center;min-height:0;padding:0 8px}
.thg-stage img{max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.thg-nav{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;background:rgba(15,23,42,.65);color:#fff;border:1px solid rgba(255,255,255,.35);font-size:26px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2}
.thg-nav:hover{background:rgba(15,23,42,.9)}
.thg-prev{left:12px}.thg-next{right:12px}
.thg-cap{flex:none;color:#cbd5e1;text-align:center;padding:10px 16px 18px;font-size:14px;min-height:46px}
.thg-count{font-variant-numeric:tabular-nums;color:#e2e8f0;font-size:15px;font-weight:600}
@media(max-width:639px){.thg-nav{width:44px;height:44px;font-size:22px}.thg-prev{left:4px}.thg-next{right:4px}}
.thg-noscroll{overflow:hidden}
.thg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(prefers-reduced-motion:reduce){.thg-open img,.thg-cell img{transition:none}}
