/*
 * Zamarut custom styles for the Cofeeco Child theme.
 * Enqueued in functions.php at priority 30, after Elementor CSS (priority 20).
 */

/* ------------  --->  palette <--- ------------ */
/* Small text needs contrast >= 4.5:1. Brass passes only on --zm-dark (5.42:1). */
:root {
  --zm-teal: #2E4C50;
  --zm-green: #2A6450;
  --zm-brass: #C4B287;
  --zm-dark: #273E43;
  --zm-cream: #F6F1E7;
  --zm-white: #F3F4F4;

  /* Fixed header and menu category bar heights; zamarut.js measures and updates them. */
  --zm-header-h: 100px;
  --zm-nav-h: 64px;
  --zm-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 1024px) {
  :root {
    --zm-header-h: 60px;
    --zm-nav-h: 56px;
  }
}

/* ------------  --->  search overlay <--- ------------ */
/* The theme colors the field, placeholder and icon with palette 6: 2.7:1 on the dark overlay. */
#search-drawer .drawer-inner input.search-field,
#search-drawer .drawer-inner .code4rest-search-icon-wrap {
  color: var(--zm-white);
}

#search-drawer .drawer-inner input.search-field::placeholder {
  color: var(--zm-white);
  opacity: 1;
}

/* ------------  --->  form fields <--- ------------ */
/* style.css removes field borders; a white field on the cream page needs an edge with >= 3:1. */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
textarea,
select {
  border: 1px solid var(--zm-teal);
}

/* ------------  --->  focus <--- ------------ */
/* The theme sets outline: 0 on focused fields; keep a visible ring for keyboard users. */
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="url"]:focus-visible,
input[type="password"]:focus-visible,
input[type="search"]:focus-visible,
input[type="number"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="date"]:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--zm-teal);
  outline-offset: 2px;
}

/* The search overlay is dark (#101316): a teal ring there is only about 2:1. */
#search-drawer .drawer-inner input.search-field:focus-visible {
  outline-color: var(--zm-white);
}

/* ------------  --->  header navigation <--- ------------ */
/* The theme marks the current page only by white -> cream (about 1:1). Underline it instead:
   brass on the teal header (4.44:1), teal and bold in the cream mobile drawer (8.23:1). */
.header-navigation .primary-menu-container > ul > li.current-menu-item > a {
  text-decoration: underline;
  text-decoration-color: var(--zm-brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.mobile-navigation ul li.current-menu-item > a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--zm-teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ------------  --->  pill links <--- ------------ */
/* Quick links to menu categories: pills with a teal edge (8.23:1 on cream), no separators to wrap badly. */
ul.zm-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zm-pills li {
  margin: 0;
}

.zm-pills a {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--zm-teal);
  border-radius: 999px;
  color: var(--zm-teal);
  line-height: 26px;
  text-decoration: none;
}

.zm-pills a:hover {
  background-color: var(--zm-teal);
  color: var(--zm-white);
}

/* The 404 text is left-aligned, so its page links start at the left too. */
.zm-404-links .zm-pills {
  justify-content: flex-start;
}

/* ------------  --->  menu page: item cards <--- ------------ */
/* Prices are not shown on the site (they change often), so the Price List widget renders an empty
   price column and separator. Hide them; each item is a card with a photo, name and description.
   Photo size, card padding (12px, phones 10px) and radius (14px, phones 12px) are set in the widget
   in Elementor, because its defaults are printed with higher specificity; the card look is here. */
.zm-menu-list .menu-price,
.zm-menu-list .menu-price-spacing,
.zm-menu-list .menu-text-separator {
  display: none;
}

.zm-menu-list .menu-items {
  height: 100%;
}

.zm-menu-list .ue_price_list_item {
  height: 100%;
  align-items: center;
  background-color: var(--zm-white);
  border: 1px solid rgba(46, 76, 80, 0.12);
  transition: transform 0.3s var(--zm-ease), box-shadow 0.3s var(--zm-ease), border-color 0.3s ease;
}

.zm-menu-list .menu-img {
  border-radius: 10px;
}

.zm-menu-list .menu-wrappertitle {
  flex-wrap: wrap;
}

.zm-menu-list .menu-title {
  overflow-wrap: anywhere;
}

/* "Bottle only" badge (colours are set in the widget: #273E43 on #E9E1CC, 8.4:1). */
.zm-menu-list .ue_price_list_badge_container {
  line-height: 1;
}

@media (hover: hover) {
  .zm-menu-list .ue_price_list_item:hover {
    transform: translateY(-3px);
    border-color: var(--zm-brass);
    box-shadow: 0 16px 30px -20px rgba(39, 62, 67, 0.6);
  }

  .zm-menu-list .ue_price_list_item:hover .menu-img img {
    transform: scale(1.06);
  }
}

/* ------------  --->  menu page: likes <--- ------------ */
/* zamarut.js adds a heart button with the like count to every item (aria-pressed when this visitor
   liked it). Liked red #B83A30: 5.2:1 on the card, teal count 8.4:1. Reset the theme's button look. */
.zm-menu-list .zm-like {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  height: 36px;
  min-height: 0;
  margin: 0 0 0 12px;
  padding: 0 12px;
  border: 1px solid rgba(46, 76, 80, 0.28);
  border-radius: 999px;
  background-color: #fff;
  box-shadow: none;
  color: var(--zm-teal);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.zm-menu-list .zm-like:hover {
  border-color: currentColor;
  background-color: #fff;
  color: var(--zm-teal);
}

.zm-menu-list .zm-like[aria-pressed="true"],
.zm-menu-list .zm-like[aria-pressed="true"]:hover {
  border-color: #B83A30;
  color: #B83A30;
}

.zm-menu-list .zm-like[aria-pressed="true"] svg path {
  fill: currentColor;
}

.zm-menu-list .zm-like:focus-visible {
  outline: 2px solid var(--zm-teal);
  outline-offset: 2px;
}

.zm-like svg {
  display: block;
  flex: 0 0 auto;
}

@keyframes zm-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.zm-like.is-popping svg {
  animation: zm-pop 0.35s var(--zm-ease);
}

@media (max-width: 767px) {
  .zm-menu-list .zm-like {
    height: 34px;
    margin-left: 8px;
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zm-like.is-popping svg {
    animation: none;
  }
}

/* ------------  --->  menu page: sticky category bar <--- ------------ */
/* The category pills stay under the fixed header while the menu scrolls; zamarut.js marks the
   category in view (aria-current) and keeps --zm-header-h / --zm-nav-h in sync. #wrapper uses
   overflow: clip, which does not break position: sticky. */
.zm-cat-nav {
  position: sticky;
  top: var(--zm-header-h);
  z-index: 20;
}

/* Full-width backdrop, so menu cards scrolling underneath never show at the sides of the bar. */
.zm-cat-nav::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  background-color: var(--zm-cream);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.zm-cat-nav.is-stuck::before {
  border-bottom-color: rgba(196, 178, 135, 0.7);
  box-shadow: 0 10px 18px -16px rgba(39, 62, 67, 0.7);
}

/* Elementor's default 10px column padding would make the bar 20px taller; the section padding is enough. */
.zm-cat-nav .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding-top: 0;
  padding-bottom: 0;
}

.zm-pills a {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.zm-pills a[aria-current="true"] {
  background-color: var(--zm-teal);
  color: var(--zm-white);
}

.zm-pills a:focus-visible {
  outline: 2px solid var(--zm-teal);
  outline-offset: 2px;
}

/* Phones: one row that scrolls sideways instead of three wrapped rows (the bar stays one pill high). */
@media (max-width: 767px) {
  .zm-cat-nav ul.zm-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 -16px;
    padding: 2px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
  }

  .zm-cat-nav ul.zm-pills::-webkit-scrollbar {
    display: none;
  }

  .zm-cat-nav .zm-pills li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .zm-cat-nav .zm-pills a {
    padding: 4px 16px;
    white-space: nowrap;
  }
}

/* Jumps to #coffee, #matcha-tea, ... land below the header and the category bar. */
.elementor-menu-anchor {
  scroll-margin-top: calc(var(--zm-header-h) + var(--zm-nav-h) + 16px);
}

/* ------------  --->  home menu cards <--- ------------ */
/* Card texts differ in length: let each card fill its column so the cards in a row end evenly. */
.zm-card,
.zm-card > .elementor-widget-container,
.zm-card .uc_classic_content {
  height: 100%;
}

/* Each Image Card has one link, in its title. Stretch it over the card so the photo is clickable too. */
.zm-card .ue-title a {
  color: inherit;
  text-decoration: none;
}

.zm-card .ue-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.zm-card .ue-title a:hover,
.zm-card .ue-title a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* The card clips its overflow, so draw the focus ring just inside its edge (teal on white 8.41:1). */
.zm-card .ue-title a:focus-visible {
  outline: none;
}

.zm-card .ue-title a:focus-visible::after {
  outline: 2px solid var(--zm-teal);
  outline-offset: -2px;
  border-radius: 10px;
}

/* ------------  --->  text links <--- ------------ */
/* Teal links next to dark text differ by colour only (about 1.3:1): underline them.
   Used on "Visit us" (Home) and the phone number (Contact).
   Accordion titles are links too, but they are headings, not links in text. */
.zm-links a:not(.elementor-accordion-title) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------  --->  photo credits (Menu) <--- ------------ */
/* Required credit for the Kyiv cake photo (CC BY-SA): small, but #273E43 on cream stays 10:1. */
.zm-credits .elementor-widget-container {
  font-size: 13px;
  line-height: 1.6;
}

/* ------------  --->  page spacing <--- ------------ */
/* The theme adds 139.5px above and below the content of every inner page, on top of the sections'
   own padding: a ~190px empty band under the page title and another above the footer. */
.content-vertical-padding-show .content-area {
  margin-top: 56px;
  margin-bottom: 88px;
}

@media (max-width: 767px) {
  .content-vertical-padding-show .content-area {
    margin-top: 32px;
    margin-bottom: 56px;
  }
}

/* ------------  --->  header <--- ------------ */
/* A soft shadow once the header is fixed, so it separates from the page scrolling under it. */
.code4rest-sticky-header {
  transition: box-shadow 0.3s ease;
}

.code4rest-sticky-header.item-is-stuck {
  box-shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.55);
}

/* ------------  --->  home menu cards: hover <--- ------------ */
.zm-card > .elementor-widget-container {
  border-radius: 10px;
  transition: transform 0.35s var(--zm-ease), box-shadow 0.35s var(--zm-ease);
}

.zm-card .uc_classic_content_placeholder {
  overflow: hidden;
  border-radius: 10px;
}

.zm-card .uc_classic_content_placeholder img {
  transition: transform 0.6s var(--zm-ease);
}

.zm-card > .elementor-widget-container:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -22px rgba(39, 62, 67, 0.6);
}

@media (hover: hover) {
  .zm-card > .elementor-widget-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -22px rgba(39, 62, 67, 0.6);
  }

  .zm-card > .elementor-widget-container:hover .uc_classic_content_placeholder img {
    transform: scale(1.05);
  }
}

/* ------------  --->  buttons <--- ------------ */
@media (hover: hover) {
  .elementor-button:hover,
  .header-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -14px rgba(0, 0, 0, 0.6);
  }
}

/* ------------  --->  footer <--- ------------ */
/* Four columns: logo and Instagram, address, opening hours, page links. Text is #F3F4F4 on the
   green footer (6.3:1). Links in sentences are underlined; the page list underlines on hover. */
/* The theme capitalises every word of footer titles; the rest of the site uses sentence case ("Visit us"). */
.site-middle-footer-inner-wrap .widget-area .widget-title {
  margin-bottom: 12px;
  text-transform: none;
}

.zm-footer-logo {
  display: inline-block;
}

.zm-footer-logo img {
  display: block;
  width: 200px;
  height: auto;
}

.zm-footer-tagline {
  max-width: 22em;
  margin: 18px 0 0;
  line-height: 1.7;
}

.site-middle-footer-wrap .footer-social-wrap {
  margin-top: 22px;
}

/* Same specificity as the theme's "no underline" footer rule, which loads earlier. */
.site-footer-wrap .zm-footer-actions a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.zm-hours {
  display: grid;
  gap: 2px;
  max-width: 230px;
  margin: 0;
}

.zm-hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.zm-hours dt {
  font-weight: 600;
}

.zm-hours dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.zm-footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-wrap .zm-footer-nav a:hover,
.site-footer-wrap .zm-footer-actions a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Teal focus rings disappear on the green footer: use the light text colour instead. */
.site-footer a:focus-visible {
  outline: 2px solid var(--zm-white);
  outline-offset: 3px;
}

/* ------------  --->  coffee beans carousel (Home) <--- ------------ */
/* One card per bag: a drawing of the bag with its label colour (--bean, set on each card), then process,
   producer and tasting notes. Swipe or scroll sideways; zamarut.js adds the arrow buttons' behaviour
   (they are hidden without JavaScript). The intro next to the photo of the bags is plain Elementor. */
.zm-carousel__viewport {
  margin: -6px -4px 0;
  padding: 6px 4px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px; /* same as the padding, so the first card rests at scrollLeft 0 */
  scrollbar-width: none;
}

.zm-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.zm-carousel__viewport:focus-visible {
  outline: 2px solid var(--zm-teal);
  outline-offset: 2px;
  border-radius: 18px;
}

/* ul.… : beats the theme's ".single-content ul { padding-left: 2em }". */
.zm-carousel ul.zm-carousel__track {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zm-bean {
  display: flex;
  flex: 0 0 calc((100% - 3 * 20px) / 4);
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background-color: var(--zm-white);
  border: 1px solid rgba(46, 76, 80, 0.12);
  border-radius: 16px;
  scroll-snap-align: start;
}

/* Top of the card: the bag, drawn once as an SVG <symbol> in the carousel HTML; the label is HTML on top
   of it, in the label colour (--bean). Label text #141A1C: at least 6:1 on every label colour. */
.zm-bean__stage {
  padding: 24px 0 16px;
  background-color: var(--zm-cream);
  background-color: color-mix(in srgb, var(--bean) 22%, var(--zm-white));
}

.zm-bean__pack {
  position: relative;
  width: 74%;
  max-width: 210px;
  margin: 0 auto;
  aspect-ratio: 200 / 250;
  container-type: inline-size; /* label text sizes follow the bag width (cqw) */
  transform: rotate(-2deg);
  transition: transform 0.4s var(--zm-ease);
}

.zm-bean:nth-child(even) .zm-bean__pack {
  transform: rotate(2deg);
}

.zm-bean__bag {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 12px 12px rgba(39, 62, 67, 0.28));
}

.zm-bean__label {
  position: absolute;
  top: 43%;
  right: 22%;
  bottom: 10%;
  left: 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14% 6px 6px;
  background-color: var(--bean, var(--zm-brass));
  color: #141A1C;
  text-align: center;
}

.zm-bean .zm-bean__origin {
  margin: 0;
  color: inherit;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-size: min(13px, 7cqw);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  word-break: keep-all;
  overflow-wrap: normal;
}

.zm-bean__region {
  margin: 0;
  font-size: 9.5px;
  font-size: min(9.5px, 5.3cqw);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .zm-bean:hover .zm-bean__pack {
    transform: rotate(0deg) translateY(-4px);
  }
}

.zm-bean__facts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 20px 0;
}

.zm-bean__facts dt {
  margin: 0;
  color: var(--zm-teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zm-bean__facts dd {
  margin: 2px 0 0;
  color: var(--zm-dark);
  font-size: 15px;
  line-height: 1.45;
}

.zm-bean ul.zm-bean__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 16px 20px 20px;
  list-style: none;
}

.zm-bean__notes li {
  margin: 0;
  padding: 1px 10px;
  border-radius: 999px;
  background-color: #fff;
  background-color: color-mix(in srgb, var(--bean) 40%, #fff);
  color: #141A1C;
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
}

.zm-carousel__nav {
  display: none;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.zm-js .zm-carousel__nav {
  display: flex;
}

/* Reset the theme's button look: round outline buttons, 44px targets. */
.zm-carousel .zm-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--zm-teal);
  border-radius: 50%;
  background-color: transparent;
  box-shadow: none;
  color: var(--zm-teal);
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.zm-carousel .zm-carousel__btn:hover:not(:disabled) {
  background-color: var(--zm-teal);
  color: var(--zm-white);
}

.zm-carousel .zm-carousel__btn:focus-visible {
  outline: 2px solid var(--zm-teal);
  outline-offset: 2px;
}

.zm-carousel .zm-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* 3D ring (data-ring; zamarut.js adds .is-ring and sets sizes, radius and the turning angle).
   Cards stand around a vertical axis; their backs are hidden, so the front three or four show.
   touch-action: pan-y keeps vertical page scrolling on phones; sideways drags turn the ring.
   The ring spans the whole window (side cards come in from the screen edges); #wrapper clips the overflow. */
.zm-carousel.is-ring .zm-carousel__viewport {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding: 12px 0 110px; /* zamarut.js sets the bottom padding from the ring size */
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.zm-carousel.is-ring .zm-carousel__viewport.is-dragging {
  cursor: grabbing;
}

/* A soft floor shadow under the ring. */
.zm-carousel.is-ring .zm-carousel__viewport::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: min(900px, 90%);
  height: 46px;
  transform: translateX(-50%);
  z-index: 0;
  background: radial-gradient(closest-side, rgba(39, 62, 67, 0.22), rgba(39, 62, 67, 0));
  pointer-events: none;
}

.zm-carousel.is-ring ul.zm-carousel__track {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto;
  transform-style: preserve-3d;
  will-change: transform;
}

.zm-carousel.is-ring .zm-bean {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 18px 30px -24px rgba(39, 62, 67, 0.55);
}

.zm-carousel.is-ring .zm-carousel__nav {
  display: none;
}

@media (max-width: 1024px) {
  .zm-bean {
    flex-basis: calc((100% - 20px) / 2.3);
  }
}

@media (max-width: 767px) {
  .zm-carousel ul.zm-carousel__track {
    gap: 14px;
  }

  .zm-bean {
    flex-basis: 80%;
  }
}

/* ------------  --->  photo galleries (About) <--- ------------ */
/* Elementor's Basic Gallery: square tiles in a grid, click opens the lightbox. */
.zm-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

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

.zm-gallery .gallery .gallery-item {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.zm-gallery .gallery br {
  display: none;
}

.zm-gallery .gallery-icon {
  overflow: hidden;
  border-radius: 12px;
}

.zm-gallery .gallery-icon a {
  display: block;
}

.zm-gallery .gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 0;
  transition: transform 0.6s var(--zm-ease);
}

/* The tile clips its overflow, so the focus ring goes on the tile itself. */
.zm-gallery .gallery-icon a:focus-visible {
  outline: none;
}

.zm-gallery .gallery-icon:focus-within {
  outline: 2px solid var(--zm-teal);
  outline-offset: 3px;
}

@media (hover: hover) {
  .zm-gallery .gallery-icon a:hover img {
    transform: scale(1.05);
  }
}

@media (max-width: 1024px) {
  .zm-gallery--4 .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .zm-gallery .gallery {
    gap: 10px;
  }
}

/* ------------  --->  motion <--- ------------ */
/* Hero text and buttons rise in on load; menu cards fade up as they scroll into view
   (zamarut.js adds .zm-reveal and .is-visible). Nothing moves for visitors who ask for reduced motion,
   and without JavaScript nothing is hidden. */
@keyframes zm-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .zm-hero-anim {
    animation: zm-rise 0.9s var(--zm-ease) both;
  }

  .zm-hero-anim:nth-child(2) {
    animation-delay: 0.12s;
  }

  .zm-hero-anim:nth-child(3) {
    animation-delay: 0.24s;
  }

  .zm-hero-anim:nth-child(4) {
    animation-delay: 0.32s;
  }

  .zm-js .zm-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--zm-ease), transform 0.6s var(--zm-ease);
    transition-delay: var(--zm-delay, 0s);
  }

  .zm-js .zm-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* A printed menu shows every card, including the ones not scrolled into view yet. */
@media print {
  .zm-js .zm-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .zm-cat-nav {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zm-menu-list .ue_price_list_item,
  .zm-menu-list .menu-img img,
  .zm-bean__pack,
  .zm-card > .elementor-widget-container,
  .zm-card .uc_classic_content_placeholder img,
  .elementor-button,
  .header-button {
    transition: none;
  }

  .zm-menu-list .ue_price_list_item:hover,
  .zm-bean:hover .zm-bean__pack,
  .zm-card > .elementor-widget-container:hover,
  .zm-card > .elementor-widget-container:focus-within,
  .elementor-button:hover,
  .header-button:hover,
  .zm-menu-list .ue_price_list_item:hover .menu-img img,
  .zm-card > .elementor-widget-container:hover .uc_classic_content_placeholder img {
    transform: none;
  }
}
