/* Art Basel week. Loads after site.css, dest.css and guides.css; adds the story-shaped frames only. */
/* The All In House Selection: the flagship flyer, shown as the schedule straight under the hero (Logan 13 Nov: the Factory Town
   hero stays; the flyer is the schedule). Phone: the flyer alone, edge to edge. Desktop: heading left, flyer right, on the page gutter. */
.bsel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:clamp(40px,6vw,110px);padding-top:var(--pad);padding-left:var(--gut);padding-right:var(--gut);scroll-margin-top:16px}
.bsel__head>.g__what{margin-bottom:14px}
.bsel__head .title{margin-bottom:18px;text-wrap:balance}
.bsel__head .btn{margin-top:34px}
.bsel__flyer{display:block;height:min(84vh,900px);aspect-ratio:3/4;background:var(--panel)}
.bsel__flyer img{display:block;width:100%;height:100%;object-fit:cover}
.bsel__flyer:focus-visible{outline:2px solid var(--white);outline-offset:4px}
.bsel__foot{display:none}
@media (max-width:1000px){
  .bsel{display:block;text-align:center}
  .bsel__head{margin-bottom:36px}
  .bsel__flyer{height:auto;width:min(100%,520px);margin:0 auto}
}
@media (max-width:700px){
  .bsel{padding-top:28px;padding-left:0;padding-right:0}
  .bsel__head{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
  .bsel__flyer{width:100%}
  .bsel__foot{display:block;margin-top:28px}
}
.bweek .gsec__img img{aspect-ratio:9/16;object-fit:cover}
.bweek{align-items:start}
.bweek .gsec__body>.g__what{margin-bottom:12px}
.bweek .gday li span{white-space:nowrap;min-width:15rem}
@media (max-width:700px){.bweek .gday li span{white-space:normal;min-width:0}}
.bnote{font-size:14px;line-height:1.5;margin-top:18px;max-width:30rem}
.bnight{scroll-margin-top:24px}
/* the week: the schedule pages with every name; the heading takes the first cell (Logan 12 Nov: all of them, as images) */
.bsched{padding:var(--pad) var(--gut) 0;scroll-margin-top:16px}
.bsched__wrap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 18px}
.bsched__grid{display:contents}
.bsched__head{align-self:end;padding-bottom:40px}
.bsched__head>.g__what{margin-bottom:12px}
.bsched__head .g__line{margin-top:14px}
.bsched__page{margin:0}
.bsched__page figcaption{padding-top:12px}
@media (max-width:1100px){.bsched__wrap{grid-template-columns:repeat(2,minmax(0,1fr))}.bsched__head{grid-column:1/-1;padding-bottom:0}}
@media (max-width:700px){
  .bsched{padding-left:0;padding-right:0}
  .bsched__wrap{display:block}
  .bsched__head{padding:0 var(--gut) 24px}
  .bsched__grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding:0 var(--gut) 8px;scroll-padding:0 var(--gut);scrollbar-width:none}
  .bsched__grid::-webkit-scrollbar{display:none}
  .bsched__page{flex:0 0 84%;scroll-snap-align:start}
}
.bnights{padding:var(--pad) var(--gut) 0;scroll-margin-top:16px}
.bnights__head{display:flex;justify-content:space-between;align-items:baseline;gap:24px;flex-wrap:wrap;margin-bottom:32px}
.bnights__grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.bnight{margin:0}
.bnight__frame{display:block;aspect-ratio:9/16;overflow:hidden;background:var(--panel)}
.bnight__frame img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.bnight__frame:hover img{transform:scale(1.03)}
.bnight__frame:focus-visible{outline:2px solid var(--white);outline-offset:4px}
.bnight figcaption{padding-top:14px}
.bnight__name{font:400 clamp(22px,1.7vw,28px)/1 var(--display);text-transform:uppercase;margin-top:8px;text-wrap:balance}
.bnight .g__line{font-size:14px}
.bslide .card__frame{aspect-ratio:3/4}
/* the Instagram posts read as one section: no double gap between them (Logan 14 Nov) */
.bpost--tight{padding-bottom:0}
/* By venue (26 Nov): two rooms a row on desktop, three flyers each; a sideways row per room on phones. */
.bvenues{padding:var(--pad) var(--gut) 0;scroll-margin-top:16px}
.bven__room .bnum{font-family:var(--text);font-weight:400;letter-spacing:-.02em;font-size:.98em;line-height:0}
.bvenues__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:64px clamp(32px,4vw,64px)}
.bven__head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding-bottom:14px;margin-bottom:18px;border-bottom:1px solid var(--rule)}
.bven__room{font:400 clamp(28px,2.4vw,38px)/1 var(--display);text-transform:uppercase;margin:0}
.bven__row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.bvenues .bnights__head>div>.g__what{margin-bottom:12px}
.bvenues .bnights__head{align-items:flex-end}
@media (max-width:1100px){.bvenues__grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:700px){
  .bvenues{padding-left:0;padding-right:0}
  .bvenues .bnights__head,.bven__head{margin-left:var(--gut);margin-right:var(--gut)}
  .bven__row{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding:0 var(--gut) 4px;scroll-padding:0 var(--gut);scrollbar-width:none}
  .bven__row::-webkit-scrollbar{display:none}
  .bven__row .bnight{flex:0 0 62%;scroll-snap-align:start}
  .bvenues__grid{gap:48px}
}
/* The fairs (27 Nov): the type on the left, three photos of the fair on the right; on a phone the photos swipe under the type. */
.bfairs{padding:var(--pad) var(--gut) 0;scroll-margin-top:16px}
.bfairs__head{max-width:40rem;margin-bottom:40px}
.bfairs__head>.g__what{margin-bottom:12px}
.bfairs__list{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.bfair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.75fr);column-gap:clamp(28px,4vw,72px);align-items:stretch;padding:32px 0;border-bottom:1px solid var(--rule)}
.bfair__text{display:flex;flex-direction:column;min-width:0}
.bfair__name{font:400 clamp(28px,2.6vw,40px)/1 var(--display);text-transform:uppercase;margin:0;text-wrap:balance}
.bfair__what{font-size:16px;line-height:1.5;margin:16px 0 0;max-width:26rem}
.bfair__meta{margin-top:auto;padding-top:24px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"where ask" "when ask";column-gap:20px;align-items:end}
.bfair__where,.bfair__when{font:600 11px/1.5 var(--text);letter-spacing:.2em;text-transform:uppercase;margin:0}
.bfair__where{grid-area:where}
.bfair__when{grid-area:when;margin-top:4px;opacity:.75}
.bfair__ask{grid-area:ask;font:600 11px/1.5 var(--text);letter-spacing:.2em;text-transform:uppercase;color:var(--white);text-decoration:none;border-bottom:1px solid var(--white);justify-self:end}
.bfair__ask:hover{opacity:.7}
.bfair__ask:focus-visible{outline:2px solid var(--white);outline-offset:4px}
.bfair__pics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.bfair__pic{margin:0;aspect-ratio:4/5;overflow:hidden;background:var(--panel)}
.bfair__pic img{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:900px){
  .bfair{grid-template-columns:minmax(0,1fr);row-gap:24px}
  .bfair__meta{padding-top:18px}
}
@media (max-width:700px){
  .bfairs__head{margin-bottom:28px}
  .bfair{padding:28px 0}
  .bfair__pics{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;margin:0 calc(-1 * var(--gut));padding:0 var(--gut) 2px;scroll-padding:0 var(--gut);scrollbar-width:none}
  .bfair__pics::-webkit-scrollbar{display:none}
  .bfair__pic{flex:0 0 72%;scroll-snap-align:start}
}
/* Yachts for the week (25 Nov): the Miami page's house cards, three across on desktop, a swipe row on a phone */
@media (min-width:701px){.byachts .ghouses__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}}
.byachts{padding-bottom:var(--pad)}
.byachts .ghouses__head{max-width:none}
.byachts .ghouses__note{text-wrap:balance}
/* The Art Week (25 Nov): same frame as the selection, but on a phone the heading stays visible, since it opens a new subject */
@media (max-width:700px){
}
@media (max-width:1100px){.bnights__grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:36px}}
@media (max-width:700px){
  .bweek{grid-template-columns:1fr}
  .bweek .gsec__img{max-width:420px}
  .bnights__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}
}
/* Night by night (27 Nov): the five art day slides, 3:4, five across; three then two under 1100px; a swipe row on a phone */
.bnights--art .bnights__head>div>.g__what{margin-bottom:12px}
.bnights--art .bnights__head{align-items:flex-end}
.bnights--art .bnights__grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.bnights--art .bnight__frame{aspect-ratio:3/4}
@media (max-width:1100px){.bnights--art .bnights__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){
  .bnights--art{padding-left:0;padding-right:0}
  .bnights--art .bnights__head{margin-left:var(--gut);margin-right:var(--gut)}
  .bnights--art .bnights__grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding:0 var(--gut) 4px;scroll-padding:0 var(--gut);scrollbar-width:none}
  .bnights--art .bnights__grid::-webkit-scrollbar{display:none}
  .bnights--art .bnight{flex:0 0 78%;scroll-snap-align:start}
}
@media (prefers-reduced-motion:reduce){.bnight__frame img{transition:none}}

/* St Barths (25 Nov 2026): the Art Basel frames, plus three differences.
   The week is two pages, so the heading and the two stories share a three-column row.
   Night by night is the six day slides of the posted Selection (28 Nov), Basel's art frames: six across, three on tablets, a swipe row on phones.
   The card sections (table, rooms, beaches, yachts) are the house-card grid from guides.css, with less air between them. */
.sbsched .bsched__wrap{grid-template-columns:repeat(3,minmax(0,1fr))}
.bsched__head .g__what{text-wrap:balance}
/* three yachts, three across (Django 25 Nov; Basel's .byachts rule, kept here so it does not depend on that page) */
@media (min-width:701px){.sbyachts .ghouses__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}}
.sbnights.bnights--art .bnights__grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.sbcards .ghouse__img img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;transition:transform .5s ease}
.sbcards .ghouse:hover .ghouse__img img{transform:scale(1.03)}
.sbcards .ghouse:focus-visible{outline:2px solid var(--white);outline-offset:4px}
@media (max-width:1100px){.sbsched .bsched__wrap{grid-template-columns:repeat(2,minmax(0,1fr))}.sbnights.bnights--art .bnights__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){.sbcards .ghouse__img img{transition:none}}
