/* Razor/CMS integration helpers layered on top of the original Webflow export. */
html {
  scroll-behavior: smooth;
}

#main-content {
  display: contents;
}

.cms-pre-line {
  white-space: pre-line;
}

.frame-82.w-inline-block {
  color: inherit;
}

.code-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cms-validation {
  display: block;
  color: #a31515;
  font-family: Archivo, sans-serif;
  font-size: 12px;
  line-height: 18px;
  margin: -6px 0 8px;
}

.cms-validation:empty,
.validation-summary-valid {
  display: none;
}

.cms-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 12px;
  color: #014e36;
  font-family: Archivo, sans-serif;
  font-size: 12px;
  line-height: 17px;
}

.cms-consent input {
  margin-top: 2px;
  accent-color: #014e36;
}

.cms-form-message {
  display: block;
  margin-bottom: 16px;
}

.cms-empty-state {
  width: 100%;
  padding: 60px 30px;
  color: #014e36;
  background: #f6f6f6;
  font-family: Archivo, sans-serif;
  text-align: center;
}

.cms-gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding: 60px 30px 30px;
  color: #e6efe4;
  background: #014e36;
}

.cms-gallery-heading .text-8 {
  min-width: 0;
  max-width: 780px;
  white-space: normal;
}

.cms-gallery-copy {
  min-width: 0;
  max-width: 520px;
  color: #e6efe4;
  font-family: Archivo, sans-serif;
  font-size: 18px;
  line-height: 28px;
  white-space: pre-line;
}

.cms-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px 30px 60px;
  background: #014e36;
}

.cms-project-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  color: #fff;
  background: #022117;
  text-decoration: none;
}

.cms-project-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.cms-project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 33, 23, .92), rgba(2, 33, 23, .04) 70%);
}

.cms-project-card:hover > img {
  transform: scale(1.04);
}

.cms-project-card-content {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 28px;
  left: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.cms-project-card-copy {
  display: grid;
  gap: 8px;
}

.cms-project-card-title {
  font-family: Archivo, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
}

.cms-project-card-description {
  max-width: 480px;
  color: rgba(255,255,255,.78);
  font-family: Archivo, sans-serif;
  font-size: 16px;
  line-height: 24px;
}

.cms-gallery-detail {
  padding: 50px 30px 70px;
  color: #014e36;
  background: #f6f6f6;
}

.cms-detail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.cms-detail-header a {
  color: #014e36;
  font-family: Archivo, sans-serif;
  font-weight: 600;
}

.cms-masonry {
  columns: 2;
  column-gap: 20px;
}

.cms-gallery-image {
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  break-inside: avoid;
  cursor: zoom-in;
}

.cms-gallery-image img {
  width: 100%;
  display: block;
}

.cms-gallery-image span {
  display: block;
  padding-top: 8px;
  color: #014e36;
  font-family: Archivo, sans-serif;
  text-align: left;
}

.lightbox {
  width: min(1200px, 94vw);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(2, 20, 14, .92);
}

.lightbox img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.35);
  font-size: 30px;
  cursor: pointer;
}

@media screen and (max-width: 991px) {
  .cms-gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cms-project-card {
    min-height: 380px;
  }
}

@media screen and (max-width: 767px) {
  .cms-gallery-heading {
    padding: 40px 16px 24px;
  }

  .cms-project-grid {
    grid-template-columns: 1fr;
    padding: 1px 16px 40px;
  }

  .cms-gallery-detail {
    padding: 40px 16px 55px;
  }

  .cms-detail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cms-masonry {
    columns: 1;
  }
}
.cms-lightbox-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.cms-lightbox-button > span {
  display: block;
  padding: 8px 10px;
  color: #014e36;
  background: #e6efe4;
  font-family: Archivo, sans-serif;
  text-align: left;
}

.cms-client-logo {
  width: auto;
  max-width: 140px;
  max-height: 54px;
  margin-bottom: 20px;
  object-fit: contain;
}

.cms-testimonial {
  margin: 18px 0 0;
  color: #014e36;
  font-family: Archivo, sans-serif;
  font-style: italic;
}

.cms-error-page {
  min-height: 62vh;
  padding: 140px 30px 90px;
  color: #014e36;
  background: #e6efe4;
  font-family: Archivo, sans-serif;
  text-align: center;
}

.cms-error-code {
  margin: 0 0 12px;
  font-family: "Lexend Zetta", sans-serif;
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 500;
  line-height: 1;
}

.cms-error-page h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.1;
}

.cms-error-page > p:not(.cms-error-code) {
  max-width: 620px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 28px;
}

.cms-error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
}

.cms-error-actions > a:not(.submit-button) {
  color: #014e36;
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .cms-home-section-title {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cms-home-section-title .nametaj-po-meri-vaeg-ivota-0,
  .cms-home-section-title .nametaj-po-meri-vaeg-ivota-1 {
    line-height: 38px;
  }

  .cms-error-page {
    padding: 110px 16px 70px;
  }

  .cms-error-actions {
    flex-direction: column;
  }
}
