/* VIDEOS + GALLERY (one section). Loads after css/square.css. Delete the <link> and restore the old #gallery block to undo. */
/* No hover effects in this section or in #why ("Palatial luxury..."): nothing moves, zooms or changes colour on mouse-over. */

.mjm-bar{display:flex;justify-content:space-between;align-items:center;gap:14px 24px;flex-wrap:wrap;margin:0 0 22px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.14)}
.mjm-tabs{display:flex;max-width:100%}
.mjm-tabs button{min-height:44px;margin-left:-1px;padding:0 22px;background:none;border:1px solid rgba(255,255,255,.24);color:#cfe0e0;font:500 13px/1 Poppins,sans-serif;letter-spacing:.08em;cursor:pointer}
.mjm-tabs button:first-child{margin-left:0}
.mjm-tabs button b{margin-left:8px;color:#f2a56b;font-weight:500}
.mjm-tabs button[aria-selected="true"]{background:#d0383d;border-color:#d0383d;color:#fff;position:relative;z-index:1}
.mjm-tabs button[aria-selected="true"] b{color:#fff}
.mjm-count{margin:0;font-size:13px;color:#9fb7b9}

/* grid: row height scales with the screen, so the layout holds at any width */
.mjm-grid{--rh:clamp(112px,15vw,200px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:var(--rh);grid-auto-flow:dense;gap:12px}
.mjm-wide{grid-column:span 2}
.mjm-grid.is-filtered .mjm-wide{grid-column:auto}
.mjm-tile{position:relative;display:block;min-width:0;padding:0;overflow:hidden;background:#091d23;border:1px solid rgba(255,255,255,.16);text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mj .mjm-tile,.mj .mjm-tile:hover{color:#fff;text-decoration:none}
.mjm-tile[hidden],.mjm-block[hidden]{display:none}
.mjm-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;max-width:none}
.mjm-cap{position:absolute;left:0;right:0;bottom:0;padding:38px 16px 13px;background:linear-gradient(transparent,rgba(9,29,35,.94));font:600 20px/1.15 'Cormorant Garamond',Georgia,serif}
.mjm-video img{filter:brightness(.62) saturate(.85)}
.mjm-tag{position:absolute;top:12px;left:12px;padding:5px 11px;background:#0d2b33;border:1px solid #d0383d;font-size:11px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;line-height:1}

/* blocks + sub-headings */
.mjm-block+.mjm-block{margin-top:54px}
.mjm-sub{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 16px}
.mj .mjm-sub h3{margin:0;font-size:clamp(24px,2.4vw,30px);color:#fff}
.mjm-sub span{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#f2a56b}
.mjm-sub i{font-style:normal;margin:0 6px;color:rgba(255,255,255,.4)}

/* VIDEOS: one 16:9 video + two 9:16 Shorts. 256 : 81 : 81 makes all three exactly the same height. */
.mjv{display:grid;grid-template-columns:256fr 81fr 81fr;gap:12px;align-items:stretch}
.mjv .mjm-tile{border-bottom:3px solid #d0383d}
.mjv-main{aspect-ratio:16/9}
.mjv-short{min-height:0}
.mjm-cap small{display:block;margin-top:5px;font:500 11px/1 Poppins,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#f2a56b}
.mjv-main .mjm-cap{padding:70px 24px 20px;font-size:clamp(24px,2.6vw,34px)}
.mjv-main .mjm-play{width:96px;height:68px;margin:-34px 0 0 -48px}
.mjv-main .mjm-play:after{margin-left:6px;border-left-width:27px;border-block-width:16px}
.mjv-short .mjm-cap{padding:48px 14px 14px;font-size:clamp(17px,1.7vw,22px)}
.mjv-short .mjm-play{width:56px;height:40px;margin:-20px 0 0 -28px}
.mjv-short .mjm-play:after{margin-left:3px;border-left-width:15px;border-block-width:9px}
.mjv-short .mjm-tag:before{content:"";display:inline-block;width:6px;height:10px;margin-right:7px;border:1.5px solid #f2a56b;vertical-align:-1px}

/* YouTube play button: the familiar red rounded rectangle with a white triangle */
.mjm-play{position:absolute;left:50%;top:50%;width:68px;height:48px;margin:-24px 0 0 -34px;background:#f00;display:grid;place-items:center}
.mj .mjm-play{border-radius:14px!important}
.mjm-play:after{content:"";margin-left:4px;border-left:19px solid #fff;border-block:11px solid transparent}

.mjm-tile:focus-visible,.mjm-tabs button:focus-visible,.mjm-lb button:focus-visible{outline:2px solid #f2a56b;outline-offset:3px}
.mjm-cta{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:42px 0 0}
/* the template's gold buttons come out ink-filled (style.css shorthand beats square.css's 0% fill size); fixed here for this section */
.mj .mjm-cta .mj-btn-gold{background-size:0% 100%}
.mj .mjm-cta .mj-btn-gold:hover{background-size:100% 100%}

/* "Palatial luxury for an extraordinary life" (#why): cards stay still on hover */
.mj #why .mj-card:hover{transform:none;box-shadow:none!important;border-color:#e4d9c8;border-bottom-color:#d0383d}

/* lightbox: photos and videos share one viewer */
.mjm-lb{position:fixed;inset:0;z-index:2147483600;display:none;flex-direction:column;align-items:center;justify-content:center;height:100vh;height:100dvh;padding:max(64px,env(safe-area-inset-top)) 72px max(24px,env(safe-area-inset-bottom));background:#061216}
.mjm-lb.open{display:flex}
.mjm-lb-stage{width:min(1100px,100%);display:flex;justify-content:center}
.mjm-lb-stage img{display:block;max-width:100%;max-height:calc(100vh - 220px);max-height:calc(100dvh - 220px);object-fit:contain;border:1px solid rgba(255,255,255,.18)}
.mjm-lb-vid{position:relative;width:100%;max-height:calc(100dvh - 220px);aspect-ratio:16/9;background:#000;border:1px solid rgba(255,255,255,.18)}
.mjm-lb-vid iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.mjm-lb-vid.is-short{width:auto;max-width:100%;height:calc(100dvh - 220px);max-height:760px;aspect-ratio:9/16}
.mjm-lb-cap{margin:16px 0 0;color:#e6efef;font:600 clamp(20px,2.4vw,26px)/1.2 'Cormorant Garamond',Georgia,serif;text-align:center}
.mjm-lb-cnt{margin:6px 0 0;color:#f2a56b;font-size:12px;letter-spacing:.2em}
.mjm-lb button{position:absolute;width:48px;height:48px;background:rgba(255,255,255,.06);border:1px solid rgba(242,165,107,.7);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.mjm-lb .x{top:max(14px,env(safe-area-inset-top));right:14px}
.mjm-lb .pv,.mjm-lb .nx{top:50%;margin-top:-24px}
.mjm-lb .pv{left:14px}
.mjm-lb .nx{right:14px}

/* ---------- responsive ---------- */
@media (max-width:991px){
  .mjm-grid{--rh:clamp(120px,26vw,210px);grid-template-columns:repeat(2,minmax(0,1fr))}
  .mjv{grid-template-columns:1fr 1fr}
  .mjv-main{grid-column:1 / -1}
  .mjv-short{aspect-ratio:9/16}
  .mjm-lb{padding:max(64px,env(safe-area-inset-top)) 20px max(84px,calc(env(safe-area-inset-bottom) + 70px))}
  .mjm-lb .pv,.mjm-lb .nx{top:auto;margin-top:0;bottom:max(16px,env(safe-area-inset-bottom))}
}
@media (max-width:575px){
  .mjm-bar{flex-direction:column;align-items:stretch}
  .mjm-tabs{overflow-x:auto;scrollbar-width:none}
  .mjm-tabs::-webkit-scrollbar{display:none}
  .mjm-tabs button{flex:1 0 auto;padding:0 16px}
  .mjm-grid{--rh:clamp(104px,31vw,150px);gap:8px}
  .mjv{gap:8px}
  .mjm-block+.mjm-block{margin-top:40px}
  .mjm-sub{flex-direction:column;align-items:flex-start;gap:4px}
  .mjv-main .mjm-cap{padding:44px 14px 14px;font-size:22px}
  .mjv-main .mjm-play{width:76px;height:54px;margin:-27px 0 0 -38px}
  .mjv-main .mjm-play:after{margin-left:5px;border-left-width:20px;border-block-width:12px}
  .mjv-short .mjm-cap{padding:36px 10px 11px;font-size:16px}
  .mjv-short .mjm-play{width:46px;height:33px;margin:-16px 0 0 -23px}
  .mjv-short .mjm-play:after{margin-left:3px;border-left-width:12px;border-block-width:7px}
  .mjm-cap{padding:26px 10px 9px;font-size:16px}
  .mjm-play{width:52px;height:37px;margin:-18px 0 0 -26px}
  .mj .mjm-play{border-radius:10px!important}
  .mjm-play:after{margin-left:3px;border-left-width:14px;border-block-width:8px}
  .mjm-tag{top:8px;left:8px;padding:4px 8px;font-size:10px}
  .mjm-cta .mj-btn{text-align:center}
}
@media (max-height:520px) and (orientation:landscape){
  .mjm-lb{padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(60px,calc(env(safe-area-inset-bottom) + 50px))}
  .mjm-lb-stage img,.mjm-lb-vid{max-height:calc(100dvh - 130px)}
  .mjm-lb-cap{margin-top:8px;font-size:18px}
  .mjm-lb-cnt{margin-top:2px}
  .mjm-lb .x{top:8px}
}
