/* en-v Commerce — photo reviews. Colours follow the en-v theme (with fallbacks). */

/* Review form: photo picker (inside the dark review panel) */
.env-photo-field { margin: 6px 0 16px; }
.env-photo-title { display: block; margin-bottom: 8px; color: var(--gold, #e2bf68); font: 10px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; }
.env-photo-title small { font-size: inherit; letter-spacing: inherit; opacity: .75; }
.env-photo-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.env-photo-previews { display: contents; }
.woocommerce #review_form #respond .env-photo-field input.env-photo-input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.woocommerce #review_form #respond label.env-photo-add { display: inline-grid; place-content: center; justify-items: center; gap: 2px; width: 76px; height: 76px; margin: 0; border: 1px dashed rgba(226, 191, 104, .65); color: var(--gold, #e2bf68); font: 600 11px var(--sans, sans-serif); letter-spacing: 0; text-transform: none; cursor: pointer; }
.woocommerce #review_form #respond label.env-photo-add span { font-size: 22px; font-weight: 400; line-height: 1; }
.woocommerce #review_form #respond label.env-photo-add[hidden] { display: none; }
.env-photo-add:hover, .env-photo-input:focus-visible + .env-photo-add { border-style: solid; background: rgba(226, 191, 104, .1); }
.env-photo-input:focus-visible + .env-photo-add { outline: 2px solid var(--gold, #e2bf68); outline-offset: 2px; }
.env-photo-thumb { position: relative; width: 76px; height: 76px; margin: 0; }
.env-photo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(226, 191, 104, .45); }
.env-photo-thumb button { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--gold, #e2bf68); border-radius: 50%; background: var(--wine, #241011); color: var(--gold, #e2bf68); font: 16px/1 var(--sans, sans-serif); cursor: pointer; }
.env-photo-error { min-height: 0; margin: 8px 0 0; color: #ffb3a7; font: 600 12px var(--sans, sans-serif); }
.env-photo-error:empty { display: none; }
.env-photo-note { margin: 8px 0 0; color: rgba(255, 240, 205, .78); font: 11px/1.5 var(--sans, sans-serif); }
.env-photo-note a { color: var(--gold, #e2bf68); text-decoration: underline; }
.woocommerce #review_form #respond .form-submit input:disabled { opacity: .55; cursor: wait; }

/* Photos under a review */
.env-review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.env-photo { display: block; overflow: hidden; border: 1px solid rgba(167, 123, 73, .4); background: #efe3c9; }
.env-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.env-photo:hover img { transform: scale(1.05); }
.env-review-photos .env-photo { width: 76px; height: 76px; }

/* "Customer photos" strip in the reviews intro */
.env-customer-photos { max-width: 330px; margin-top: 28px; }
.env-customer-photos .eyebrow { margin-bottom: 10px; }
.env-customer-photos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.env-customer-photos-grid .env-photo { position: relative; aspect-ratio: 1; }
.env-customer-photos-grid .env-photo.is-hidden { display: none; }
.env-customer-photos-grid .env-photo.has-more span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(36, 16, 17, .62); color: #fff0cd; font: 700 15px var(--sans, sans-serif); }

/* Lightbox */
body.env-lightbox-open { overflow: hidden; }
.env-lightbox { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 56px 64px; background: rgba(24, 9, 10, .93); }
.env-lightbox[hidden] { display: none; }
.env-lightbox img { max-width: 100%; max-height: calc(100vh - 112px); object-fit: contain; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.env-lightbox button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(226, 191, 104, .55); border-radius: 50%; background: rgba(36, 16, 17, .7); color: #f0d79a; cursor: pointer; }
.env-lightbox button::before { content: ""; width: 11px; height: 11px; border: solid currentColor; border-width: 0 2px 2px 0; }
.env-lightbox-close { top: 14px; right: 14px; }
.env-lightbox-close::before { display: none; }
.env-lightbox-close::after { content: "×"; font: 28px/1 var(--sans, sans-serif); }
.env-lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.env-lightbox-prev::before { transform: translateX(2px) rotate(135deg); }
.env-lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.env-lightbox-next::before { transform: translateX(-2px) rotate(-45deg); }
.env-lightbox.is-single .env-lightbox-prev, .env-lightbox.is-single .env-lightbox-next { display: none; }
.env-lightbox-count { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; color: #e8d6b2; font: 12px var(--mono, monospace); letter-spacing: .1em; text-align: center; }
@media (max-width: 700px) {
	.env-lightbox { padding: 60px 10px; }
	.env-lightbox-prev, .env-lightbox-next { top: auto; bottom: 8px; transform: none; }
	.env-customer-photos { max-width: none; }
}
