/* Candle Factory Vietnam – additions on top of the original (generated) styles. */

/* Background slideshow layer */
.cfv-has-slideshow { position: relative; }
.cfv-bg-slideshow { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.cfv-bg-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition-property: opacity; transition-timing-function: ease; }
.cfv-bg-slide.is-active { opacity: 1; }
.cfv-has-slideshow > *:not(.cfv-bg-slideshow) { position: relative; z-index: 1; }

/* Lightbox */
.cfv-lb-lock { overflow: hidden; }
.cfv-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .88); padding: 48px 64px; box-sizing: border-box; }
.cfv-lightbox.is-open { display: flex; }
.cfv-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.cfv-lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.cfv-lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; font-size: 15px; line-height: 1.5; }
.cfv-lightbox figcaption strong { display: block; }
.cfv-lightbox figcaption span { opacity: .8; }
.cfv-lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 44px; line-height: 1; padding: 8px 14px; opacity: .85; }
.cfv-lightbox button:hover, .cfv-lightbox button:focus { opacity: 1; background: none; color: #fff; }
.cfv-lb-close { top: 8px; right: 12px; }
.cfv-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.cfv-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.cfv-lightbox.is-single .cfv-lb-prev, .cfv-lightbox.is-single .cfv-lb-next { display: none; }
.cfv-lb-counter { position: absolute; top: 18px; left: 20px; color: #fff; font-size: 14px; opacity: .8; }
@media (max-width: 767px) { .cfv-lightbox { padding: 48px 12px; } }

/* Catalogue form */
.cfv-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.cfv-form-message { margin: 10px 0; }
.cfv-form-message p { margin: 0 0 6px; }
.wpforms-error-container.cfv-form-message { color: #d63637; }
.wpforms-confirmation-container-full.cfv-form-message { background: #e0ffc7; border: 1px solid #b4d39b; color: #333; padding: 15px 15px 9px; }
.cfv-catalog-download { font-weight: 700; text-decoration: underline; }

/* Accordion: content hidden until opened (Elementor did this with JS) */
.elementor-accordion .elementor-tab-title { cursor: pointer; }

/* Home hero eyebrow: the original Elementor setting is line-height 3px, which overlaps once the
   text wraps on phones (desktop keeps the original single-line look). */
@media (max-width: 767px) {
	.elementor-308 .elementor-element.elementor-element-d6211bd .elementor-heading-title { line-height: 1.3; }
}

/* Blog pagination */
.navigation.pagination { margin: 30px 0; }
.navigation.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.navigation.pagination .page-numbers { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; }
.navigation.pagination .page-numbers.current { background: #314a22; color: #fff; border-color: #314a22; }
