/* ====== EDIT THESE LATER ====== */
:root{
  --bg: #e3e3e3;
  --text: #000;

  --page-pad: 28px;
  --content-max: 980px;
  --stack-gap: 64px;

  --nav-bg: #e3e3e3;
  --nav-border: rgba(0,0,0,0.12);

  --sidebar-w: 260px;
  --grid-gap: 14px;

  --btn-border: 1px solid #000;
  --btn-pad-y: 10px;
  --btn-pad-x: 16px;
}

/* ===== GLOBAL RESETS ===== */
*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* 🔒 iOS SAFARI BUTTON COLOR FIX */
button{
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border-radius: 0;
  color: var(--text);
  font-family: inherit;
}

/* ===== HERO ===== */
.hero img{
  width: 100%;
  height: 78vh;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

/* ===== NAV ===== */
.topnav{
  position: sticky;
  top: 0;
  z-index: 30;

  display: flex;
  justify-content: center;
  gap: 28px;

  padding: 14px var(--page-pad);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px)
}

/* ===== CENTERED COUNTDOWN ===== */
.countdown-center{
  padding: 48px 0 32px;   /* controlled breathing room */
  display: flex;
  justify-content: center;
  text-align: center;
}

.countdown-bar{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}


.countdown-time{
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;        /* same weight as active nav */
  letter-spacing: 0.04em;  /* consistent with buttons */
}

/* ===== ACTIVE NAV (CSS-ONLY) ===== */
body[data-page="home"] .navlink[href="index.html"],
body[data-page="gallery"] .navlink[href="gallery.html"]{
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
}


.navlink{
  text-decoration: none;
  color: #696969;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  -webkit-tap-highlight-color: transparent;
}

/* active page highlight */
.navlink.is-active{
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ===== COUNTDOWN BAR ===== */
.countdown-bar{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  padding: 14px 0;
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.12);

  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.countdown-label{
  opacity: 0.7;
}

.countdown-time{
  font-weight: 600;
}

/* ===== HOME FEED ===== */
.home{
  padding: 34px var(--page-pad) 80px;
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
}

.home-item{
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.home-media img{
  width: 100%;
  display: block;
}

.home-caption{
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.actions{
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.sharebtn{
  border: var(--btn-border);
  background: transparent;
  color: var(--text);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.sharebtn:active{
  transform: translateY(1px);
}

/* ===== YOUTUBE ===== */
.ytwrap{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.06);
}

.ytwrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== GALLERY LAYOUT ===== */
.gallery-layout{
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar{
  padding: 22px 0;
  /* border-right: 1px solid var(--nav-border); */
}

.sidebar-inner{
  position: sticky;
  top: 56px;
  padding: 0 var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filterbtn{
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 6px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}

.filterbtn.is-active{
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gridwrap{
  padding: 22px var(--page-pad) 60px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--grid-gap);
}

.tile{
  cursor: pointer;
}

.thumb{
  background: rgba(0,0,0,0.05);
}

.thumb img{
  width: 100%;
  display: block;
}

.vlabel{
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.85;
  text-align: center;
}

/* ===== LIGHTBOX ===== */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.92);
  padding: 22px;
}

.lightbox-inner{
  position: relative;
  width: min(1100px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lb-close{
  position: absolute;
  top: -12px;
  right: -6px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 44px;
  cursor: pointer;
}

.lb-media{
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 82vh;
}

.lb-media img{
  max-width: 96vw;
  max-height: 82vh;
}

.lb-actions{
  display: flex;
  justify-content: center;
}

.lb-actions .sharebtn{
  border-color: #fff;
  color: #fff;
}

/* ===== TOAST ===== */
.toast{
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 10px 18px;

  background: #000;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.04em;

  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ===== MOBILE ===== */
@media (max-width: 860px){

  body{
    overflow-x: hidden;
  }

  .gallery-layout{
    grid-template-columns: 1fr;
  }

  .sidebar{
    border-right: 0;
    border-bottom: 1px solid var(--nav-border);
    padding: 10px 0;
  }

  /* horizontal artist scroll only */
  .sidebar-inner{
    position: static;
    padding: 0 var(--page-pad);

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    max-width: 100vw;
  }

  .hero img{
    height: 45vh;        /* much shorter */
    min-height: 280px;   /* prevents it from collapsing */
    object-position: center top; /* better faces/framing */
  }
  
  .filter-list{
    display: flex;
    flex-direction: row;
    gap: 14px;
    flex-shrink: 0;
  }

  .filterbtn{
    padding: 8px 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .gridwrap{
    overflow-x: hidden;
  }

  .grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .thumb,
  .thumb img,
  .ytwrap{
    width: 100%;
    max-width: 100%;
  }
}
