/* Mount Morris House NYC — sitewide styles */
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:400 900;font-display:swap;src:url(../fonts/playfair-display-latin.woff2) format("woff2")}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:300 800;font-display:swap;src:url(../fonts/open-sans-latin.woff2) format("woff2")}

:root{
  --ink:#2a2a2a;
  --text:#545454;
  --bg:#f7f8f9;
  --white:#fff;
  --line:#dcdcdc;
  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:"Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --wrap:1140px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--text);font:400 16px/1.6 var(--sans)}
img{max-width:100%;height:auto;display:block}
a{color:var(--ink)}
a:hover{color:#000}
p{margin:0 0 1em}
h1,h2,h3,h4,h5{font-family:var(--serif);font-weight:400;color:var(--ink);line-height:1.25;margin:0 0 .5em}
h1{font-size:clamp(2.1rem,4.2vw,3.4rem)}
h2{font-size:clamp(1.8rem,3.4vw,2.8rem)}
h3{font-size:clamp(1.4rem,2.2vw,1.75rem)}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:1rem;top:-4rem;z-index:200;background:var(--ink);color:#fff;padding:.75rem 1.25rem;text-decoration:none}
.skip-link:focus{top:1rem}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.section{padding:80px 0}
.center{text-align:center}

/* Buttons */
.btn{display:inline-block;background:var(--ink);color:#fff;font:600 12px/1 var(--sans);letter-spacing:2px;text-transform:uppercase;text-decoration:none;padding:18px 34px;border:1px solid var(--ink);transition:background .2s,color .2s}
.btn:hover,.btn:focus-visible{background:#fff;color:var(--ink)}
.btn-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}

/* Header */
.site-header{background:#fff;position:relative;z-index:50}
.header-inner{max-width:1240px;margin:0 auto;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:111px}
.logo img{width:300px;height:79px;object-fit:contain} /* whole-pixel height so everything below lines up on exact pixels */
.nav-toggle{display:none;background:var(--ink);color:#fff;border:0;width:52px;height:52px;cursor:pointer;align-items:center;justify-content:center}
.nav-toggle svg{width:22px;height:22px}
.main-nav ul{list-style:none;margin:0;padding:0}
.main-nav > ul{display:flex;align-items:center}
.main-nav a{display:block;text-decoration:none;color:#000;font-size:14px;text-transform:uppercase;padding:10px 14px}
.main-nav a:hover,.main-nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:6px}
.has-sub{position:relative}
.has-sub > a::after{content:"";display:inline-block;width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin:0 0 3px 8px}
.sub-menu{position:absolute;left:0;top:100%;min-width:220px;background:#fff;border-top:2px solid var(--ink);box-shadow:0 8px 20px rgba(0,0,0,.08);opacity:0;visibility:hidden;transform:translateY(6px);transition:.2s}
.has-sub:hover .sub-menu,.has-sub:focus-within .sub-menu{opacity:1;visibility:visible;transform:none}
.sub-menu a{text-transform:none;padding:12px 18px;border-bottom:1px solid #eee}
.mobile-only{display:none}

@media (max-width:921px){
  .header-inner{min-height:0;padding:14px 20px}
  .logo img{width:220px;height:58px}
  .nav-toggle{display:inline-flex}
  .main-nav{position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid #eee;box-shadow:0 10px 20px rgba(0,0,0,.08);display:none}
  .main-nav.open{display:block;max-height:calc(100vh - 90px);max-height:calc(100dvh - 90px);overflow-y:auto} /* tall menu scrolls inside itself (phones in landscape) */
  .main-nav > ul{flex-direction:column;align-items:stretch}
  .main-nav a{padding:14px 20px;border-bottom:1px solid #eee}
  .has-sub > a::after{display:none}
  .sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0}
  .sub-menu a{padding-left:40px}
  .mobile-only{display:block}
}

/* Hero slideshow (home) */
.hero{position:relative;min-height:660px;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;background:#3a2a22}
.hero-slides{position:absolute;inset:0;margin:0;padding:0;list-style:none}
.hero-slides li{position:absolute;inset:0;opacity:0;transition:opacity 1.5s ease-in-out}
.hero-slides li.is-active{z-index:1}
.hero-slides li.is-leaving{opacity:1} /* stays solid under the incoming slide, so there is no dip in brightness */
.hero-slides li.is-active{opacity:1}
.hero-slides img{width:100%;height:100%;object-fit:cover}
.hero-slides img{will-change:transform;backface-visibility:hidden}
/* Slow zoom. The outgoing slide keeps its zoom ("is-leaving") while it fades out,
   so it doesn't snap back to full size mid-fade. Linear so the zoom has no visible start/stop. */
.hero-slides li.is-active img,.hero-slides li.is-leaving img{animation:kenburns 9s linear both}
@keyframes kenburns{from{transform:scale(1)}to{transform:scale(1.1)}}
@media (prefers-reduced-motion:reduce){.hero-slides li{transition:none}.hero-slides li.is-active img,.hero-slides li.is-leaving img{animation:none}}
.hero-bar{position:relative;z-index:2;background:rgba(42,42,42,.59);border-top:1px solid rgba(255,255,255,.41);padding:12px 20px;text-align:center;min-height:85px;display:flex;align-items:center;justify-content:center} /* always above the slides */
.hero-bar h1{color:#fff;margin:0;font-size:clamp(2rem,3.4vw,2.8rem);line-height:1.25;line-height:round(1.25em,1px)} /* whole-pixel line height: a bar edge that falls between pixels shows as a faint line */
@media (max-width:767px){.hero{min-height:400px}}

/* Page title banner */
.page-title{position:relative;min-height:400px;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;padding:40px 20px}
.page-title picture,.page-title img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.page-title::after{content:"";position:absolute;inset:0;background:rgba(42,42,42,.6)}
.page-title h1{position:relative;z-index:1;color:#fff;margin:0}
@media (max-width:767px){.page-title{min-height:260px}}

/* Intro (home) */
.intro{text-align:center;padding:60px 0 30px}
.intro h2{font-size:clamp(1.6rem,2.6vw,2.2rem)}
.intro .lead{font-family:var(--serif);font-size:clamp(1.1rem,1.6vw,1.35rem);color:var(--ink);line-height:1.6;margin:0}

/* Two-column layouts */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px 40px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media (max-width:767px){.grid-2,.grid-3{grid-template-columns:1fr}}

/* Home suites */
.home-suites{padding:40px 0 60px}
.home-suites .col h3{margin-top:20px}
.home-suites .col-right{display:flex;flex-direction:column}
.home-suites .col-left{display:flex;flex-direction:column}
.home-suites figure{margin:0}
.home-suites img{width:100%;aspect-ratio:550/440;object-fit:cover}
@media (min-width:768px){
  .home-suites .col-left .suite-text{order:-1}
  .home-suites .col-left figure{margin-top:20px}
}
.amenities{padding:20px 0 60px}
.amenities .grid-3{margin:30px 0}
.amenities .grid-3 img{width:100%;aspect-ratio:360/514;object-fit:cover}

/* CTA band */
.cta-band{position:relative;min-height:560px;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;padding:60px 20px}
.cta-band picture,.cta-band img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cta-band::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.45)}
.cta-band .inner{position:relative;z-index:1;max-width:780px}
.cta-band h2{color:#fff}
.cta-band p{color:#fff;margin:0}

/* About */
.about-split{align-items:center}
.about-split .kicker{font-family:var(--serif);font-size:1.25rem;color:var(--ink)}
.about-split img{width:100%}

/* Rooms & Rates */
.room-card{text-align:center}
.room-card img{width:100%;aspect-ratio:1024/680;object-fit:cover}
.room-card h2{font-size:clamp(1.7rem,2.6vw,2.3rem);margin:24px 0 12px}
.room-facts{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 22px;font-size:14px}
.room-facts li{display:flex;align-items:center;gap:8px}
.room-facts svg{width:20px;height:20px;flex:none}

/* Suite detail */
.suite-intro{text-align:center;margin-bottom:30px}
.suite-intro h2{font-size:clamp(1.6rem,2.6vw,2.3rem)}
.suite-detail{display:grid;grid-template-columns:2fr 1fr;gap:30px 50px;align-items:start}
.suite-detail h3{text-align:center;font-size:1.3rem}
.suite-rates{text-align:center}
.suite-rates .rate{font-family:var(--serif);font-size:1.6rem;color:var(--ink);margin-bottom:12px}
.suite-rates .beds{font-family:var(--serif);color:var(--ink);font-size:1.05rem;line-height:1.5;margin-bottom:20px}
@media (max-width:767px){.suite-detail{grid-template-columns:1fr}}

/* Suite photo viewer */
.photo-viewer{margin-top:40px}
.photo-main{position:relative;background:#000}
.photo-main img{width:100%;aspect-ratio:1280/850;object-fit:cover}
.photo-main button{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.45);color:#fff;border:0;width:44px;height:44px;cursor:pointer;font-size:24px;line-height:1}
.photo-main .prev{left:10px}
.photo-main .next{right:10px}
.photo-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin:8px 0 0;padding:0;list-style:none}
.photo-thumbs button{padding:0;border:2px solid transparent;background:none;cursor:pointer;display:block;width:100%}
.photo-thumbs button[aria-current="true"]{border-color:var(--ink)}
.photo-thumbs img{width:100%;aspect-ratio:3/2;object-fit:cover}

/* Gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;list-style:none;margin:30px 0 0;padding:0}
.gallery-grid.cols-3{grid-template-columns:repeat(3,1fr)}
.gallery-grid a{display:block;overflow:hidden}
.gallery-grid img{width:100%;aspect-ratio:2/3;object-fit:cover;transition:transform .3s}
.gallery-grid.square img{aspect-ratio:1}
.gallery-grid a:hover img{transform:scale(1.04)}
@media (max-width:767px){.gallery-grid{grid-template-columns:repeat(2,1fr)}.gallery-grid.cols-3{grid-template-columns:repeat(2,1fr)}}
.rule{width:80px;height:2px;background:var(--ink);border:0;margin:14px auto 0}
.video{position:relative;aspect-ratio:16/9;background:#000}
.video button{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;cursor:pointer;background:none}
.video button img{width:100%;height:100%;object-fit:cover}
/* Play button: large white circle so it stands out on the dark video poster */
.video .play{position:absolute;left:50%;top:50%;width:68px;height:68px;transform:translate(-50%,-50%);background:rgba(255,255,255,.92);border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 5px rgba(255,255,255,.25),0 4px 16px rgba(0,0,0,.45);transition:transform .2s,background .2s}
.video .play svg{width:38px;height:38px;margin-left:4px} /* nudge right so the triangle looks centred */
.video .play svg path{fill:var(--ink)}
.video button:hover .play,.video button:focus-visible .play{background:#fff;transform:translate(-50%,-50%) scale(1.08)}
.video button:focus-visible{outline:3px solid #fff;outline-offset:-6px}
@media (max-width:767px){.video .play{width:56px;height:56px}.video .play svg{width:32px;height:32px;margin-left:3px}}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Lightbox */
.lightbox{position:fixed;inset:0;z-index:300;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;padding:50px 60px}
.lightbox[hidden]{display:none}
.lightbox img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.lightbox button{position:absolute;background:none;border:0;color:#fff;font-size:34px;cursor:pointer;width:50px;height:50px;line-height:1}
.lightbox .lb-close{top:10px;right:10px}
.lightbox .lb-prev{left:6px;top:50%;transform:translateY(-50%)}
.lightbox .lb-next{right:6px;top:50%;transform:translateY(-50%)}
.lightbox .lb-count{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#ccc;font-size:14px}

/* History */
.history-layout{display:grid;grid-template-columns:3fr 1fr;gap:30px 40px;align-items:start}
.history-layout aside{display:flex;flex-direction:column;gap:20px}
.history-layout figure{margin:0}
.history-layout figcaption{font-size:13px;line-height:1.4;margin-top:6px;color:#666}
@media (max-width:767px){.history-layout{grid-template-columns:1fr}.history-layout aside{flex-direction:row;flex-wrap:wrap}.history-layout aside figure{flex:1 1 140px}}

/* Contact */
.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:stretch;background:#fff;box-shadow:0 4px 30px rgba(0,0,0,.05)}
.contact-card{padding:40px}
.contact-card h2{font-size:2rem;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:24px}
.contact-list{list-style:none;margin:0;padding:0}
.contact-list li{display:flex;gap:18px;align-items:flex-start;margin-bottom:24px}
.contact-list svg{width:22px;height:22px;flex:none;margin-top:6px;color:var(--ink)}
.contact-list h3{font-size:1.15rem;margin:0 0 2px}
.contact-list p{margin:0;font-size:14px}
.contact-list a{text-decoration:none}
.contact-list a:hover{text-decoration:underline}
.map{min-height:380px;background:#e9e9e9}
.map iframe{width:100%;height:100%;min-height:380px;border:0;display:block}
@media (max-width:767px){.contact-layout{grid-template-columns:1fr}.contact-card{padding:28px}}

/* Footer */
.site-footer{background:#fff;text-align:center;padding:50px 20px 40px;font-size:14px}
.site-footer .logo img{width:300px;margin:0 auto 14px}
.site-footer p{margin:0 0 4px}
.site-footer a{text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.footer-icons{display:flex;justify-content:center;gap:14px;margin-top:16px}
.footer-icons a{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;color:var(--ink)}
.footer-icons svg{width:16px;height:16px}
.footer-bottom{background:var(--ink);color:#bbb;font-size:12px;text-align:center;padding:20px}
.footer-bottom a{color:#fff;text-decoration:underline;text-underline-offset:3px} /* underlined: white vs #bbb text alone is too close to tell apart */
.footer-bottom a:hover{text-decoration:none}

/* Back to top */
.to-top{position:fixed;right:20px;bottom:20px;width:44px;height:44px;background:var(--ink);color:#fff;border:0;cursor:pointer;opacity:0;visibility:hidden;transition:.2s;z-index:60;display:flex;align-items:center;justify-content:center}
.to-top.show{opacity:.85;visibility:visible}
.to-top:hover{opacity:1}

/* 404 */
.notfound{text-align:center;padding:100px 20px}
