/* Projects webdev */
.projects {
  display: grid;
  gap: 16px;
  margin: 48px 0 64px;
}

.projects img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border: 3px solid #111;
}

.projects a,
.projects a:visited {
  color: #111;
  text-decoration: none;
}

/* Graphics */
section.projects>div img {
  width: 100%;
  max-width: 100%;
  height: 170px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* About */
@media (min-width: 1000px) {
  .about {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px;
  }

  .about img {
    display: block;
    width: min(420px, 100%);
    height: auto;
    margin: 0 auto 32px;
  }

  .about p {
    max-width: 680px;
    margin-inline: auto;
    line-height: 1.7;
  }
}

  .about img {
    max-width: 350px;
    max-height: auto;
    border-style: inset;
  }

/* Contact */
.contact {
  max-width: 720px;
  margin: 0 auto;
}

/* Footer */
footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 30px 0;
  border-style: solid;
}

footer img {
  width: 32px;
  height: 32px;
}

/* Main CSS */
.container {
  margin: 10px;
}

header {
  background-color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav {
  padding: 20px;
}

ul {
  display: flex;
  gap: 1rem;
  list-style: none;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

nav ul li a:hover {
  color: #0e7c7b;
}

h2 {
  text-align: center;
}

.intro {
  text-align: center;
}

.intro__icon {
  display: block;
  margin-inline: auto;
}

p {
  text-align: center;
}

/* Lightbox */
.lightbox-gallery img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  background: #fff;
}

.lightbox p {
  color: #fff;
  text-align: center;
  white-space: pre-line;
}

.lightbox {
  padding: 16px;
  box-sizing: border-box;
}

.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 78dvh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox p {
  max-width: min(92vw, 900px);
  margin-inline: auto;
}

.lightbox::after {
  content: "×";
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: 14px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
}

@media (min-width: 1000px) {
  .projects {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(3, minmax(0, 280px));
    justify-content: center;
  }
}

@media (min-width: 1000px) {
  section.projects div {
    display: block;
    text-align: center;
  }

  section.projects div img {
    float: none;
    display: block;
    margin: 0 auto 12px;
  }

  section.projects div p {
    clear: both;
    text-align: center;
  }
}

@media (max-width: 999px) {
  .projects {
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 700px) {
  #mystix-static {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: center;
  }
}