/* CiCi Nail Atelier: styles for the static-site interactions in public.js. */

.cici-scroll-lock {
  overflow: hidden;
}

/* Mobile menu panel, below the header. public.js sets --cici-mm-top and copies
   the header's background and text colour. */
.cici-mm-panel {
  position: fixed;
  top: var(--cici-mm-top, 0px);
  right: 0;
  left: 0;
  z-index: 60;
  max-height: calc(100vh - var(--cici-mm-top, 0px));
  max-height: calc(100dvh - var(--cici-mm-top, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem 0 1.25rem;
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.cici-mm-panel[hidden] {
  display: none;
}

.cici-mm-list,
.cici-mm-social {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cici-mm-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 1.25rem;
  color: inherit;
  font-size: 1.125rem;
  text-decoration: none;
}

.cici-mm-link[aria-current='page'] {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.cici-mm-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cici-mm-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.cici-mm-link:focus-visible,
.cici-mm-social-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

/* Photo lightbox (native <dialog>). */
.cici-lb {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(17, 12, 10, 0.94);
}

.cici-lb::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.cici-lb-frame {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3.75rem 1rem 5rem;
}

.cici-lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  margin: 0;
}

.cici-lb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 960px);
  max-height: calc(100vh - 12rem);
  max-height: calc(100dvh - 12rem);
  object-fit: contain;
}

.cici-lb-caption {
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
}

.cici-lb-caption[hidden],
.cici-lb-count[hidden],
.cici-lb-btn[hidden] {
  display: none;
}

.cici-lb-count {
  position: absolute;
  top: 1.25rem;
  left: 1rem;
  margin: 0;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.cici-lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.cici-lb-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.cici-lb-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.cici-lb-close {
  top: 0.5rem;
  right: 0.5rem;
}

/* Phones: arrows sit below the photo, within thumb reach. */
.cici-lb-prev,
.cici-lb-next {
  bottom: 1rem;
}

.cici-lb-prev {
  left: calc(50% - 64px);
}

.cici-lb-next {
  right: calc(50% - 64px);
}

@media (min-width: 768px) {
  .cici-lb-frame {
    padding: 4rem 6rem 2rem;
  }

  .cici-lb-img {
    max-height: calc(100vh - 9rem);
    max-height: calc(100dvh - 9rem);
  }

  .cici-lb-prev,
  .cici-lb-next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .cici-lb-prev {
    left: 1.5rem;
  }

  .cici-lb-next {
    right: 1.5rem;
  }
}
