:root {
  --ink: #16221f;
  --muted: #60716b;
  --panel: #fbfaf6;
  --paper: #ffffff;
  --line: rgba(22, 34, 31, 0.14);
  --accent: #d4553f;
  --accent-2: #0e8b78;
  --gold: #d99c2b;
  --water: #172b2f;
  --shadow: 0 18px 48px rgba(17, 30, 28, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body,
.app-shell {
  height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--panel);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  overflow: hidden;
}

.map-stage {
  position: relative;
  min-width: 0;
  background: var(--water);
}

#map {
  width: 100%;
  height: 100%;
  background: var(--water);
}

.leaflet-tile-pane {
  filter: saturate(1.24) contrast(1.06) brightness(0.82);
}

.map-stage[data-map-mode="streets"] .leaflet-tile-pane {
  filter: saturate(0.9) contrast(1.02) brightness(0.96);
}

.map-stage[data-map-mode="minimal"] {
  background: #161817;
}

.map-stage[data-map-mode="minimal"] .leaflet-tile-pane {
  filter: grayscale(1) saturate(0.12) contrast(1.08) brightness(1.32);
}

.map-stage::after {
  position: absolute;
  z-index: 450;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 20, 22, 0.34), transparent 24%, transparent 72%, rgba(9, 20, 22, 0.18)),
    linear-gradient(180deg, rgba(9, 20, 22, 0.18), transparent 32%, rgba(9, 20, 22, 0.3));
  mix-blend-mode: multiply;
}

.map-stage[data-map-mode="streets"]::after {
  background: rgba(15, 23, 21, 0.1);
  mix-blend-mode: multiply;
}

.map-stage[data-map-mode="minimal"]::after {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.1) 0 32%, transparent 72%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.08));
  mix-blend-mode: screen;
}

.topbar {
  position: absolute;
  z-index: 700;
  top: 18px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.brand,
.search-box,
.map-modes,
.icon-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(17, 28, 27, 0.76);
  color: #fff;
  box-shadow: 0 12px 30px rgba(5, 14, 13, 0.22);
  backdrop-filter: blur(12px);
}

.map-modes {
  display: inline-flex;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
}

.map-mode {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 0 10px;
}

.map-mode:last-child {
  border-right: 0;
}

.map-mode.is-active {
  background: rgba(255, 207, 98, 0.18);
  color: #fff;
}

.site-credit {
  position: absolute;
  z-index: 690;
  right: 16px;
  bottom: 14px;
  max-width: min(360px, calc(100% - 72px));
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(17, 28, 27, 0.68);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(5, 14, 13, 0.2);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  padding: 7px 9px;
  pointer-events: none;
  text-align: right;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 15px 0 10px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9px;
  overflow: hidden;
  background: #101a18;
  color: #101a18;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: -0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-box {
  min-width: 0;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  pointer-events: auto;
}

.search-box input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  padding: 0 14px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-box:focus-within {
  border-color: rgba(255, 211, 106, 0.74);
  box-shadow:
    0 0 0 3px rgba(255, 211, 106, 0.16),
    0 12px 30px rgba(5, 14, 13, 0.22);
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  pointer-events: auto;
}

.details {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--panel);
  overflow: auto;
}

.details-head {
  position: relative;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.details-toggle {
  display: none;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.details-head p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.date-filter {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.date-filter > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.date-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.date-filter label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.date-filter input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 7px 9px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--accent-2);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 0;
}

.admin-panel {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(14, 139, 120, 0.08), rgba(217, 156, 43, 0.08));
  padding: 14px 18px;
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-bar strong,
.admin-bar span {
  display: block;
}

.admin-bar strong {
  font-size: 14px;
}

.admin-bar span,
.form-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-login,
.admin-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-login label,
.admin-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.admin-login input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
}

.admin-form textarea {
  min-height: 74px;
  resize: vertical;
}

.admin-form input[readonly],
.admin-form select:disabled {
  background: rgba(232, 238, 234, 0.82);
  color: var(--muted);
}

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

.small-button,
.primary-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.small-button {
  min-width: 74px;
  height: 34px;
  background: var(--ink);
  color: #fff;
}

.primary-button {
  min-height: 40px;
  background: var(--accent-2);
  color: #fff;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.form-note {
  min-height: 16px;
  margin: 0;
}

.strong-note {
  color: var(--ink);
  font-weight: 850;
}

.stat {
  min-height: 84px;
  padding: 18px;
  background: var(--paper);
}

.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.contact-panel {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 0 18px 18px;
}

.contact-button {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  padding: 11px 12px;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-button:hover {
  background: var(--accent-2);
}

.photo-tile {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  min-height: 134px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #d8dedb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.photo-tile.large {
  grid-column: 1 / -1;
  min-height: 210px;
}

.photo-tile-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.photo-tile-image .preview-image {
  min-height: 0;
}

.preview-image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  background: #13201d;
}

.preview-image::before {
  content: "";
  position: absolute;
  inset: -12%;
  background-image: var(--preview-url);
  background-position: center;
  background-size: cover;
  filter: blur(9px) saturate(1.12);
  opacity: 0.72;
  transform: scale(1.04);
}

.preview-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 14, 0.18);
}

.preview-image img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: auto;
}

.photo-tile-caption {
  display: block;
  overflow: hidden;
  border-top: 1px solid rgba(22, 34, 31, 0.1);
  padding: 8px 9px;
  background: rgba(251, 250, 246, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaflet-control-attribution {
  font-size: 10px;
}

.country-layer {
  cursor: pointer;
  filter: drop-shadow(0 0 7px rgba(255, 211, 106, 0.3));
  transition:
    fill-opacity 140ms ease,
    stroke-width 140ms ease,
    stroke 140ms ease;
}

.photo-marker {
  position: relative;
  width: 74px;
  height: 74px;
  transform: translate(-37px, -37px);
}

.marker-stack,
.marker-collage {
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 8px;
  background: #13201d;
  box-shadow: var(--shadow);
}

.marker-stack .preview-image,
.marker-collage .preview-image {
  width: 100%;
  height: 100%;
}

.marker-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.marker-count {
  position: absolute;
  right: -8px;
  bottom: -8px;
  min-width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23, 43, 39, 0.22);
}

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

.burst-marker {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translate(-23px, -23px);
  box-shadow: var(--shadow);
}

.burst-marker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.city-marker {
  --city-marker-size: 54px;
  position: relative;
  display: grid;
  width: calc(var(--city-marker-size) + 24px);
  height: calc(var(--city-marker-size) + 24px);
  align-items: center;
  justify-items: center;
  transform-origin: center;
  transition: transform 150ms ease;
}

.city-marker:hover,
.city-marker.is-active {
  transform: scale(1.14);
  z-index: 2;
}

.city-marker:hover .city-photo {
  box-shadow: 0 0 0 4px rgba(255, 207, 98, 0.2), var(--shadow);
}

.city-photo {
  position: relative;
  display: block;
  width: var(--city-marker-size);
  height: var(--city-marker-size);
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 8px;
  background: #13201d;
  box-shadow: var(--shadow);
}

.city-photo .preview-image {
  width: 100%;
  height: 100%;
}

.city-collage {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
}

.city-count {
  position: absolute;
  right: 7px;
  top: -3px;
  min-width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23, 43, 39, 0.28);
}

.city-marker.is-active .city-photo {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 85, 63, 0.22), var(--shadow);
}

.pending-point .city-photo {
  display: grid;
  place-items: center;
  background: rgba(255, 207, 98, 0.92);
}

.pending-point-dot::after {
  content: "+";
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #17221f;
  color: #ffcf62;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.map-label {
  display: inline-block;
  max-width: 190px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 6px;
  padding: 4px 7px;
  background: rgba(251, 250, 246, 0.92);
  color: #17221f;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(5, 14, 13, 0.28);
}

.country-name {
  max-width: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(236, 230, 210, 0.82);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.72),
    0 0 8px rgba(0, 0, 0, 0.44);
  text-overflow: clip;
  text-transform: uppercase;
  white-space: nowrap;
}

.city-name {
  transform: translate(-50%, calc(-100% - 34px));
  background: rgba(15, 26, 24, 0.88);
  color: #fff;
  font-size: 10.5px;
}

.small-country-marker {
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: rgba(15, 26, 24, 0.78);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 150px;
  min-height: 24px;
  padding: 3px 8px 3px 5px;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(5, 14, 13, 0.28);
}

.small-country-marker:hover {
  background: rgba(212, 85, 63, 0.92);
}

.small-country-dot {
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ffcf62;
  flex: 0 0 auto;
}

.photo-viewer {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 15, 14, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.photo-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.viewer-frame {
  width: min(1040px, 100%);
  max-height: calc(100vh - 56px);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0f1715;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
}

.viewer-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  background: #0f1715;
}

.viewer-frame img {
  width: 100%;
  max-height: calc(100vh - 240px);
  min-height: 0;
  object-fit: contain;
  display: block;
  background: #0f1715;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 21, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.carousel-button:hover {
  background: rgba(14, 139, 120, 0.9);
}

.carousel-prev {
  left: 14px;
}

.carousel-next {
  right: 14px;
}

.viewer-frame figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  max-height: 32vh;
  overflow-y: auto;
  padding: 14px 16px;
  color: #fff;
}

.viewer-frame strong {
  font-size: 17px;
}

.viewer-frame span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.viewer-note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.edit-note-button,
.edit-date-button,
.delete-photo-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

.edit-note-button {
  background: rgba(14, 139, 120, 0.92);
}

.edit-note-button:hover {
  background: #0b6f60;
}

.edit-date-button {
  background: rgba(217, 156, 43, 0.94);
}

.edit-date-button:hover {
  background: #b87e1e;
}

.delete-photo-button {
  background: rgba(212, 85, 63, 0.92);
}

.delete-photo-button:hover {
  background: #b94031;
}

.viewer-close {
  position: fixed;
  z-index: 1210;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 85dvh) minmax(112px, 15dvh);
    transition: grid-template-rows 220ms ease;
  }

  .app-shell.details-open {
    grid-template-rows: minmax(0, 42dvh) minmax(0, 58dvh);
  }

  .details {
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow: hidden;
  }

  .map-stage {
    min-height: 0;
  }

  .app-shell.details-open .details {
    overflow: auto;
    overscroll-behavior: contain;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search-box {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .map-modes {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .map-mode {
    flex: 1;
  }

  .details-head {
    cursor: pointer;
    padding: 18px 18px 14px;
  }

  .details-toggle {
    position: absolute;
    top: 7px;
    left: 50%;
    display: block;
    width: 48px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(22, 34, 31, 0.26);
    cursor: pointer;
    padding: 0;
    transform: translateX(-50%);
  }

  .details-toggle::after {
    position: absolute;
    top: 11px;
    left: 50%;
    color: var(--muted);
    content: "↑";
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    transform: translateX(-50%);
  }

  .app-shell.details-open .details-toggle::after {
    content: "↓";
  }

  .details:not(.is-open) .admin-panel,
  .details:not(.is-open) .stats,
  .details:not(.is-open) .date-filter,
  .details:not(.is-open) .gallery,
  .details:not(.is-open) .contact-panel {
    display: none;
  }

  .details:not(.is-open) .details-head {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 12px;
  }

  .details:not(.is-open) .details-head p:last-child {
    display: none;
  }

  .details:not(.is-open) h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 26px;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
  }

  .viewer-frame figcaption {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .photo-tile,
  .photo-tile.large {
    grid-column: auto;
    min-height: 112px;
  }

  .photo-viewer {
    padding: 12px;
  }

  .viewer-frame {
    max-height: calc(100vh - 24px);
  }

  .viewer-frame img {
    max-height: calc(100vh - 220px);
  }

  .carousel-button {
    width: 36px;
    height: 46px;
    font-size: 32px;
  }
}

@media (max-width: 560px) {
  .topbar {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 8px;
  }

  .brand {
    min-width: 0;
  }

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