.nom-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.nom-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f2f2;
  cursor: zoom-in;
}

.nom-viewport img {
  display: block;
  width: 100%;
  height: auto;
}

.nom-pages {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  z-index: 1;
}

.nom-page-dot {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 4px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.nom-page-dot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.nom-page-dot.nom-active {
  border-color: #1a1a1a;
}

.nom-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.nom-arrow {
  border: none;
  background: none;
  padding: 4px 8px;
  color: #1a1a1a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.nom-arrow[hidden] {
  display: inline-block;
  visibility: hidden;
}

.nom-counter {
  font-size: 13px;
  color: #1a1a1a;
  opacity: 0.6;
  min-width: 3.5em;
  text-align: center;
}

.nom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  touch-action: none;
}

.nom-lightbox.nom-open {
  display: flex;
}

.nom-lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.nom-lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.nom-lightbox-close,
.nom-lightbox-prev,
.nom-lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.nom-lightbox-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
}

.nom-lightbox-prev,
.nom-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
}

.nom-lightbox-prev {
  left: 16px;
}

.nom-lightbox-next {
  right: 16px;
}

.nom-lightbox-prev[hidden],
.nom-lightbox-next[hidden] {
  display: none;
}
