.gdeg-gallery [hidden],
.gdeg-lightbox[hidden] {
  display: none !important;
}

.gdeg-gallery {
  --gdeg-border: #e5e7eb;
  --gdeg-bg: #ffffff;
  --gdeg-muted: #6b7280;
  --gdeg-text: #111827;
  --gdeg-soft: #f8fafc;
  --gdeg-accent: #2d0351;
  --gdeg-accent-soft: #f4ecfb;
  --gdeg-spinner-color: #8c49c5;
  --gdeg-scrollbar-color: #6f2fa5;
  --gdeg-radius: 16px;
  color: var(--gdeg-text);
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
}

.gdeg-gallery *,
.gdeg-gallery *::before,
.gdeg-gallery *::after {
  box-sizing: border-box;
}

.gdeg-toolbar {
  align-items: center;
  background: var(--gdeg-bg);
  border: 1px solid var(--gdeg-border);
  border-radius: var(--gdeg-radius);
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
}

.gdeg-sidebar-toggle,
.gdeg-load-more,
.gdeg-download-all,
.gdeg-breadcrumbs__item,
.gdeg-tree__button,
.gdeg-card,
.gdeg-lightbox button,
.gdeg-lightbox__download {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.gdeg-sidebar-toggle,
.gdeg-load-more,
.gdeg-download-all,
.gdeg-lightbox__download {
  align-items: center;
  background: var(--gdeg-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 16px;
  text-decoration: none;
}

.gdeg-search {
  flex: 1;
}

.gdeg-search input,
.gdeg-filter select {
  background: #fff;
  border: 1px solid var(--gdeg-border);
  border-radius: 999px;
  color: var(--gdeg-text);
  min-height: 42px;
  padding: 8px 14px;
  width: 100%;
}

.gdeg-filter {
  min-width: 160px;
}

.gdeg-layout {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  height: var(--gdeg-layout-height-desktop, min(80vh, 720px));
  min-height: 520px;
}

.gdeg-gallery--custom-height .gdeg-layout {
  min-height: 0;
}

.gdeg-sidebar,
.gdeg-main {
  background: var(--gdeg-bg);
  border: 1px solid var(--gdeg-border);
  border-radius: var(--gdeg-radius);
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.gdeg-sidebar {
  overflow: auto;
  padding: 12px;
  position: sticky;
  scrollbar-color: var(--gdeg-scrollbar-color) transparent;
  scrollbar-width: thin;
  top: 24px;
}

.gdeg-sidebar__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 4px 6px;
}

.gdeg-sidebar__close {
  background: transparent;
  border: 0;
  display: none;
  font-size: 28px;
}

.gdeg-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
}

.gdeg-main__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: var(--gdeg-scrollbar-color) transparent;
  scrollbar-width: thin;
}

.gdeg-main__scroll::-webkit-scrollbar,
.gdeg-sidebar::-webkit-scrollbar {
  width: 6px;
}

.gdeg-main__scroll::-webkit-scrollbar-thumb,
.gdeg-sidebar::-webkit-scrollbar-thumb {
  background: var(--gdeg-scrollbar-color);
  border-radius: 999px;
}

.gdeg-main__scroll::-webkit-scrollbar-track,
.gdeg-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.gdeg-gallery .gdeg-sidebar ul,
.gdeg-gallery .gdeg-sidebar li,
.gdeg-tree__list,
.gdeg-tree__children {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gdeg-gallery .gdeg-sidebar li::marker {
  content: "" !important;
}

.gdeg-tree__list,
.gdeg-tree__children {
  padding: 0 !important;
}

.gdeg-tree__children {
  margin-left: 16px;
}

.gdeg-tree__item {
  margin: 2px 0;
}

.gdeg-tree__row {
  align-items: center;
  border-radius: 10px;
  display: flex;
  gap: 4px;
  min-width: 0;
}

.gdeg-tree__button {
  align-items: center;
  background: transparent;
  border-radius: 10px;
  color: var(--gdeg-text);
  display: flex;
  gap: 7px;
  min-height: 36px;
  padding: 6px 8px;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  width: auto;
}

.gdeg-tree__button:hover,
.gdeg-tree__item.is-selected > .gdeg-tree__row .gdeg-tree__button {
  background: var(--gdeg-accent-soft);
  color: var(--gdeg-accent);
}

.gdeg-tree__chevron::before {
  content: "▸";
  display: inline-block;
  transition: transform 160ms ease;
}

.gdeg-tree__item.is-expanded > .gdeg-tree__row .gdeg-tree__button .gdeg-tree__chevron::before {
  transform: rotate(90deg);
}

.gdeg-tree__folder-icon::before,
.gdeg-card__folder-icon::before {
  content: "📁";
}

.gdeg-tree__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gdeg-tree__drive-link {
  align-items: center;
  border-radius: 999px;
  color: var(--gdeg-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  height: 30px;
  justify-content: center;
  text-decoration: none;
  width: 30px;
}

.gdeg-tree__drive-link:hover {
  background: var(--gdeg-accent-soft);
  color: var(--gdeg-accent);
}

.gdeg-tree__loading,
.gdeg-tree__empty,
.gdeg-tree__summary {
  color: var(--gdeg-muted);
  display: block;
  font-size: 13px;
  padding: 6px 10px;
  text-align: left !important;
}

.gdeg-tree__summary {
  background: var(--gdeg-soft);
  border-radius: 10px;
  margin: 4px 0 6px;
}

.gdeg-tree__summary-line {
  display: block;
}

.gdeg-breadcrumbs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.gdeg-breadcrumbs__item {
  background: var(--gdeg-soft);
  border-radius: 999px;
  color: var(--gdeg-text);
  padding: 6px 10px;
}

.gdeg-breadcrumbs__item:hover {
  background: var(--gdeg-accent-soft);
  color: var(--gdeg-accent);
}

.gdeg-breadcrumbs__separator {
  color: var(--gdeg-muted);
}

.gdeg-credit {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #7c2d12;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.gdeg-folder-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.gdeg-status-region {
  position: relative;
}

.gdeg-loading,
.gdeg-error,
.gdeg-empty,
.gdeg-notice {
  align-items: center;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
}

.gdeg-loading,
.gdeg-empty,
.gdeg-notice--warning {
  background: var(--gdeg-soft);
  color: var(--gdeg-muted);
}

.gdeg-error {
  background: #fef2f2;
  color: #991b1b;
}

.gdeg-spinner {
  animation: gdeg-spin 900ms linear infinite;
  border: 2px solid var(--gdeg-border);
  border-top-color: var(--gdeg-spinner-color);
  border-radius: 50%;
  display: inline-block;
  height: 18px;
  width: 18px;
}

@keyframes gdeg-spin {
  to { transform: rotate(360deg); }
}

.gdeg-grid {
  align-content: start;
  display: grid;
  gap: var(--gdeg-gap, 16px);
  grid-template-columns: repeat(var(--gdeg-columns, 4), minmax(0, 1fr));
}

.gdeg-card {
  background: #fff;
  border: 1px solid var(--gdeg-border);
  border-radius: 14px;
  color: var(--gdeg-text);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.gdeg-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.11);
  transform: translateY(-2px);
}

.gdeg-card--folder {
  align-items: center;
  flex-direction: row;
  gap: 10px;
  min-height: 88px;
  padding: 18px;
}

.gdeg-card--folder .gdeg-card__folder-icon {
  font-size: 30px;
}

.gdeg-card__media {
  aspect-ratio: 4 / 3;
  background: var(--gdeg-soft);
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.gdeg-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: var(--gdeg-object-position, center center);
  transition: transform 200ms ease;
  width: 100%;
}

.gdeg-card:hover .gdeg-card__media img {
  transform: scale(1.04);
}

.gdeg-card__placeholder {
  align-items: center;
  color: var(--gdeg-muted);
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.gdeg-card__play {
  align-items: center;
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 20px;
  height: 48px;
  justify-content: center;
  left: 50%;
  padding-left: 3px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
}

.gdeg-card__download {
  align-items: center;
  background: rgba(17, 24, 39, 0.86);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
  opacity: 0;
  pointer-events: auto;
  position: absolute;
  right: 10px;
  text-decoration: none;
  top: 10px;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  width: 36px;
  z-index: 5;
}

.gdeg-card:hover .gdeg-card__download,
.gdeg-card:focus .gdeg-card__download,
.gdeg-card:focus-within .gdeg-card__download,
.gdeg-card__download:focus {
  opacity: 1;
  transform: translateY(0);
}

.gdeg-card__download:hover {
  background: var(--gdeg-accent);
  color: #fff;
}

.gdeg-card__title {
  color: var(--gdeg-text);
  display: block;
  font-weight: 600;
  overflow: hidden;
  padding: 10px 12px 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.gdeg-card--folder .gdeg-card__title {
  padding: 0;
}

.gdeg-card__folder-meta {
  color: var(--gdeg-muted);
  display: block;
  font-size: 13px;
  padding: 0 12px 4px;
}

.gdeg-card__meta {
  color: var(--gdeg-muted);
  display: block;
  font-size: 13px;
  padding: 0 12px 12px;
}

.gdeg-pagination {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.gdeg-lightbox-open {
  overflow: hidden;
}

.gdeg-lightbox {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 999999;
}

.gdeg-lightbox__backdrop {
  background: rgba(2, 6, 23, 0.88);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gdeg-lightbox__panel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  position: relative;
  width: 100%;
}

.gdeg-lightbox__topbar {
  align-items: center;
  background: rgba(2, 6, 23, 0.8);
  color: #fff;
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 14px;
  position: relative;
  z-index: 2;
}

.gdeg-lightbox__caption {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gdeg-lightbox__actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.gdeg-lightbox__actions button {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  padding: 0 12px;
}

.gdeg-lightbox__download {
  background: #fff;
  color: #111827;
  gap: 6px;
  padding: 8px 13px;
}

.gdeg-lightbox__stage {
  align-items: center;
  display: flex;
  grid-column: 2;
  grid-row: 2;
  justify-content: center;
  min-height: 0;
  overflow: auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.gdeg-lightbox__stage img {
  max-height: 86vh;
  max-width: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 160ms ease;
}

.gdeg-lightbox__stage iframe {
  background: #000;
  border: 0;
  border-radius: 12px;
  height: min(80vh, 720px);
  max-width: 1100px;
  width: 100%;
}

.gdeg-lightbox__nav {
  align-self: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  font-size: 42px;
  height: 52px;
  justify-self: center;
  position: relative;
  width: 52px;
  z-index: 2;
}

.gdeg-lightbox__nav--prev {
  grid-column: 1;
  grid-row: 2;
}

.gdeg-lightbox__nav--next {
  grid-column: 3;
  grid-row: 2;
}

.gdeg-gallery button:focus-visible,
.gdeg-gallery [role="button"]:focus-visible,
.gdeg-gallery input:focus-visible,
.gdeg-gallery select:focus-visible,
.gdeg-gallery a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .gdeg-grid {
    grid-template-columns: repeat(min(var(--gdeg-columns, 4), 3), minmax(0, 1fr));
  }
}


@media (max-width: 1100px) and (min-width: 781px) {
  .gdeg-layout {
    height: var(--gdeg-layout-height-tablet, var(--gdeg-layout-height-desktop, min(80vh, 720px)));
  }
}

@media (max-width: 780px) {
  .gdeg-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .gdeg-layout {
    display: block;
    height: auto;
    min-height: 0;
  }

  .gdeg-gallery--mobile-fixed .gdeg-layout {
    height: var(--gdeg-layout-height-mobile, auto);
  }

  .gdeg-sidebar {
    border-radius: 0;
    bottom: 0;
    box-shadow: 12px 0 35px rgba(15, 23, 42, 0.25);
    left: 0;
    max-height: none;
    max-width: 88vw;
    position: fixed;
    top: 0;
    transform: translateX(-110%);
    transition: transform 200ms ease;
    width: 340px;
    z-index: 99999;
  }

  .gdeg-sidebar.is-open {
    transform: translateX(0);
  }

  .gdeg-sidebar__close {
    display: inline-flex;
  }

  .gdeg-main {
    height: auto;
    min-height: 360px;
    overflow: visible;
    padding: 14px;
  }

  .gdeg-gallery--mobile-fixed .gdeg-main {
    height: 100%;
    overflow: hidden;
  }

  .gdeg-main__scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .gdeg-gallery--mobile-fixed .gdeg-main__scroll {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .gdeg-gallery--toolbar-disabled .gdeg-sidebar {
    border-radius: var(--gdeg-radius);
    box-shadow: none;
    margin-bottom: 16px;
    max-width: none;
    position: static;
    transform: none;
    transition: none;
    width: auto;
  }

  .gdeg-gallery--toolbar-disabled .gdeg-sidebar__close {
    display: none;
  }

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

  .gdeg-lightbox__panel {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .gdeg-lightbox__topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .gdeg-grid {
    grid-template-columns: 1fr;
  }

  .gdeg-lightbox__actions {
    flex-wrap: wrap;
  }
}


.gdeg-tree__item:not(.is-expanded) > .gdeg-tree__children {
  display: none;
}

.gdeg-load-more[disabled] {
  cursor: progress;
  opacity: 0.82;
}

.gdeg-load-more__spinner {
  display: none;
  height: 16px;
  width: 16px;
}

.gdeg-load-more.is-loading .gdeg-load-more__spinner {
  display: inline-block;
}

.gdeg-lightbox__loading {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  gap: 10px;
  left: 50%;
  padding: 10px 16px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.gdeg-tree__drive-link-icon,
.gdeg-card__download-img,
.gdeg-lightbox__download-img {
  display: block;
  height: 1em;
  max-height: 18px;
  max-width: 18px;
  object-fit: contain;
  width: 1em;
}

.gdeg-card__download-icon,
.gdeg-lightbox__download-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
}

.gdeg-gallery--overlay-enabled .gdeg-card__media::after,
.gdeg-gallery--overlay-enabled .gdeg-card__overlay {
  background: var(--gdeg-overlay-color, #6d28d9);
  bottom: 0;
  content: "";
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity 180ms ease;
  z-index: 2;
}

.gdeg-gallery--overlay-enabled .gdeg-card:hover .gdeg-card__media::after,
.gdeg-gallery--overlay-enabled .gdeg-card:focus .gdeg-card__media::after,
.gdeg-gallery--overlay-enabled .gdeg-card:focus-within .gdeg-card__media::after,
.gdeg-gallery--overlay-enabled .gdeg-card:hover .gdeg-card__overlay,
.gdeg-gallery--overlay-enabled .gdeg-card:focus .gdeg-card__overlay,
.gdeg-gallery--overlay-enabled .gdeg-card:focus-within .gdeg-card__overlay {
  opacity: var(--gdeg-overlay-opacity, 0.35);
}

.gdeg-card__play {
  z-index: 3;
}

.gdeg-card__download {
  z-index: 6;
}

.gdeg-skeleton-grid[hidden] {
  display: none !important;
}

.gdeg-skeleton-grid {
  align-content: start;
  display: grid;
  gap: var(--gdeg-gap, 16px);
  grid-template-columns: repeat(var(--gdeg-columns, 4), minmax(0, 1fr));
}

.gdeg-grid:not(:empty) + .gdeg-skeleton-grid:not([hidden]) {
  margin-top: var(--gdeg-gap, 16px);
}

.gdeg-skeleton-card {
  background: #fff;
  border: 1px solid var(--gdeg-border);
  border-radius: 14px;
  display: block;
  overflow: hidden;
}

.gdeg-skeleton-card__media,
.gdeg-skeleton-card__line {
  animation: gdeg-skeleton-pulse 1.2s ease-in-out infinite;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  display: block;
}

.gdeg-skeleton-card__media {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.gdeg-skeleton-card__line {
  border-radius: 999px;
  height: 12px;
  margin: 12px;
  width: 62%;
}

@keyframes gdeg-skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 1100px) {
  .gdeg-skeleton-grid {
    grid-template-columns: repeat(min(var(--gdeg-columns, 4), 3), minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .gdeg-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .gdeg-skeleton-grid {
    grid-template-columns: 1fr;
  }
}

.gdeg-tree__folder-icon,
.gdeg-card__folder-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  min-width: 1.2em;
}

.gdeg-tree__folder-icon.has-custom-icon::before,
.gdeg-card__folder-icon.has-custom-icon::before {
  content: none;
}

.gdeg-tree__folder-icon-img,
.gdeg-card__folder-icon-img {
  display: block;
  height: 1.15em;
  max-height: 20px;
  max-width: 20px;
  object-fit: contain;
  width: 1.15em;
}

.gdeg-see-all {
  align-items: center;
  background: var(--gdeg-soft);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.gdeg-see-all__text {
  color: var(--gdeg-text);
  font-weight: 600;
}

.gdeg-see-all__button {
  background: var(--gdeg-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.gdeg-see-all__button:hover,
.gdeg-see-all__button:focus {
  color: #fff;
  filter: brightness(0.95);
}

@media (max-width: 640px) {
  .gdeg-see-all {
    align-items: stretch;
    flex-direction: column;
  }

  .gdeg-see-all__button {
    justify-content: center;
  }
}


/* v1.2.13: initial gallery loader. */
.gdeg-initial-loader {
  align-items: center;
  background: var(--gdeg-bg);
  border: 1px solid var(--gdeg-border);
  border-radius: var(--gdeg-radius);
  color: var(--gdeg-text);
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 220px;
  padding: 28px;
  text-align: center;
}

.gdeg-gallery:not(.is-initial-loading) .gdeg-initial-loader {
  display: none !important;
}

.gdeg-gallery.is-initial-loading > .gdeg-toolbar,
.gdeg-gallery.is-initial-loading > .gdeg-layout {
  visibility: hidden;
}

.gdeg-gallery.is-initial-loading > .gdeg-layout {
  height: 0;
  min-height: 0;
  overflow: hidden;
}

.gdeg-see-all__button {
  white-space: nowrap;
}


.gdeg-see-all__button.is-link-style {
  background: transparent !important;
  border-radius: 0;
  color: var(--gdeg-accent) !important;
  min-height: 0;
  padding: 0;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.gdeg-see-all__button.is-link-style:hover,
.gdeg-see-all__button.is-link-style:focus {
  background: transparent !important;
  color: var(--gdeg-accent) !important;
  text-decoration-thickness: 2px !important;
}

.gdeg-see-all--bottom {
  bottom: 0;
  margin-bottom: 0;
  margin-top: 12px;
  position: sticky;
  z-index: 4;
}


/* v1.2.19: frontend hierarchy, overlay, mobile drawer, and lightbox stacking hardening. */
.gdeg-gallery .gdeg-tree,
.gdeg-gallery .gdeg-tree__list,
.gdeg-gallery .gdeg-tree__children {
  display: block !important;
}

.gdeg-gallery .gdeg-tree__children {
  border-left: 1px solid var(--gdeg-border) !important;
  margin: 4px 0 0 18px !important;
  padding: 0 0 0 12px !important;
}

.gdeg-gallery .gdeg-tree__item {
  display: block !important;
  margin: 3px 0 !important;
  position: relative !important;
}

.gdeg-gallery .gdeg-tree__item::before {
  background: var(--gdeg-border);
  content: "";
  display: block;
  height: 1px;
  left: -12px;
  position: absolute;
  top: 20px;
  width: 10px;
}

.gdeg-gallery .gdeg-tree__list > .gdeg-tree__item::before {
  display: none;
}

.gdeg-gallery .gdeg-tree__row {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.gdeg-gallery .gdeg-tree__button {
  display: grid !important;
  grid-template-columns: 16px 22px minmax(0, 1fr);
  align-items: center !important;
  gap: 7px !important;
}

.gdeg-gallery .gdeg-tree__folder-icon,
.gdeg-gallery .gdeg-tree__chevron {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
}

.gdeg-gallery .gdeg-tree__label {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.gdeg-lightbox {
  z-index: 2147483000 !important;
}

.gdeg-lightbox__backdrop,
.gdeg-lightbox__panel,
.gdeg-lightbox__topbar,
.gdeg-lightbox__stage,
.gdeg-lightbox__nav {
  z-index: auto;
}

.gdeg-lightbox__backdrop {
  z-index: 2147483001 !important;
}

.gdeg-lightbox__panel {
  z-index: 2147483002 !important;
}

.gdeg-lightbox__topbar,
.gdeg-lightbox__nav,
.gdeg-lightbox__actions,
.gdeg-lightbox__download {
  z-index: 2147483003 !important;
}

.gdeg-see-all--bottom {
  z-index: 10 !important;
}

.gdeg-gallery--overlay-enabled .gdeg-card__media {
  isolation: isolate !important;
  position: relative !important;
}

.gdeg-gallery--overlay-enabled .gdeg-card__media > .gdeg-card__overlay,
.gdeg-gallery--overlay-enabled .gdeg-card__media::after {
  background: var(--gdeg-overlay-color, #6d28d9) !important;
  content: "" !important;
  display: block !important;
  inset: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  transform: translateZ(0);
  transition: opacity 180ms ease !important;
  visibility: visible !important;
  z-index: 4 !important;
}

.gdeg-gallery--overlay-enabled .gdeg-card:hover .gdeg-card__media > .gdeg-card__overlay,
.gdeg-gallery--overlay-enabled .gdeg-card:focus .gdeg-card__media > .gdeg-card__overlay,
.gdeg-gallery--overlay-enabled .gdeg-card:focus-within .gdeg-card__media > .gdeg-card__overlay,
.gdeg-gallery--overlay-enabled .gdeg-card__media:hover > .gdeg-card__overlay,
.gdeg-gallery--overlay-enabled .gdeg-card:hover .gdeg-card__media::after,
.gdeg-gallery--overlay-enabled .gdeg-card:focus .gdeg-card__media::after,
.gdeg-gallery--overlay-enabled .gdeg-card:focus-within .gdeg-card__media::after,
.gdeg-gallery--overlay-enabled .gdeg-card__media:hover::after {
  opacity: var(--gdeg-overlay-opacity, 0.35) !important;
}

.gdeg-gallery--overlay-enabled .gdeg-card__download,
.gdeg-gallery--overlay-enabled .gdeg-card__play {
  z-index: 7 !important;
}

.gdeg-mobile-folders-trigger {
  display: none;
}

@media (max-width: 780px) {
  .gdeg-mobile-folders-trigger {
    align-items: center;
    background: var(--gdeg-accent);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    gap: 8px;
    justify-content: center;
    margin: 0 0 14px;
    padding: 10px 16px;
  }

  .gdeg-gallery--toolbar-disabled .gdeg-mobile-folders-trigger {
    display: inline-flex;
  }

  .gdeg-gallery--toolbar-disabled .gdeg-sidebar,
  .gdeg-sidebar {
    border-radius: 0 !important;
    bottom: 0 !important;
    box-shadow: 12px 0 35px rgba(15, 23, 42, 0.25) !important;
    left: 0 !important;
    max-height: none !important;
    max-width: 88vw !important;
    position: fixed !important;
    top: 0 !important;
    transform: translateX(-110%) !important;
    transition: transform 200ms ease !important;
    width: 340px !important;
    z-index: 2147482000 !important;
  }

  .gdeg-gallery--toolbar-disabled .gdeg-sidebar.is-open,
  .gdeg-sidebar.is-open {
    transform: translateX(0) !important;
  }

  .gdeg-gallery--toolbar-disabled .gdeg-sidebar__close,
  .gdeg-sidebar__close {
    display: inline-flex !important;
  }
}

.gdeg-gallery.is-initial-loading > .gdeg-mobile-folders-trigger {
  visibility: hidden;
}

/* v1.2.20: stronger frontend tree hierarchy, lightbox priority, overlay fallback, and mobile gallery scrolling. */
.gdeg-gallery .gdeg-tree,
.gdeg-gallery .gdeg-tree * {
  text-align: left;
}

.gdeg-gallery .gdeg-tree__list {
  border-left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gdeg-gallery .gdeg-tree__children {
  border-left: 1px solid var(--gdeg-border) !important;
  margin: 6px 0 0 20px !important;
  padding: 0 0 0 22px !important;
}

.gdeg-gallery .gdeg-tree__children .gdeg-tree__children {
  margin-left: 22px !important;
  padding-left: 22px !important;
}

.gdeg-gallery .gdeg-tree__item {
  clear: both !important;
  display: block !important;
  margin: 4px 0 !important;
  padding: 0 !important;
  position: relative !important;
}

.gdeg-gallery .gdeg-tree__item::before {
  background: var(--gdeg-border) !important;
  content: "" !important;
  display: block !important;
  height: 1px !important;
  left: -22px !important;
  position: absolute !important;
  top: 20px !important;
  width: 18px !important;
}

.gdeg-gallery .gdeg-tree__list > .gdeg-tree__item::before {
  display: none !important;
}

.gdeg-gallery .gdeg-tree__row {
  align-items: center !important;
  display: grid !important;
  gap: 6px !important;
  grid-template-columns: minmax(0, 1fr) 30px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.gdeg-gallery .gdeg-tree__button {
  align-items: center !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: 14px 24px minmax(0, 1fr) !important;
  justify-content: stretch !important;
  min-width: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.gdeg-gallery .gdeg-tree__chevron,
.gdeg-gallery .gdeg-tree__folder-icon {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  height: 22px !important;
  min-width: 0 !important;
  width: 22px !important;
}

.gdeg-gallery .gdeg-tree__chevron {
  width: 14px !important;
}

.gdeg-gallery .gdeg-tree__folder-icon-img {
  height: 20px !important;
  width: 20px !important;
}

.gdeg-gallery .gdeg-tree__label {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding-left: 2px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.gdeg-gallery .gdeg-tree__summary {
  margin: 6px 0 8px 46px !important;
  padding-left: 12px !important;
}

.gdeg-gallery .gdeg-tree__summary-line,
.gdeg-gallery .gdeg-tree__loading,
.gdeg-gallery .gdeg-tree__empty {
  text-align: left !important;
}

.gdeg-lightbox,
body > .gdeg-lightbox {
  isolation: isolate !important;
  position: fixed !important;
  z-index: 2147483647 !important;
}

body.gdeg-lightbox-open .gdeg-see-all--bottom,
html.gdeg-lightbox-open .gdeg-see-all--bottom {
  z-index: 1 !important;
}

body.gdeg-lightbox-open .gdeg-lightbox,
html.gdeg-lightbox-open .gdeg-lightbox {
  z-index: 2147483647 !important;
}

.gdeg-lightbox__backdrop {
  z-index: 2147483644 !important;
}

.gdeg-lightbox__panel {
  z-index: 2147483645 !important;
}

.gdeg-lightbox__topbar,
.gdeg-lightbox__actions,
.gdeg-lightbox__download,
.gdeg-lightbox__nav,
.gdeg-lightbox__loading {
  position: relative;
  z-index: 2147483646 !important;
}

.gdeg-gallery--overlay-enabled .gdeg-card__media > .gdeg-card__overlay {
  background-color: var(--gdeg-overlay-color, #6d28d9) !important;
  display: block !important;
  height: 100% !important;
  left: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  top: 0 !important;
  transform: translate3d(0, 0, 0) !important;
  transition: opacity 180ms ease !important;
  visibility: visible !important;
  width: 100% !important;
  z-index: 8 !important;
}

.gdeg-gallery--overlay-enabled .gdeg-card.is-gdeg-hovering .gdeg-card__media > .gdeg-card__overlay,
.gdeg-gallery--overlay-enabled .gdeg-card__media.is-gdeg-hovering > .gdeg-card__overlay,
.gdeg-gallery--overlay-enabled .gdeg-card:hover .gdeg-card__media > .gdeg-card__overlay,
.gdeg-gallery--overlay-enabled .gdeg-card:focus-within .gdeg-card__media > .gdeg-card__overlay {
  opacity: var(--gdeg-overlay-opacity, 0.35) !important;
}

.gdeg-gallery--overlay-enabled .gdeg-card__download,
.gdeg-gallery--overlay-enabled .gdeg-card__play {
  z-index: 12 !important;
}

@media (max-width: 780px) {
  .gdeg-layout,
  .gdeg-gallery--mobile-fixed .gdeg-layout {
    height: auto !important;
    min-height: 0 !important;
  }

  .gdeg-main,
  .gdeg-gallery--mobile-fixed .gdeg-main {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .gdeg-main__scroll,
  .gdeg-gallery--mobile-fixed .gdeg-main__scroll {
    max-height: min(var(--gdeg-layout-height-mobile, 72vh), 72vh) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-right: 6px !important;
    scrollbar-color: var(--gdeg-scrollbar-color) transparent !important;
    scrollbar-width: thin !important;
  }
}

@media (max-width: 480px) {
  .gdeg-main__scroll,
  .gdeg-gallery--mobile-fixed .gdeg-main__scroll {
    max-height: min(var(--gdeg-layout-height-mobile, 74vh), 74vh) !important;
  }
}

/* v1.2.21: centered lightbox loader, stricter accordion tree, and smoother Load More viewport behavior. */
.gdeg-gallery .gdeg-tree__list,
.gdeg-gallery .gdeg-tree__children {
  list-style: none !important;
  list-style-type: none !important;
}

.gdeg-gallery .gdeg-tree__list {
  border-left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gdeg-gallery .gdeg-tree__children {
  border-left: 1px solid var(--gdeg-border) !important;
  margin: 6px 0 0 26px !important;
  padding: 0 0 0 24px !important;
  position: relative !important;
}

.gdeg-gallery .gdeg-tree__children .gdeg-tree__children {
  margin-left: 24px !important;
  padding-left: 24px !important;
}

.gdeg-gallery .gdeg-tree__item {
  display: block !important;
  margin: 4px 0 !important;
  padding: 0 !important;
  position: relative !important;
}

.gdeg-gallery .gdeg-tree__item::before {
  background: var(--gdeg-border) !important;
  content: "" !important;
  display: block !important;
  height: 1px !important;
  left: -24px !important;
  position: absolute !important;
  top: 20px !important;
  width: 20px !important;
}

.gdeg-gallery .gdeg-tree__list > .gdeg-tree__item::before {
  display: none !important;
}

.gdeg-gallery .gdeg-tree__row {
  align-items: center !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 30px !important;
  gap: 8px !important;
  width: 100% !important;
}

.gdeg-gallery .gdeg-tree__button {
  align-items: center !important;
  display: grid !important;
  grid-template-columns: 14px 24px minmax(0, 1fr) !important;
  gap: 9px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.gdeg-gallery .gdeg-tree__label {
  display: block !important;
  min-width: 0 !important;
  padding-left: 3px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.gdeg-gallery .gdeg-tree__summary,
.gdeg-gallery .gdeg-tree__loading,
.gdeg-gallery .gdeg-tree__empty {
  margin-left: 50px !important;
  text-align: left !important;
}

.gdeg-gallery .gdeg-tree__summary-line + .gdeg-tree__summary-line {
  margin-top: 2px !important;
}

body > .gdeg-lightbox .gdeg-lightbox__loading,
.gdeg-lightbox .gdeg-lightbox__loading {
  align-items: center !important;
  background: rgba(2, 6, 23, 0.78) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35) !important;
  color: #fff !important;
  display: inline-flex !important;
  gap: 10px !important;
  left: 50vw !important;
  padding: 10px 16px !important;
  position: fixed !important;
  top: 50vh !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2147483647 !important;
}

body > .gdeg-lightbox .gdeg-lightbox__loading[hidden],
.gdeg-lightbox .gdeg-lightbox__loading[hidden] {
  display: none !important;
}

/* v1.2.22: clean sidebar tree style without connector guide lines. */
.gdeg-gallery .gdeg-sidebar .gdeg-tree__list,
.gdeg-gallery .gdeg-sidebar .gdeg-tree__children {
  border-left: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__children {
  margin-left: 18px !important;
  padding-left: 0 !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__children .gdeg-tree__children {
  margin-left: 18px !important;
  padding-left: 0 !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__item {
  margin: 3px 0 !important;
  padding: 0 !important;
  position: relative !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__item::before,
.gdeg-gallery .gdeg-sidebar .gdeg-tree__item::after,
.gdeg-gallery .gdeg-sidebar .gdeg-tree__children::before,
.gdeg-gallery .gdeg-sidebar .gdeg-tree__children::after {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  content: none !important;
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__row {
  align-items: center !important;
  display: grid !important;
  gap: 6px !important;
  grid-template-columns: minmax(0, 1fr) 28px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__button {
  align-items: center !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: 12px 22px minmax(0, 1fr) !important;
  min-height: 34px !important;
  min-width: 0 !important;
  padding: 6px 8px !important;
  width: 100% !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__chevron {
  align-items: center !important;
  display: inline-flex !important;
  font-size: 10px !important;
  height: 18px !important;
  justify-content: center !important;
  line-height: 1 !important;
  width: 12px !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__folder-icon {
  align-items: center !important;
  display: inline-flex !important;
  height: 20px !important;
  justify-content: center !important;
  width: 22px !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__folder-icon-img {
  display: block !important;
  height: 18px !important;
  width: 18px !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__label {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding-left: 0 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__drive-link {
  height: 28px !important;
  width: 28px !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__summary,
.gdeg-gallery .gdeg-sidebar .gdeg-tree__loading,
.gdeg-gallery .gdeg-sidebar .gdeg-tree__empty {
  margin: 4px 0 8px 42px !important;
  padding: 8px 10px !important;
  text-align: left !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__summary-line,
.gdeg-gallery .gdeg-sidebar .gdeg-tree__loading,
.gdeg-gallery .gdeg-sidebar .gdeg-tree__empty {
  text-align: left !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__summary-line + .gdeg-tree__summary-line {
  margin-top: 3px !important;
}

/* v1.2.23: stronger sidebar chevrons and clean accordion tree spacing. */
.gdeg-gallery .gdeg-sidebar .gdeg-tree__children {
  margin-left: 18px !important;
  padding-left: 0 !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__button {
  grid-template-columns: 18px 22px minmax(0, 1fr) !important;
  gap: 8px !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__chevron {
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  height: 22px !important;
  line-height: 1 !important;
  opacity: 1 !important;
  width: 18px !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__chevron::before {
  color: currentColor !important;
  content: "▸" !important;
  display: inline-block !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: 1 !important;
  transform-origin: center !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__item.is-expanded > .gdeg-tree__row .gdeg-tree__button .gdeg-tree__chevron::before {
  transform: rotate(90deg) !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__summary,
.gdeg-gallery .gdeg-sidebar .gdeg-tree__loading,
.gdeg-gallery .gdeg-sidebar .gdeg-tree__empty {
  margin-left: 50px !important;
}

/* v1.2.24: prominent sidebar expand/collapse arrow and strict clean tree layout. */
.gdeg-gallery .gdeg-sidebar .gdeg-tree__button {
  grid-template-columns: 24px 22px minmax(0, 1fr) !important;
  gap: 8px !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__chevron {
  align-items: center !important;
  background: rgba(111, 47, 165, 0.14) !important;
  border: 1px solid rgba(111, 47, 165, 0.26) !important;
  border-radius: 999px !important;
  color: #2d0351 !important;
  display: inline-flex !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  height: 22px !important;
  justify-content: center !important;
  line-height: 1 !important;
  opacity: 1 !important;
  text-align: center !important;
  width: 22px !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__chevron::before {
  color: currentColor !important;
  content: "\203A" !important;
  display: block !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 0.8 !important;
  margin-left: 1px !important;
  transform: none !important;
  transition: transform 160ms ease !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__item.is-expanded > .gdeg-tree__row .gdeg-tree__button .gdeg-tree__chevron {
  background: rgba(111, 47, 165, 0.22) !important;
  border-color: rgba(111, 47, 165, 0.36) !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__item.is-expanded > .gdeg-tree__row .gdeg-tree__button .gdeg-tree__chevron::before {
  transform: rotate(90deg) !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__item:not(:has(.gdeg-tree__children > .gdeg-tree__item)) > .gdeg-tree__row .gdeg-tree__button .gdeg-tree__chevron {
  background: transparent !important;
  border-color: transparent !important;
}

/* v1.2.25: custom frontend folder expand/collapse arrow and strict accordion visual state. */
.gdeg-gallery .gdeg-sidebar .gdeg-tree__button {
  grid-template-columns: calc(var(--gdeg-arrow-size, 18px) + 8px) 22px minmax(0, 1fr) !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__chevron {
  height: calc(var(--gdeg-arrow-size, 18px) + 8px) !important;
  min-height: calc(var(--gdeg-arrow-size, 18px) + 8px) !important;
  width: calc(var(--gdeg-arrow-size, 18px) + 8px) !important;
  min-width: calc(var(--gdeg-arrow-size, 18px) + 8px) !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__chevron.has-custom-icon {
  background: transparent !important;
  border-color: transparent !important;
  padding: 0 !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__chevron.has-custom-icon::before {
  content: none !important;
  display: none !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__chevron-img {
  display: block !important;
  height: var(--gdeg-arrow-size, 18px) !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
  transform-origin: center !important;
  transition: transform 160ms ease !important;
  width: var(--gdeg-arrow-size, 18px) !important;
}

.gdeg-gallery .gdeg-sidebar .gdeg-tree__item.is-expanded > .gdeg-tree__row .gdeg-tree__button .gdeg-tree__chevron-img {
  transform: rotate(90deg) !important;
}

.gdeg-gallery .gdeg-tree__item:not(.is-expanded) > .gdeg-tree__children {
  display: none !important;
}

/* v1.2.26: remove Load More forced scrolling and raise mobile folder drawer above site chrome. */
@media (max-width: 780px) {
  body.gdeg-mobile-folder-panel-open {
    overflow: hidden !important;
  }

  .gdeg-gallery .gdeg-sidebar,
  .gdeg-gallery--toolbar-disabled .gdeg-sidebar,
  .gdeg-sidebar[data-gdeg-sidebar] {
    z-index: 2147483600 !important;
    isolation: isolate !important;
  }

  .gdeg-gallery .gdeg-sidebar.is-open,
  .gdeg-gallery--toolbar-disabled .gdeg-sidebar.is-open,
  .gdeg-sidebar[data-gdeg-sidebar].is-open {
    z-index: 2147483600 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .gdeg-gallery .gdeg-sidebar.is-open::before,
  .gdeg-gallery--toolbar-disabled .gdeg-sidebar.is-open::before,
  .gdeg-sidebar[data-gdeg-sidebar].is-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    transform: translateX(100%);
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
  }
}

/* v1.2.27: portal the active mobile folder drawer above all theme/site chrome. */
@media (max-width: 780px) {
  body.gdeg-mobile-folder-panel-open::after {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.42);
    pointer-events: auto;
    z-index: 2147483646 !important;
  }

  body > .gdeg-sidebar.gdeg-sidebar--portal,
  body > .gdeg-sidebar.gdeg-sidebar--portal.is-open,
  .gdeg-gallery .gdeg-sidebar.gdeg-sidebar--portal,
  .gdeg-gallery .gdeg-sidebar.gdeg-sidebar--portal.is-open {
    position: fixed !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 340px !important;
    max-width: 88vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    isolation: isolate !important;
    z-index: 2147483647 !important;
  }
}

/* v1.2.28: keep the portaled mobile folder drawer fully styled while it sits above all page chrome. */
@media (max-width: 780px) {
  body.gdeg-mobile-folder-panel-open {
    overflow: hidden !important;
    touch-action: none;
  }

  body.gdeg-mobile-folder-panel-open::after {
    z-index: 2147483645 !important;
  }

  body > .gdeg-sidebar-portal-shell {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    bottom: 0 !important;
    box-shadow: none !important;
    display: block !important;
    height: 100vh !important;
    height: 100dvh !important;
    inset: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    max-width: none !important;
    min-height: 0 !important;
    opacity: 1 !important;
    overflow: visible !important;
    padding: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    transform: none !important;
    visibility: visible !important;
    width: 100vw !important;
    z-index: 2147483647 !important;
  }

  body > .gdeg-sidebar-portal-shell > .gdeg-sidebar.gdeg-sidebar--portal,
  body > .gdeg-sidebar-portal-shell > .gdeg-sidebar.gdeg-sidebar--portal.is-open,
  body > .gdeg-sidebar-portal-shell.gdeg-gallery--toolbar-disabled > .gdeg-sidebar.gdeg-sidebar--portal,
  body > .gdeg-sidebar-portal-shell.gdeg-gallery--toolbar-disabled > .gdeg-sidebar.gdeg-sidebar--portal.is-open {
    background: var(--gdeg-bg, #ffffff) !important;
    border: 1px solid var(--gdeg-border, #e5e7eb) !important;
    border-radius: 0 !important;
    bottom: 0 !important;
    box-shadow: 12px 0 35px rgba(15, 23, 42, 0.25) !important;
    box-sizing: border-box !important;
    color: var(--gdeg-text, #111827) !important;
    display: block !important;
    height: 100vh !important;
    height: 100dvh !important;
    left: 0 !important;
    margin: 0 !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    max-width: 88vw !important;
    min-height: 0 !important;
    opacity: 1 !important;
    overflow: auto !important;
    padding: 12px !important;
    pointer-events: auto !important;
    position: fixed !important;
    right: auto !important;
    scrollbar-color: var(--gdeg-scrollbar-color, #6f2fa5) transparent !important;
    scrollbar-width: thin !important;
    top: 0 !important;
    transform: translateX(0) !important;
    transition: transform 200ms ease !important;
    visibility: visible !important;
    width: 340px !important;
    z-index: 2147483647 !important;
  }

  body > .gdeg-sidebar-portal-shell > .gdeg-sidebar.gdeg-sidebar--portal::before,
  body > .gdeg-sidebar-portal-shell > .gdeg-sidebar.gdeg-sidebar--portal.is-open::before {
    content: none !important;
    display: none !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__list,
  body > .gdeg-sidebar-portal-shell .gdeg-tree__children {
    border-left: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__children {
    margin-left: 18px !important;
    padding-left: 0 !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__item {
    margin: 3px 0 !important;
    padding: 0 !important;
    position: relative !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__item::before,
  body > .gdeg-sidebar-portal-shell .gdeg-tree__item::after,
  body > .gdeg-sidebar-portal-shell .gdeg-tree__children::before,
  body > .gdeg-sidebar-portal-shell .gdeg-tree__children::after,
  body > .gdeg-sidebar-portal-shell .gdeg-sidebar::before {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    content: none !important;
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__row {
    align-items: center !important;
    display: grid !important;
    gap: 6px !important;
    grid-template-columns: minmax(0, 1fr) 28px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__button {
    align-items: center !important;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: grid !important;
    font: inherit;
    gap: 8px !important;
    grid-template-columns: calc(var(--gdeg-arrow-size, 18px) + 8px) 22px minmax(0, 1fr) !important;
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 6px 8px !important;
    text-align: left !important;
    width: 100% !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__chevron {
    align-items: center !important;
    background: rgba(111, 47, 165, 0.14) !important;
    border: 1px solid rgba(111, 47, 165, 0.26) !important;
    border-radius: 999px !important;
    color: #2d0351 !important;
    display: inline-flex !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    height: calc(var(--gdeg-arrow-size, 18px) + 8px) !important;
    justify-content: center !important;
    line-height: 1 !important;
    min-height: calc(var(--gdeg-arrow-size, 18px) + 8px) !important;
    min-width: calc(var(--gdeg-arrow-size, 18px) + 8px) !important;
    opacity: 1 !important;
    text-align: center !important;
    width: calc(var(--gdeg-arrow-size, 18px) + 8px) !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__chevron::before {
    color: currentColor !important;
    content: "\203A" !important;
    display: block !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 0.8 !important;
    margin-left: 1px !important;
    transform: none !important;
    transition: transform 160ms ease !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__item.is-expanded > .gdeg-tree__row .gdeg-tree__button .gdeg-tree__chevron {
    background: rgba(111, 47, 165, 0.22) !important;
    border-color: rgba(111, 47, 165, 0.36) !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__item.is-expanded > .gdeg-tree__row .gdeg-tree__button .gdeg-tree__chevron::before {
    transform: rotate(90deg) !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__item:not(.is-expanded) > .gdeg-tree__children {
    display: none !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__folder-icon {
    align-items: center !important;
    display: inline-flex !important;
    height: 20px !important;
    justify-content: center !important;
    width: 22px !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__folder-icon-img {
    display: block !important;
    height: 18px !important;
    width: 18px !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__label {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding-left: 0 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__drive-link {
    align-items: center !important;
    display: inline-flex !important;
    height: 28px !important;
    justify-content: center !important;
    width: 28px !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-tree__summary,
  body > .gdeg-sidebar-portal-shell .gdeg-tree__loading,
  body > .gdeg-sidebar-portal-shell .gdeg-tree__empty {
    margin: 4px 0 8px 50px !important;
    padding: 8px 10px !important;
    text-align: left !important;
  }

  body > .gdeg-sidebar-portal-shell .gdeg-sidebar__close {
    display: inline-flex !important;
  }
}

/* v1.2.29: mobile lightbox viewport spacing and centered responsive media sizing. */
@media (max-width: 780px) {
  .gdeg-lightbox,
  body > .gdeg-lightbox {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)) !important;
  }

  .gdeg-lightbox[hidden],
  body > .gdeg-lightbox[hidden] {
    display: none !important;
  }

  .gdeg-lightbox__backdrop {
    position: fixed !important;
  }

  .gdeg-lightbox__panel {
    background: rgba(2, 6, 23, 0.96) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38) !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    height: auto !important;
    max-height: calc(100dvh - 32px) !important;
    max-width: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    width: min(100%, 720px) !important;
  }

  @supports not (height: 100dvh) {
    .gdeg-lightbox__panel {
      max-height: calc(100vh - 32px) !important;
    }
  }

  .gdeg-lightbox__topbar {
    align-items: flex-start !important;
    background: rgba(2, 6, 23, 0.9) !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
  }

  .gdeg-lightbox__caption {
    font-size: 14px !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
  }

  .gdeg-lightbox__actions {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .gdeg-lightbox__actions button,
  .gdeg-lightbox__download {
    min-height: 34px !important;
  }

  .gdeg-lightbox__stage {
    box-sizing: border-box !important;
    max-height: calc(100dvh - 128px) !important;
    min-height: 220px !important;
    overflow: hidden !important;
    padding: 12px 4px !important;
  }

  @supports not (height: 100dvh) {
    .gdeg-lightbox__stage {
      max-height: calc(100vh - 128px) !important;
    }
  }

  .gdeg-lightbox__stage img {
    display: block !important;
    height: auto !important;
    max-height: calc(100dvh - 152px) !important;
    max-width: 100% !important;
    width: auto !important;
  }

  @supports not (height: 100dvh) {
    .gdeg-lightbox__stage img {
      max-height: calc(100vh - 152px) !important;
    }
  }

  .gdeg-lightbox__stage iframe {
    height: min(58dvh, 520px) !important;
    max-height: calc(100dvh - 152px) !important;
  }

  @supports not (height: 100dvh) {
    .gdeg-lightbox__stage iframe {
      height: min(58vh, 520px) !important;
      max-height: calc(100vh - 152px) !important;
    }
  }

  .gdeg-lightbox__nav {
    font-size: 32px !important;
    height: 40px !important;
    width: 40px !important;
  }
}

@media (max-width: 480px) {
  .gdeg-lightbox__panel {
    border-radius: 14px !important;
    grid-template-columns: 36px minmax(0, 1fr) 36px !important;
    max-height: calc(100dvh - 28px) !important;
  }

  @supports not (height: 100dvh) {
    .gdeg-lightbox__panel {
      max-height: calc(100vh - 28px) !important;
    }
  }

  .gdeg-lightbox__stage {
    max-height: calc(100dvh - 138px) !important;
    min-height: 180px !important;
  }

  @supports not (height: 100dvh) {
    .gdeg-lightbox__stage {
      max-height: calc(100vh - 138px) !important;
    }
  }

  .gdeg-lightbox__stage img,
  .gdeg-lightbox__stage iframe {
    max-height: calc(100dvh - 162px) !important;
  }

  @supports not (height: 100dvh) {
    .gdeg-lightbox__stage img,
    .gdeg-lightbox__stage iframe {
      max-height: calc(100vh - 162px) !important;
    }
  }

  .gdeg-lightbox__nav {
    font-size: 28px !important;
    height: 36px !important;
    width: 36px !important;
  }
}
