/* Maison 58 gallery: video carousel, scroll marquee, service media, lightbox, gold cursor */
html{overflow-x:clip}
.m58-eyebrow{font-family:"Roboto",Arial,sans-serif;font-size:12px;letter-spacing:.32em;text-transform:uppercase;color:#7A6048;margin:0 0 14px}

/* Video carousel */
.m58-vc{position:relative;width:100vw;margin-left:calc(50% - 50vw);background:#FBF8F2;padding:90px 0;overflow:hidden}
.m58-vc__inner{max-width:1300px;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:60px;align-items:center}
.m58-vc__copy{position:relative;z-index:2}
.m58-vc__nav{display:flex;align-items:center;gap:12px;margin-bottom:34px}
.m58-vc__arrow{width:58px;height:58px;border-radius:50%;border:1px solid #C9B08F;background:transparent;color:#3B3227;font-size:20px;line-height:1;display:grid;place-items:center;cursor:pointer;transition:background-color .3s,border-color .3s,color .3s;padding:0}
.m58-vc__arrow:hover,.m58-vc__arrow:focus-visible{background:#C9B08F;border-color:#C9B08F;color:#3B3227;outline:none}
.m58-vc__count{margin-left:10px;font-family:"Roboto",Arial,sans-serif;font-size:13px;letter-spacing:.18em;color:#857A6F}
.m58-vc__count b{color:#3B3227;font-weight:500}
.m58-vc__title{font-size:clamp(38px,4.2vw,64px)!important;line-height:1!important;color:#3B3227!important;margin:0 0 22px!important}
.m58-vc__text{font-size:17px;line-height:1.7;color:#6B6157;max-width:440px;margin:0 0 26px}
.m58-vc__cap{font-family:"Roboto",Arial,sans-serif;font-size:13px;letter-spacing:.2em;text-transform:uppercase;color:#3B3227;border-left:2px solid #A58C70;padding:14px 18px;background:#F3ECE2;max-width:440px;margin:0 0 30px;transition:opacity .35s}
.m58-vc__btn{display:inline-flex!important;align-items:center;padding:18px 34px!important;font-size:13px;letter-spacing:.18em;text-transform:uppercase;text-decoration:none}
.m58-vc__stage{position:relative;height:660px;clip-path:inset(-40px -100vw -40px 0)}
.m58-vc__track{position:absolute;left:0;top:50%;display:flex;align-items:center;gap:28px;transform:translate3d(0,-50%,0);transition:transform .8s cubic-bezier(.65,.05,.25,1);will-change:transform}
.m58-vc__item{position:relative;flex:0 0 auto;width:420px;height:525px;margin:0;border-radius:16px;overflow:hidden;background:#E6D9CA;transition:width .8s cubic-bezier(.65,.05,.25,1),height .8s cubic-bezier(.65,.05,.25,1),opacity .6s,filter .6s;opacity:.55;filter:saturate(.6);cursor:pointer}
.m58-vc__item.is-active{width:520px;height:650px;opacity:1;filter:none}
.m58-vc__item video,.m58-media__item video{width:100%;height:100%;object-fit:cover;display:block}
.m58-vc__item::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(59,50,39,0) 55%,rgba(59,50,39,.55));pointer-events:none}
.m58-vc__item figcaption,.m58-media__item figcaption{position:absolute;left:22px;bottom:18px;right:22px;z-index:2;color:#FBF8F2;font-family:"Roboto",Arial,sans-serif;font-size:12px;letter-spacing:.24em;text-transform:uppercase;opacity:0;transform:translateY(8px);transition:opacity .5s,transform .5s}
.m58-vc__item.is-active figcaption,.m58-media__item figcaption{opacity:1;transform:none}
.m58-vc__play{position:absolute;left:50%;top:50%;z-index:3;width:92px;height:92px;margin:-46px 0 0 -46px;border-radius:50%;border:1px solid rgba(251,248,242,.7);background:rgba(59,50,39,.25);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);cursor:pointer;display:grid;place-items:center;padding:0;transition:transform .35s,background-color .35s,opacity .35s}
.m58-vc__play span{width:0;height:0;border-style:solid;border-width:11px 0 11px 18px;border-color:transparent transparent transparent #FBF8F2;margin-left:5px}
.m58-vc__play:hover,.m58-vc__play:focus-visible{background:#C9B08F;border-color:#C9B08F;transform:scale(1.06);outline:none}
.m58-vc__play:hover span,.m58-vc__play:focus-visible span{border-left-color:#3B3227}
.m58-vc__item:not(.is-active) .m58-vc__play{opacity:0;pointer-events:none}
.is-sound .m58-vc__play{opacity:0}
.is-sound:hover .m58-vc__play{opacity:1}
.is-sound .m58-vc__play span{width:16px;height:18px;border:0;border-left:5px solid #FBF8F2;border-right:5px solid #FBF8F2;margin:0}
.is-sound .m58-vc__play:hover span{border-color:#3B3227}

/* Scroll marquee */
.m58-mq{position:relative;width:100vw;margin-left:calc(50% - 50vw);padding:10px 0 30px;overflow:hidden}
.m58-mq__row{overflow:hidden;padding:10px 0}
.m58-mq__track{display:flex;gap:20px;width:max-content;will-change:transform}
.m58-mq__item{position:relative;flex:0 0 auto;display:block;height:clamp(260px,26vw,380px);aspect-ratio:4/5;border-radius:16px;overflow:hidden;background:#E6D9CA}
.m58-mq__item img{width:100%!important;height:100%!important;object-fit:cover;display:block;transition:transform 1.1s cubic-bezier(.2,.7,.2,1),filter .6s}
.m58-mq__item::after{content:"";position:absolute;inset:0;border:1px solid rgba(201,176,143,0);border-radius:16px;transition:border-color .4s;pointer-events:none}
.m58-mq__item:hover img{transform:scale(1.06)}
.m58-mq__item:hover::after{border-color:#C9B08F}
.m58-mq__row:nth-child(2) .m58-mq__item{aspect-ratio:5/4}

/* Section headers on the gallery page */
.m58-gh{max-width:760px;margin:90px auto 40px;text-align:center;padding:0 20px}
.m58-gh h2{font-size:clamp(34px,3.6vw,56px)!important;line-height:1.05!important;color:#3B3227!important;margin:0 0 18px!important}
.m58-gh p{font-size:17px;line-height:1.7;color:#6B6157;margin:0}
.m58-gh::after{content:"";display:block;width:64px;height:1px;background:#A58C70;margin:26px auto 0}
.m58-gcta{text-align:center;margin:50px 0 30px}
.m58-gcta .m58-btn,.m58-vc__btn{display:inline-flex!important;align-items:center;padding:18px 34px!important;font-family:"Roboto",Arial,sans-serif;font-size:13px!important;letter-spacing:.18em;text-transform:uppercase;text-decoration:none!important;line-height:1.2}

/* Inline service media */
.m58-media{display:grid;gap:18px;margin:34px 0 40px;grid-template-columns:repeat(3,minmax(0,1fr))}
.m58-media--1{grid-template-columns:minmax(0,1fr);max-width:520px}
.m58-media--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.m58-media__item{position:relative;margin:0!important;border-radius:14px;overflow:hidden;aspect-ratio:4/5;background:#E6D9CA}
.m58-media__item a,.m58-media__item img{display:block;width:100%!important;height:100%!important;object-fit:cover;transition:transform 1s cubic-bezier(.2,.7,.2,1)}
.m58-media__item a:hover img{transform:scale(1.05)}
.m58-media__item--video::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(59,50,39,0) 60%,rgba(59,50,39,.5));pointer-events:none}
.m58-media__item .m58-vc__play{width:72px;height:72px;margin:-36px 0 0 -36px}

/* Lightbox */
.m58-lb{position:fixed;inset:0;z-index:100000;background:rgba(43,36,28,.94);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .35s,visibility .35s}
.m58-lb.is-open{opacity:1;visibility:visible}
.m58-lb img{max-width:min(92vw,1200px);max-height:86vh;width:auto;height:auto;border-radius:10px;box-shadow:0 30px 80px rgba(0,0,0,.4)}
.m58-lb button{position:absolute;width:54px;height:54px;border-radius:50%;border:1px solid #C9B08F;background:transparent;color:#FBF8F2;font-size:20px;cursor:pointer;display:grid;place-items:center;padding:0;transition:background-color .3s,color .3s}
.m58-lb button:hover,.m58-lb button:focus-visible{background:#C9B08F;color:#3B3227;outline:none}
.m58-lb__close{top:24px;right:24px}
.m58-lb__prev{left:24px;top:50%;margin-top:-27px}
.m58-lb__next{right:24px;top:50%;margin-top:-27px}

/* Gold cursor (fine pointers only) */
.m58-cursor,.m58-cursor-dot{position:fixed;left:0;top:0;z-index:100001;pointer-events:none;border-radius:50%;opacity:0;transition:opacity .3s}
.m58-cursor{width:38px;height:38px;margin:-19px 0 0 -19px;border:1.5px solid #A58C70;display:grid;place-items:center;transition:opacity .3s,width .35s cubic-bezier(.2,.7,.2,1),height .35s cubic-bezier(.2,.7,.2,1),margin .35s cubic-bezier(.2,.7,.2,1),background-color .35s,border-color .35s}
.m58-cursor-dot{width:6px;height:6px;margin:-3px 0 0 -3px;background:#A58C70}
.m58-cursor span{font-family:"Roboto",Arial,sans-serif;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#FBF8F2;opacity:0;transition:opacity .25s}
html.m58-has-cursor .m58-cursor,html.m58-has-cursor .m58-cursor-dot{opacity:1}
html.m58-has-cursor.m58-cursor-out .m58-cursor,html.m58-has-cursor.m58-cursor-out .m58-cursor-dot{opacity:0}
.m58-cursor.is-link{width:58px;height:58px;margin:-29px 0 0 -29px;background:rgba(201,176,143,.18);border-color:#C9B08F}
.m58-cursor.is-label{width:86px;height:86px;margin:-43px 0 0 -43px;background:#A58C70;border-color:#A58C70}
.m58-cursor.is-label span{opacity:1}
.m58-cursor.is-label+.m58-cursor-dot{opacity:0!important}
html.m58-has-cursor [data-cursor],html.m58-has-cursor [data-cursor] *{cursor:none!important}

@media (max-width:1024px){
 .m58-vc__inner{grid-template-columns:minmax(0,1fr);gap:40px}
 .m58-vc__stage{height:560px;clip-path:inset(-40px -100vw -40px -100vw)}
 .m58-vc__item{width:340px;height:425px}
 .m58-vc__item.is-active{width:440px;height:550px}
}
@media (max-width:767px){
 .m58-vc{padding:60px 0}
 .m58-vc__stage{height:470px}
 .m58-vc__item{width:62vw;height:calc(62vw * 1.25)}
 .m58-vc__item.is-active{width:74vw;height:calc(74vw * 1.25)}
 .m58-vc__arrow{width:50px;height:50px}
 .m58-media,.m58-media--2,.m58-media--3{grid-template-columns:minmax(0,1fr)}
 .m58-mq__item{height:240px}
 .m58-gh{margin:60px auto 28px}
 .m58-lb__prev,.m58-lb__next{top:auto;bottom:24px;margin:0}
}
/* No white strip between the page banner and a full-width gallery section that opens the page (12 Oct 2026) */
.page_content_wrap:has(.post_content > .m58-vc:first-child),.page_content_wrap:has(.post_content > .m58-mq:first-child){padding-top:0!important}
.post_content > .m58-vc:first-child,.post_content > .m58-mq:first-child{margin-top:0!important}

/* Touch devices: swipeable carousel and finger-scrolled photo strips (v2, 12 Oct 2026) */
.m58-vc__stage{touch-action:pan-y;-webkit-user-select:none;user-select:none}
.m58-vc__item video{pointer-events:none}
.m58-mq--swipe .m58-mq__row{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;scrollbar-width:none;padding:8px 16px;scroll-padding:0 16px;overscroll-behavior-x:contain}
.m58-mq--swipe .m58-mq__row::-webkit-scrollbar{display:none}
.m58-mq--swipe .m58-mq__track{transform:none!important;will-change:auto;gap:12px}
.m58-mq--swipe .m58-mq__item{scroll-snap-align:start}
.m58-mq--swipe .m58-mq__item[aria-hidden="true"]{display:none}
.m58-mq--swipe .m58-mq__item:hover img{transform:none}
.m58-lb{touch-action:pan-y}
@media (max-width:767px){
 .m58-mq--swipe .m58-mq__item{height:auto;width:72vw;aspect-ratio:4/5}
 .m58-mq--swipe .m58-mq__row:nth-child(2) .m58-mq__item{width:80vw;aspect-ratio:5/4}
 .m58-lb img{max-width:100vw;max-height:78vh;border-radius:0}
 .m58-lb__close{top:14px;right:14px}
 .m58-lb__prev{left:16px}.m58-lb__next{right:16px}
}
@media (prefers-reduced-motion:reduce){
 .m58-vc__track,.m58-vc__item{transition:none}
 .m58-mq__item img{transition:none}
}
