@font-face {
  font-family: "Din Black";
  src: url(din-black-webfont.woff2) format("woff2"),
    url(din-black-webfont.woff) format("woff");
}

/* ===== Base (Mobile-first) ===== */

html,
body {
  font-family: Times, "Times New Roman", serif;
  font-size: 12px;
  margin: 0;
  padding: 0;
}

img {
  border: none;
  display: block;
  margin: 0;
  padding: 0;
  max-width: 100%;
  height: auto;
}

iframe {
  display: block;
  border: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

a,
a:hover,
.thumb a,
.thumb a:hover {
  text-decoration: none;
}

/* ===== Grid Layout ===== */

#wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 20px;
  padding: 20px;
  margin: 0 auto;
}

#cA {
  display: none;
}

.column,
.columnImage {
  position: relative;
}

#cB,
#cC {
  overflow: hidden;
}

/* ===== Sidebar ===== */

.site {
  width: 100%;
  overflow: visible;
}

.site a {
  color: #000;
  text-decoration: none;
}

.site a:hover {
  text-decoration: underline;
}

.siteTitle {
  font-family: "Din Black", Helvetica, Arial, Verdana, sans-serif;
  font-size: 26px;
  margin: 0 15px 0 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.home .siteTitle {
  font-size: 30px;
}

.siteText {
  margin: 8px 5px 0 0;
  position: relative;
}

.siteCV {
  margin: 8px 0;
  overflow: hidden;
  position: relative;
}

.siteDate {
  margin: 0 0 8px;
  position: relative;
}

.siteBack {
  font-family: "Din Black", Helvetica, Arial, Verdana, sans-serif;
  font-size: 15px;
  margin: 16px 0;
  text-transform: uppercase;
  z-index: 200;

  a:hover {
    text-decoration: none;
  }
}

#siteNext {
  cursor: pointer;
  margin: 0 0 13px;
}

#sitePrevious {
  cursor: pointer;
}

/* ===== Thumbnails ===== */

.thumb {
  background: #000;
  margin: 0 0 20px;
  overflow: hidden;
  position: relative;
}

.thumb img {
  visibility: hidden;
  width: 100%;
  height: auto;
}

.thumb a:visited {
  color: #f2f2f2;
  text-decoration: none;
}

.thumbDate {
  bottom: 10px;
  color: #000;
  font-size: 12px;
  position: absolute;
  right: 10px;
  text-align: right;
  width: 100%;
}

.thumbTitle {
  color: #fff;
  font-family: "Din Black", Helvetica, Arial, Verdana, sans-serif;
  font-size: 21px;
  left: 10px;
  position: absolute;
  text-transform: uppercase;
  top: 10px;
  width: 70%;
  z-index: 100;
  text-shadow: black 1px 1px 2px;
}

.dateLink {
  border-bottom: 1px solid #f2f2f2;
  color: #f2f2f2;
  margin: 2px 3px;
  text-decoration: none;
}

/* ===== Media (Project Images) ===== */

.media {
  background: #000;
  margin: 0 0 12px;
  overflow: hidden;
  position: relative;
}

.media img {
  width: 100%;
  height: auto;
}

.mediaHover {
  background: #000;
  height: 100%;
  overflow: hidden;
  position: absolute;
  width: 100%;
  z-index: 3;
}

.mediaNumber {
  color: #fff;
  font-size: 13px;
  left: 10px;
  position: absolute;
  top: 10px;
  z-index: 4;
}

.thumbSize,
.thumbSrc,
.mediaDescription,
.mediaSrc,
.mediaSize {
  display: none;
}

/* ===== Misc ===== */

.sitePeople,
.siteAddress {
  margin: 4px 0;
  position: relative;
}

.siteClient,
.siteCategory {
  margin: 8px 0 0;
  position: relative;
}

.anchor {
  position: absolute;
  visibility: hidden;
}

.outline img {
  border: 1px solid #b5b5b5;
}

/* ===== Mobile: No Hover ===== */

@media (max-width: 767px) {
  #siteNext,
  #sitePrevious {
    display: none;
  }

  .mediaHover {
    display: none;
  }
}

/* ===== Tablet (>= 768px) ===== */

@media (min-width: 768px) {
  #wrapper {
    grid-template-columns: 1fr 1fr;
    max-width: 700px;
    margin: 30px auto;
    padding: 0;
  }

  #cAFixed {
    grid-column: 1 / -1;
    margin-bottom: 10px;
  }

  #cD,
  #cE {
    grid-column: 1 / -1;
  }
}

/* ===== Desktop (>= 1024px) ===== */

@media (min-width: 1024px) {
  #wrapper {
    grid-template-columns: 215px repeat(3, 1fr);
    max-width: 920px;
    margin: 40px auto;
  }

  #cAFixed {
    grid-column: 1;
    margin-bottom: 0;
  }

  #cD {
    grid-column: auto;
  }

  #cE {
    grid-column: 2 / -1;
  }

  .site {
    position: sticky;
    top: 40px;
    width: 215px;
  }

  .site:not(.home) {
    min-height: calc(100vh - 80px);
  }

  .siteBack {
    position: absolute;
    bottom: 40px;
    margin: 0 0 40px;
  }
}

/* ===== Large Desktop (>= 1200px + tall viewport) ===== */

@media (min-width: 1200px) and (min-height: 850px) {
  body {
    font-size: 13px;
  }

  #wrapper {
    grid-template-columns: 270px repeat(3, 1fr);
    max-width: 1140px;
    margin: 60px auto;
  }

  .site {
    top: 60px;
    width: 270px;
  }

  .site:not(.home) {
    min-height: calc(100vh - 120px);
  }

  .siteBack {
    bottom: 60px;
    margin: 0 0 60px;
    font-size: 18px;
  }

  .siteTitle {
    font-size: 30px;
  }

  .home .siteTitle {
    font-size: 33px;
  }
}
