#menu article .menu-photo-hit {
  cursor: zoom-in;
}

#menu article .menu-photo-hit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(10% 0.02 40 / 0.35),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

@media (hover: hover) {
  #menu article .menu-photo-hit:hover::after {
    opacity: 1;
  }

  #menu article .menu-photo-hit:hover img {
    transform: scale(1.04);
  }
}

.ob-image-zoom {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.ob-image-zoom.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ob-image-zoom__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(12% 0.02 40 / 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ob-image-zoom__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 52rem);
  max-height: min(88vh, 40rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
}

.ob-image-zoom.is-open .ob-image-zoom__panel {
  transform: scale(1);
  opacity: 1;
}

.ob-image-zoom__frame {
  position: relative;
  width: 100%;
  max-height: min(80vh, 36rem);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid oklch(74% 0.13 72 / 0.25);
  box-shadow: 0 24px 60px -24px oklch(10% 0.02 40 / 0.9);
  background: oklch(18% 0.02 45);
}

.ob-image-zoom__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(80vh, 36rem);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.ob-image-zoom__caption {
  font-family: var(--font-display, "Noto Serif Georgian", Georgia, serif);
  font-size: 1.05rem;
  color: oklch(94% 0.014 80);
  text-align: center;
  text-shadow: 0 1px 12px oklch(10% 0.02 40 / 0.6);
}

.ob-image-zoom__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid oklch(74% 0.13 72 / 0.35);
  border-radius: 999px;
  background: oklch(21% 0.022 45 / 0.92);
  color: oklch(94% 0.014 80);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ob-image-zoom__close:hover {
  transform: scale(1.06);
  border-color: oklch(74% 0.13 72);
  background: oklch(26% 0.024 42);
}

.ob-image-zoom__close svg {
  width: 1.15rem;
  height: 1.15rem;
}

body.ob-image-zoom-open {
  overflow: hidden;
}
