/* The Peaks on 76 | original desktop float mosaics + mobile row mosaics */
#gallery .gallery-c__container{display:block;margin:0 auto;width:1300px;max-width:100%}
@media(max-width:1380px){#gallery .gallery-c__container{width:1100px}}
@media(max-width:1180px){#gallery .gallery-c__container{width:900px}}
@media(max-width:980px){#gallery .gallery-c__container{width:760px}}
@media(max-width:808px){#gallery .gallery-c__container{width:100%}}
#gallery .gallery-c{position:relative;display:block!important}
#gallery .gallery-c__row{margin-bottom:20px!important;display:block!important;clear:both!important}
#gallery .gallery-c__row:last-child{margin-bottom:0!important}
#gallery .gallery-c__list{position:relative!important;display:block!important;clear:both!important;margin:0!important;padding:0!important;list-style:none!important}
#gallery .gallery-c__list:after{content:"";display:table;clear:both}
#gallery .gallery-c__item{background-color:rgba(0,0,0,.05);float:left!important;overflow:hidden!important;position:relative!important;min-width:0;min-height:0;height:0!important;grid-column:auto!important;grid-row:auto!important;aspect-ratio:auto!important}
#gallery .gallery-c__link{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important}
#gallery .gallery-c__image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
/* Desktop: image 1 left tall, images 2 + 3 stacked to its right */
#gallery .gallery-c__item--main-3-1{width:63%!important;padding:0 0 45%!important;margin:0 20px 0 0!important}
#gallery .gallery-c__item--main-3-2,#gallery .gallery-c__item--main-3-3{width:calc(37% - 20px)!important;padding:0 0 21.7%!important;margin:0!important}
#gallery .gallery-c__item--main-3-2{margin-bottom:20px!important}
/* Desktop: 4-photo asymmetric composition */
#gallery .gallery-c__item--main-4-1,#gallery .gallery-c__item--main-4-2{width:calc(25% - 15px)!important;padding:0 0 23.9%!important;margin:0 20px 0 0!important}
#gallery .gallery-c__item--main-4-3{width:calc(50% - 10px)!important;padding:0 0 23.8%!important;position:absolute!important;left:0!important;bottom:0!important;margin:0!important}
#gallery .gallery-c__item--main-4-4{width:calc(50% - 10px)!important;padding:0 0 49.25%!important;float:right!important;margin:0!important}
/* Desktop: 2 small left, 1 large right */
#gallery .gallery-c__item--tertiary-3-1,#gallery .gallery-c__item--tertiary-3-2{width:calc(37% - 20px)!important;padding:0 0 21.7%!important;margin:0!important}
#gallery .gallery-c__item--tertiary-3-1{margin-bottom:20px!important}
#gallery .gallery-c__item--tertiary-3-2{position:absolute!important;left:0!important;bottom:0!important}
#gallery .gallery-c__item--tertiary-3-3{width:63%!important;padding:0 0 45%!important;float:right!important;margin:0 0 0 20px!important}
/* Desktop: 4-photo alternate */
#gallery .gallery-c__item--tertiary-4-1{width:calc(50% - 10px)!important;padding:0 0 49.25%!important;float:left!important;margin:0!important}
#gallery .gallery-c__item--tertiary-4-2,#gallery .gallery-c__item--tertiary-4-3{float:right!important;width:calc(25% - 15px)!important;padding:0 0 23.9%!important;margin:0 20px 0 0!important}
#gallery .gallery-c__item--tertiary-4-2{margin-right:0!important}
#gallery .gallery-c__item--tertiary-4-4{position:absolute!important;right:0!important;bottom:0!important;width:calc(50% - 10px)!important;padding:0 0 23.8%!important;margin:0!important}
/* Final 2 photos fill the row */
#gallery .gallery-c__item--pair-1,#gallery .gallery-c__item--pair-2{width:calc(50% - 10px)!important;padding:0 0 33%!important;margin:0!important}
#gallery .gallery-c__item--pair-2{float:right!important}
@media(max-width:1380px){#gallery .gallery-c__item--main-3-2,#gallery .gallery-c__item--main-3-3,#gallery .gallery-c__item--tertiary-3-1,#gallery .gallery-c__item--tertiary-3-2{padding-bottom:21.6%!important}#gallery .gallery-c__item--tertiary-4-4{padding-bottom:23.6%!important}}
@media(max-width:1180px){#gallery .gallery-c__item--main-4-3{padding-bottom:23.2%!important}#gallery .gallery-c__item--tertiary-3-1,#gallery .gallery-c__item--tertiary-3-2{padding-bottom:21.39%!important}#gallery .gallery-c__item--tertiary-4-4{padding-bottom:23.1%!important}}
@media(max-width:980px){#gallery .gallery-c__item--tertiary-4-4{padding-bottom:22.8%!important}}
/* Keep the existing Peaks branding for tabs; do not borrow colors from other site */
#gallery .gallery-tabs{display:flex;justify-content:center;gap:.75rem;margin:0 auto 1.25rem}
#gallery .gallery-tabs .nav-link{border-radius:1px!important}
#gallery .fancybox__container{z-index:10950!important}
/* Only active tab should consume height */
#gallery .tab-content>.tab-pane:not(.active){display:none!important;height:0!important;overflow:hidden!important}
#gallery .tab-content>.tab-pane.active{display:block!important;height:auto!important;overflow:visible!important}
/* Mobile: exact row-based 3-up / 4-up pattern; no large masonry feature spans */
@media(max-width:808px){
 #gallery .gallery-c__container{width:100%!important;padding:0 3px!important}
 #gallery .gallery-c__row{margin-bottom:12px!important}
 #gallery .gallery-c__row>.gallery-c__list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;position:relative!important}
 #gallery .gallery-c__row--4up>.gallery-c__list{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 #gallery .gallery-c__row--2up>.gallery-c__list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #gallery .gallery-c__row .gallery-c__item{float:none!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;position:relative!important;inset:auto!important;aspect-ratio:4/3!important;grid-column:auto!important;grid-row:auto!important}
 #gallery .gallery-c__row .gallery-c__link{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
 #gallery .gallery-c__row .gallery-c__image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
}
@media(max-width:380px){#gallery .gallery-c__row>.gallery-c__list{gap:10px!important}}
