/* main.css */
/* //////////////////// */
/* BASIC 2 COLUMN LAYOUT */
.wrapper {
  display: flex;
  height: 100vh; /* full screen height */
}

/* wrapper contains sidebar and project display - its children, which are treated 
as flex items (css flexbox) */
/* Left column */
.sidebar {
  width: 250px;
  padding: 0 2rem 2rem 2rem; /* top, right, bottom, left */
  background-color: white;
  /* border-right: 1px solid #ddd; */ /* draws line div index from pic*/
  text-align: right;
}

/* Right column in project pages*/
.project-display {
  flex: 1;
  display: flex;
  align-items: flex-start; /* to ensure top-align */
  justify-content: center;
  padding: 0 2rem 2rem 0rem; /* top, right, bottom, left */
  background-color: #ffffff;
  box-sizing: border-box;
}

/* //////////////////// */
/* TYPOGRAPHY & SPACING */
/* this one is for my name as link at the top of teh index */
h1 a {
  text-decoration: none; /* removes underline */
  color: inherit; /* makes it use the same color as the h1 */
}

.sidebar h1 {
  font-weight: normal; /* removes bold from my name */
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.sidebar hr {
  border: none;
  border-top: 1px solid #707070;
  margin: 1.5rem 0;
}

/* targets entire containter */
.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* targets each individual li - list item */
.project-list li {
  margin-bottom: 0.1rem; /* controls spacing between list items */
}

/* Style all <a> links inside .project-list, plus anything with the class 
.archive-link or .about-link, the same way. */
.project-list a,
.archive-link,
.about-link {
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
}

.archive-link {
  display: inline-block;
  margin-top: 2rem;
}

.about-link {
  display: inline-block;
  margin-top: 0.1rem;
}

/* //////////////////// */
/* PROJECT PAGES STYLES */
.project-content {
  width: 100%;
  max-width: 1000px;
  font-family: 'Work Sans', sans-serif;
  padding: 0rem 0rem 4rem 0rem; /* top, right, bottom, left */
  box-sizing: border-box;
}

.project-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  font-weight: 400;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  font-weight: 400;
}

.project-hr {
  border: none;
  border-top: 1px solid #707070;
  margin: 1.5rem 0 3rem 0;
}

.project-blurb {
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 800px;
  line-height: 1.6;
}

.project-text {
  font-size: 1rem;
  max-width: 800px;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: left;
  color: #333;
}

.sub-project {
  margin-bottom: 3rem;
}

.caption {
  font-size: 0.9rem;
  color: #666;
  max-width: 1200px;
  margin: 1rem auto 3rem auto;
  text-align: left;
}

/* //////////////////// */
/* IMAGE STYLES */

/* Hero Images */
/* Base shared styles */
.hero-image {
  width: 100%;
  max-width: 1200px;
  /* padding: 0rem 2rem 2rem 2rem;  */
  background-color: #dddddd;
  /* margin: 0 auto 3rem auto; */
}

/* INDEX page tweaks */
.index-hero {
  aspect-ratio: 16 / 9;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1rem;
  padding: 0;
}

/* make hero image actually fill the 16:9 container */
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PROJECT page tweaks */
.project-hero {
  aspect-ratio: 3 / 2;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  margin-bottom: 3rem;
}

/* image placeholder class*/
.project-image {
  width: 100%;
  max-width: 1200px;
  display: block;
  margin: 0 auto;
  background-color: #f3f3f3;
  border: none;
}

.image-3x2 {
  aspect-ratio: 3 / 2;
}

.image-2x3 {
  aspect-ratio: 2 / 3;
}

.image-2x6 {
  aspect-ratio: 2 / 6;
}

.image-2x1 {
  aspect-ratio: 2 / 1;
}

.image-square {
  aspect-ratio: 1 / 1;
}

/*use this for irregular aspect ration images*/
.image-free {
  width: 100%;
  max-width: 1200px;
  height: auto; /* keep original ratio */
  display: block;
  margin: 0 auto;
}

/* Prevent cropping for free-ratio photos */
.image-free img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* When we have a real photo, remove placeholder look */
.is-photo {
  background: none !important;
  border: none !important;
}

.is-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the box without stretching */
  display: block;
}

/* Gap utilities for image containers */
.gap-none {
  padding-bottom: 0;
}
.gap-sm {
  padding-bottom: 0.75rem;
}
.gap-md {
  padding-bottom: 1.5rem;
}
.gap-lg {
  padding-bottom: 3rem;
}
.gap-xl {
  padding-bottom: 5rem;
}

/* video embed style to accommodate YT or Vimeo so it fits in my div
without messing up given aspect ratio of video */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper.gap-md {
  margin-bottom: 1.5rem; /* same as your gap-md spacing */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* TEMP: add then remove after testing correct margins */
/* .project-image {
  outline: 2px solid magenta;
}
.project-image img {
  outline: 2px dashed cyan;
} */
