body.gallery-03 [data-gallery-key]:not([data-gallery-style-preview]) img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  filter: none;
}

body.gallery-03 .d-style-playground.gallery-style-playground > button.d-style-website[data-gallery-style-preview] {
  overflow: hidden;
  text-align: left;
}

body.gallery-03 .d-style-playground.gallery-style-playground > button.d-style-website[data-gallery-style-preview] .d-style-bar {
  min-width: 0;
}

body.gallery-03 .d-style-playground.gallery-style-playground > button.d-style-website[data-gallery-style-preview] .d-style-bar [data-gallery-style-name] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.gallery-03 .d-style-playground.gallery-style-playground > button.d-style-website[data-gallery-style-preview] > .d-style-bar + img[data-gallery-style-image] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  filter: none;
}

body.gallery-03 [data-gallery-key]:focus-visible,
body.gallery-03 [data-gallery-style]:focus-visible,
body.gallery-03 .gallery-preview-dialog a:focus-visible,
body.gallery-03 .gallery-preview-close:focus-visible {
  outline: 3px solid #657b58;
  outline-offset: 3px;
}

body.gallery-03 .d-style-token [data-gallery-swatch] {
  transition: background-color 180ms ease;
}

body.gallery-03 [data-gallery-style] {
  --gallery-choice: #e6ebd7;
  --gallery-choice-line: #a7b486;
  --gallery-choice-ink: #63734a;
  background: #fafbf6;
  border-color: #dce2d4;
  color: #65705d;
}
body.gallery-03 [data-gallery-style="soft"] {
  --gallery-choice: #e5eef9;
  --gallery-choice-line: #9db8d9;
  --gallery-choice-ink: #476a96;
}
body.gallery-03 [data-gallery-style="bold"] {
  --gallery-choice: #eee4d8;
  --gallery-choice-line: #c5ad94;
  --gallery-choice-ink: #805237;
}
body.gallery-03 [data-gallery-style]:hover,
body.gallery-03 [data-gallery-style][aria-pressed="true"] {
  background: var(--gallery-choice);
  border-color: var(--gallery-choice-line);
  color: var(--gallery-choice-ink);
}
body.gallery-03 [data-gallery-style] > i {
  background: var(--gallery-choice-ink);
  border-color: var(--gallery-choice-line);
}
body.gallery-03 .snj2-site-image[src^="/assets/gallery-archive/"],
body.gallery-03 .snj2-brief-float img[src^="/assets/gallery-archive/"] {
  object-fit: cover;
  object-position: top center;
}

body.gallery-03 .gallery-preview-dialog {
  width: min(1100px, calc(100vw - 30px));
  max-width: none;
  height: min(900px, 92vh);
  max-height: calc(100vh - 28px);
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 21px;
  background: #f7f8f1;
  color: #303b2b;
  box-shadow: 0 35px 120px #10200b55;
}

@supports (height: 100svh) {
  body.gallery-03 .gallery-preview-dialog {
    height: min(900px, 92svh);
    max-height: calc(100svh - 28px);
  }
}

body.gallery-03 .gallery-preview-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.gallery-03 .gallery-preview-dialog::backdrop {
  background: #2634218a;
  backdrop-filter: blur(10px);
}

body.gallery-03 .gallery-preview-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid #dce3d3;
  background: #f7f8f1f2;
  backdrop-filter: blur(10px);
}

body.gallery-03 .gallery-preview-dialog header small {
  display: block;
  color: #7d8973;
  font: 9px var(--d-sans);
}

body.gallery-03 .gallery-preview-dialog h2 {
  margin: 3px 0 0;
  color: #303b2b;
  font: 400 25px/1.2 var(--d-serif);
}

body.gallery-03 .gallery-preview-dialog .gallery-preview-close {
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  border: 1px solid #d3dcc9;
  border-radius: 50%;
  background: #fff;
  color: #526149;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

body.gallery-03 .gallery-preview-media {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 20px 16px;
}



body.gallery-03 .gallery-preview-dialog img.gallery-preview-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  border: 1px solid #e0e5dd;
  border-radius: 7px;
  background: #e9eee1;
  object-fit: contain;
  object-position: top center;
  filter: none;
}

body.gallery-03 .gallery-preview-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px 18px;
  border-top: 1px solid #dce3d3;
  font-size: 10px;
}

body.gallery-03 .gallery-preview-footer-copy {
  display: grid;
  gap: 5px;
  color: #758074;
}

body.gallery-03 .gallery-preview-footer-copy p {
  margin: 0;
  color: #586354;
  font-size: 10px;
}

body.gallery-03 .gallery-preview-footer-copy small {
  font-size: 9px;
}

body.gallery-03 .gallery-preview-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

body.gallery-03 .gallery-preview-dialog .gallery-preview-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid #cad3c6;
  border-radius: 24px;
  background: #fff;
  color: #465347;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

body.gallery-03 .gallery-preview-dialog .gallery-preview-actions .gallery-preview-intake {
  border-color: #586f58;
  background: #586f58;
  color: #fff;
}

@media (max-width: 700px) {
  body.gallery-03 .gallery-preview-dialog {
    width: calc(100vw - 18px);
    height: 92vh;
    border-radius: 15px;
  }

  @supports (height: 100svh) {
    body.gallery-03 .gallery-preview-dialog {
      height: 92svh;
    }
  }

  body.gallery-03 .gallery-preview-dialog > header {
    padding: 13px 14px;
  }

  body.gallery-03 .gallery-preview-dialog h2 {
    font-size: 21px;
  }

  body.gallery-03 .gallery-preview-media {
    padding: 0 10px 12px;
  }

  body.gallery-03 .gallery-preview-dialog > footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
    padding: 13px 14px 15px;
  }

  body.gallery-03 .gallery-preview-actions {
    width: 100%;
  }

  body.gallery-03 .gallery-preview-dialog .gallery-preview-actions a {
    flex: 1 1 auto;
  }
}

@media (max-width: 420px) {
  body.gallery-03 .gallery-preview-dialog > header {
    gap: 10px;
  }

  body.gallery-03 .gallery-preview-dialog h2 {
    font-size: 18px;
  }

  body.gallery-03 .gallery-preview-dialog .gallery-preview-actions a {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.gallery-03 .d-style-token [data-gallery-swatch] {
    transition: none;
  }
}
