/* didiandjosh.com — mobile layout (loaded only at max-width: 720px) */
:root {
  --wedding-bar-h: 2.7rem;
  --wedding-icon-btn: 2.15rem;
}

/* Bar moves to the bottom (portrait and landscape); image area is above it, never under it */
.wedding-slideshow__bar {
  order: 2;
  border-bottom: 0;
  border-top: 1px solid rgba(11, 43, 40, 0.18);
  padding: 0.2rem 0.3rem;
  padding-bottom: calc(0.2rem + env(safe-area-inset-bottom, 0px));
  gap: 0.2rem;
  flex-wrap: nowrap;
  align-items: center;
}
.wedding-slideshow__figure {
  order: 1;
  padding-top: env(safe-area-inset-top, 0px);
}
.wedding-slideshow__hud {
  top: 0;
}

/* ← → | ⇄ Eng:n/N · eye · ☰ (hamburger far right) */
.wedding-slideshow__nav--prev { order: 1; }
.wedding-slideshow__nav--next { order: 2; margin-left: 0; }
.wedding-slideshow__album { order: 3; gap: 0.15rem; min-width: 0; align-items: center; }
.wedding-slideshow__sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0.05rem;
  color: #0b2b28;
  font: 600 0.95rem/1 "DM Mono", ui-monospace, monospace;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.wedding-slideshow__counter {
  order: 4;
  font-size: 0.7rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
}
.wedding-slideshow__eye {
  order: 5;
  margin-left: auto;
}
.wedding-slideshow__menu {
  order: 6;
  display: inline-flex;
  margin-left: 0;
}
.wedding-slideshow__actions { order: 7; }

/* Shared square icon buttons: nav, album switch, eye, hamburger */
.wedding-slideshow__nav,
.wedding-slideshow__album-switch,
.wedding-slideshow__eye,
.wedding-slideshow__menu {
  box-sizing: border-box;
  width: var(--wedding-icon-btn);
  height: var(--wedding-icon-btn);
  min-width: var(--wedding-icon-btn);
  min-height: var(--wedding-icon-btn);
  padding: 0;
  justify-content: center;
  align-items: center;
}
.wedding-slideshow__nav .wedding-slideshow__label-desk,
.wedding-slideshow__nav .wedding-slideshow__label-mob { display: none !important; }
.wedding-slideshow__icon { font-size: 1.05rem; line-height: 1; }
.wedding-slideshow__icon--swap {
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 700;
  transform: translateY(-0.05em);
}
.wedding-slideshow__icon--menu {
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 700;
}
.wedding-slideshow__eye svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.wedding-slideshow__btn {
  font-size: 0.72rem;
  padding: 0.32rem 0.42rem;
}
/* Left/right tap zones over the photo (swipe still works via touch handlers) */
.wedding-slideshow__hit {
  display: block;
  top: 0;
  bottom: 0;
  width: 36%;
  min-width: 4rem;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}
.wedding-slideshow__hit::after { display: none; }

/* Album: switch only; count already says Eng/Wed */
.wedding-slideshow__album-label { display: none; }

/* Mobile count = current album only (hide ALL: … |) */
.wedding-slideshow__counter-all,
.wedding-slideshow__counter-sep { display: none !important; }
.wedding-slideshow__counter-album { display: inline; }

/* Hamburger menu: compact popup above the bottom bar */
.wedding-slideshow__actions {
  display: none;
  position: absolute;
  right: 0.35rem;
  bottom: calc(100% + 0.3rem);
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
  padding: 0.35rem;
  background: #a8e6df;
  border: 1px solid rgba(11, 43, 40, 0.25);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  min-width: 0;
  width: min(16.5rem, calc(100vw - 0.8rem));
  max-width: calc(100vw - 0.8rem);
  z-index: 8;
}
.wedding-slideshow__fitrow {
  display: flex;
  gap: 0.28rem;
}
.wedding-slideshow__fitrow .wedding-slideshow__btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 0.45rem 0.4rem;
  font-size: 0.78rem;
}
.wedding-slideshow[data-menu="open"] .wedding-slideshow__actions { display: flex; }
.wedding-slideshow__actions .wedding-slideshow__btn {
  font-size: 0.82rem;
  padding: 0.48rem 0.55rem;
  justify-content: flex-start;
}
.wedding-slideshow__actions .wedding-slideshow__dice {
  justify-content: center;
  padding: 0.45rem;
}
#wedding-slideshow-download { min-width: 0; }

.wedding-grid__list {
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
}

.wedding-slideshow__albums {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.28rem;
}
.wedding-slideshow__albumseg { flex: 1 1 auto; min-width: 0; }
.wedding-slideshow__albumcheck {
  flex: 1 1 auto;
  justify-content: space-between;
  padding: 0.42rem 0.5rem;
  font-size: 0.78rem;
}
.wedding-slideshow__albumjump { padding: 0.42rem 0.4rem; }

.wedding-slideshow[data-chrome="off"] .wedding-slideshow__bar {
  top: auto;
  bottom: 0;
  padding-bottom: calc(0.2rem + env(safe-area-inset-bottom, 0px));
}
