html {
  scroll-behavior: smooth;
}

p,
.wp-block-paragraph {
  font-variant-numeric: proportional-nums; /* Enables 'pnum' */
}

/* Force tabular figures in all Gutenberg Table blocks */
.wp-block-table {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  border: 2px solid blue;
}

img {
  height: 100% !important;
  object-fit: cover;
}

header {
  background: var(--wp--preset--color--custom-cream);
  border-bottom: 1px solid black;
  position: sticky;
  z-index: 20;
  transition: all 0.25s ease-in;
}
header.scroll-up {
  position: sticky;
}
header.scroll-down {
  position: relative;
  transition: all 0.25s ease-in;
}

.scale-text_container {
  container-type: inline-size;
  width: 100%;
}

.scale-text {
  display: block;
  /* 2. Dynamically scale font-size based on container width (12cqi = 12% of container width) */
  /* clamp(minimum_size, fluid_target_size, maximum_size) */
  font-size: 19cqi !important;
  /* 3. Safety measures to prevent overflow */
  overflow-wrap: break-word;
  text-wrap: balance;
}

.client-intake-form input {
  height: 50px;
  border: 1px solid black;
  background: rgba(119, 143, 178, 0.5);
}
.client-intake-form label {
  font-size: 28px;
  font-weight: 400;
}
.client-intake-form .nf-field-label > span {
  font-size: 28px;
  font-weight: 400;
}
.client-intake-form .nf-field-element li label {
  font-weight: 300;
}
.client-intake-form textarea {
  background: rgba(119, 143, 178, 0.5);
}
.client-intake-form input[type=radio] {
  height: 100%;
}
.client-intake-form nf-fields-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#nf-form-2-cont {
  width: 80%;
  max-width: 80%;
}

.nf-form-fields-required {
  display: none;
}

nf-field {
  width: 100%;
}
@media screen and (min-width: 400px) {
  nf-field {
    width: 48%;
  }
}

.footer-sign-up input {
  height: 50px;
  border: 1px solid black;
  background: rgba(119, 143, 178, 0.5);
}

input[type=submit] {
  height: 100%;
  background-color: #778fb2;
  background: rgba(119, 143, 178, 0.5);
  padding: 10px 20px;
  font-size: 24px;
  color: #d9d9d9;
  color: black;
  font-weight: 300;
}

.fade-me {
  opacity: 0;
  -moz-transform: translateX(0) translateY(30px);
  -webkit-transform: translateX(0) translateY(30px);
  -o-transform: translateX(0) translateY(30px);
  -ms-transform: translateX(0) translateY(30px);
  transform: translateX(0) translateY(30px);
  transition-property: all;
  transition-duration: 0.5s;
  transition-delay: 0;
  transition-timing-function: cubic-bezier(0.34, 0.01, 0.45, 1.02);
  -webkit-backface-visibility: hidden;
  transition-timing-function: ease-out;
}
.fade-me.fade-delay {
  transition-property: all;
  transition-duration: 0.5s;
  transition-delay: 0.4;
  transition-timing-function: cubic-bezier(0.34, 0.01, 0.45, 1.02);
  -webkit-backface-visibility: hidden;
}
.fade-me.faded-in {
  opacity: 1;
  -moz-transform: translateX(0) translateY(0);
  -webkit-transform: translateX(0) translateY(0);
  -o-transform: translateX(0) translateY(0);
  -ms-transform: translateX(0) translateY(0);
  transform: translateX(0) translateY(0);
}
.fade-me.faded-in img {
  transform: scale(1);
}

.zoom-me {
  overflow: hidden;
}
.zoom-me img {
  transform: scale(0.95);
  transition: all 0.7s;
  filter: blur(5px);
}
.zoom-me.zoomed img {
  filter: blur(0);
  transform: scale(1);
  transition: all 0.7s;
}

.shadow-custom {
  drop-shadow: 0px 6px 9px 1px rgba(0, 0, 0, 0.2);
}

/* Page Transition */
.wp-theme-damsbaek-carpentry-custom {
  animation: fade-in 0.7s forwards;
}

.fade-in {
  opacity: 1;
}

.wp-theme-damsbaek-carpentry-custom.fade-out {
  animation: fade-out 0.7s forwards;
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fade-image {
  clip-path: inset(0% 0% 0% 0%);
}

.project-link {
  overflow: hidden;
  aspect-ratio: 2/3;
}
.project-link img {
  transform: scale(1);
  transition: transform 0.25s ease-in-out;
}
.project-link:hover img {
  transform: scale(1.05);
  transition: transform 0.25s ease-in-out;
}

/* The asterisk (*) is a wildcard - matches any name with class "card" */
::view-transition-group(*.project-transition-class) {
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fix the taffy problem for ALL cards at once */
::view-transition-old(*.project-transition-class),
::view-transition-new(*.project-transition-class) {
  object-fit: cover;
  overflow: hidden;
}

::view-transition-old(root) {
  animation: 500ms ease-out both fade-out;
}

/* Target the incoming root view */
::view-transition-new(root) {
  /* Delay the fade-in until the fade-out completes */
  animation: 500ms ease-in 200ms both fade-in;
}

/* this is to make it fade in and out nicely, not the crappy crossfade */
@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Opt-in for cross-document transitions */
@view-transition {
  navigation: auto;
}
::view-transition-group(*.project-transition) {
  animation-duration: 5s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

::view-transition-old(*.project-transition),
::view-transition-new(*.project-transition) {
  object-fit: cover;
  overflow: hidden;
}

/* Accessible design: Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
.wp-block-cb-carousel-v2.alignfull .cb-button-prev {
  left: 140px;
}
