html:has(body.atlas-page),
body.atlas-page,
body.atlas-page #atlas-root {
  min-height: 100%;
  margin: 0;
}

body.atlas-page {
  overflow-x: hidden;
  color: #fafafa;
  background: #09090b;
  font-family:
    "Schibsted Grotesk",
    system-ui,
    -apple-system,
    sans-serif;
}

:root[saved-theme="light"] body.atlas-page {
  color: #09090b;
  background: #fff;
}

.atlas-app {
  --atlas-bg: #09090b;
  --atlas-text: #fafafa;
  --atlas-muted: #a1a1aa;
  --atlas-border: rgba(255, 255, 255, 0.12);
  --atlas-panel: #111113;
  --atlas-hover: #1c1c20;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  color: var(--atlas-text);
  background: var(--atlas-bg);
}

:root[saved-theme="light"] .atlas-app {
  --atlas-bg: #fff;
  --atlas-text: #09090b;
  --atlas-muted: #71717a;
  --atlas-border: rgba(9, 9, 11, 0.12);
  --atlas-panel: #fafafa;
  --atlas-hover: #f4f4f5;
}

.atlas-app *,
.atlas-app *::before,
.atlas-app *::after {
  box-sizing: border-box;
}

.atlas-app img {
  display: block;
  max-width: 100%;
}

.atlas-app button,
.atlas-app input {
  font: inherit;
}

.atlas-app button,
.atlas-app a {
  -webkit-tap-highlight-color: transparent;
}

.atlas-app-sidebar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 100vh;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border-right: 1px solid var(--atlas-border);
  background: var(--atlas-bg);
}

.atlas-app-logo {
  display: block;
  width: min(230px, 100%);
}

.atlas-app-logo img {
  width: 100%;
  height: auto;
}

.atlas-app-section-label {
  margin: 0;
  color: var(--atlas-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.atlas-app-search {
  position: relative;
  display: flex;
  height: 42px;
  align-items: center;
}

.atlas-app-search > svg {
  position: absolute;
  left: 13px;
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  pointer-events: none;
}

.atlas-app-search input {
  width: 100%;
  height: 100%;
  padding: 0 12px 0 40px;
  border: 1px solid var(--atlas-border);
  border-radius: 12px;
  outline: 0;
  color: var(--atlas-text);
  background: var(--atlas-panel);
}

.atlas-app-search input:focus-visible {
  border-color: color-mix(in srgb, var(--atlas-text) 35%, transparent);
  outline: 2px solid color-mix(in srgb, var(--atlas-text) 12%, transparent);
}

.atlas-app-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.atlas-app-home-link,
.atlas-app-theme {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--atlas-border);
  border-radius: 10px;
  color: var(--atlas-text);
  background: var(--atlas-panel);
  text-decoration: none;
}

.atlas-app-home-link {
  flex: 1;
  padding: 0 14px;
}

.atlas-app-theme {
  width: 38px;
  padding: 9px;
  cursor: pointer;
}

.atlas-app-theme svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atlas-app .atlas-sidebar-filters {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.atlas-app .atlas-sidebar-filters-title {
  margin: 8px 0 0;
  color: var(--atlas-muted);
  font-size: 13px;
}

.atlas-app .atlas-filter-trigger,
.atlas-app .atlas-sidebar-reset {
  color: var(--atlas-text);
  background: var(--atlas-panel);
  border-color: var(--atlas-border);
}

.atlas-app .atlas-filter-trigger:hover,
.atlas-app .atlas-filter-option:hover,
.atlas-app .atlas-filter-option[aria-checked="true"],
.atlas-app .atlas-sidebar-reset:hover {
  background: var(--atlas-hover);
}

.atlas-app .atlas-filter-menu {
  color: var(--atlas-text);
  background: var(--atlas-panel);
  border-color: var(--atlas-border);
}

.atlas-app .atlas-filter-option {
  color: var(--atlas-text);
}

.atlas-app-main {
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  min-height: 100vh;
  margin-inline: auto;
  padding: 28px 24px 64px;
  overflow: visible;
}

.atlas-app-main[data-gallery-width="full"] { max-width: none; }

.atlas-app .atlas-results-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}

.atlas-app .atlas-results-filters {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  margin: -8px 0 18px;
}

.atlas-app .atlas-view-controls { display: flex; min-width: 0; flex: 0 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.atlas-app .atlas-density-control { display: inline-flex; max-width: 100%; min-height: 36px; align-items: center; gap: 7px; padding: 3px 8px; border: 1px solid var(--atlas-border); border-radius: 10px; background: var(--atlas-panel); }
.atlas-app .atlas-density-control svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.3; color: var(--atlas-muted); }
.atlas-app .atlas-density-control rect { fill: currentColor; stroke: none; }
.atlas-app .atlas-density-control input { width: clamp(80px, 10vw, 150px); accent-color: var(--atlas-text); cursor: pointer; }
.atlas-app .atlas-density-control output { min-width: 62px; color: var(--atlas-text); font-size: 12px; white-space: nowrap; }
.atlas-app .atlas-width-toggle { display: inline-grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid var(--atlas-border); border-radius: 10px; color: var(--atlas-text); background: var(--atlas-panel); cursor: pointer; }
.atlas-app .atlas-width-toggle:hover, .atlas-app .atlas-width-toggle[aria-pressed="true"] { background: var(--atlas-hover); border-color: color-mix(in srgb, var(--atlas-text) 26%, var(--atlas-border)); }
.atlas-app .atlas-width-toggle:focus-visible { outline: 2px solid color-mix(in srgb, var(--atlas-text) 55%, transparent); outline-offset: 2px; }
.atlas-app .atlas-width-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.atlas-app .atlas-badge { display: inline-flex; max-width: 100%; min-width: 0; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 6px; font-weight: 650; }
.atlas-app .atlas-badge > span { min-width: 0; overflow-wrap: anywhere; }
.atlas-app .atlas-badge--sm { min-height: 24px; padding: 3px 6px; font-size: 11px; line-height: 14px; }
.atlas-app .atlas-badge--secondary.atlas-badge--light { color: var(--atlas-text); border-color: var(--atlas-border); background: var(--atlas-hover); }
.atlas-app .atlas-badge-button { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 5px; color: currentColor; background: transparent; cursor: pointer; opacity: .65; line-height: 1; }
.atlas-app .atlas-badge-button:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.atlas-app .atlas-badge-button:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.atlas-app .atlas-badge-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .75; }

.atlas-app .atlas-gallery-modal-caption {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: min(720px, calc(100vw - 120px));
  padding: 7px 11px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(10,10,12,.7);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.atlas-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.atlas-app .atlas-summary {
  min-height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--atlas-muted);
  background: transparent;
  font-size: 14px;
  line-height: 20px;
}

.atlas-app .atlas-gallery-grid {
  width: 100%;
  column-count: var(--atlas-columns, 4);
  column-gap: 20px;
  overflow: visible;
}

.atlas-app .atlas-gallery-image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  margin: 0 0 20px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: 16px;
  outline: 0;
  background: transparent;
  cursor: zoom-in;
  appearance: none;
  text-align: initial;
}

.atlas-app .atlas-gallery-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 !important;
  border-radius: 16px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  animation: none !important;
}

.atlas-app .atlas-gallery-image-shell {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.atlas-app .atlas-gallery-hover-overlay {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.atlas-app .case-group-item {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 1px;
  margin: 0 0 20px;
  overflow: visible;
  overflow-anchor: none;
  break-inside: avoid;
  contain: layout size;
}

.atlas-app .case-group-item[data-layout="grid"] {
  z-index: 40;
  contain: none;
}

.atlas-app .case-group-stage {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  overflow: visible;
  overflow-anchor: none;
}

.atlas-app .case-group-stage[data-layout="collapsed"] {
  overflow: hidden;
  border-radius: 16px;
}

.atlas-app .case-group-stage[data-layout="grid"] {
  position: fixed;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  height: auto !important;
  max-width: min(620px, calc(100vw - 32px));
  padding: 9px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--atlas-bg) 92%, transparent);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.3),
    0 0 0 1px color-mix(in srgb, var(--atlas-text) 10%, transparent);
}

.atlas-app .case-group-stage[data-layout="grid"][data-columns="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.atlas-app .case-group-card {
  position: absolute;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  outline: 0;
  background: color-mix(in srgb, var(--atlas-bg) 92%, var(--atlas-text));
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.16),
    0 0 0 1px color-mix(in srgb, var(--atlas-text) 8%, transparent);
  cursor: zoom-in;
  appearance: none;
  transform-origin: 50% 50%;
  transition-property: border-color, background-color, box-shadow;
  transition-duration: 160ms;
}

.atlas-app .case-group-stage[data-layout="collapsed"] .case-group-card {
  height: 100%;
  border: 0;
  box-shadow: none;
}

.atlas-app .case-group-stage[data-layout="grid"] .case-group-card {
  position: relative;
  align-self: start;
  height: auto;
}

.atlas-app .case-group-card img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border-radius: inherit;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  animation: none !important;
}

.atlas-app .case-group-modal-source {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.atlas-app .case-group-stage[data-layout="collapsed"] .case-group-card img {
  height: 100%;
}

.atlas-app .case-group-stage[data-layout="grid"] .case-group-card img {
  height: auto;
  aspect-ratio: auto;
}

.atlas-app .atlas-image-shell {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: var(--atlas-image-placeholder, rgba(127, 127, 127, 0.1));
}

.atlas-app .atlas-image-skeleton {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.16) 45%,
      rgba(255, 255, 255, 0) 100%
    ),
    var(--atlas-image-placeholder, rgba(127, 127, 127, 0.12));
  background-size: 220% 100%;
  transition: opacity 160ms ease;
}

.atlas-app .atlas-image-skeleton.is-visible {
  opacity: 1;
  animation: atlas-image-loading 1.25s ease-in-out infinite;
}

.atlas-app img.atlas-image {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 260ms ease !important;
  will-change: opacity;
}

.atlas-app img.atlas-image.is-loaded,
.atlas-app img.atlas-image--no-fade {
  opacity: 1;
}

.atlas-app .atlas-image-error {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  background: var(--atlas-image-placeholder, rgba(127, 127, 127, 0.12));
}

@keyframes atlas-image-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}

.atlas-app .case-group-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--atlas-text) 88%, transparent);
  outline-offset: 3px;
}

.atlas-app .case-group-title {
  position: absolute;
  z-index: 4;
  top: 11px;
  left: 11px;
  box-sizing: border-box;
  max-width: calc(100% - 22px);
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 10, 12, 0.68);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 750;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.atlas-app .case-group-badges {
  position: absolute;
  z-index: 3;
  right: 11px;
  bottom: 11px;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 30px;
  max-width: calc(100% - 22px);
  padding: 5px 9px 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 10, 12, 0.72);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 750;
  line-height: 18px;
  white-space: nowrap;
  pointer-events: none;
}

.atlas-app .case-group-types {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.atlas-app .case-group-type {
  display: inline;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.atlas-app .case-group-type[data-type="clinical-photo"] {
  color: #61d394;
}

.atlas-app .case-group-type[data-type="dermoscopy"] {
  color: #72c7ff;
}

.atlas-app .case-group-type[data-type="histopathology"] {
  color: #c084fc;
}

.atlas-app .case-group-divider {
  align-self: stretch;
  width: 1px;
  min-height: 16px;
  background: rgba(255, 255, 255, 0.24);
}

.atlas-app .case-group-count {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  white-space: nowrap;
}

.atlas-app .case-group-count svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atlas-app .case-group-overflow {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  border-radius: inherit;
  color: #fff;
  background: rgba(9, 9, 11, 0.56);
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 700;
  place-items: center;
  pointer-events: none;
}

.atlas-app .atlas-gallery-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.atlas-app .atlas-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.atlas-app .atlas-gallery-backdrop.is-settled {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.atlas-app .atlas-gallery-modal-stage {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.atlas-app .atlas-gallery-modal-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 90vh;
  margin: 0 !important;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-drag: none;
}

.atlas-app .atlas-gallery-modal-active { position: relative; z-index: 2; }
.atlas-app .atlas-gallery-modal-previous {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: auto !important;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .atlas-app .atlas-image-skeleton.is-visible { animation: none; }
  .atlas-app img.atlas-image { transition-duration: 80ms !important; }
  .atlas-app .atlas-gallery-modal-image { transition-duration: 0.01ms !important; }
}

.atlas-app .atlas-gallery-modal-error {
  position: absolute;
  z-index: 50;
  bottom: max(64px, env(safe-area-inset-bottom));
  left: 50%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 9, 11, 0.72);
  cursor: pointer;
  transform: translateX(-50%);
}

.atlas-app .atlas-gallery-modal-close {
  position: absolute;
  z-index: 50;
  top: max(24px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
  display: grid;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 9999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  place-items: center;
  transition: background-color 150ms ease;
}

.atlas-app .atlas-gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.atlas-app .atlas-gallery-modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.atlas-app .atlas-gallery-modal-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atlas-app .atlas-gallery-modal-nav {
  position: absolute;
  z-index: 50;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 10px;
  border: 0;
  border-radius: 9999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  place-items: center;
}

.atlas-app .atlas-gallery-modal-nav-left {
  left: max(20px, env(safe-area-inset-left));
}

.atlas-app .atlas-gallery-modal-nav-right {
  right: max(20px, env(safe-area-inset-right));
}

.atlas-app .atlas-gallery-modal-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.atlas-app .atlas-gallery-modal-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.atlas-app .atlas-gallery-modal-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atlas-app .atlas-gallery-modal-counter {
  position: absolute;
  z-index: 50;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  padding: 6px 11px;
  border-radius: 9999px;
  color: #fff;
  background: rgba(9, 9, 11, 0.58);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

@media (max-width: 1050px) {
  .atlas-app {
    display: block;
  }

  .atlas-app-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 16px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--atlas-border);
  }

  .atlas-app-logo {
    width: 180px;
  }

  .atlas-app .atlas-sidebar-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-app .atlas-sidebar-reset {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .atlas-app-main {
    padding: 16px 14px 40px;
  }

  .atlas-app .atlas-sidebar-filters {
    grid-template-columns: 1fr;
  }

  .atlas-app .atlas-gallery-grid { column-gap: 14px; }
  .atlas-app .atlas-results-toolbar { flex-direction: column; align-items: stretch; }
  .atlas-app .atlas-view-controls { justify-content: flex-start; }
  .atlas-app .atlas-density-control { width: 100%; }
  .atlas-app .atlas-density-control input { min-width: 0; flex: 1; }

  .atlas-app .atlas-gallery-image {
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .atlas-app .case-group-item {
    margin-bottom: 14px;
  }

  .atlas-app .case-group-card,
  .atlas-app .case-group-stage[data-layout="collapsed"] {
    border-radius: 14px;
  }

  .atlas-app .case-group-stage[data-layout="grid"] {
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  .atlas-app .atlas-gallery-thumbnail,
  .atlas-app .atlas-gallery-hover-overlay {
    border-radius: 14px;
  }

  .atlas-app .atlas-gallery-modal-close {
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
  }

  .atlas-app .atlas-gallery-modal-nav {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .atlas-app .atlas-gallery-modal-nav-left {
    left: max(16px, env(safe-area-inset-left));
  }

  .atlas-app .atlas-gallery-modal-nav-right {
    right: max(16px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-app .atlas-gallery-modal-close,
  .atlas-app .atlas-gallery-modal-nav {
    transition-duration: 1ms !important;
  }
}
