@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');


/*  */
/* setup classes */
/*  */
* {
  box-sizing: border-box;
}

html {
  color: blue;
  font-family:  "Ubuntu Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

html,
body {
  padding: 0;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header a {
  display: flex;
  height: 3rem;
  flex-direction: row;
  justify-content: center;
  color: blue;
  text-decoration: none;
}

ul {
  margin: 0;
}

a:visited {
  color: blue;
}

time {
  display: block;
  font-style: italic;
}

article {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

article h2 {
  margin-top: 0;
}

footer {
  font-size: small;
  padding: 2rem 0;
  max-width: 1000px;
  margin: 0 auto; 
  text-align: center;
}

/*  */
/* general classes */
/*  */
.base__wide {
  padding: 5rem 1rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto; 
}

.home {
  display: block;
  margin: 0;
  padding: 4rem 0;
}

.home:visited {
  color: blue;
}

.bio {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: center;
  margin: 3rem 0;
  text-align: center;
}

.bio p {
  max-width: 600px;
}

.tile {
  width: 3rem;
  height: 3rem;
  border: 4px solid blue;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title {
  height: 100%;
  border: 4px solid blue;
  border-left: 0px;
  border-right: 0px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.sun {
  border: 4px dashed blue;
  width: 2rem;
  height: 2rem;
  border-radius: 100%;
}

.title h1 {
  font-style: italic;
  margin: 0;
  padding: 0;
}

/*  */
/* image-tint classes */
/*  */
.image-tint {
  position: relative;
  display: inline-block;
  line-height: 0;
  overflow: hidden;
}

/* Force the image to grayscale by default */
.image-tint img {
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

/* blue overlay */
.image-tint::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0000ff;
  mix-blend-mode: lighten;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* remove grayscale) */
.image-tint:hover img {
  filter: grayscale(0%);
}

/* hide blue overlay */
.image-tint:hover::after {
  opacity: 0;
}

/*  */
/* album classes */
/*  */
.album__list {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  row-gap: 4rem;
}

.album__photos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.album__photos p {
  max-width: 500px;
  margin: 0;
  padding: 0;
}

.error {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error__title {
  font-style: italic;
}

.post__list {
  padding: 0;
  list-style: none;
}

.post__list li {
  margin-bottom: 5rem;
}

.post__list a {
  text-decoration: none;
}

/*  */
/* Lightbox classes */
/*  */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 1); /* Deep transparent blue */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Hide when not active */
.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__btn {
  background: none;
  border: none;
  color: blue;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  padding: 1rem;
  transition: transform 0.2s;
}

.lightbox__close {
  top: 1rem;
  right: 1.2rem;
  font-size: 2rem;
}

.lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
}

.lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
