html {
  scroll-behavior: smooth;
}

.menu {
  padding: 120px 6vw;
  background: radial-gradient(circle at top, #ffffff 0%, #ffffff 75%);
  font-family: "Vend Sans", sans-serif;
  color: #000;
  scroll-margin-top: 100px;
}

/* TITLE */
.menu__title {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  text-align: center;
  letter-spacing: 0.15em;
  margin-bottom: 80px;
  font-weight: 900;
}

.menu__title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: #000;
  margin: 25px auto 0;
  opacity: 0.6;
}

/* ITEMS WRAPPER */
.menu__items {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

/* MENU CARD */
.menu-item {
  background: #111;
  color: #fff;
  width: 780px;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.menu-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

/* jemný rámeček */
.menu-item::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: none;
}

/* IMAGE */
.menu-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* TITLE IN CARD */
.menu-item__title {
  padding: 28px 20px;
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .menu-item {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .menu__title {
    font-size: 2.3rem;
  }

  .menu-item__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .menu {
    padding: 70px 4vw;
  }

  .menu-item__title {
    font-size: 1.3rem;
  }
}

.menu-image-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  cursor: zoom-out;

  opacity: 0;
  transition: opacity 0.35s ease;
}

.menu-image-overlay.active {
  opacity: 1;
}

/* IMAGE ANIMATION */
.menu-image-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;

  transform: scale(0.85);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(.22,1,.36,1),
    opacity 0.35s ease;
}

.menu-image-overlay.active img {
  transform: scale(1);
  opacity: 1;
}