.portfolio-project {
  border-top: 1px solid var(--line);
  padding-block: clamp(20px, 2.6vw, 44px) clamp(40px, 5.5vw, 88px);
}

.project-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  margin: 0 0 clamp(20px, 2vw, 32px);
  text-align: left;
  font-size: clamp(1.75rem, 1.4rem + 1.25vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.project-heading [lang="en"] {
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: normal;
}

.project-heading > span:first-child { text-wrap: balance; }

.project-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(6px, 1vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-image {
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  background: transparent;
}

.gallery-image img, .gallery-image picture {
  display: block;
  width: 100%;
  height: auto;
}

.continuous-gallery { gap: 0; }
.continuous-gallery,
.lightbox-body > img[src^="insta360/"] {
  background-color: #fff;
}
.continuous-gallery li > picture,
.continuous-gallery li > picture > img {
  display: block;
  width: 100%;
  height: auto;
}

.lightbox:has(.aice-enlargement) .lightbox-body {
  display: flex;
}

.lightbox-body > .aice-enlargement {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

