/* ─── 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;

  /* FLEXBOX: Strictly force content to bottom */
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

/* Ensure the JS-created link also fills space and aligns bottom */
.landing .hero a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

/* 3) Ensure full-cover, BOTTOM-aligned crop for Desktop */
.landing .hero img,
.landing .hero video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;

  /* DESKTOP DEFAULT: Align to bottom */
  object-position: bottom 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;

  /* FLEXBOX FOR FOOTER: Push the 'About' link to the bottom */
  display: flex !important;
  flex-direction: column !important;
  min-height: 300px !important; /* Ensure enough height for separation */
}

/* Sidebar Header */
.landing .lsidebar .site-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

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

/* --- SIDEBAR FOOTER (About Link) --- */
.landing .lsidebar .site-footer {
  margin-top: auto;        /* Pushes footer to the bottom */
  padding-top: 2rem;       /* Visual separation */
  border-top: 1px solid #ddd;
}

/* UPDATED: Added !important to force styling on mobile */
.landing .lsidebar .site-footer .bio-link {
  font-size: 0.85rem;
  color: #666 !important;           /* Force gray color */
  text-decoration: none !important; /* Force no underline */
  text-transform: uppercase;
  display: block;
}

.landing .lsidebar .site-footer .bio-link:hover {
  color: #000 !important;
  text-decoration: underline !important;
}

/* ─── 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;
  }
  .landing .hero img,
  .landing .hero video {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;

    /* MOBILE: Reset to CENTER (looks better on tall phones) */
    object-position: center 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;
    max-width: 180px !important;
    padding: 1rem !important;
    background: rgba(250, 250, 250, 0.9) !important;
    
    /* Relax min-height on mobile if needed */
    min-height: auto !important;
  }
  .landing .lsidebar .site-title {
    font-size: 1.2rem !important;
    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;
  }
  
  /* Adjust footer spacing for mobile */
  .landing .lsidebar .site-footer {
    padding-top: 1rem !important;
  }
}