/* Parley Golf: hand-written additions to the generated pg.css
   (things the page builder used to do with its own scripts). */

/* Pro gallery grid (laid out by script before) */
.pg-gallery__container{display:grid;grid-template-columns:repeat(var(--pg-cols,3),minmax(0,1fr));gap:var(--pg-gap,10px)}
.pg-gallery__container .e-gallery-item{position:relative;display:block;overflow:hidden}
.pg-gallery__container .e-gallery-image{padding-bottom:var(--pg-ratio,66.667%);background-size:cover;background-position:center center;background-repeat:no-repeat}
.pg-gallery__container .pg-gallery-item__overlay{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s ease}
.pg-gallery__container .e-gallery-item:hover .pg-gallery-item__overlay,.pg-gallery__container .e-gallery-item:focus-visible .pg-gallery-item__overlay{opacity:1}

/* Desktop dropdowns are opened by script; keep them above the page */
.pg-nav-menu--main .pg-nav-menu ul{z-index:9999}

/* Accordion: closed until clicked, as before */
.pg-accordion .pg-tab-content{display:none}
.pg-accordion .pg-tab-content.pg-active{display:block}

/* Form spam trap and sending state */
.pg-hp{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.pg-form-waiting{opacity:.6}
.pg-form .pg-message{width:100%;margin:10px 0;font-size:1em;line-height:1}

/* Picture viewer */
.pg-lb{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.87);user-select:none}
.pg-lb.pg-lb-open{display:flex}
.pg-lb-fig{margin:0;max-width:calc(100vw - 140px);max-height:calc(100vh - 100px);text-align:center}
.pg-lb-fig img{display:block;max-width:100%;max-height:calc(100vh - 140px);width:auto;height:auto;margin:0 auto;box-shadow:0 0 30px rgba(0,0,0,.3),0 0 8px -5px rgba(0,0,0,.3)}
.pg-lb-fig figcaption{color:#fff;font-size:14px;padding-top:10px;min-height:1em}
.pg-lb button{position:absolute;background:none;border:0;padding:15px;color:rgba(255,255,255,.9);font-size:25px;line-height:1;cursor:pointer}
.pg-lb button:hover,.pg-lb button:focus-visible{color:#fff;background:none}
.pg-lb-close{top:0;right:0}
.pg-lb-prev{left:0;top:50%;transform:translateY(-50%)}
.pg-lb-next{right:0;top:50%;transform:translateY(-50%)}
.pg-lb-count{position:absolute;top:0;left:0;padding:15px;color:#fff;font-size:14px}
@media (max-width:767px){.pg-lb-fig{max-width:100vw}.pg-lb-prev,.pg-lb-next{top:auto;bottom:0;transform:none}}

/* YOLO Canvas: the page fills the window edge to edge, as it did in Astra's page-builder layout
   (no theme gaps between header, content and footer, no content width or side padding). */
.pg-canvas .wp-site-blocks{padding:0!important}
.pg-canvas .wp-site-blocks>*{margin-block-start:0!important;margin-block-end:0!important}
.pg-canvas main.wp-block-group,.pg-canvas .wp-block-post-content{padding:0!important;margin:0!important;max-width:none!important}
.pg-canvas .wp-block-post-content>.pg-wrap{max-width:none!important;margin:0!important;width:auto}

/* YOLO Builder edit mode: carousels stop and show every slide, one under another, so each can be edited.
   (The looping copies of slides are hidden; they carry no edit marks.) */
.yolob-editing :is(.pg-widget-testimonial-carousel,.pg-widget-image-carousel) .swiper-wrapper{display:block!important;transform:none!important;height:auto!important}
.yolob-editing :is(.pg-widget-testimonial-carousel,.pg-widget-image-carousel) .swiper-slide{width:auto!important;height:auto!important;margin:0 0 30px!important;opacity:1!important}
.yolob-editing :is(.pg-widget-testimonial-carousel,.pg-widget-image-carousel) .swiper-slide-duplicate{display:none!important}
.yolob-editing .pg-widget-testimonial-carousel .swiper-pagination,.yolob-editing .pg-widget-testimonial-carousel .pg-swiper-button{display:none!important}

/* Carousels: their columns may shrink below the slides' set widths (margins on the column),
   as the page builder's own slider allowed. */
.pg-widget-wrap:has(> .pg-widget-testimonial-carousel,> .pg-widget-image-carousel,> .pg-widget-slides){min-width:0}

/* Sticky header (the page builder pinned it with a script): the whole header stays at the top. */
.pg-canvas .pg-location-header{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:99}
