.dp-gallery {
  --dp-gallery-ink: #161616;
  --dp-gallery-paper: #fff;
  --dp-gallery-muted: #626262;
  --dp-gallery-line: #e5e5e5;
  color: var(--dp-gallery-ink);
  background: var(--dp-gallery-paper);
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 64px 40px;
  box-sizing: border-box;
  font-family: Poppins, Arial, sans-serif;
  line-height: 1.5;
}
.dp-gallery *, .dp-gallery *::before, .dp-gallery *::after {
  box-sizing: border-box;
}
.dp-gallery [hidden], .dp-gallery-dialog [hidden] { display: none !important; }
.dp-gallery-header { margin: 0 0 24px; }
.dp-gallery-title {
  color: var(--dp-gallery-ink);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  text-transform: none;
}
.dp-gallery-intro {
  color: var(--dp-gallery-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
}
.dp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.dp-gallery-card {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dp-gallery-line);
  border-radius: 6px;
  background: #f0f0ee;
  color: var(--dp-gallery-ink);
  text-decoration: none;
  align-self: start;
  -webkit-tap-highlight-color: transparent;
}
.dp-gallery-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  margin: 0;
}
.dp-gallery-zoom-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / 72%);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}
.dp-gallery-card:focus-visible,
.dp-gallery-button:focus-visible,
.dp-gallery-pagination a:focus-visible {
  outline: 3px solid #151515;
  outline-offset: 4px;
}
.dp-gallery-footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 0;
}
.dp-gallery-count { color: var(--dp-gallery-muted); margin: 0; font-size: 14px; }
.dp-gallery-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 190px;
  padding: 12px 24px;
  border: 1px solid #161616;
  border-radius: 3px;
  background: #161616;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
}
.dp-gallery-button:hover { background: #353535; color: #fff; }
.dp-gallery-pagination { text-align: center; margin: 16px 0 0; font-size: 14px; }
.dp-gallery-pagination a { color: #161616; text-underline-offset: 3px; }
.dp-gallery-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.dp-gallery-dialog {
  box-sizing: border-box;
  color: #fff;
  background: #161616;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  width: min(1100px, calc(100vw - 28px));
  max-width: none;
  height: min(960px, calc(100vh - 28px));
  height: min(960px, calc(100dvh - 28px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  font-family: inherit;
}
.dp-gallery-dialog::backdrop { background: rgb(0 0 0 / 84%); }
.dp-gallery-dialog-shell { height: 100%; display: flex; flex-direction: column; }
.dp-gallery-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 16px;
  padding: 8px 12px 8px 20px;
}
.dp-gallery-dialog-counter { margin: 0; color: #fff; font-size: 14px; }
.dp-gallery-dialog-close,
.dp-gallery-dialog-nav {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 4px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 13px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-transform: none;
}
.dp-gallery-dialog-close { border: 0; font-size: 28px; padding: 4px; }
.dp-gallery-dialog-close:hover,
.dp-gallery-dialog-nav:hover:not(:disabled) { color: #fff; background: rgb(255 255 255 / 12%); }
.dp-gallery-dialog-nav:disabled { opacity: .35; cursor: default; }
.dp-gallery-dialog-close:focus-visible,
.dp-gallery-dialog-nav:focus-visible,
.dp-gallery-dialog-original:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.dp-gallery-dialog-figure {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0 12px;
}
.dp-gallery-dialog-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.dp-gallery-dialog-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  flex: 0 0 auto;
}
.dp-gallery-dialog-prev { justify-self: start; }
.dp-gallery-dialog-next { justify-self: end; }
.dp-gallery-dialog-original { color: #fff; font-size: 13px; text-underline-offset: 3px; text-align: center; }
.dp-gallery-dialog-original:hover { color: #fff; }
.dp-gallery-zoom-open { overflow: hidden; }
@media (max-width: 600px) {
  .dp-gallery { padding: 24px 20px 36px; }
  .dp-gallery-title { font-size: 30px; }
  .dp-gallery-header { margin-bottom: 20px; }
  .dp-gallery-grid { gap: 12px; }
  .dp-gallery-intro { font-size: 14px; }
  .dp-gallery-card { border-radius: 4px; }
  .dp-gallery-zoom-mark { width: 28px; height: 28px; right: 7px; bottom: 7px; }
  .dp-gallery-dialog { width: calc(100vw - 12px); height: calc(100vh - 12px); height: calc(100dvh - 12px); border-radius: 5px; }
  .dp-gallery-dialog-footer { gap: 6px; padding: 12px 8px; }
  .dp-gallery-dialog-nav { font-size: 12px; padding: 8px; }
  .dp-gallery-dialog-original { font-size: 12px; }
}
