/* ============================================================
   BASE / SITE-WIDE
   ============================================================ */

/* CSS for site background color and site text color */
body {
  background-color: rgb(0, 0, 0);
  color: white;
}

/* CSS for anything tagged with <a> */
a {
  color: white;
  text-decoration: none;
  margin-right: 15px;
}


/* ============================================================
   SHARED HELPERS
   ============================================================ */

/* CSS for metas and subtitles */
.subtitle {
  opacity: 0.6;
  margin-top: 0.2rem;
  font-style: italic;
}


/* ============================================================
   NAV / ICON LINKS
   ============================================================ */

/* the icon nav row */
.icon-nav {
  display: flex;
  justify-content: center;   /* centers the icons horizontally */
  gap: 2em;
  flex-wrap: wrap;
}

/* CSS for your icon links */
.icon-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 0.3em;
}

/* CSS sizing for the link icon image you use for a link icon */
.icon-link .link-icon {
  width: 48px;
  height: 48px;
}


/* ============================================================
   HOME PAGE
   ============================================================ */

/* centers home header */
.home-header {
  text-align: center;
}


/* ============================================================
   COMICS
   ============================================================ */

/* sizing and display arrangement for your comic pictures */
.comic-page {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto 2rem auto;
}


/* ============================================================
   MUSIC
   ============================================================ */

/* video sizing perameters */
.video-size {
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

/* album title text alignment */
.album h2 {
  margin-bottom: 0.2rem;
}

/* italixized subtitle for music album description */
.album-meta {
  opacity: 0.6;
  margin-top: 0;
  font-style: italic;
}

/* styles box holding video */
.player {
  aspect-ratio: 16 / 9;
  margin: 1rem 0;
}

/* styles the video element */
.player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}


/* ============================================================
   JOURNAL
   ============================================================ */

/* journal/home return button alignment */
.journal-nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* journal entry picture alignment and sizing */
.journal-entry {
  display: block;
  max-width: 100%;      /* never wider than the column */
  max-height: 80vh;     /* never taller than 80% of the screen */
  width: auto;          /* let it size naturally */
  height: auto;         /* keep proportions */
  margin: 0 auto 2rem auto;
}

/* centers the journal page title + nav below it */
.journal-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* journal/home return buttons, centered under the title */
.journal-nav {
  display: flex;
  justify-content: center;   /* added — centers the links */
  gap: 1.5rem;
  margin-top: 0.5rem;
}

/* ============================================================
   GALLERY
   ============================================================ */
   .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;        /* square thumbnails */
  object-fit: cover;      /* crop to fill the square neatly */
  display: block;
}