/* Give Us A Goo – wedding gallery styles (plugin v0.7.0, 18 Nov 2026).
   Moved from the Customizer (Additional CSS v77–v79d) and extended with the automatic banner
   (.gug-gbanner) and the starter sections (.gug-gsec). Loaded on single galleries only. */
/* v77 (18 Nov 2026): latest-galleries thumbnail slider at the end of every gallery (synced pattern 9101) */
.gug-related .gug-gal-latest{margin:1.75rem 0 0}
.gug-related .gug-gal-latest .wp-block-post-template{display:flex!important;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;margin:0;padding:0 0 .9rem;list-style:none}
.gug-related .gug-gal-latest .wp-block-post-template>li{flex:0 0 clamp(190px,30%,240px);scroll-snap-align:start;margin:0;text-align:left}
.gug-related .gug-gal-latest .wp-block-post-featured-image{margin:0 0 .5rem;overflow:hidden;border-radius:8px}
.gug-related .gug-gal-latest .wp-block-post-featured-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.gug-related .gug-gal-latest li:hover .wp-block-post-featured-image img{transform:scale(1.04)}
.gug-related .gug-gal-latest .wp-block-post-title{font-family:inherit;font-size:.95rem;line-height:1.3;font-weight:600;margin:0;text-transform:none;letter-spacing:0}
.gug-related .gug-gal-latest .wp-block-post-title a{text-decoration:none;color:inherit}
.gug-related .gug-gal-latest a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.gug-related .gug-gal-latest .wp-block-post-template{align-items:flex-start;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.35) transparent}
.gug-related .gug-gal-latest .wp-block-post-template::-webkit-scrollbar{height:6px}
.gug-related .gug-gal-latest .wp-block-post-template::-webkit-scrollbar-thumb{background:rgba(255,255,255,.35);border-radius:3px}
.gug-related .gug-gal-latest .wp-block-post-template::-webkit-scrollbar-track{background:transparent}
.gug-related .gug-gal-latest .wp-block-post-title{margin-top:0!important}
/* ===== END v77 ===== */
/* v78 (18 Nov 2026): wedding galleries styled like the homepage – red Anton title, red outline section headings, easy-read Mada text, no words split across lines */
body.single-gallery :is(h1,h2,h3,h4,h5,h6,.wp-block-kadence-advancedheading){overflow-wrap:normal!important;word-break:normal!important;hyphens:manual!important;text-wrap:balance}
body.single-gallery h1.entry-title{font-family:"Anton",Impact,"Arial Narrow",sans-serif!important;font-weight:400!important;text-transform:uppercase!important;letter-spacing:.01em!important;line-height:1.04!important;font-size:clamp(1.9rem,1.1rem + 3vw,3.4rem)!important;color:#efe7d8!important;-webkit-text-stroke:0!important;max-width:22ch;margin-left:auto;margin-right:auto;text-align:center}
body.single-gallery .entry-content h2:not(.entry-title):not(:is(.kt-row-has-bg,.wp-block-cover) *){font-family:"Anton",Impact,"Arial Narrow",sans-serif!important;font-weight:400!important;text-transform:uppercase!important;letter-spacing:.01em!important;line-height:1.05!important;font-size:clamp(1.4rem,1rem + 1.4vw,2.2rem)!important;color:#dc3636!important;-webkit-text-fill-color:transparent;-webkit-text-stroke:1.2px #dc3636;transition:-webkit-text-fill-color .3s}
body.single-gallery .entry-content h2:not(.entry-title):not(:is(.kt-row-has-bg,.wp-block-cover) *):hover{-webkit-text-fill-color:#dc3636}
body.single-gallery .entry-content h3:not(.wp-block-post-title):not(.entry-title):not(:is(.kt-row-has-bg,.wp-block-cover) *){font-family:"Anton",Impact,"Arial Narrow",sans-serif!important;font-weight:400!important;text-transform:uppercase!important;letter-spacing:.01em!important;line-height:1.1!important;font-size:clamp(1.2rem,1rem + 1vw,1.7rem)!important;color:#dc3636!important}
body.single-gallery .entry-content :is(h4,h5,h6){font-family:"Mada",system-ui,sans-serif!important;font-weight:700!important;text-transform:none!important;letter-spacing:0!important;line-height:1.4!important;font-size:clamp(1.05rem,1rem + .3vw,1.25rem)!important;color:#efe7d8!important}
body.single-gallery:has(.entry-content > .kb-row-layout-wrap:first-child .wp-block-kadence-advancedheading) h1.entry-title{font-size:clamp(1.15rem,1rem + .8vw,1.6rem)!important;max-width:40ch}
body.single-gallery .entry-content p:not(.wp-block-kadence-advancedheading),body.single-gallery .entry-content li:not(.wp-block-post){font-family:"Mada",system-ui,sans-serif!important;font-size:1.06rem!important;line-height:1.78!important;color:#b9b0a1}
body.single-gallery .entry-content p:not(.wp-block-kadence-advancedheading) strong{color:#efe7d8}
body.single-gallery .kb-posts .entry-title,body.single-gallery .kb-posts .entry-title a{font-family:"Mada",system-ui,sans-serif!important;font-weight:700!important;text-transform:none!important;letter-spacing:0!important;font-size:1.05rem!important;line-height:1.3!important;color:#efe7d8!important;-webkit-text-fill-color:currentColor!important;-webkit-text-stroke:0!important}
body.single-gallery .gug-related .gug-related-title{text-align:center;margin-bottom:.6rem!important}
body.single-gallery .gug-related .gug-gal-latest .wp-block-post-title,body.single-gallery .gug-related .gug-gal-latest .wp-block-post-title a{font-family:"Mada",system-ui,sans-serif!important;font-weight:700!important;font-size:.98rem!important;color:#efe7d8!important}
body.single-gallery .entry-content > .kb-row-layout-wrap:not(.kt-row-has-bg) p.wp-block-kadence-advancedheading{font-family:"Mada",system-ui,sans-serif!important;font-size:1.06rem!important;line-height:1.78!important;letter-spacing:0!important;text-transform:none!important;color:#b9b0a1!important;max-width:46rem;margin-left:auto;margin-right:auto}
/* ===== END v78 ===== */
/* v79 (18 Nov 2026): galleries – text kept inside the black box and centred on wide screens, white page title, slider without scrollbar + arrow buttons */
body.single-gallery .entry-content > .kb-row-layout-wrap :is(h2,h3,h4,h5,h6,p:not(.wp-block-kadence-advancedheading),ul,ol,blockquote),body.single-gallery .entry-content > .kb-row-layout-wrap:not(.kt-row-has-bg) p.wp-block-kadence-advancedheading{max-width:min(48rem,100%)!important;margin-left:auto!important;margin-right:auto!important;text-align:center!important}
body.single-gallery .entry-content > .kb-row-layout-wrap :is(ul,ol){text-align:left!important}
body.single-gallery .gug-related .gug-gal-latest{position:relative;padding:0 3rem}
body.single-gallery .gug-related .gug-gal-latest .wp-block-post-template{scrollbar-width:none!important;padding-bottom:0!important}
body.single-gallery .gug-related .gug-gal-latest .wp-block-post-template::-webkit-scrollbar{display:none!important}
body.single-gallery .gug-gal-btn{position:absolute;top:calc(clamp(190px,30%,240px) * .375);transform:translateY(-50%);width:2.5rem;height:2.5rem;border-radius:50%;border:1.5px solid #efe7d8;background:rgba(0,0,0,.55);color:#efe7d8;font:400 1.4rem/1 "Mada",system-ui,sans-serif;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background .2s,color .2s,opacity .2s;z-index:2}
body.single-gallery .gug-gal-btn:hover{background:#dc3636;border-color:#dc3636;color:#fff}
body.single-gallery .gug-gal-btn:focus-visible{outline:2px solid #efe7d8;outline-offset:3px}
body.single-gallery .gug-gal-btn[disabled]{opacity:.25;cursor:default;background:rgba(0,0,0,.55);border-color:#efe7d8;color:#efe7d8}
body.single-gallery .gug-gal-prev{left:0}
body.single-gallery .gug-gal-next{right:0}
@media (max-width:781px){body.single-gallery .gug-related .gug-gal-latest{padding:0 2.4rem}body.single-gallery .gug-gal-btn{width:2.1rem;height:2.1rem;font-size:1.2rem}}
/* v79b: crop the thin white strips some photo files have at top/bottom (thumbnails only) */
body.single-gallery .gug-related .gug-gal-latest .wp-block-post-featured-image img{transform:scale(1.06)}
body.single-gallery .gug-related .gug-gal-latest li:hover .wp-block-post-featured-image img{transform:scale(1.1)}
/* v79c: banner words (Kadence headings on a background row) shrink on phones so long venue names fit */
@media (max-width:781px){body.single-gallery .entry-content > .kb-row-layout-wrap.kt-row-has-bg p.wp-block-kadence-advancedheading{font-size:min(4rem,14.5vw)!important}}
/* v79d: galleries – no coloured boxes: Kadence info boxes lose their frame and orange hover */
body.single-gallery .entry-content .kt-blocks-info-box-link-wrap,body.single-gallery .entry-content .kt-blocks-info-box-link-wrap:hover{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
/* ===== END v79 ===== */
/* v0.7.0 additions ------------------------------------------------------- */
/* Page title smaller when the plugin banner opens the gallery */
body.single-gallery:has(.entry-content > .gug-gbanner) h1.entry-title{font-size:clamp(1.15rem,1rem + .8vw,1.6rem)!important;max-width:40ch}

/* Automatic banner (Gallery banner panel): looks like the Cloughjordan banner */
body.single-gallery .entry-content > .gug-gbanner{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,3fr);gap:32px;align-items:end;padding:16px;margin-top:0;margin-bottom:0;background:#000 url("/wp-content/uploads/2025/02/main-background.png") repeat;color:#fff;box-sizing:border-box}
body.single-gallery .gug-gbanner .gug-gb-text{min-width:0}
body.single-gallery .gug-gbanner .gug-gb-l1,body.single-gallery .gug-gbanner .gug-gb-l2{font-family:"Anton",Impact,"Arial Narrow",sans-serif!important;font-weight:400!important;font-size:11rem;line-height:1!important;margin:0!important;padding:0;text-transform:uppercase;letter-spacing:0!important;max-width:none!important;text-align:left!important;overflow-wrap:normal;word-break:normal}
body.single-gallery .gug-gbanner .gug-gb-l1{color:#dc3636!important}
body.single-gallery .gug-gbanner .gug-gb-l2{color:#fff!important}
body.single-gallery .gug-gbanner .gug-gb-sub{font-family:"Crimson Text",Georgia,serif;font-size:2rem;line-height:1;color:#dc3636;text-transform:none;font-weight:400;letter-spacing:0;white-space:nowrap}
body.single-gallery .gug-gbanner .gug-gb-sub b{font-weight:600}
body.single-gallery .gug-gbanner .gug-gb-side{min-width:0;text-align:center}
body.single-gallery .gug-gbanner .gug-gb-photo{margin:0}
body.single-gallery .gug-gbanner .gug-gb-img{display:block;width:100%!important;max-width:none!important;height:auto;aspect-ratio:2/3;object-fit:cover}
body.single-gallery .gug-gbanner .gug-gb-btn{display:inline-flex;align-items:center;gap:.6rem;margin-top:1.2rem;padding:.15em 1rem .35em;color:#dc3636;border-bottom:3px solid #dc3636;font-family:"Cholleo","Playfair Display",serif;font-size:1.15rem;letter-spacing:.25em;text-transform:lowercase;text-decoration:none;transition:color .2s}
body.single-gallery .gug-gbanner .gug-gb-btn:hover,body.single-gallery .gug-gbanner .gug-gb-btn:focus-visible{color:#fff}
body.single-gallery .gug-gbanner .gug-gb-btn:focus-visible{outline:2px solid #efe7d8;outline-offset:4px}
@media (max-width:1024px){body.single-gallery .gug-gbanner .gug-gb-l1,body.single-gallery .gug-gbanner .gug-gb-l2{font-size:6rem}}
@media (max-width:781px){
 body.single-gallery .entry-content > .gug-gbanner{grid-template-columns:1fr;gap:16px;padding:12px}
 body.single-gallery .gug-gbanner .gug-gb-l1,body.single-gallery .gug-gbanner .gug-gb-l2{font-size:min(4rem,14.5vw)}
 body.single-gallery .gug-gbanner .gug-gb-sub{font-size:1.4rem}
 body.single-gallery .gug-gbanner .gug-gb-img{aspect-ratio:4/5}
}

/* Starter sections and plain (older) galleries: text centred inside the box, photos may run wider */
body.single-gallery .entry-content > :is(.gug-gsec,.wp-block-group) :is(h2,h3,h4,h5,h6,p,blockquote),
body.single-gallery .entry-content > :is(h2,h3,h4,h5,h6,p,blockquote){max-width:min(48rem,100%)!important;margin-left:auto!important;margin-right:auto!important;text-align:center!important}
body.single-gallery .entry-content > .gug-related :is(h2,p){max-width:none!important}
body.single-gallery .entry-content > .gug-gsec{margin-top:clamp(2.5rem,6vw,5rem)}
body.single-gallery .entry-content > .gug-gsec .wp-block-gallery{max-width:1840px!important;width:100%;margin-top:1.5rem}

/* v0.7.1: banner words must beat the general "gallery paragraph" rule (which uses !important) */
body.single-gallery .entry-content .gug-gbanner p.gug-gb-l1,body.single-gallery .entry-content .gug-gbanner p.gug-gb-l2{font-family:"Anton",Impact,"Arial Narrow",sans-serif!important;font-size:11rem!important;line-height:1!important;letter-spacing:0!important;max-width:none!important;margin:0!important;text-align:left!important;white-space:nowrap}
body.single-gallery .entry-content .gug-gbanner p.gug-gb-l1{color:#dc3636!important}
body.single-gallery .entry-content .gug-gbanner p.gug-gb-l2{color:#fff!important}
@media (max-width:1024px){body.single-gallery .entry-content .gug-gbanner p.gug-gb-l1,body.single-gallery .entry-content .gug-gbanner p.gug-gb-l2{font-size:6rem!important}}
@media (max-width:781px){body.single-gallery .entry-content .gug-gbanner p.gug-gb-l1,body.single-gallery .entry-content .gug-gbanner p.gug-gb-l2{font-size:min(4rem,14.5vw)!important}}
body.single-gallery .entry-content .gug-gbanner .gug-gb-sub{display:block;margin-top:.35em;line-height:1.1}
/* banner photo: hide the thin white strips some photo files have (same trick as the slider) */
body.single-gallery .gug-gbanner .gug-gb-photo{overflow:hidden}
body.single-gallery .gug-gbanner .gug-gb-img{transform:scale(1.04)}

/* v0.7.4: on phones the banner photo keeps its own shape (no cropping), so nobody gets cut off. */
@media (max-width:781px){body.single-gallery .gug-gbanner .gug-gb-img{aspect-ratio:auto!important;object-fit:contain}}

/* v0.8.1 (Phil, 19 Nov): banner words stay BIG and bold; gallery.js stretches every line to the full
   width of the text column so the right edges line up (PORTMAR / NOCK / HOTEL). The photo gets the
   bigger share and is shown whole (no cropping), capped to the window height on big screens. */
body.single-gallery .entry-content .gug-gbanner .gug-gb-text{container-type:inline-size}
body.single-gallery .entry-content .gug-gbanner p.gug-gb-l1,body.single-gallery .entry-content .gug-gbanner p.gug-gb-l2{font-size:clamp(3rem,26cqi,11rem)!important;line-height:.9!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
body.single-gallery .gug-gbanner .gug-gb-ln{display:block;white-space:nowrap;line-height:.9}
body.single-gallery .gug-gbanner .gug-gb-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
body.single-gallery .entry-content .gug-gbanner .gug-gb-sub{display:block;font-size:clamp(1.2rem,5.5cqi,2.4rem);margin-top:.3em;white-space:nowrap}
body.single-gallery .gug-gbanner .gug-gb-photo{display:block;width:100%;margin:0;overflow:hidden;line-height:0}
body.single-gallery .gug-gbanner .gug-gb-img{aspect-ratio:auto!important;object-fit:contain!important;transform:scale(1.03)!important;width:100%!important;max-width:100%!important;height:auto!important;margin:0 auto}
@media (min-width:782px){
 body.single-gallery .entry-content > .gug-gbanner{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);align-items:end}
 body.single-gallery .gug-gbanner .gug-gb-img{max-height:calc(100vh - 150px)}
}
@media (max-width:781px){body.single-gallery .entry-content .gug-gbanner p.gug-gb-l1,body.single-gallery .entry-content .gug-gbanner p.gug-gb-l2{font-size:clamp(2.6rem,22cqi,5rem)!important}}
