:root {
  --bodyfontfamily: Calibri, Arial, sans-serif !important;
}

html,
body,
button,
input,
select,
textarea {
  font-family: Calibri, Arial, sans-serif !important;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Homepage / carousel */
body.home,
body.page-template-front-page,
body.page-template-home {
  overflow: hidden;
  background: #1d1d1d;
}

/* Normal pages like About / Contact */
body.page:not(.home) {
  background: #ffffff;
  color: #111;
  overflow-x: hidden;
}

/* Generic layout reset */
.site,
#content,
.content-area,
.site-content,
.container,
.neve-main,
.nv-content-wrap,
.entry-content,
.entry,
.page,
.page-content {
  max-width: none !important;
}

/* Hide theme header/footer on homepage */
body.home .site-header,
body.home header,
body.home .site-footer,
body.home footer,
body.home .footer,
body.home .neve-footer,
body.home .nv-top-header,
body.home .nv-nav-wrap,
body.home .navbar,
body.home .hfg_header,
body.home .header--row,
body.home .builder-item--primary-menu,
body.home .builder-item--logo,
body.home .component-wrap {
  display: none !important;
}

/* Hide theme header/footer on normal pages too */
body.page:not(.home) .site-header,
body.page:not(.home) header,
body.page:not(.home) .site-footer,
body.page:not(.home) footer,
body.page:not(.home) .footer,
body.page:not(.home) .neve-footer,
body.page:not(.home) .nv-top-header,
body.page:not(.home) .nv-nav-wrap,
body.page:not(.home) .navbar,
body.page:not(.home) .hfg_header,
body.page:not(.home) .header--row,
body.page:not(.home) .builder-item--primary-menu,
body.page:not(.home) .builder-item--logo,
body.page:not(.home) .component-wrap {
  display: none !important;
}

/* Remove margins only on homepage */
body.home .site,
body.home #content,
body.home .content-area,
body.home .site-content,
body.home .container,
body.home .neve-main,
body.home .nv-content-wrap,
body.home .entry-content,
body.home .entry,
body.home .page,
body.home .page-content {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.home .wp-block-shortcode,
body.home .entry-content > *:last-child {
  margin-bottom: 0 !important;
}

/* Normal inner pages */
body.page:not(.home) .site,
body.page:not(.home) #content,
body.page:not(.home) .content-area,
body.page:not(.home) .site-content,
body.page:not(.home) .container,
body.page:not(.home) .neve-main,
body.page:not(.home) .nv-content-wrap,
body.page:not(.home) .entry-content,
body.page:not(.home) .entry,
body.page:not(.home) .page,
body.page:not(.home) .page-content {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  overflow: visible !important;
}

body.page:not(.home) .entry-content {
  font-family: Calibri, Arial, sans-serif;
  color: #111;
}

/* Wrapper for About / Contact page content */
.cmc-inner-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 0px 32px 56px;
  font-family: Calibri, Arial, sans-serif;
  color: #111;
  background: #fff;
  box-sizing: border-box;
}

.cmc-inner-page-title {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 32px 0px;
  font-family: Calibri, Arial, sans-serif;
  color: #111;
  background: #fff;
  box-sizing: border-box;
}

.cmc-inner-page h1,
.cmc-inner-page h2,
.cmc-inner-page h3 {
  color: #111;
  margin: 0 0 20px;
  line-height: 1.15;
}

.cmc-inner-page h1 {
  font-size: 42px;
  font-weight: 500;
}

.cmc-inner-page h2 {
  font-size: 26px;
  font-weight: 500;
  margin-top: 28px;
}

.cmc-inner-page p,
.cmc-inner-page li {
  font-size: 18px;
  line-height: 1.7;
  color: #111;
}

.cmc-inner-page a {
  color: #111;
}

.cmc-inner-page ul {
  padding-left: 22px;
}

.cmc-back-home-wrap {
  margin-top: 48px;
  padding-top: 20px;
}

.cmc-back-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  color: #111;
  text-decoration: underline;
  font-family: Calibri, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease;
}

.cmc-back-home:hover,
.cmc-back-home:focus,
.cmc-back-home:focus-visible,
.cmc-back-home:active {
  color: rgba(17, 17, 17, 0.72);
  text-decoration: none;
  outline: none !important;
  box-shadow: none !important;
}

/* Shared font setup */
.cmc-page-shell,
.cmc-section,
.cmc-track-wrapper,
.cmc-track,
.cmc-block,
.cmc-top-button,
.cmc-overlay h3,
.cmc-gallery-screen,
.cmc-viewer-screen,
.cmc-gallery-back,
.cmc-viewer-back,
.cmc-gallery-back__text,
.cmc-viewer-back__text {
  font-family: Calibri, Arial, sans-serif;
}

/* Carousel */
.cmc-page-shell {
  width: 100vw;
  height: 100vh;
  background: #1f1f1f;
  overflow: hidden;
}

.cmc-section {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1f1f1f;
  overflow: hidden;
}

.cmc-track-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}

.cmc-track {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: max-content;
}

.cmc-block {
  flex: 0 0 25vw;
  width: 25vw;
  min-width: 25vw;
  max-width: 25vw;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border-right: none;
}

.cmc-block--black {
  background: #1d1d1d;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.cmc-block--image {
  background: #d9d6cc;
  cursor: pointer;
}

.cmc-block--clickable {
  cursor: pointer;
}

.cmc-block--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cmc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px 32px 85px 44px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.04) 34%,
    transparent 68%
  );
  pointer-events: none;
}

.cmc-overlay--white h3 {
  color: #fff;
}

.cmc-overlay h3 {
  margin: 0 97px 0 0;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cmc-brand-overlay {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 60;
  width: 320px;
  max-width: calc(100vw - 56px);
}

.cmc-brand-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.cmc-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.cmc-top-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.cmc-top-button {
  min-width: 140px;
  height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: rgba(29, 29, 29, 0.92);
  color: #f3f3f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-sizing: border-box;
}

.cmc-top-button:hover,
.cmc-top-button:focus,
.cmc-top-button:focus-visible {
  background: rgba(50, 50, 50, 0.96);
  color: #fff;
  border-color: #fff;
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

.cmc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent !important;
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.cmc-arrow--left {
  left: 28px;
}

.cmc-arrow--right {
  right: 28px;
}

.cmc-arrow:hover,
.cmc-arrow:focus,
.cmc-arrow:focus-visible,
.cmc-arrow:active {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.72);
  outline: none !important;
  box-shadow: none !important;
}

.cmc-modal[hidden] {
  display: none !important;
}

.cmc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f5f5f1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.cmc-modal-close {
  display: none;
}

.cmc-modal-content {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.cmc-gallery-screen,
.cmc-viewer-screen {
  min-height: 100vh;
  width: 100%;
  background: #f5f5f1;
}

.cmc-gallery-topbar,
.cmc-viewer-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 20px 32px;
  background: rgba(245, 245, 241, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cmc-gallery-back,
.cmc-viewer-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  color: #111;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.cmc-gallery-back:hover,
.cmc-viewer-back:hover,
.cmc-gallery-back:focus,
.cmc-viewer-back:focus,
.cmc-gallery-back:focus-visible,
.cmc-viewer-back:focus-visible,
.cmc-gallery-back:active,
.cmc-viewer-back:active {
  background: transparent;
  color: rgba(17, 17, 17, 0.72);
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

.cmc-gallery-back__arrow,
.cmc-viewer-back__arrow {
  font-size: 32px;
  line-height: 1;
  font-weight: 300;
}

.cmc-gallery-back__text,
.cmc-viewer-back__text {
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cmc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 32px 40px;
}

.cmc-gallery-card {
  position: relative;
  border: none;
  padding: 0;
  background: #e7e3d8;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.cmc-gallery-card__media {
  display: block;
  width: 100%;
  height: 100%;
}

.cmc-gallery-card img,
.cmc-gallery-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #d8d3c7;
}

.cmc-gallery-card__play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

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

.cmc-viewer-screen {
  display: flex;
  flex-direction: column;
}

.cmc-viewer-body {
  flex: 1;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  gap: 20px;
  padding: 24px 32px 40px;
  min-height: calc(100vh - 80px);
}

.cmc-viewer-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  background: #e7e3d8;
  overflow: hidden;
}

.cmc-viewer-media img,
.cmc-viewer-media video {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  display: block;
  background: #000;
}

.cmc-viewer-nav {
  width: auto;
  height: auto;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111 !important;
  font-size: 50px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  padding: 8px;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.cmc-viewer-nav:hover,
.cmc-viewer-nav:focus,
.cmc-viewer-nav:focus-visible,
.cmc-viewer-nav:active {
  background: transparent !important;
  color: rgba(17, 17, 17, 0.65) !important;
  outline: none !important;
  box-shadow: none !important;
}

.cmc-viewer-nav[disabled] {
  opacity: 0.25;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .cmc-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cmc-inner-page {
    padding: 44px 20px 40px;
  }

  .cmc-inner-page h1 {
    font-size: 32px;
  }

  .cmc-inner-page p,
  .cmc-inner-page li {
    font-size: 16px;
  }

  .cmc-back-home {
    font-size: 16px;
    gap: 10px;
  }

  .cmc-back-home::before {
    font-size: 28px;
  }

  .cmc-brand-overlay {
    top: 14px;
    right: 14px;
    width: 220px;
    max-width: calc(100vw - 28px);
  }

  .cmc-logo {
    width: 110px;
  }

  .cmc-top-buttons {
    gap: 8px;
  }

  .cmc-top-button {
    min-width: 96px;
    height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .cmc-overlay {
    padding: 18px 22px 46px 28px;
  }

  .cmc-overlay h3 {
    margin: 0 10px 0 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 300;
    letter-spacing: 0.02em;
  }

  .cmc-arrow {
    font-size: 34px;
    padding: 6px;
  }

  .cmc-arrow--left {
    left: 10px;
  }

  .cmc-arrow--right {
    right: 10px;
  }

  .cmc-gallery-topbar,
  .cmc-viewer-topbar {
    min-height: 68px;
    padding: 16px 18px;
  }

  .cmc-gallery-back,
  .cmc-viewer-back {
    gap: 8px;
    font-size: 16px;
  }

  .cmc-gallery-back__arrow,
  .cmc-viewer-back__arrow {
    font-size: 28px;
  }

  .cmc-gallery-back__text,
  .cmc-viewer-back__text {
    font-size: 14px;
  }

  .cmc-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 18px 24px;
  }

  .cmc-viewer-body {
    grid-template-columns: 48px 1fr 48px;
    gap: 10px;
    padding: 16px 18px 24px;
    min-height: calc(100vh - 68px);
  }

  .cmc-viewer-nav {
    font-size: 34px;
    padding: 6px;
  }

  .cmc-viewer-media img,
  .cmc-viewer-media video {
    max-height: 70vh;
  }
}

.email-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 60px;
  padding: 16px 24px;
  background: #111;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  font-family: Calibri, Arial, sans-serif;
}

.cmc-gallery-intro {
  max-width: 980px;
  padding: 36px 32px 8px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cmc-gallery-intro__title {
  margin: 0 0 14px;
  font-family: Calibri, Arial, sans-serif;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 500;
  color: #111;
  text-transform: uppercase;
}

.cmc-gallery-intro__description,
.cmc-gallery-intro__description p,
.cmc-gallery-intro__description li {
  font-family: Calibri, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #111;
}

.cmc-gallery-intro__description p:first-child {
  margin-top: 0;
}

.cmc-gallery-grid {
  max-width: 980px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .cmc-gallery-intro {
    padding: 24px 18px 6px;
  }

  .cmc-gallery-intro__title {
    font-size: 28px;
  }

  .cmc-gallery-intro__description,
  .cmc-gallery-intro__description p,
  .cmc-gallery-intro__description li {
    font-size: 16px;
    line-height: 1.6;
  }

  .cmc-gallery-grid {
    padding-left: 18px;
    padding-right: 18px;
  }
}