/* ─── Landing Page Styles (landing.css) ─────────────────────────────────── */

/* nuke any default body/page padding */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* 1) Make .landing fill the entire viewport, fixed to the screen */
.landing {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  z-index: 1000 !important; /* sit above all other page elements */
  background: none !important;
}

/* 2) Pin the hero behind everything inside .landing */
.landing .hero {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  overflow: hidden !important;
}

/* 3) Ensure full-cover, centered crop */
.landing .hero img,
.landing .hero video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* 4) Overlay sidebar on top of hero */
.landing .lsidebar {
  position: absolute !important;
  top: 1rem !important;
  left: 1rem !important;
  z-index: 2 !important;
  width: 240px !important;
  padding: 2rem !important;
  background: rgba(250, 250, 250, 0.8) !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05) !important;
  border-radius: 4px !important;
  pointer-events: auto !important;
}

/* Sidebar text styling */
.landing .lsidebar .site-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.landing .lsidebar .recent-art-list {
  list-style: none;
  padding: 0;
}
.landing .lsidebar .recent-art-list li {
  margin-bottom: 0.75rem;
}
.landing .lsidebar .recent-art-list a {
  text-decoration: none;
  color: inherit;
}

/* ─── Mobile / Small Screens ────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Allow the page to scroll if content exceeds viewport */
  .landing {
    position: relative !important;
    height: auto !important;
  }
  /* Hero still fills viewport height on mobile */
  .landing .hero {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;    /* keep 100vh even on small screens */
  }
  .landing .hero img,
  .landing .hero video {
    height: 100% !important;     /* match the hero container */
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  /* Sidebar overlays, but narrower and smaller text on mobile */
  .landing .lsidebar {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    width: 40vw !important;             /* ≈40% of viewport width */
    max-width: 180px !important;         /* cap so it never gets too wide */
    padding: 1rem !important;            /* a bit less padding */
    background: rgba(250, 250, 250, 0.9) !important;
  }
  .landing .lsidebar .site-title {
    font-size: 1.2rem !important;        /* smaller title */
    margin-bottom: 1rem !important;
  }
  .landing .lsidebar .recent-art-list li {
    margin-bottom: 0.5rem !important;
  }
  .landing .lsidebar .recent-art-list a {
    font-size: 0.9rem !important;        /* smaller link text */
  }
}