/* Gallery page: its top and the heading over the photos (page-gallery.php).
   The top is ink, like the About and Range pages, and the shows section (css/gallery-shows.css) carries
   straight on under it in the same ink: together they are the page's top.
   gt- is the top, gp- is the heading over the photos with the buttons that sort them. */

.gt,.gt *,.gp,.gp *{box-sizing:border-box}
:where(.gt,.gp) h1,:where(.gt,.gp) h2,:where(.gt,.gp) p{margin:0}

/* the top */
.gt{position:relative;overflow:hidden;background:#101419;color:#fff;padding:44px 0 22px;box-shadow:0 1px 0 #101419;font-family:"DM Sans",sans-serif;-webkit-font-smoothing:antialiased}   /* the shadow closes a hairline that can show at the seam when a phone is pinched in */
.gt:before{content:"";position:absolute;right:-150px;top:-360px;width:560px;height:560px;border-radius:50%;background:radial-gradient(closest-side,rgba(245,30,37,.22),rgba(245,30,37,0));pointer-events:none}   /* gone well before the foot of the top, so no edge shows where the shows section begins */
.gt-wrap,.gp-wrap{position:relative;width:calc(100% - 32px);max-width:1360px;margin:0 auto}
.gt-row{display:grid;gap:16px}
.gt-kicker,.gp-kicker{display:flex;align-items:center;gap:14px;font:800 11px/1.5 Manrope,sans-serif;letter-spacing:3px;text-transform:uppercase}
.gt-kicker{color:#c9d0d6}
.gt-kicker:before,.gp-kicker:before{content:"";flex:none;width:52px;height:3px;background:#f51e25}
.gt h1{margin-top:14px;font:800 64px/1 Manrope,sans-serif;letter-spacing:-.05em;color:#fff}
.gt h1 strong{font-weight:800;color:#f51e25}
.gt-lead{max-width:540px;color:#d5dade;font-size:17px;line-height:1.6}

/* the heading over the photos */
.gp{background:#fff;padding:56px 0 26px;font-family:"DM Sans",sans-serif;-webkit-font-smoothing:antialiased;scroll-margin-top:96px}
.gp-kicker{color:#4f5961}
.gp h2{margin-top:14px;font:800 34px/1.06 Manrope,sans-serif;letter-spacing:-1px;color:#101419}
.gp h2 strong{display:block;font-weight:800;color:#f51e25}
.gp .cabins-gallery-filters{display:grid;grid-template-columns:1fr 1fr;margin-top:24px;border:1px solid #101419}
.gp .cabins-gallery-filter{-webkit-appearance:none;appearance:none;min-height:54px;margin:0;padding:0 10px;border:0;border-radius:0;background:#fff;color:#101419;font:700 14px/1.1 Manrope,sans-serif;white-space:nowrap;cursor:pointer;transition:background .2s ease,color .2s ease}
.gp .cabins-gallery-filter:nth-child(odd){border-right:1px solid #101419}
.gp .cabins-gallery-filter:nth-child(-n+2){border-bottom:1px solid #101419}
.gp .cabins-gallery-filter.active{background:#101419;color:#fff}
.gp .cabins-gallery-filter:focus-visible{position:relative;z-index:1;outline:3px solid #f51e25;outline-offset:2px}
@media(hover:hover){
  .gp .cabins-gallery-filter:not(.active):hover{background:#f4f5f7}
}

@media(max-width:359px){
  .gt h1{font-size:54px}
}
@media(min-width:700px){
  .gt-wrap,.gp-wrap{width:calc(100% - 56px)}
  .gt h1{font-size:88px}
}
@media(min-width:900px){
  .gt{padding:78px 0 26px}
  .gt h1{margin-top:20px}
  .gt-lead{font-size:19px}
  .gp{padding:96px 0 44px}
  .gp-in{display:flex;align-items:flex-end;justify-content:space-between;gap:40px}
  .gp h2{margin-top:18px;font-size:54px;letter-spacing:-1.8px}
  .gp .cabins-gallery-filters{flex:none;display:flex;margin:0}
  .gp .cabins-gallery-filter{min-height:56px;padding:0 18px}
  .gp .cabins-gallery-filter:nth-child(n){border-bottom:0;border-right:1px solid #101419}
  .gp .cabins-gallery-filter:last-child{border-right:0}
}
/* the heading and its line side by side; the heading takes the size its column allows, up to 116 px */
@media(min-width:1000px){
  .gt-row{grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:48px;align-items:end}
  .gt h1{font-size:clamp(88px,calc((100vw - 524px) / 5.2),116px)}
  .gt-lead{max-width:none;padding-bottom:14px}
}
@media(min-width:1100px){
  .gp .cabins-gallery-filter{padding:0 24px}
}
@media(min-width:1280px){
  .gt-wrap,.gp-wrap{width:calc(100% - 80px)}
  .gt-row{grid-template-columns:minmax(0,1fr) minmax(0,470px);gap:60px}
  .gt h1{font-size:116px}
}
@media(prefers-reduced-motion:reduce){
  .gp .cabins-gallery-filter{transition:none}
}
