.image-disclosure {
  box-sizing: border-box;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: #071d34;
  color: #fff;
  font: 400 10px/1.4 Arial, sans-serif;
}

.hero > .image-disclosure,
.home-pattern-hero > .image-disclosure {
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 12px;
}

.project-gallery figure > .image-disclosure {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
}

.portrait-image-frame {
  position: relative;
  width: min(100%, 330px);
}

.portrait-image-frame .portrait {
  display: block;
}

.portrait-image-frame > .image-disclosure {
  position: absolute;
  z-index: 1;
  right: 12px;
  top: 12px;
}

@media (max-width: 600px) {
  .portrait-image-frame {
    width: min(100%, 280px);
  }
}

@media (max-width: 280px) {
  .hero > .image-disclosure,
  .home-pattern-hero > .image-disclosure {
    position: relative;
    top: auto;
    right: auto;
    width: fit-content;
    max-width: calc(100vw - 40px);
    margin: 2px 12px 0;
    justify-self: start;
  }

  .project-gallery-grid:has(> figure > .image-disclosure) {
    grid-auto-rows: auto;
  }

  .project-gallery-grid > figure:has(> .image-disclosure) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    aspect-ratio: auto;
  }

  .project-gallery-grid > figure:has(> .image-disclosure) > img {
    height: 260px;
    flex-shrink: 0;
  }

  .project-gallery-grid > figure:only-child:has(> .image-disclosure) > img {
    height: auto;
  }

  .project-gallery-grid > figure > .image-disclosure {
    position: static;
    order: -1;
    margin: 2px 12px;
  }

  .project-gallery-grid > figure:has(> .image-disclosure) > figcaption {
    position: static;
  }
}
