.duotone-werkschau {
  width: 100%;
}

.duotone-werkschau-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.duotone-werkschau-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: 0 10px 18px rgba(72, 81, 86, 0.18);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.duotone-werkschau-card:focus-visible {
  outline: 3px solid #6eab27;
  outline-offset: 4px;
}

.duotone-werkschau-card-title {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: #fff;
  font-family: "Roboto Slab", Roboto, serif;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.duotone-werkschau-card-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.duotone-werkschau-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.duotone-werkschau-modal[hidden],
.duotone-werkschau-zoom[hidden],
.duotone-werkschau-templates[hidden] {
  display: none;
}

.duotone-werkschau-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.duotone-werkschau-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.duotone-werkschau-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(820px, calc(100vh - 80px));
  overflow: auto;
  background: #dee2e5;
  color: #485156;
  padding: 44px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.duotone-werkschau-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  border: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  color: #485156;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.duotone-werkschau-modal-close:focus-visible {
  outline: 2px solid #6eab27;
  outline-offset: 3px;
}

.duotone-werkschau-zoom {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.duotone-werkschau-zoom-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.86);
  cursor: zoom-out;
}

.duotone-werkschau-zoom-dialog {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1180px, 100%);
  max-height: calc(100vh - 60px);
}

.duotone-werkschau-zoom-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.duotone-werkschau-zoom-dialog figcaption {
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.duotone-werkschau-zoom-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #485156;
  box-shadow: none;
  appearance: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.duotone-werkschau-detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
  gap: 36px;
}

.duotone-werkschau-detail-header {
  margin: 0 0 18px;
}

.duotone-werkschau-detail-title {
  margin: 0;
  color: #485156;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 500;
}

.duotone-werkschau-detail-category {
  display: block;
  margin: 0;
  color: #6eab27;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
}

.duotone-werkschau-project-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 22px;
}

.duotone-werkschau-project-link {
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none;
  color: #485156;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  appearance: none;
  cursor: pointer;
}

.duotone-werkschau-project-link:hover,
.duotone-werkschau-project-link:focus,
.duotone-werkschau-project-link:active {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none;
  color: #485156;
  text-decoration: none;
  text-shadow: none;
}

.duotone-werkschau-project-link.is-active {
  background: transparent !important;
  box-shadow: none !important;
  filter: none;
  color: #6eab27;
  text-decoration: none;
  text-shadow: none;
}

.duotone-werkschau-project-link.is-active:hover,
.duotone-werkschau-project-link.is-active:focus,
.duotone-werkschau-project-link.is-active:active {
  background: transparent !important;
  box-shadow: none !important;
  filter: none;
  color: #6eab27;
  text-decoration: none;
  text-shadow: none;
}

.duotone-werkschau-project-title {
  margin: 0 0 10px;
  color: #485156;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
}

.duotone-werkschau-detail-copy,
.duotone-werkschau-detail-list {
  font-size: 15px;
  line-height: 1.45;
}

.duotone-werkschau-detail-copy p {
  margin: 0 0 12px;
}

.duotone-werkschau-detail-copy p:last-child {
  margin-bottom: 0;
}

.duotone-werkschau-project-copy {
  margin-top: 24px;
}

.duotone-werkschau-detail-list {
  margin: 24px 0 0;
}

.duotone-werkschau-detail-list div {
  margin-bottom: 12px;
}

.duotone-werkschau-detail-list dt {
  font-weight: 500;
}

.duotone-werkschau-detail-list dd {
  margin: 0;
}

.duotone-werkschau-detail-media {
  position: relative;
}

.duotone-werkschau-media-track {
  position: relative;
}

.duotone-werkschau-media-slide[hidden] {
  display: none;
}

.duotone-werkschau-project-panel[hidden],
.duotone-werkschau-project-media[hidden] {
  display: none;
}

.duotone-werkschau-media-item {
  margin: 0;
}

.duotone-werkschau-media-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  cursor: zoom-in;
}

.duotone-werkschau-media-zoom-trigger:hover,
.duotone-werkschau-media-zoom-trigger:focus,
.duotone-werkschau-media-zoom-trigger:active {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.duotone-werkschau-media-item img,
.duotone-werkschau-media-item video {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: none;
  filter: none;
}

.duotone-werkschau-media-item figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.duotone-werkschau-media-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  color: #485156;
  font-size: 14px;
  line-height: 1;
}

.duotone-werkschau-media-prev,
.duotone-werkschau-media-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  color: #485156;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.duotone-werkschau-media-prev:focus-visible,
.duotone-werkschau-media-next:focus-visible {
  outline: 2px solid #6eab27;
  outline-offset: 2px;
}

body.duotone-werkschau-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .duotone-werkschau-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duotone-werkschau-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .duotone-werkschau-grid {
    grid-template-columns: 1fr;
  }

  .duotone-werkschau-card {
    padding: 0;
  }

  .duotone-werkschau-card-title {
    top: 18px;
    left: 20px;
    right: 20px;
    font-size: 17px;
  }

  .duotone-werkschau-modal {
    padding: 0;
  }

  .duotone-werkschau-zoom {
    padding: 16px;
  }

  .duotone-werkschau-zoom-close {
    top: 8px;
    right: 8px;
  }

  .duotone-werkschau-modal-dialog {
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    padding: 56px 20px 28px;
  }
}
