/* =============================================
   Thomas Meldgaard — Mobile Stylesheet
   ============================================= */

/* Hidden on all sizes by default; overridden to flex inside the media query */
.site-nav-mobile {
  display: none;
}

@media (max-width: 768px) {

  /* ── Root overrides ─────────────────────────── */

  :root {
    --header-height: 56px;
  }

  /* ── Header ─────────────────────────────────── */

  .site-header {
    padding: 0 20px;
    height: var(--header-height);
  }

  .logo-name {
    font-size: 0.82rem;
    letter-spacing: 0.10em;
  }

  .logo-subtitle {
    font-size: 0.50rem;
    letter-spacing: 0.28em;
  }

  /* Hide full desktop nav */
  .site-nav {
    display: none;
  }

  /* ── Mobile nav ─────────────────────────────── */

  .site-nav-mobile {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .nav-link-mobile {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #111111;
    text-decoration: none;
    transition: opacity 0.2s ease;
    line-height: 1;
  }

  .nav-link-mobile:hover {
    opacity: 0.5;
  }

  .nav-link-mobile.active {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
  }

  /* ── Category grid (homepage) ───────────────── */

  .subcat-section {
    /* Keep fixed + full-height: stacks rows inside the viewport */
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
  }

  .subcat-grid {
    flex-direction: column;
    gap: 2px;
    width: 100%;
    height: 100%;
  }

  /* Each card gets equal share of the full height */
  .subcat-card {
    flex: 1;
    min-height: 0;
  }

  /* ── Carousel (vertical looping, mobile) ────── */

  /* Track stacks items vertically; JS translateY centers the active item */
  .carousel-track {
    flex-direction: column;
    height: auto;
    width: 100%;
  }

  /* Items fill the full width; height follows each photo's natural aspect ratio */
  .carousel-item {
    width: 100%;
    height: auto;
  }

  .carousel-item img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  /* Navigation is swipe-only — hide arrow buttons */
  .carousel-btn {
    display: none;
  }

  /* ── Contact page ───────────────────────────── */

  .contact-section {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
  }

} /* end @media (max-width: 768px) */
