/*
 * Brownie Art (2026-11-05): the product photo gallery (inc/gallery.php), the customer-picture field in the
 * buy form (bakt-core class-custom-art.php) and the Brownie Art page sections.
 * Own file (new URL) so AccelerateWP's year-long cache of the minified bakt.css doesn't hide it. Loaded after bakt.css.
 */

/* ---------- Gallery ---------- */

.bakt-gallery { position: relative; min-width: 0; }
.bakt-row .bakt-gallery { aspect-ratio: auto !important; } /* The row's media column is 4:5 / 4:3; the slides set their own shape. */
.bakt-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; background: var(--bk-alt); }
.bakt-gallery__track::-webkit-scrollbar { display: none; }
.bakt-gallery__track:focus-visible { outline: var(--bk-focus); outline-offset: 3px; }
.bakt-gallery__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 4 / 5; scroll-snap-align: start; overflow: hidden; }
.bakt-gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Desktop: a column of thumbnails over the left edge of the photo. */
.bakt-gallery__thumbs { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 1; }
.bakt-gallery__thumb { display: block; width: 56px; height: 56px; padding: 0; border: 2px solid var(--bk-ivory); background: var(--bk-ivory); opacity: .78; transition: opacity .2s, border-color .2s; }
.bakt-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bakt-gallery__thumb:hover, .bakt-gallery__thumb.is-active { opacity: 1; }
.bakt-gallery__thumb.is-active { border-color: var(--bk-espresso); }
.bakt-gallery__thumb:focus-visible { outline: var(--bk-focus); outline-offset: 3px; }
.bakt-gallery__bar { display: none; }
.bakt-gallery__slide[hidden], .bakt-gallery__thumb[hidden] { display: none !important; } /* Photos for the other cut. */

/* Phones: swipe, the next photo peeks in, thin progress bar underneath. */
@media (max-width: 760px) {
	.bakt-gallery__track { gap: 8px; background: none; }
	.bakt-gallery__slide { flex-basis: 88%; aspect-ratio: 1; }
	.bakt-gallery__slide:last-child { margin-right: 12%; }
	.bakt-gallery__thumbs { display: none; }
	.bakt-gallery__bar { display: block; height: 2px; margin-top: 14px; background: var(--bk-line); overflow: hidden; }
	.bakt-gallery__bar span { display: block; height: 100%; width: calc(100% / var(--bakt-gallery-n, 1)); background: var(--bk-espresso); transition: transform .3s ease; }
}

/* ---------- Option groups with visible labels (Bake, Cut) ---------- */

.bk-choice__legend { padding: 0; margin: 0 0 8px; grid-column: 1 / -1; font-family: var(--bk-sc); font-weight: 500; font-size: 15px; letter-spacing: .08em; color: var(--bk-espresso); }

/* ---------- Customer picture ---------- */

.bk-art { flex-basis: 100%; order: -1; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 8px; padding: 18px; border: 1px dashed var(--bk-muted); background: var(--bk-ivory); }
.bk-art__label { font-family: var(--bk-sc); font-weight: 500; font-size: 15px; letter-spacing: .08em; }
.bk-art__pick { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bk-art__preview { width: 64px; height: 64px; object-fit: cover; flex: none; border: 1px solid var(--bk-line); }
.bk-art__file { min-width: 0; max-width: 100%; font-size: 14px; }
.bk-art__file::file-selector-button { margin-right: 12px; min-height: 44px; padding: 0 18px; border: 1px solid var(--bk-espresso); background: transparent; color: var(--bk-espresso); font-family: var(--bk-sc); font-weight: 700; font-size: 15px; letter-spacing: .08em; cursor: pointer; }
.bk-art__file::file-selector-button:hover { background: var(--bk-espresso); color: var(--bk-ivory); }
.bk-art__file:focus-visible { outline: var(--bk-focus); outline-offset: 3px; }
.bk-art__help { margin: 0; font-size: 13px; line-height: 1.6; color: var(--bk-muted); }
.bk-art__rights { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.bk-art__rights input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--bk-espresso); }

/* ---------- Brownie Art page ---------- */

.bakt-art-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.bakt-art-how__step { border-top: 1px solid var(--bk-sage); padding-top: 20px; }
.bakt-art-how__step .is-style-label { color: var(--bk-sage-ink); }
.bakt-art-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.bakt-art-tips ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bakt-art-tips li { position: relative; padding-left: 26px; }
.bakt-art-tips li::before { position: absolute; left: 0; top: 0; font-family: var(--bk-sans); }
.bakt-art-tips__yes li::before { content: "✓"; color: var(--bk-sage-ink); }
.bakt-art-tips__no li::before { content: "✕"; color: var(--bk-danger); }

@media (max-width: 760px) {
	.bakt-art-how, .bakt-art-tips { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
