/* An opaque photographic stage keeps DJI products distinct from the glass UI. */
.dji-gallery {
  --gallery-line: rgba(119, 153, 182, .22);
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 2.6vw, 32px);
  color: #14324b;
  background: linear-gradient(145deg, #fcfdff, #f3f8fc);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 25px;
  box-shadow: inset 0 1px 0 #fff, 0 12px 40px #50728f0a;
  align-self: start;
}
.dji-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.dji-gallery-heading h3 { font-size: 13px; font-weight: 650; line-height: 1.5; letter-spacing: -.01em; }
.dji-gallery-count { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dji-gallery-count span { color: #7a8f9f; font-weight: 400; }
.dji-gallery-stage { position: relative; min-width: 0; touch-action: pan-y pinch-zoom; }
.dji-gallery-slide { margin: 0; }
.dji-gallery-slide[hidden] { display: none !important; }
.dji-gallery-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; background: #fff; border: 1px solid #e6edf3; border-radius: 18px; }
.dji-gallery .dji-gallery-photo img,
.dji-gallery .dji-gallery-thumbnail-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: none;
  transform: none;
  user-select: none;
  -webkit-user-drag: none;
}
.dji-gallery .dji-gallery-photo img { position: absolute; inset: 0; padding: 34px 35px 27px; }
.dji-gallery .dji-gallery-photo img[hidden] { display: none !important; }
.dji-gallery-kind { position: absolute; top: 13px; left: 14px; font-size: 9px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #607f94; }
.dji-gallery-error { color: #526f84; font-size: 12px; padding: 35px; text-align: center; }
.dji-gallery-arrows { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.dji-gallery-arrow { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #d1e0ea; border-radius: 50%; background: #ffffffe8; color: #294f6c; box-shadow: 0 4px 15px #204c6510, inset 0 1px 0 #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: auto; transition: background .15s, box-shadow .15s; }
.dji-gallery-arrow:first-child { transform: translateX(-10px); }
.dji-gallery-arrow:last-child { transform: translateX(10px); }
.dji-gallery-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dji-gallery-arrow:hover { background: #eaf5ff; box-shadow: 0 4px 18px #42729722; }
.dji-gallery-arrow:active { background: #ddecf9; }
.dji-gallery-caption { min-height: 110px; padding: 16px 3px 13px; }
.dji-gallery-caption h4 { font-size: 14px; font-weight: 650; line-height: 1.5; letter-spacing: -.015em; margin: 0 0 5px; }
.dji-gallery-caption p { margin: 5px 0 0; font-size: 11px; line-height: 1.7; color: #526e83; overflow-wrap: anywhere; }
.dji-gallery-caption .dji-gallery-kit-note { color: #526e83; }
.dji-gallery-caption a { display: inline-flex; align-items: center; gap: 4px; min-height: 35px; font-size: 10px; font-weight: 550; color: #436a86; text-decoration: underline; text-decoration-color: #bdcfdc; text-underline-offset: 3px; }
.dji-gallery-caption a:hover { color: #086fe8; text-decoration-color: currentColor; }
.dji-gallery-thumbnails { display: flex; gap: 9px; width: 100%; max-width: 100%; padding: 4px 3px 9px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #c4d8e7 transparent; touch-action: pan-x pan-y pinch-zoom; }
.dji-gallery-thumbnail { display: flex; flex-direction: column; align-items: stretch; flex: 0 0 86px; width: 86px; min-width: 0; padding: 4px; border: 1px solid var(--gallery-line); border-radius: 12px; color: #5a758a; background: #ffffffb5; box-shadow: inset 0 1px 0 #fff; transition: border-color .15s, box-shadow .15s; }
.dji-gallery-thumbnail[aria-pressed="true"] { color: #1268b5; border-color: #5497cd; background: #fff; box-shadow: 0 0 0 2px #82b8e31c; }
.dji-gallery-thumbnail:hover { border-color: #7ba8ca; }
.dji-gallery-thumbnail-image { display: block; position: relative; height: 58px; border-radius: 8px; overflow: hidden; background: #fff; }
.dji-gallery .dji-gallery-thumbnail-image img { padding: 5px; }
.dji-gallery-thumbnail-label { display: block; margin: 4px 1px 2px; font-size: 8px; line-height: 1.45; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dji-gallery button:focus-visible,
.dji-gallery a:focus-visible,
.dji-gallery:focus-visible { outline: 2px solid #086fe8; outline-offset: 2px; }
.dji-gallery-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 650px) {
  .dji-gallery { padding: 20px 17px 14px; border-radius: 20px; }
  .dji-gallery-heading { margin-bottom: 13px; }
  .dji-gallery-photo { border-radius: 15px; }
  .dji-gallery .dji-gallery-photo img { padding: 31px 29px 23px; }
  .dji-gallery-arrow:first-child { transform: translateX(-9px); }
  .dji-gallery-arrow:last-child { transform: translateX(9px); }
  .dji-gallery-caption { min-height: 0; padding: 14px 1px 12px; }
  .dji-gallery-caption h4 { font-size: 13px; }
  .dji-gallery-caption a { min-height: 44px; }
  .dji-gallery-thumbnail { flex-basis: 80px; width: 80px; }
  .dji-gallery-thumbnail-image { height: 55px; }
}
@media (prefers-reduced-motion: reduce) {
  .dji-gallery *, .dji-gallery *::before, .dji-gallery *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .dji-gallery-arrow, .dji-gallery-thumbnail { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
