/* Portfolio only. Change opacity to make the logo stronger or fainter. */
#portfolio {
  --watermark-opacity: 0.16;
  --watermark-size: 170px;
}
.portfolio-photo {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.portfolio-photo::after,
.portfolio-enlarged::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/logo.png");
  background-repeat: repeat;
  background-size: var(--watermark-size, 170px) auto;
  opacity: var(--watermark-opacity, 0.16);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.portfolio-photo:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.portfolio-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-lightbox {
  max-width: 96vw;
  max-height: 96vh;
  padding: 50px 16px 16px;
  background: #0a151e;
  color: #edf6f7;
  border: 2px solid var(--cyan);
}
.portfolio-lightbox::backdrop {
  background: #000d;
}
.portfolio-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 1px solid var(--cyan);
  background: #101e29;
  color: #edf6f7;
  padding: 5px 12px;
  cursor: pointer;
}
.portfolio-enlarged {
  position: relative;
  width: fit-content;
  margin: auto;
  --watermark-size: 220px;
}
.portfolio-enlarged img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(96vw - 40px);
  max-height: calc(96vh - 90px);
  object-fit: contain;
}
