.ds-design .ds-project-subtitle {
  color: white;
  margin: .4rem 0 1.3rem;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.4;
}
.ds-design .ds-projects {
  padding-block: clamp(32px, 5vw, 66px);
  scroll-margin-top: 115px;
}
.ds-design .ds-projects + .ds-projects { padding-top: 0; }
.ds-project-head, .ds-album-head, .ds-project-caption, .ds-svj-home-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ds-project-head { margin-bottom: 20px; }
.ds-design .ds-project-head h2, .ds-design .ds-project-caption h3, .ds-design .ds-album-head h2 { margin: 0; }
.ds-design .ds-project-head h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.15; }
.ds-design .ds-project-head h2.ds-project-small { font-size: clamp(1rem, 2vw, 1.25rem); }
.ds-project-nav { display: flex; gap: 8px; }
.ds-project-nav button, .ds-album-close {
  border: 1px solid #087b3e;
  border-radius: 6px;
  background: white;
  color: #087b3e;
  min-height: 42px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ds-project-nav button { width: 44px; font-size: 22px; line-height: 1; }
.ds-project-nav button:hover, .ds-album-close:hover { background: #087b3e; color: white; }
.ds-design .dvojice.ds-project-track {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 22px) / 2);
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #087b3e #e8eee9;
  padding-bottom: 12px;
}
.ds-design .ds-project-track > .dvoj {
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-snap-align: start;
}
.ds-design .ds-project-track[data-loop] { overflow-anchor: none; scrollbar-width: none; }
.ds-design .ds-project-track[data-loop]::-webkit-scrollbar { display: none; }
.ds-project-track .ds-comparison { flex: none; width: 100%; }
.ds-project-track .ds-before img, .ds-project-track .ds-after img { width: 100%; height: 100%; }
.ds-design .ds-project-caption { flex: 1; flex-wrap: wrap; }
.ds-design .ds-project-caption h3 { font-size: 1.2rem; }
.ds-project-caption .btn { white-space: nowrap; }
.ds-svj-home-actions { margin-top: auto; flex-wrap: wrap; }
.ds-design .ds-svj-home .tile-link { margin: 0; align-items: center; text-decoration: none; }
.ds-design .ds-svj-home .tile-link::before { content: ""; position: absolute; inset: 0; }
.ds-design .ds-svj-home-link { position: relative; z-index: 1; }
.ds-album {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(1000px, calc(100vw - 28px));
  max-height: 85vh;
  max-height: 85dvh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #141a17;
  background: white;
  border: 0;
  border-radius: 12px;
}
.ds-album[open] { display: flex; flex-direction: column; }
.ds-album::backdrop { background: rgba(12, 22, 17, .76); }
html:has(.ds-album[open]) { overflow: hidden; }
.ds-album-head { flex: none; padding: 16px 20px; border-bottom: 1px solid #dde6df; }
.ds-design .ds-album-head h2 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
.ds-album-close { padding-inline: 12px; white-space: nowrap; }
.ds-album-body { overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.ds-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ds-album-grid a { display: block; border-radius: 5px; overflow: hidden; }
.ds-album-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: #e8eee9; }
.ds-design .ds-album-more { margin: 16px auto 0; display: flex; }
.ds-album-more[hidden] { display: none !important; }
@media (max-width: 700px) {
  .ds-design .dvojice.ds-project-track { grid-auto-columns: 91%; gap: 12px; }
  .ds-project-head { gap: 10px; }
  .ds-project-nav { gap: 5px; }
  .ds-design .ds-project-caption { padding: 16px; }
  .ds-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .ds-album-head, .ds-album-body { padding: 12px; }
}
