/* ==========================================================================
   Krasiva Studio – Figma redesign (1:1 port of krasivastudio.figma.site)
   Loaded after Astra + astra-child style.css. All selectors prefixed kf-.
   ========================================================================== */

:root {
  --kf-bg:        #f7f2ec;
  --kf-text:      #2a1f18;
  --kf-accent:    #B8764E;
  --kf-dark:      #4f453f;
  --kf-strip:     rgba(42, 31, 24, 0.82);
  --kf-stone-100: #f5f5f4;
  --kf-stone-200: #e7e5e4;
  --kf-stone-300: #d6d3d1;
  --kf-stone-400: #a8a29e;
  --kf-stone-500: #78716c;
  --kf-stone-600: #57534e;
  --kf-stone-700: #44403c;
  --kf-stone-800: #292524;
  --kf-serif:     "Playfair Display", Georgia, serif;
  --kf-sans:      "Lato", system-ui, sans-serif;
  --kf-logo:      "Bodoni Moda", Georgia, serif;
}

/* ---------- Base overrides (beat astra + old child css) ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.kf-body {
  margin: 0;
  background: var(--kf-bg) !important;
  color: var(--kf-text);
  font-family: var(--kf-sans) !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.kf-body .kf-content,
body.kf-body #content.site-content { background: var(--kf-bg); padding-top: 64px !important; }
body.kf-body .kf-content > .ast-container { max-width: none; padding: 0; margin: 0; }
body.page-template-page-home .kf-content,
body.page-template-page-gallery .kf-content { padding-bottom: 0 !important; margin: 0 !important; }
body.kf-body .kf-main,
body.kf-body .kf-main *,
body.kf-body .kf-header,
body.kf-body .kf-header *,
body.kf-body .kf-footer,
body.kf-body .kf-footer *,
body.kf-body .kf-modal *,
body.kf-body .kf-lightbox * { box-sizing: border-box; }
body.kf-body .kf-main img { display: block; max-width: 100%; }
body.kf-body .kf-main h1, body.kf-body .kf-main h2, body.kf-body .kf-main h3, body.kf-body .kf-main h4,
body.kf-body .kf-main p, body.kf-body .kf-main ul { margin: 0; padding: 0; }
body.kf-body .kf-main ul, body.kf-body .kf-footer ul { list-style: none; }
body.kf-body .kf-main a, body.kf-body .kf-header a, body.kf-body .kf-footer a { text-decoration: none; }
body.kf-body .kf-main button { font: inherit; }

/* Hide Astra/old-theme leftovers that could appear on pages */
body.kf-body .skip-link { position: absolute; left: -9999px; }
body.kf-body .sf-credit { display: none !important; }
body.kf-body.page-template-page-home .entry-title,
body.kf-body.page-template-page-gallery .entry-title,
body.kf-body .ast-breadcrumbs-wrapper { display: none !important; }

/* ---------- Shared primitives ---------- */
.kf-container { max-width: 1280px; margin: 0 auto; }

.kf-eyebrow {
  font-family: var(--kf-sans);
  font-size: 12px; line-height: 16px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--kf-accent); margin: 0 0 8px !important;
}
.kf-eyebrow--light { color: rgba(255,255,255,0.6); margin-bottom: 12px !important; }
.kf-eyebrow--tight { margin-bottom: 4px !important; }
.kf-eyebrow--hero { color: rgba(255,255,255,0.6); letter-spacing: 0.35em; margin-bottom: 20px !important; }

.kf-h2 {
  font-family: var(--kf-serif) !important;
  font-size: 36px; line-height: 40px; font-weight: 600 !important; letter-spacing: 0 !important;
  color: var(--kf-stone-800);
}
.kf-h2--xl { font-size: 36px; line-height: 40px; }
@media (min-width: 768px) { .kf-h2--xl { font-size: 48px; line-height: 1.375; } }
.kf-h2--light { color: #fff; }

/* buttons */
.kf-btn, body.kf-body .kf-btn, body.kf-body a.kf-btn {
  display: inline-block;
  background: var(--kf-accent) !important;
  color: #fff !important;
  font-family: var(--kf-sans);
  font-size: 12px; line-height: 16px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 0; border-radius: 9999px;
  padding: 14px 40px;
  text-align: center; cursor: pointer; text-decoration: none;
  transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}
.kf-btn:hover { opacity: .9; }
.kf-btn--sm, body.kf-body .kf-btn--sm { padding: 8px 20px; }
.kf-btn--lg { padding: 14px 40px; }
.kf-btn--block, body.kf-body .kf-btn--block { display: block; width: 100%; padding: 14px 20px; }
.kf-btn--outline, body.kf-body .kf-btn--outline {
  background: transparent !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,0.5); padding: 12px 32px;
}
.kf-btn--outline:hover, body.kf-body .kf-btn--outline:hover { background: #fff !important; color: var(--kf-dark) !important; opacity: 1; }

.kf-pill, body.kf-body a.kf-pill {
  display: inline-block;
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--kf-stone-600); border: 1px solid var(--kf-stone-200); border-radius: 9999px;
  padding: 8px 20px; background: transparent; transition: border-color .15s ease;
}
.kf-pill:hover, body.kf-body a.kf-pill:hover { border-color: var(--kf-stone-400); color: var(--kf-stone-600); }

.kf-link, body.kf-body button.kf-link {
  background: none !important; border: 0; padding: 0; cursor: pointer;
  font-family: var(--kf-sans); font-size: 12px; line-height: 16px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--kf-accent) !important;
  transition: opacity .15s ease; border-radius: 0;
}
.kf-link:hover, body.kf-body button.kf-link:hover { opacity: .7; }

/* ---------- Header ---------- */
.kf-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--kf-stone-100);
}
body.admin-bar .kf-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .kf-header { top: 46px; } }
.kf-header__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.kf-header__brand { display: none; align-items: center; gap: 16px; }
.kf-nav { display: none; align-items: center; gap: 24px; }
.kf-header__mobile-brand { display: flex; align-items: center; margin: 0 auto; }
.kf-burger {
  display: inline-flex; align-items: center; justify-content: center;
  background: none !important; border: 0; padding: 0; color: var(--kf-text) !important; cursor: pointer;
  width: 22px; height: 22px; border-radius: 0; margin: 0;
}
@media (min-width: 768px) {
  .kf-header__brand, .kf-nav { display: flex; }
  .kf-header__mobile-brand, .kf-burger, .kf-mobile-menu { display: none !important; }
}
.kf-logo, body.kf-body a.kf-logo, body.kf-body span.kf-logo {
  font-family: var(--kf-logo) !important; font-size: 1.35rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--kf-text) !important; line-height: 1.5;
}
.kf-logo--mobile, body.kf-body a.kf-logo--mobile { font-size: 1.25rem; }
.kf-logo--light, body.kf-body span.kf-logo--light { color: #fff !important; }
.kf-social { display: inline-block; line-height: 0; opacity: .6; transition: opacity .15s ease; }
.kf-social:hover { opacity: 1; }
.kf-social img { object-fit: contain; display: block; }
.kf-social--sm img { width: 24px; height: 24px; }
.kf-social--lg { opacity: .5; }
.kf-social--lg img { width: 28px; height: 28px; }
.kf-nav__link, body.kf-body a.kf-nav__link {
  font-family: var(--kf-sans); font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--kf-stone-600) !important;
  transition: color .15s ease;
}
.kf-nav__link:hover, body.kf-body a.kf-nav__link:hover { color: var(--kf-accent) !important; }
.kf-mobile-menu {
  background: #fff; border-top: 1px solid var(--kf-stone-100);
  padding: 16px 24px; display: flex; flex-direction: column; gap: 12px;
}
.kf-mobile-menu[hidden] { display: none; }
.kf-mobile-menu__link, body.kf-body a.kf-mobile-menu__link {
  font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--kf-stone-600) !important;
}
.kf-mobile-menu__cta { width: fit-content; }

/* ---------- Hero ---------- */
.kf-hero {
  position: relative; height: 100vh; min-height: 600px; background: #000;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.kf-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.kf-hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.25); }
.kf-hero__content { position: relative; z-index: 10; text-align: center; padding: 0 24px; max-width: 768px; }
.kf-hero__title, body.kf-body .kf-hero__title {
  font-family: var(--kf-serif) !important; font-style: italic; font-weight: 500 !important;
  font-size: 48px; line-height: 1; letter-spacing: 0 !important; color: #fff; margin: 0 0 24px !important;
}
@media (min-width: 768px) { .kf-hero__title, body.kf-body .kf-hero__title { font-size: 72px; line-height: 1.25; } }
.kf-hero__text { color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.625; max-width: 576px; margin: 0 auto 40px !important; }

/* ---------- Info strip ---------- */
.kf-info { background: var(--kf-strip); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kf-info__inner {
  max-width: 1024px; margin: 0 auto; padding: 24px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.kf-info__item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 16px; text-align: center; }
.kf-info__item p, .kf-info__item a { color: rgba(255,255,255,0.8) !important; font-size: 12px; line-height: 1.625; }
@media (min-width: 768px) {
  .kf-info__inner { grid-template-columns: repeat(3, 1fr); }
  .kf-info__item { border-right: 1px solid rgba(255,255,255,0.15); }
  .kf-info__item:last-child { border-right: 0; }
}

/* ---------- Services ---------- */
.kf-services { background: var(--kf-bg); padding: 80px 24px; }
.kf-section-head--center { text-align: center; margin-bottom: 56px; }
.kf-services__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .kf-services__grid { grid-template-columns: repeat(3, 1fr); } }
.kf-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: box-shadow .3s ease;
}
.kf-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.kf-card__img { height: 192px; overflow: hidden; }
.kf-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kf-card:hover .kf-card__img img { transform: scale(1.05); }
.kf-card__body { padding: 24px; }
.kf-card__title, body.kf-body .kf-card__title {
  font-family: var(--kf-serif) !important; font-size: 20px; line-height: 28px; font-weight: 600 !important;
  letter-spacing: 0 !important; color: var(--kf-stone-800); margin: 0 0 8px !important;
}
.kf-card__text { font-size: 14px; line-height: 1.625; color: var(--kf-stone-500); margin: 0 0 16px !important; }

/* ---------- Why us ---------- */
.kf-why { background: var(--kf-dark); padding: 80px 24px; }
.kf-why__inner {
  max-width: 1024px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 768px) { .kf-why__inner { grid-template-columns: 1fr 1fr; } }
.kf-why .kf-h2 { margin-bottom: 32px !important; }
.kf-why__list { margin: 0 0 40px !important; }
.kf-why__list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 20px; color: rgba(255,255,255,0.9); margin: 0 0 16px;
}
.kf-why__list li:last-child { margin-bottom: 0; }
.kf-why__list svg { flex-shrink: 0; margin-top: 2px; }
.kf-why__img { display: none; height: 384px; border-radius: 16px; overflow: hidden; }
.kf-why__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .kf-why__img { display: block; } }

/* ---------- Portfolio ---------- */
.kf-portfolio { background: #fff; padding: 80px 24px; }
.kf-portfolio__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.kf-compare {
  position: relative; width: 100%; height: 288px; border-radius: 16px; overflow: hidden;
  margin-bottom: 16px; user-select: none; -webkit-user-select: none; cursor: col-resize; touch-action: pan-y;
}
@media (min-width: 768px) { .kf-compare { height: 384px; } }
.kf-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.kf-compare__before { clip-path: inset(0 calc(100% - var(--kf-pos)) 0 0); }
.kf-compare__line { position: absolute; top: 0; bottom: 0; left: var(--kf-pos); width: 1px; background: rgba(255,255,255,0.8); }
.kf-compare__handle {
  position: absolute; top: 50%; left: var(--kf-pos); transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 9999px; background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center; cursor: col-resize;
}
.kf-compare__label { position: absolute; bottom: 16px; pointer-events: none; }
.kf-compare__label--l { left: 16px; }
.kf-compare__label--r { right: 16px; }
.kf-compare__label span {
  display: inline-block; color: #fff; font-size: 12px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(0,0,0,0.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 4px 12px; border-radius: 9999px;
}
.kf-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
@media (min-width: 768px) { .kf-thumbs { grid-template-columns: repeat(4, 1fr); } }
.kf-thumbs__item { height: 176px; border-radius: 12px; overflow: hidden; }
.kf-thumbs__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Newsletter ---------- */
.kf-newsletter { background: var(--kf-dark); padding: 80px 24px; }
.kf-newsletter__inner { max-width: 672px; margin: 0 auto; }
.kf-newsletter__box { border: 1px solid var(--kf-accent); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; }
.kf-newsletter__title, body.kf-body .kf-newsletter__title {
  font-family: var(--kf-serif) !important; font-size: 24px; line-height: 32px; font-weight: 600 !important;
  letter-spacing: 0 !important; color: #fff; margin: 0 0 16px !important;
}
.kf-newsletter__text { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 2; margin: 0 0 24px !important; }
.kf-newsletter__form { display: flex; gap: 8px; margin: 0; }
.kf-newsletter__form input[type="email"], body.kf-body .kf-newsletter__form input[type="email"] {
  flex: 1 1 auto; min-width: 0; width: auto; margin: 0;
  background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 9999px;
  padding: 10px 16px; font-family: var(--kf-sans); font-size: 12px; line-height: 16px; outline: none; box-shadow: none;
}
.kf-newsletter__form input::placeholder { color: rgba(255,255,255,0.5); }
.kf-newsletter__form input:focus { border-color: rgba(255,255,255,0.6); }
.kf-newsletter__form button, body.kf-body .kf-newsletter__form button {
  flex-shrink: 0; background: #fff !important; color: var(--kf-accent) !important; border: 0; border-radius: 9999px;
  padding: 10px 16px; font-family: var(--kf-sans); font-size: 12px; line-height: 16px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: background-color .15s ease;
}
.kf-newsletter__form button:hover, body.kf-body .kf-newsletter__form button:hover { background: rgba(255,255,255,0.9) !important; }
.kf-newsletter__form button:disabled { opacity: .6; cursor: default; }
.kf-newsletter__msg { color: #fff; font-size: 13px; margin: 12px 0 0 !important; }
.kf-newsletter__msg.is-error { color: #fca5a5; }

/* ---------- Footer ---------- */
.kf-footer { background: var(--kf-dark); color: #fff; }
.kf-footer * { box-sizing: border-box; }
.kf-footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.kf-footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding: 64px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) { .kf-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.kf-footer__logo { margin-bottom: 16px; }
.kf-footer__tagline { color: var(--kf-stone-400); font-size: 12px; line-height: 2; margin: 0 0 24px; }
.kf-footer__social { display: flex; gap: 12px; }
.kf-footer__heading, body.kf-body .kf-footer__heading {
  font-family: var(--kf-sans) !important; color: #fff; font-size: 12px; line-height: 16px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 20px;
}
.kf-footer__list { margin: 0; padding: 0; list-style: none; }
.kf-footer__list li { margin: 0 0 10px; line-height: 24px; }
.kf-footer__list li:last-child { margin-bottom: 0; }
.kf-footer__list a, body.kf-body .kf-footer__list a { color: var(--kf-stone-400) !important; font-size: 12px; line-height: 16px; transition: color .15s ease; }
.kf-footer__list a:hover, body.kf-body .kf-footer__list a:hover { color: #fff !important; }
.kf-footer__bottom { text-align: center; padding: 24px 0; }
.kf-footer__bottom p { margin: 0; font-size: 12px; line-height: 16px; color: #c7c7c7; }
.kf-footer__credit { margin-top: 6px !important; opacity: .55; }
.kf-footer__credit a { color: #c7c7c7 !important; text-decoration: underline; }

/* ---------- Service modal ---------- */
.kf-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.kf-modal[hidden] { display: none; }
@media (min-width: 640px) { .kf-modal { align-items: center; padding: 24px; } }
.kf-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kf-modal__panel {
  position: relative; background: #fff; width: 100%; max-height: 100vh; overflow: auto;
  border-radius: 24px 24px 0 0; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  animation: kf-pop .2s ease-out;
}
@media (min-width: 640px) { .kf-modal__panel { max-width: 512px; border-radius: 16px; max-height: calc(100vh - 48px); } }
@keyframes kf-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.kf-modal__close, body.kf-body .kf-modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 10; width: 32px; height: 32px; border-radius: 9999px;
  background: rgba(0,0,0,0.2) !important; color: #fff !important; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s ease;
}
.kf-modal__close:hover, body.kf-body .kf-modal__close:hover { background: rgba(0,0,0,0.4) !important; }
.kf-modal__img { height: 208px; overflow: hidden; }
@media (min-width: 640px) { .kf-modal__img { height: 256px; } }
.kf-modal__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kf-modal__body { padding: 24px; }
.kf-modal__title, body.kf-body .kf-modal__title {
  font-family: var(--kf-serif) !important; font-size: 24px; line-height: 32px; font-weight: 600 !important;
  letter-spacing: 0 !important; color: var(--kf-stone-800); margin: 0 0 8px !important;
}
.kf-modal__desc { font-size: 14px; line-height: 1.625; color: var(--kf-stone-500); margin: 0 0 20px !important; }
.kf-modal__list { list-style: none; margin: 0 0 24px !important; padding: 0; }
.kf-modal__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; color: var(--kf-stone-600); margin: 0 0 8px; }
.kf-modal__check {
  flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; border-radius: 9999px;
  background: rgba(184,118,78,0.125); display: flex; align-items: center; justify-content: center;
}

/* ---------- Gallery page ---------- */
.kf-gallery__head { padding: 56px 24px; text-align: center; }
.kf-gallery__head .kf-eyebrow { margin-bottom: 8px !important; }
.kf-gallery__sub { color: var(--kf-stone-400); font-size: 14px; line-height: 1.625; max-width: 448px; margin: 16px auto 0 !important; }
.kf-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; margin-bottom: 48px; }
.kf-filter, body.kf-body .kf-filter {
  background: #fff !important; color: var(--kf-stone-500) !important; border: 1px solid var(--kf-stone-200);
  border-radius: 9999px; padding: 8px 20px; font-family: var(--kf-sans); font-size: 12px; line-height: 16px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.kf-filter:hover, body.kf-body .kf-filter:hover { border-color: var(--kf-stone-300); }
.kf-filter.is-active, body.kf-body .kf-filter.is-active { background: var(--kf-accent) !important; color: #fff !important; border-color: var(--kf-accent); }
.kf-gallery__wrap { padding: 0 24px 80px; }
.kf-gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .kf-gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .kf-gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.kf-gallery__item { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; cursor: pointer; }
.kf-gallery__item.is-hidden { display: none; }
.kf-gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kf-gallery__item:hover img { transform: scale(1.05); }
.kf-gallery__cta { text-align: center; padding: 0 24px 80px; }
.kf-gallery__cta p { font-family: var(--kf-serif); font-size: 24px; line-height: 32px; color: var(--kf-stone-700); margin: 0 0 24px !important; }

.kf-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; padding: 24px; }
.kf-lightbox[hidden] { display: none; }
.kf-lightbox__close, body.kf-body .kf-lightbox__close {
  position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 9999px;
  background: rgba(255,255,255,0.1) !important; color: #fff !important; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s ease;
}
.kf-lightbox__close:hover, body.kf-body .kf-lightbox__close:hover { background: rgba(255,255,255,0.2) !important; }
.kf-lightbox__body { max-width: 768px; width: 100%; }
.kf-lightbox__body img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; display: block; }

body.kf-modal-open { overflow: hidden; }

/* ---------- Legacy inner pages (about / services / booking) under new chrome ---------- */
body.kf-body:not(.page-template-page-home):not(.page-template-page-gallery) .kf-content > .ast-container { max-width: none; }
