/* Calmer editorial treatment for the projects index. */
body[data-static-menu-current="projektai"] main#turinys {
  background: #f7f6f1;
}

.partner1-project-intro {
  gap: clamp(2rem, 4vw, 5rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3.5rem) !important;
  border-color: rgba(7, 17, 31, .12) !important;
}

.partner1-project-intro h2 {
  max-width: 14ch;
  font-size: clamp(2.55rem, 4.35vw, 5.3rem) !important;
  line-height: .98 !important;
  letter-spacing: -.045em;
}

.partner1-project-intro > div:last-child {
  gap: 0 !important;
  border: 1px solid rgba(7, 17, 31, .12);
  border-radius: 1rem !important;
  background: rgba(255, 255, 255, .52) !important;
}

.partner1-project-intro > div:last-child > div {
  background: transparent !important;
  padding: 1.25rem !important;
}

.partner1-project-intro > div:last-child > div + div {
  border-left: 1px solid rgba(7, 17, 31, .1);
}

.partner1-project-intro svg {
  color: #07111f !important;
  opacity: .55;
}

.partner1-project-grid {
  gap: clamp(1rem, 1.6vw, 1.5rem) !important;
  margin-top: clamp(2rem, 4vw, 3.5rem) !important;
}

.partner1-project-grid > a {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto auto;
  min-height: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(7, 17, 31, .12) !important;
  border-radius: 1.25rem !important;
  background: #fff !important;
  color: #07111f !important;
  box-shadow: 0 12px 32px rgba(7, 17, 31, .07) !important;
  transform: none !important;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease !important;
}

.partner1-project-grid > a:hover {
  border-color: rgba(7, 17, 31, .28) !important;
  box-shadow: 0 18px 42px rgba(7, 17, 31, .11) !important;
  transform: translateY(-3px) !important;
}

.partner1-project-grid > a > picture {
  position: relative !important;
  inset: auto !important;
  grid-row: 1;
  display: block !important;
  width: 100% !important;
  min-height: 0;
  height: auto !important;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e7e2;
}

.partner1-project-grid > a > img {
  position: relative !important;
  inset: auto !important;
  grid-row: 1;
  display: block !important;
  width: 100% !important;
  min-height: 0;
  height: auto !important;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e7e2;
  object-fit: cover !important;
  filter: saturate(.7) contrast(.96);
  transform: scale(1.002);
  transition: filter .35s ease, transform .5s ease !important;
}

.partner1-project-grid > a > picture img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: saturate(.7) contrast(.96);
  transform: scale(1.002);
  transition: filter .35s ease, transform .5s ease !important;
}

.partner1-project-grid > a:hover > picture img,
.partner1-project-grid > a:hover > img {
  filter: saturate(.9) contrast(1);
  transform: scale(1.025) !important;
}

.partner1-project-grid > a > div.absolute.inset-0 {
  display: none !important;
}

.partner1-project-grid > a > div.absolute.inset-x-0.top-0 {
  top: 1rem !important;
  padding: 0 1rem !important;
}

.partner1-project-grid > a > div.absolute.inset-x-0.top-0 span:first-child {
  border-color: rgba(255, 255, 255, .35) !important;
  background: rgba(7, 17, 31, .72) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}

.partner1-project-grid > a > div.absolute.inset-x-0.top-0 span:last-child {
  color: rgba(255, 255, 255, .86) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .28);
}

.partner1-project-grid > a > div.absolute.inset-x-0.bottom-0 {
  position: relative !important;
  inset: auto !important;
  grid-row: 2;
  min-height: 178px;
  padding: 1.5rem !important;
  background: #fff;
}

body[data-static-menu-current="projektai"] .partner1-project-grid .project-card-title {
  max-width: 100%;
  color: #07111f !important;
  font-family: Geist, "Geist Fallback", Arial, sans-serif !important;
  font-size: clamp(1.45rem, 1.75vw, 2.15rem) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.partner1-project-grid .project-title-line {
  white-space: normal;
}

.partner1-project-grid a[href="/portfolio/ryternagaragedoors-co-uk/"] .project-title-line,
.partner1-project-grid a[href="/portfolio/shop-ryternagaragedoors-co-uk/"] .project-title-line {
  display: block;
  white-space: nowrap;
}

body[data-static-menu-current="projektai"] .partner1-project-grid .project-card-title + p {
  min-height: 0 !important;
  margin-top: 1rem !important;
  color: #68707b !important;
  line-height: 1.55 !important;
}

.partner1-project-grid > a > div.bottom-0 span.grid {
  width: 2.8rem !important;
  height: 2.8rem !important;
  background: #07111f !important;
  color: #fff !important;
}

.partner1-project-grid > a > div.bottom-0 > div:last-child {
  display: none !important;
}

@media (min-width: 768px) {
  .partner1-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1280px) {
  .partner1-project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .partner1-project-intro > div:last-child > div {
    padding: 1rem !important;
  }

  .partner1-project-grid > a {
    grid-template-rows: auto auto;
  }

  .partner1-project-grid > a > div.absolute.inset-x-0.bottom-0 {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner1-project-grid > a,
  .partner1-project-grid img {
    transition: none !important;
  }
}
