/* Nature Boy Digital: gallery grid, size picker, order bar, lightbox. Uses tokens from style.css. */
.nbd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 6px; border: 2px solid var(--nbd-ink); background: var(--nbd-ink); color: #fff; font: 600 1.05rem/1 var(--nbd-font-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.nbd-btn:hover, .nbd-btn:focus { background: #000; border-color: #000; color: #fff; }
.nbd-btn--ghost { background: transparent; color: var(--nbd-ink); }
.nbd-btn--ghost:hover, .nbd-btn--ghost:focus { background: var(--nbd-ink); color: #fff; }
.nbd-btn[disabled] { opacity: .5; cursor: not-allowed; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gallery-tabs { display: flex; gap: 4px 28px; overflow-x: auto; border-bottom: 1px solid var(--nbd-line); scrollbar-width: thin; }
.gallery-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 48px; font: 600 1.2rem/1 var(--nbd-font-head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--nbd-ink-2); border-bottom: 3px solid transparent; }
.gallery-tabs a[aria-current="page"] { color: var(--nbd-ink); border-bottom-color: var(--nbd-ink); }
.gallery-tabs a:hover { color: var(--nbd-ink); }

.order-bar { position: sticky; top: 92px; z-index: 20; margin: 16px 0 8px; background: #fff; border: 1px solid var(--nbd-line); border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.06); padding: 10px 12px 10px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.admin-bar .order-bar { top: 124px; }
@media (max-width: 1024px) { .order-bar { top: 80px; } .admin-bar .order-bar { top: 126px; } }
.order-bar p { margin: 0; }
.order-bar strong { font: 600 1.2rem/1 var(--nbd-font-head); letter-spacing: .06em; text-transform: uppercase; margin-right: 10px; }
.order-bar .nbd-btn { min-height: 44px; }

.photo-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 44px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.photo-card { display: flex; flex-direction: column; margin: 0; }
.photo-card .zoom { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; width: 100%; padding: 0; border: 0; background: #e7e3da; cursor: zoom-in; border-radius: 6px; overflow: hidden; }
.photo-card .zoom:hover, .photo-card .zoom:focus { background: #e7e3da; }
.photo-card .zoom img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.photo-card .zoom:hover img { transform: scale(1.03); }
.photo-title { font: 600 1.6rem/1.15 var(--nbd-font-head); margin: 14px 0 2px; }
h3.photo-title { font-size: 1.45rem; }
.photo-title a { color: var(--nbd-ink); text-decoration: none; }
.photo-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.from-price { color: var(--nbd-ink-2); margin: 0; }
.from-price b { color: var(--nbd-ink); }
.choose-btn { min-height: 44px; padding: 0 18px; }

.picker { margin-top: 14px; background: #fff; border: 1px solid var(--nbd-line); border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.06); padding: 18px; display: grid; gap: 16px; }
.picker[hidden] { display: none; }
.picker fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker legend { font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--nbd-ink-2); margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; border: 2px solid var(--nbd-ink); border-radius: 6px; overflow: hidden; }
.seg label { position: relative; display: block; min-height: 44px; margin: 0; cursor: pointer; font-weight: 600; letter-spacing: .06em; }
.seg label + label { border-left: 2px solid var(--nbd-ink); }
.seg span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.seg input, .sizes input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg input:checked + span { background: var(--nbd-ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--nbd-focus); outline-offset: -5px; }
.type-note { font-size: .95rem; color: var(--nbd-ink-3); margin: 8px 0 0; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 6px; }
.sizes label { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 48px; padding: 0 8px; margin: 0; border: 1px solid #aaa49a; border-radius: 6px; cursor: pointer; background: #fff; font-size: 1rem; }
.sizes label:hover { border-color: var(--nbd-ink); }
.sizes label.is-off { opacity: .45; cursor: not-allowed; }
.sizes .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #777; flex: none; }
.sizes input:checked ~ .dot { border: 6px solid var(--nbd-ink); }
.sizes label:has(input:checked) { border: 2px solid var(--nbd-ink); background: #faf6dc; }
.sizes input:focus-visible ~ .dot { outline: 3px solid var(--nbd-focus); outline-offset: 2px; }
.sizes .sz { flex: 1; white-space: nowrap; }
.picker-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--nbd-line); padding-top: 14px; }
.picker-price { display: flex; flex-direction: column; line-height: 1.2; }
.picker-price small { color: var(--nbd-ink-3); font-size: .95rem; }
.picker-price output { font-size: 1.7rem; font-weight: 600; }
.added-msg { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; background: #e8f1ec; color: #1d3d2c; border-radius: 6px; padding: 10px 14px; }
.added-msg:empty { display: none; }
.added-msg a { color: #1d3d2c; font-weight: 600; }
@media (max-width: 480px) { .picker { padding: 14px; } }
.nbd-single-picker .picker { box-shadow: none; margin: 8px 0 24px; }

.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(8,9,10,.96); color: #fff; }
.lightbox::backdrop { background: rgba(8,9,10,.96); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 24px; gap: 14px; }
.lightbox img { max-height: calc(100vh - 170px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { max-width: 60em; text-align: center; color: #ddd; }
.lightbox figcaption b { display: block; font: 600 1.5rem/1.2 var(--nbd-font-head); color: #fff; margin-bottom: 4px; }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #2a2d31; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.lightbox-close:hover, .lightbox-close:focus { background: #3a3e43; }
.lightbox :focus-visible { outline-color: var(--nbd-sun); }
@media (prefers-reduced-motion: reduce) { .photo-card .zoom img { transition: none; } }

/* Beat Elementor's global link colour on button-style links. */
body a.nbd-btn, body a.nbd-btn:visited { color: #fff; text-decoration: none; }
body a.nbd-btn:hover, body a.nbd-btn:focus { color: #fff; }
body a.nbd-btn--ghost, body a.nbd-btn--ghost:visited { color: var(--nbd-ink); }
body a.nbd-btn--ghost:hover, body a.nbd-btn--ghost:focus { color: #fff; }
/* Breadcrumbs */
.nbd-crumbs .rank-math-breadcrumb p { margin: 0; font-size: .95rem; color: var(--nbd-ink-3); }
.nbd-crumbs .rank-math-breadcrumb a { color: var(--nbd-ink-2); }
.nbd-crumbs .separator { margin: 0 6px; }

/* Infinite scroll footer */
.nbd-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 48px 0 8px; text-align: center; }
.nbd-count { margin: 0; color: var(--nbd-ink-3); }
/* Smaller photo titles */
.photo-title { font-size: 1.35rem !important; }
h3.photo-title { font-size: 1.25rem !important; }
.lightbox figcaption b { font-size: 1.3rem; }
.picker-price .ship-line { color: var(--nbd-ink-3); font-size: .9rem; margin-top: 2px; }
.picker-price .ship-line:empty { display: none; }

/* Hover: title + description over the photo (like David's original galleries). */
.photo-card .zoom { position: relative; }
.photo-card .zoom-info { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	padding: 24px 28px; text-align: center; background: rgba(10, 12, 14, .72); color: #fff; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.photo-card .zoom-info b { font: 600 1.35rem/1.2 var(--nbd-font-head); color: var(--nbd-sun); letter-spacing: .02em; }
.photo-card .zoom-info span { font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.photo-card .zoom:hover .zoom-info, .photo-card .zoom:focus-visible .zoom-info { opacity: 1; }
.photo-card .zoom:hover img { transform: none; }
@media (hover: none) { .photo-card .zoom-info { display: none; } }
@media (prefers-reduced-motion: reduce) { .photo-card .zoom-info { transition: none; } }
.photo-card .zoom-info, .photo-card .zoom-info * { white-space: normal !important; overflow-wrap: anywhere; }
.photo-card .zoom-info span { max-width: 36em; }

/* Proof / cropping callout under the picker */
.proof-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-left: 4px solid #C9A227; border-radius: 4px; background: #FAF6DC; color: var(--nbd-ink); font-size: .95rem; line-height: 1.45; }
.proof-note .proof-ico { flex: none; margin-top: 1px; color: #8A6D0B; }
.nbd-single-picker .proof-note { font-size: 1rem; }

/* Donation note (9/11 prints) */
.donation-note { margin: 2px 0 6px; font-size: .95rem; font-weight: 600; color: #1F4E79; }
.donation-note--box { margin: 0; padding: 12px 14px; border-left: 4px solid #1F4E79; border-radius: 4px; background: #EAF1F8; }
