/* Gallery page template */

/* Masonry: every photo keeps its own shape (grid layout keeps the 3:4 crop). */
.pete-gallery--masonry .journal-item__media img {
	aspect-ratio: auto;
	height: auto;
}

/* ---- On-page editor (editors only) ---- */
.pete-gallery-page { position: relative; }
.pete-gallery-page.is-fe-editing { outline: 2px dashed #b8a35a; outline-offset: 12px; border-radius: 4px; }
.pete-gallery-page .pw-fe-bar { margin-top: 2.5rem; }
[data-pete-gallery-public][hidden], .pete-ge[hidden] { display: none !important; }

.pete-ge { margin-top: 1.5rem; display: grid; gap: 2rem; }
.pete-ge h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #6b645a; margin: 0 0 .75rem; font-weight: 500; }

.pete-ge__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.pete-ge__photo { position: relative; aspect-ratio: 4 / 3; background: #ece6da; border-radius: 6px; overflow: hidden; cursor: grab; outline: 2px solid transparent; transition: outline-color .12s, opacity .12s; }
.pete-ge__photo img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pete-ge__photo:hover, .pete-ge__photo:focus-visible { outline-color: #1a1814; }
.pete-ge__photo.is-dragging { opacity: .35; }
.pete-ge__photo.is-over { outline: 2px dashed #b8a35a; }
.pete-ge__n { position: absolute; left: 6px; top: 6px; min-width: 22px; padding: 0 5px; height: 22px; border-radius: 11px; background: rgba(26,24,20,.75); color: #fff; font-size: 11px; line-height: 22px; text-align: center; }
.pete-ge__photo .pw-tools { top: 6px; right: 6px; opacity: 0; transition: opacity .12s; }
.pete-ge__photo:hover .pw-tools, .pete-ge__photo:focus-within .pw-tools { opacity: 1; }
@media (hover: none) { .pete-ge__photo .pw-tools { opacity: 1; } }
.pete-ge__add { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px dashed #d9d2c5; border-radius: 6px; background: transparent; color: #6b645a; font: inherit; cursor: pointer; }
.pete-ge__add:hover { border-color: #1a1814; color: #1a1814; }
.pete-ge__hint { font-size: .85rem; color: #6b645a; margin: .5rem 0 0; }

.pete-ge__layouts { display: flex; flex-wrap: wrap; gap: 12px; }
.pete-ge__layout { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #d9d2c5; border-radius: 8px; background: #fff; cursor: pointer; font-size: .95rem; }
.pete-ge__layout:has(input:checked) { border-color: #1a1814; box-shadow: inset 0 0 0 1px #1a1814; }
.pete-ge__layout svg { width: 34px; height: 26px; flex: none; }

.pete-ge__quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 760px; }
.pete-ge__quote { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #d9d2c5; border-radius: 6px; background: #fff; cursor: pointer; }
.pete-ge__quote:has(input:checked) { border-color: #1a1814; }
.pete-ge__quote input { margin-top: .25rem; }
.pete-ge__quote span { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.pete-ge__quote em { color: #6b645a; font-size: .85rem; }
.pete-ge__flag { color: #9b2c2c; font-size: .78rem; }

.pete-ge__align { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 4px; font: inherit; font-size: 11px; border: 0; border-radius: 4px; background: rgba(255,255,255,.92); color: #1a1814; cursor: pointer; }

/* Even grid = homepage grid, edge to edge */
.pete-gallery-grid--bleed { width: 100vw; margin-left: calc(50% - 50vw); }
html:has(.pete-gallery-grid--bleed) { overflow-x: clip; } /* 100vw includes classic (Windows) scrollbars */

/* ---- Service page parts ---- */
.pete-svc-hero { position: relative; min-height: clamp(420px, 72vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: #1a1814; color: #fdfcf9; }
.pete-svc-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pete-svc-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,24,20,0) 35%, rgba(26,24,20,.72) 100%); }
.pete-svc-hero__inner { position: relative; padding-top: 6rem; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.pete-svc-hero__title { margin: 0; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; font-weight: 500; letter-spacing: .02em; color: #fdfcf9; max-width: 22ch; }
.pete-svc-hero__tagline { margin: 1rem 0 0; max-width: 56ch; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.55; color: rgba(253,252,249,.9); }
.pete-svc-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

.pete-svc-btn { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.6rem; border-radius: 999px; border: 1px solid #1a1814; background: #1a1814; color: #f5f1ea; font: inherit; font-size: .95rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: opacity .15s, background-color .15s, color .15s; }
.pete-svc-btn:hover { opacity: .88; }
.pete-svc-btn--ghost { background: transparent; color: #1a1814; }
.pete-svc-btn--ghost:hover { background: #1a1814; color: #f5f1ea; opacity: 1; }
.pete-svc-btn--light { background: #ffffff; color: #1a1814; border-color: #fdfcf9; }
.pete-svc-btn--ghost-light { background: transparent; color: #fdfcf9; border-color: rgba(253,252,249,.75); }
.pete-svc-btn--ghost-light:hover { background: #ffffff; color: #1a1814; opacity: 1; }
.pete-svc-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.pete-svc-intro { display: grid; gap: 2.5rem; margin: 0 0 1rem; }
@media (min-width: 900px) { .pete-svc-intro.has-card { grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; align-items: start; } }
.pete-svc-copy { max-width: 68ch; font-size: 1.05rem; line-height: 1.75; color: #3d3830; }
.pete-svc-copy h2 { margin: 2.25rem 0 .75rem; font-size: 1.35rem; font-weight: 500; color: #1a1814; letter-spacing: .02em; }
.pete-svc-copy h2:first-child { margin-top: 0; }
.pete-svc-copy h3 { margin: 1.75rem 0 .5rem; font-size: 1.1rem; font-weight: 500; color: #1a1814; }
.pete-svc-copy p { margin: 0 0 1.1rem; }
.pete-svc-copy ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.pete-svc-copy li { margin: 0 0 .35rem; }

.pete-svc-card { position: sticky; top: 6.5rem; background: #ffffff; border: 1px solid #d9d2c5; border-radius: 10px; padding: 1.5rem 1.5rem 1.25rem; }
.pete-svc-card__eyebrow { margin: 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #6b645a; }
.pete-svc-card__from { margin: .35rem 0 1rem; font-size: 1.9rem; font-variant-numeric: tabular-nums; color: #1a1814; }
.pete-svc-card__list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.pete-svc-card__list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid #e8e1d4; font-size: .95rem; }
.pete-svc-card__list strong { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pete-svc-card .pete-svc-btn { width: 100%; }
.pete-svc-card__small { margin: .9rem 0 0; text-align: center; font-size: .9rem; }
.pete-svc-card__small a { color: #1a1814; }

.pete-svc-h2 { margin: 0 0 1.25rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: #6b645a; }
.pete-svc-faq { margin: 4.5rem 0 0; max-width: 820px; }
.pete-svc-faq__item { border-top: 1px solid #d9d2c5; }
.pete-svc-faq__item:last-child { border-bottom: 1px solid #d9d2c5; }
.pete-svc-faq__item > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; cursor: pointer; font-size: 1.05rem; color: #1a1814; }
.pete-svc-faq__item > summary::-webkit-details-marker { display: none; }
.pete-svc-faq__item > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.pete-svc-faq__item[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.pete-svc-faq__a { padding: 0 0 1.25rem; color: #3d3830; line-height: 1.7; max-width: 68ch; }
.pete-svc-faq__a p { margin: 0 0 .75rem; }

.pete-svc-cta { margin: 5rem 0 1rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 12px; background: #ece6da; text-align: center; }
.pete-svc-cta__title { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; color: #1a1814; }
.pete-svc-cta__text { margin: .75rem auto 0; max-width: 52ch; color: #3d3830; }
.pete-svc-cta .pete-svc-hero__ctas { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .pete-svc-faq__item > summary::after, .pete-svc-btn { transition: none; } }

/* Editor: service page fields */
.pete-ge__hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.pete-ge__hero-img { width: 260px; aspect-ratio: 16 / 9; border-radius: 6px; background: #ece6da center / cover no-repeat; border: 1px dashed #d9d2c5; display: grid; place-items: center; color: #6b645a; font-size: .85rem; }
.pete-ge__field { display: block; max-width: 760px; }
.pete-ge__field input[type="text"], .pete-ge__field textarea, .pete-ge__field select { width: 100%; box-sizing: border-box; padding: .55rem .7rem; border: 1px solid #d9d2c5; border-radius: 6px; font: inherit; background: #fff; color: #1a1814; }
.pete-ge__field span { display: block; font-size: .8rem; color: #6b645a; margin-bottom: .25rem; }
.pete-ge__pkgs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: .75rem; font-size: .92rem; }
.pete-ge__pkgs label { display: inline-flex; gap: .35rem; align-items: center; }
.pete-ge__faq { display: grid; gap: 10px; max-width: 760px; }
.pete-ge__faq-row { position: relative; background: #fff; border: 1px solid #d9d2c5; border-radius: 8px; padding: 2.4rem .9rem .9rem; display: grid; gap: 8px; }
.pete-ge__faq-row input, .pete-ge__faq-row textarea { width: 100%; box-sizing: border-box; padding: .5rem .6rem; border: 1px solid #d9d2c5; border-radius: 6px; font: inherit; }
.pete-ge__faq-row input { font-weight: 500; }
.pete-gallery-page .pw-fe-bar { top: calc(var(--wp-admin--admin-bar--height, 0px) + 84px); } /* clear the sticky site header */
.pete-svc-card__tax { margin: -.5rem 0 1rem; font-size: .8rem; color: #6b645a; }

/* Service pages: testimonials first, right under the hero. */
.pete-quotes--top { margin: 0 0 3.5rem; }
@media (min-width: 768px) { .pete-quotes--top { margin-bottom: 4.5rem; } }
