/*
 * Drive Photo Album Manager 2.0.1 Clean
 * Clean frontend stylesheet. One source of truth; no versioned override blocks.
 */

:root {
  --dpam-accent: #e60012;
  --dpam-accent-dark: #c90010;
  --dpam-ink: #172033;
  --dpam-muted: #667085;
  --dpam-line: #e4e8ef;
  --dpam-soft: #f6f8fa;
  --dpam-radius: 16px;
  --dpam-shadow: 0 12px 32px rgba(16, 24, 40, 0.07);
}

.dpam-album,
.dpam-album-directory,
.dpam-password-form,
.dpam-message {
  box-sizing: border-box;
  color: var(--dpam-ink);
  font-family: inherit;
}

.dpam-album *,
.dpam-album-directory *,
.dpam-password-form * {
  box-sizing: border-box;
}

.dpam-album svg,
.dpam-album-directory svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dpam-message {
  padding: 16px 18px;
  border: 1px solid var(--dpam-line);
  border-radius: 10px;
  background: #fff;
}

.dpam-error {
  border-color: #f4c7ca;
  background: #fff1f2;
  color: #9f1239;
}

/* Directory */
.dpam-album-directory {
  --dpam-directory-columns: 3;
  width: 100%;
}

.dpam-directory-filter {
  margin: 0 0 28px;
  padding: 18px 20px 20px;
  border: 1px solid #e4e8ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .07);
}

.dpam-directory-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dpam-directory-filter__head strong,
.dpam-directory-filter__head span {
  display: block;
}

.dpam-directory-filter__head strong {
  color: #172033;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.dpam-directory-filter__head > div > span {
  margin-top: 3px;
  color: #7a8492;
  font-size: 12.5px;
}

.dpam-directory-filter__summary {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f3f5f8;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.dpam-directory-filter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px) auto;
  gap: 16px;
  align-items: end;
}

.dpam-directory-filter__fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr));
  gap: 12px;
  min-width: 0;
}

.dpam-directory-filter__field,
.dpam-directory-filter__search {
  display: block;
  min-width: 0;
  margin: 0;
}

.dpam-directory-filter__field > span:first-child,
.dpam-directory-filter__search > span:first-child {
  display: block;
  margin: 0 0 7px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.dpam-directory-filter__select-wrap,
.dpam-directory-filter__searchbox {
  position: relative;
  display: block;
}

.dpam-directory-filter__select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.dpam-directory-filter select,
.dpam-directory-filter input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0 !important;
  border: 1px solid #d8dee7 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #172033 !important;
  font: inherit;
  font-size: 14px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dpam-directory-filter select {
  appearance: none;
  padding: 0 38px 0 13px !important;
  font-weight: 700;
}

.dpam-directory-filter input[type="search"] {
  padding: 0 48px 0 14px !important;
  font-weight: 500;
}

.dpam-directory-filter select:hover,
.dpam-directory-filter input[type="search"]:hover {
  border-color: #bdc6d2 !important;
}

.dpam-directory-filter select:focus,
.dpam-directory-filter input[type="search"]:focus {
  border-color: var(--dpam-accent) !important;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, .09) !important;
}

.dpam-directory-filter__searchbox button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #f3f5f8 !important;
  color: #344054 !important;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: none !important;
}

.dpam-directory-filter__searchbox button:hover {
  background: #eceff3 !important;
  color: var(--dpam-accent) !important;
}

.dpam-directory-filter__searchbox button span,
.dpam-directory-filter__searchbox button svg {
  width: 18px;
  height: 18px;
}

.dpam-directory-filter__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
}

.dpam-filter-apply,
.dpam-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 48px;
  margin: 0 !important;
  padding: 0 17px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.dpam-filter-apply {
  border: 1px solid #172033 !important;
  background: #172033 !important;
  color: #fff !important;
}

.dpam-filter-reset {
  border: 1px solid var(--dpam-accent) !important;
  background: var(--dpam-accent) !important;
  color: #fff !important;
  box-shadow: 0 9px 20px rgba(230, 0, 18, .20) !important;
}

.dpam-filter-apply:hover,
.dpam-filter-reset:hover {
  transform: translateY(-1px);
}

.dpam-filter-apply:hover {
  background: #0d1523 !important;
}

.dpam-filter-reset:hover {
  border-color: #c90010 !important;
  background: #c90010 !important;
  box-shadow: 0 11px 24px rgba(230, 0, 18, .26) !important;
}

.dpam-filter-reset span:first-child,
.dpam-filter-reset svg {
  width: 16px;
  height: 16px;
}

.dpam-directory-filter.is-loading {
  opacity: .72;
  pointer-events: none;
}

.dpam-filter-admin-note,
.dpam-directory-empty {
  padding: 16px;
  border: 1px solid #f0c36d;
  border-radius: 10px;
  background: #fff8e5;
  color: #6c5315;
}

.dpam-directory-grid {
  display: grid;
  grid-template-columns: repeat(var(--dpam-directory-columns), minmax(0, 1fr));
  gap: 24px;
}

.dpam-directory-empty {
  grid-column: 1 / -1;
}

.dpam-directory-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--dpam-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
  transition: transform .22s ease, box-shadow .22s ease;
}

.dpam-directory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(16, 24, 40, .1);
}

.dpam-directory-cover {
  position: relative;
  display: block;
  min-height: 330px;
  overflow: hidden;
  background: #111;
  color: #fff !important;
  text-decoration: none !important;
}

.dpam-directory-cover > img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: transform .35s ease;
}

.dpam-directory-card:hover .dpam-directory-cover > img {
  transform: scale(1.025);
}

.dpam-directory-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.78) 100%);
}

.dpam-directory-content {
  position: absolute;
  right: 24px;
  bottom: 26px;
  left: 24px;
  z-index: 2;
}

.dpam-directory-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.dpam-directory-content > strong {
  display: block;
  color: #fff;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.dpam-directory-content > small {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.78);
}

.dpam-directory-category-badges,
.dpam-album-category-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dpam-directory-category-badges em,
.dpam-album-category-badges span {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.dpam-directory-footer {
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.dpam-directory-footer > span {
  display: grid;
  grid-template-columns: 20px auto;
  align-items: center;
  column-gap: 5px;
}

.dpam-directory-footer > span > span,
.dpam-directory-footer > span svg {
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
}

.dpam-directory-footer b {
  font-size: 14px;
  line-height: 1;
}

.dpam-directory-footer small {
  color: var(--dpam-muted);
  font-size: 10px;
}

.dpam-directory-footer > a {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--dpam-accent) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.dpam-directory-footer > a span,
.dpam-directory-footer > a svg {
  width: 16px;
  height: 16px;
}

.dpam-album-back-wrap {
  margin: 0 0 14px;
}

.dpam-album-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--dpam-line);
  border-radius: 999px;
  background: #fff;
  color: var(--dpam-ink) !important;
  text-decoration: none !important;
}

/* Album */
.dpam-album {
  --dpam-columns: 4;
  position: relative;
  width: 100%;
  padding-bottom: 96px;
}

.dpam-album-header {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 20px;
  background: #111;
  box-shadow: 0 16px 44px rgba(16, 24, 40, .12);
}

.dpam-cover {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.dpam-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.25) 62%, rgba(0,0,0,.08) 100%),
              linear-gradient(0deg, rgba(0,0,0,.42), transparent 58%);
}

.dpam-title-block {
  position: absolute;
  right: 26px;
  bottom: clamp(28px, 5vw, 58px);
  left: clamp(26px, 5vw, 64px);
  z-index: 2;
  max-width: 760px;
  color: #fff;
}

.dpam-eyebrow {
  display: block;
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.dpam-album-title {
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.dpam-title-block p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.84);
}

.dpam-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--dpam-line);
}

.dpam-summary-bar,
.dpam-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dpam-summary-bar {
  gap: 26px;
}

.dpam-stat {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dpam-stat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dpam-soft);
}

.dpam-stat-icon svg {
  width: 18px;
  height: 18px;
}

.dpam-stat strong,
.dpam-stat small {
  display: block;
}

.dpam-stat strong {
  font-size: 17px;
  line-height: 1;
}

.dpam-stat small {
  margin-top: 4px;
  color: var(--dpam-muted);
  font-size: 11px;
}

.dpam-ui-control,
.dpam-icon-button {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--dpam-line) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: var(--dpam-ink) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

.dpam-ui-control svg,
.dpam-icon-button svg {
  width: 19px;
  height: 19px;
}

.dpam-ui-control:hover,
.dpam-icon-button:hover {
  border-color: #cdd3dc !important;
  color: var(--dpam-accent) !important;
}

.dpam-top-note {
  margin: 18px 0;
  padding: 15px 17px;
  border-radius: 12px;
  background: var(--dpam-soft);
}

.dpam-filter-shell {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(170px, 250px) 1fr minmax(220px, 320px);
  align-items: end;
  gap: 16px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid var(--dpam-line);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
  backdrop-filter: blur(10px);
}

.admin-bar .dpam-filter-shell {
  top: 44px;
}

.dpam-folder-wrap label {
  display: block;
  margin: 0 0 6px;
  color: var(--dpam-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dpam-folder-filter {
  width: 100%;
  height: 44px;
  margin: 0 !important;
  padding: 0 36px 0 12px !important;
  border: 1px solid var(--dpam-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.dpam-status-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: #f1f3f5;
}

.dpam-status-tab {
  min-height: 36px;
  margin: 0 !important;
  padding: 7px 14px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #5d6572 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.dpam-status-tab.is-active {
  background: #fff !important;
  color: var(--dpam-ink) !important;
  box-shadow: 0 3px 10px rgba(16, 24, 40, .08) !important;
}

.dpam-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--dpam-line);
  border-radius: 10px;
  background: #fff;
}

.dpam-search-wrap > span,
.dpam-search-wrap > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #7a8493;
}

.dpam-search {
  width: 100%;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dpam-comments-lock {
  margin: 18px 0;
}

.dpam-empty-state {
  margin: 22px 0;
  padding: 28px;
  border: 1px dashed #cfd6df;
  border-radius: 14px;
  text-align: center;
  background: #fff;
}

.dpam-grid {
  display: grid;
  grid-template-columns: repeat(var(--dpam-columns), minmax(0, 1fr));
  gap: 14px;
}

.dpam-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #eceff2;
  isolation: isolate;
}

.dpam-lightbox-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dpam-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .28s ease;
}

.dpam-card:hover img {
  transform: scale(1.025);
}

.dpam-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 44%;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  pointer-events: none;
}

.dpam-card.is-selected {
  box-shadow: 0 0 0 3px var(--dpam-accent), 0 10px 24px rgba(230,0,18,.16);
}

.dpam-card-select {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  border-color: rgba(255,255,255,.26) !important;
  background: rgba(20,20,20,.58) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}

.dpam-card.is-selected .dpam-card-select,
.dpam-card-select:hover {
  border-color: var(--dpam-accent) !important;
  background: var(--dpam-accent) !important;
  color: #fff !important;
}

.dpam-card-action-group {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 5;
  display: flex;
  gap: 6px;
}

.dpam-card-control {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  border-color: rgba(255,255,255,.24) !important;
  background: rgba(20,20,20,.58) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}

.dpam-card-info {
  position: absolute;
  right: 80px;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 28px 10px 11px;
  color: #fff;
  pointer-events: none;
}

.dpam-card-info strong,
.dpam-card-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dpam-card-info strong {
  font-size: 12px;
}

.dpam-card-info small {
  margin-top: 2px;
  font-size: 10px;
  opacity: .8;
}

.dpam-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(20,20,20,.58);
  color: #fff;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.dpam-video-play svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

.dpam-video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--dpam-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.dpam-note {
  position: absolute;
  right: 8px;
  bottom: 50px;
  left: 8px;
  z-index: 8;
  width: calc(100% - 16px);
  min-height: 104px;
  padding: 11px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}

.dpam-card.has-image-error::before {
  content: "Không tải được ảnh";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #f4f5f7;
  color: #8a94a3;
  font-size: 12px;
}

.dpam-load-wrap {
  padding: 26px 0;
  text-align: center;
}

.dpam-load-more {
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--dpam-accent) !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

.dpam-load-more {
  background: var(--dpam-ink) !important;
}

.dpam-status {
  position: fixed;
  right: 18px;
  bottom: 98px;
  z-index: 2147482600;
  max-width: 360px;
  padding: 11px 15px;
  border-radius: 10px;
  background: #e8f7ec;
  box-shadow: 0 12px 30px rgba(0,0,0,.13);
}

.dpam-status:empty {
  display: none;
}

.dpam-status.is-error {
  background: #ffe7e7;
  color: #93000f;
}

.dpam-password-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 520px;
  padding: 18px;
  border: 1px solid var(--dpam-line);
  border-radius: 12px;
  background: #fff;
}

.dpam-password-form strong,
.dpam-password-status {
  grid-column: 1 / -1;
}

.dpam-password-form button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--dpam-accent);
  color: #fff;
  font-weight: 800;
}

/* Lightbox 2.0.1: original image ratio, no crop, no JS sizing */
html.dpam-lightbox-open,
html.dpam-modal-open,
body.dpam-viewer-active {
  overflow: hidden !important;
}

body.dpam-viewer-active .fixed-hotline,
body.dpam-viewer-active .hotline-phone-ring-wrap,
body.dpam-viewer-active .zalo-chat-widget,
body.dpam-viewer-active .chat-widget,
body.dpam-viewer-active .mfp-wrap,
body.dpam-viewer-active [class*="floating"],
body.dpam-viewer-active [class*="sticky-contact"],
body.dpam-viewer-active [class*="online-support"] {
  visibility: hidden !important;
  pointer-events: none !important;
}

.dpam-native-lightbox {
  --dpam-lightbox-top: 68px;
  --dpam-lightbox-filmstrip: 104px;
  --dpam-lightbox-side: 68px;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: grid !important;
  grid-template-columns: var(--dpam-lightbox-side) minmax(0, 1fr) var(--dpam-lightbox-side);
  grid-template-rows: var(--dpam-lightbox-top) minmax(0, 1fr) var(--dpam-lightbox-filmstrip);
  width: 100vw !important;
  height: 100dvh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
  background: #050505 !important;
  color: #fff;
}

.dpam-native-lightbox[hidden] {
  display: none !important;
}

.dpam-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #050505;
}

.dpam-lightbox-topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(5,5,5,.96);
}

.dpam-lightbox-meta {
  min-width: 0;
  margin-right: auto;
}

.dpam-lightbox-caption,
.dpam-lightbox-counter {
  display: block;
}

.dpam-lightbox-caption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.dpam-lightbox-counter {
  margin-top: 3px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
}

.dpam-lightbox-close,
.dpam-lightbox-download,
.dpam-lightbox-nav {
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.07) !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.dpam-lightbox-close,
.dpam-lightbox-download {
  width: 46px !important;
  height: 46px !important;
}

.dpam-lightbox-nav {
  align-self: center;
  width: 50px !important;
  height: 58px !important;
}

.dpam-lightbox-prev {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
}

.dpam-lightbox-next {
  grid-column: 3;
  grid-row: 2;
  justify-self: center;
}

.dpam-lightbox-stage {
  position: relative !important;
  grid-column: 2;
  grid-row: 2;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 10px !important;
  overflow: hidden !important;
  line-height: 0 !important;
  background: #050505 !important;
}

.dpam-native-lightbox .dpam-lightbox-stage > img.dpam-lightbox-image {
  position: static !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: calc(100vw - (2 * var(--dpam-lightbox-side)) - 20px) !important;
  max-height: calc(100dvh - var(--dpam-lightbox-top) - var(--dpam-lightbox-filmstrip) - 20px) !important;
  margin: auto !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  aspect-ratio: auto !important;
  transform: none !important;
  clip-path: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  image-orientation: from-image;
}

.dpam-lightbox-video {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - (2 * var(--dpam-lightbox-side)) - 20px) !important;
  max-height: calc(100dvh - var(--dpam-lightbox-top) - var(--dpam-lightbox-filmstrip) - 20px) !important;
  margin: auto !important;
  object-fit: contain !important;
  background: #000;
}

.dpam-lightbox-stage > img[hidden],
.dpam-lightbox-video[hidden],
.dpam-lightbox-youtube[hidden],
.dpam-youtube-fallback[hidden] {
  display: none !important;
}

.dpam-lightbox-youtube {
  display: block;
  width: min(100%, 1280px) !important;
  max-width: calc(100vw - (2 * var(--dpam-lightbox-side)) - 20px) !important;
  max-height: calc(100dvh - var(--dpam-lightbox-top) - var(--dpam-lightbox-filmstrip) - 20px) !important;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.dpam-youtube-fallback {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 4;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #fff !important;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none !important;
  transform: translateX(-50%);
}

.dpam-lightbox-mobile-caption {
  display: none;
}

.dpam-lightbox-thumbs {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 10px 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.28) transparent;
}

.dpam-lightbox-thumb {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 2px solid transparent !important;
  border-radius: 8px !important;
  background: #171717 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.dpam-lightbox-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dpam-lightbox-thumb.is-active {
  border-color: #fff !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) !important;
}

.dpam-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

/* Responsive */
@media (max-width: 1200px) {
  .dpam-directory-filter__grid {
    grid-template-columns: 1fr auto;
  }

  .dpam-directory-filter__fields {
    grid-column: 1 / -1;
  }

  .dpam-directory-grid {
    gap: 18px;
  }

  .dpam-grid {
    grid-template-columns: repeat(min(var(--dpam-columns), 4), minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dpam-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dpam-filter-shell {
    grid-template-columns: 1fr 1fr;
  }

  .dpam-search-wrap {
    grid-column: 1 / -1;
  }

  .dpam-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dpam-native-lightbox {
    --dpam-lightbox-side: 58px;
  }
}

@media (max-width: 782px) {
  .admin-bar .dpam-filter-shell {
    top: 58px;
  }

  .dpam-directory-filter {
    padding: 16px;
  }

  .dpam-directory-filter__grid {
    grid-template-columns: 1fr;
  }

  .dpam-directory-filter__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dpam-directory-filter__actions {
    width: 100%;
  }

  .dpam-filter-apply,
  .dpam-filter-reset {
    flex: 1 1 0;
  }

  .dpam-directory-cover,
  .dpam-directory-cover > img {
    min-height: 290px;
    height: 290px;
  }

  .dpam-toolbar {
    align-items: flex-start;
  }

  .dpam-summary-bar {
    gap: 14px;
  }

  .dpam-filter-shell {
    position: static;
    grid-template-columns: 1fr;
  }

  .dpam-status-tabs,
  .dpam-search-wrap {
    grid-column: auto;
  }

  .dpam-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dpam-native-lightbox {
    --dpam-lightbox-top: 62px;
    --dpam-lightbox-filmstrip: 82px;
    --dpam-lightbox-side: 46px;
  }

  .dpam-lightbox-topbar {
    padding: 8px 10px;
  }

  .dpam-lightbox-close,
  .dpam-lightbox-download {
    width: 42px !important;
    height: 42px !important;
  }

  .dpam-lightbox-nav {
    width: 40px !important;
    height: 54px !important;
  }

  .dpam-lightbox-stage {
    padding: 8px !important;
  }

  .dpam-lightbox-thumb {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 560px) {
  .dpam-directory-filter__head > div > span {
    display: none;
  }

  .dpam-directory-filter__fields {
    grid-template-columns: 1fr;
  }

  .dpam-directory-grid {
    grid-template-columns: 1fr;
  }

  .dpam-directory-footer {
    grid-template-columns: repeat(3, auto);
  }

  .dpam-directory-footer > a {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid var(--dpam-line);
  }

  .dpam-cover {
    height: 320px;
  }

  .dpam-toolbar {
    flex-direction: column;
  }

  .dpam-toolbar-actions {
    align-self: flex-end;
  }

  .dpam-summary-bar {
    width: 100%;
    justify-content: space-between;
  }

  .dpam-stat-icon {
    width: 32px;
    height: 32px;
  }

  .dpam-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dpam-card img {
    aspect-ratio: 3 / 4;
  }

  .dpam-selection-copy small,
  .dpam-secondary-action {
    display: none;
  }

  .dpam-customer-panel {
    grid-template-columns: 1fr;
  }

  .dpam-note-field,

  .dpam-native-lightbox {
    --dpam-lightbox-top: 56px;
    --dpam-lightbox-filmstrip: 0px;
    --dpam-lightbox-side: 42px;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  .dpam-lightbox-meta,
  .dpam-lightbox-thumbs {
    display: none;
  }

  .dpam-lightbox-stage {
    grid-row: 2 / 4;
  }

  .dpam-lightbox-prev,
  .dpam-lightbox-next {
    grid-row: 2 / 4;
  }

  .dpam-lightbox-mobile-caption {
    position: absolute;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: block;
    overflow: hidden;
    color: #fff;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }
}


/* 2.0.2: Lightbox is appended directly to body, outside .dpam-album.
   Define SVG presentation locally so theme/global SVG styles cannot hide icons. */
.dpam-native-lightbox svg,
.dpam-note-modal svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  overflow: visible !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
}

.dpam-native-lightbox .dpam-lightbox-close > span,
.dpam-native-lightbox .dpam-lightbox-download > span,
.dpam-native-lightbox .dpam-lightbox-nav > span,
.dpam-note-modal .dpam-modal-close > span {
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  color: #fff !important;
  line-height: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.dpam-native-lightbox .dpam-lightbox-close,
.dpam-native-lightbox .dpam-lightbox-download,
.dpam-native-lightbox .dpam-lightbox-nav {
  font-size: 22px !important;
  color: #fff !important;
}

.dpam-native-lightbox .dpam-lightbox-close:hover,
.dpam-native-lightbox .dpam-lightbox-download:hover,
.dpam-native-lightbox .dpam-lightbox-nav:hover {
  border-color: rgba(255,255,255,.55) !important;
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
}

/* =========================================================
   2.0.3 Clean — mobile overlay controls and compact filters
   ========================================================= */

/* Viewer controls stay on top of media with a translucent glass background. */
.dpam-native-lightbox {
  z-index: 2147483000 !important;
}

.dpam-native-lightbox .dpam-lightbox-close,
.dpam-native-lightbox .dpam-lightbox-download,
.dpam-native-lightbox .dpam-lightbox-nav {
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(17,24,39,.56) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.24) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
}

.dpam-native-lightbox .dpam-lightbox-close:hover,
.dpam-native-lightbox .dpam-lightbox-download:hover,
.dpam-native-lightbox .dpam-lightbox-nav:hover {
  background: rgba(17,24,39,.76) !important;
  border-color: rgba(255,255,255,.46) !important;
}

/* Original image ratio is preserved in every viewport. */
.dpam-native-lightbox .dpam-lightbox-stage > img.dpam-lightbox-image,
.dpam-native-lightbox .dpam-lightbox-video {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

@media (max-width: 560px) {
  .dpam-native-lightbox {
    --dpam-mobile-safe-top: calc(env(safe-area-inset-top, 0px) + 10px);
    --dpam-mobile-safe-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    display: block !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
  }

  .dpam-native-lightbox .dpam-lightbox-topbar {
    position: absolute !important;
    inset: 0 !important;
    z-index: 60 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
  }

  .dpam-native-lightbox .dpam-lightbox-meta,
  .dpam-native-lightbox .dpam-lightbox-thumbs,
  .dpam-native-lightbox .dpam-lightbox-mobile-caption {
    display: none !important;
  }

  .dpam-native-lightbox .dpam-lightbox-stage {
    position: absolute !important;
    inset: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding:
      calc(var(--dpam-mobile-safe-top) + 62px)
      14px
      calc(var(--dpam-mobile-safe-bottom) + 34px)
      14px !important;
    overflow: hidden !important;
  }

  .dpam-native-lightbox .dpam-lightbox-stage > img.dpam-lightbox-image,
  .dpam-native-lightbox .dpam-lightbox-video {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 28px) !important;
    max-height: calc(100dvh - 126px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    margin: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 10px !important;
  }

  .dpam-native-lightbox .dpam-lightbox-youtube {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    max-height: calc(100dvh - 150px) !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 12px !important;
  }

  .dpam-native-lightbox .dpam-lightbox-close,
  .dpam-native-lightbox .dpam-lightbox-download,
  .dpam-native-lightbox .dpam-lightbox-nav {
    position: absolute !important;
    z-index: 80 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 15px !important;
    pointer-events: auto !important;
  }

  .dpam-native-lightbox .dpam-lightbox-download {
    top: var(--dpam-mobile-safe-top) !important;
    right: 70px !important;
  }

  .dpam-native-lightbox .dpam-lightbox-close {
    top: var(--dpam-mobile-safe-top) !important;
    right: 12px !important;
  }

  .dpam-native-lightbox .dpam-lightbox-prev {
    top: 50% !important;
    left: 8px !important;
    transform: translateY(-50%) !important;
  }

  .dpam-native-lightbox .dpam-lightbox-next {
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
  }

  .dpam-native-lightbox .dpam-lightbox-close svg,
  .dpam-native-lightbox .dpam-lightbox-download svg,
  .dpam-native-lightbox .dpam-lightbox-nav svg {
    width: 23px !important;
    height: 23px !important;
  }
}

/* Compact professional directory filters. */
.dpam-directory-filter {
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(16,24,40,.06) !important;
}

.dpam-directory-filter__actions .dpam-filter-reset {
  border-color: #e60012 !important;
  background: #e60012 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(230,0,18,.18) !important;
}

.dpam-directory-filter__actions .dpam-filter-reset:hover {
  border-color: #c90010 !important;
  background: #c90010 !important;
  color: #fff !important;
}

@media (max-width: 782px) {
  .dpam-directory-filter__grid {
    grid-template-columns: 1fr !important;
  }

  .dpam-directory-filter__fields {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }

  .dpam-directory-filter__search,
  .dpam-directory-filter__actions {
    width: 100% !important;
  }
}

@media (max-width: 560px) {
  .dpam-directory-filter {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .dpam-directory-filter__fields {
    grid-template-columns: 1fr !important;
  }

  .dpam-directory-filter__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  .dpam-filter-apply,
  .dpam-filter-reset {
    width: 100% !important;
  }
}

/* =========================================================
   2.0.4 Clean — hard mobile centering fix
   Prevents portrait images from drifting outside the viewport.
   ========================================================= */
@media (max-width: 560px) {
  html.dpam-lightbox-open,
  body.dpam-lightbox-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .dpam-native-lightbox {
    position: fixed !important;
    inset: 0 !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    contain: layout paint size !important;
  }

  .dpam-native-lightbox .dpam-lightbox-stage {
    position: fixed !important;
    inset: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  .dpam-native-lightbox .dpam-lightbox-stage > img.dpam-lightbox-image,
  .dpam-native-lightbox .dpam-lightbox-video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    display: block !important;
    box-sizing: border-box !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100dvh - 136px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: center center !important;
    border-radius: 10px !important;
  }

  .dpam-native-lightbox .dpam-lightbox-youtube {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: calc(100vw - 32px) !important;
    height: auto !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100dvh - 150px) !important;
    margin: 0 !important;
    aspect-ratio: 16 / 9 !important;
    transform: translate(-50%, -50%) !important;
  }

  .dpam-native-lightbox .dpam-lightbox-topbar {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    overflow: visible !important;
  }

  .dpam-native-lightbox .dpam-lightbox-download,
  .dpam-native-lightbox .dpam-lightbox-close,
  .dpam-native-lightbox .dpam-lightbox-prev,
  .dpam-native-lightbox .dpam-lightbox-next {
    position: fixed !important;
    margin: 0 !important;
  }

  .dpam-native-lightbox .dpam-lightbox-download {
    top: calc(env(safe-area-inset-top, 0px) + 14px) !important;
    right: 72px !important;
  }

  .dpam-native-lightbox .dpam-lightbox-close {
    top: calc(env(safe-area-inset-top, 0px) + 14px) !important;
    right: 14px !important;
  }

  .dpam-native-lightbox .dpam-lightbox-prev {
    top: 50% !important;
    left: 8px !important;
    right: auto !important;
    transform: translateY(-50%) !important;
  }

  .dpam-native-lightbox .dpam-lightbox-next {
    top: 50% !important;
    right: 8px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
  }
}

/* ==========================================================
   DPAM 2.0.5 — clean lightbox media state + unified controls
   ========================================================== */
.dpam-native-lightbox .dpam-lightbox-image,
.dpam-native-lightbox .dpam-lightbox-video,
.dpam-native-lightbox .dpam-lightbox-youtube {
  display: none !important;
}
.dpam-native-lightbox.is-image-view .dpam-lightbox-image {
  display: block !important;
}
.dpam-native-lightbox.is-video-view .dpam-lightbox-video {
  display: block !important;
}
.dpam-native-lightbox.is-youtube-view .dpam-lightbox-youtube {
  display: block !important;
}
.dpam-native-lightbox.is-image-view .dpam-lightbox-video,
.dpam-native-lightbox.is-image-view .dpam-lightbox-youtube {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.dpam-native-lightbox .dpam-lightbox-close,
.dpam-native-lightbox .dpam-lightbox-download,
.dpam-native-lightbox .dpam-lightbox-nav {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 17px !important;
  outline: 0 !important;
  background: rgba(17,24,39,.58) !important;
  color: #fff !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.28) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.dpam-native-lightbox .dpam-lightbox-close::before,
.dpam-native-lightbox .dpam-lightbox-close::after,
.dpam-native-lightbox .dpam-lightbox-download::before,
.dpam-native-lightbox .dpam-lightbox-download::after,
.dpam-native-lightbox .dpam-lightbox-nav::before,
.dpam-native-lightbox .dpam-lightbox-nav::after {
  content: none !important;
  display: none !important;
}
.dpam-native-lightbox .dpam-lightbox-close:focus,
.dpam-native-lightbox .dpam-lightbox-download:focus,
.dpam-native-lightbox .dpam-lightbox-nav:focus {
  outline: 0 !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.28) !important;
}
.dpam-native-lightbox .dpam-lightbox-close:focus-visible,
.dpam-native-lightbox .dpam-lightbox-download:focus-visible,
.dpam-native-lightbox .dpam-lightbox-nav:focus-visible {
  outline: 2px solid rgba(255,255,255,.95) !important;
  outline-offset: 3px !important;
}
.dpam-native-lightbox .dpam-lightbox-close svg,
.dpam-native-lightbox .dpam-lightbox-download svg,
.dpam-native-lightbox .dpam-lightbox-nav svg {
  display: block !important;
  width: 25px !important;
  height: 25px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.dpam-native-lightbox .dpam-lightbox-image {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

@media (max-width: 767px) {
  .dpam-native-lightbox .dpam-lightbox-close,
  .dpam-native-lightbox .dpam-lightbox-download,
  .dpam-native-lightbox .dpam-lightbox-nav {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    border-radius: 15px !important;
    background: rgba(17,24,39,.56) !important;
  }
  .dpam-native-lightbox .dpam-lightbox-close svg,
  .dpam-native-lightbox .dpam-lightbox-download svg,
  .dpam-native-lightbox .dpam-lightbox-nav svg {
    width: 23px !important;
    height: 23px !important;
  }
}

/* ==========================================================
   DPAM 2.0.6 — full-frame and mobile performance correction
   ========================================================== */
.dpam-native-lightbox .dpam-lightbox-stage {
  overflow: hidden !important;
}

.dpam-native-lightbox.is-image-view .dpam-lightbox-stage > img.dpam-lightbox-image {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: auto !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  aspect-ratio: auto !important;
  transform: none !important;
  clip-path: none !important;
  border-radius: 12px !important;
  background: transparent !important;
}

@media (max-width: 767px) {
  .dpam-native-lightbox .dpam-lightbox-stage {
    box-sizing: border-box !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding:
      calc(env(safe-area-inset-top, 0px) + 72px)
      14px
      calc(env(safe-area-inset-bottom, 0px) + 28px)
      14px !important;
  }

  .dpam-native-lightbox.is-image-view .dpam-lightbox-stage > img.dpam-lightbox-image {
    max-width: calc(100vw - 28px) !important;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 112px) !important;
    border-radius: 10px !important;
  }

  .dpam-native-lightbox .dpam-lightbox-prev,
  .dpam-native-lightbox .dpam-lightbox-next {
    background: rgba(17, 24, 39, .56) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
}
