#work {
  background: #232420;
  color: #f8f7ef;
  padding-block: clamp(50px, 6.3vw, 100px) clamp(56px, 6.6vw, 108px);
}

#work .studio-section-heading {
  color: inherit;
  margin-bottom: clamp(24px, 3.1vw, 48px);
}

#studio-projects {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(13px, 1.5vw, 26px);
  row-gap: clamp(32px, 3.1vw, 50px);
}

#work .work-entry {
  position: relative;
  display: block;
  min-width: 0;
  grid-column: span 3;
}

#work :is(.work-campaign, .work-commerce, .work-portraits) {
  grid-column: span 6;
}

#work .work-portraits {
  margin: 0;
  padding: 0;
  border: 0;
}

#work .work-frame {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 25cqi;
  overflow: hidden;
  background: #343530;
}

#work .work-frame img {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#work .work-campaign .work-frame {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4%;
  padding: 3% 10%;
  background: #ded2bd;
}

#work .work-campaign img,
#work .work-beauty img {
  object-fit: contain;
}

#work .work-jewelry img {
  object-position: 50% 53%;
}

#work .work-beauty .work-frame {
  background: #220a0e;
}

#work :is(.work-commerce, .work-portraits) .work-frame {
  height: auto;
  aspect-ratio: 2 / 1;
}

#work .work-commerce .work-frame {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#work .work-portraits .work-frame {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#work .work-portraits img {
  object-position: 50% 35%;
}

#work .work-caption {
  margin-top: 15px;
  color: #f8f7ef;
}

#work .work-caption h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  color: inherit;
  font-size: clamp(18px, 1.65vw, 27px);
  font-weight: 500;
  letter-spacing: -.025em;
}

#work .work-caption p {
  margin: 6px 0 0;
  color: #c0c1b8;
  font-size: clamp(13px, 1.07vw, 16px);
  line-height: 1.55;
}

#work .work-caption h3::after {
  content: '';
  flex: none;
  width: 13px;
  height: 13px;
  color: #e3e4dd;
  background:
    linear-gradient(currentColor, currentColor) top right / 74% 1px no-repeat,
    linear-gradient(currentColor, currentColor) top right / 1px 74% no-repeat,
    linear-gradient(135deg, transparent 46%, currentColor 47% 53%, transparent 54%) center / 100% 100% no-repeat;
  pointer-events: none;
  transition: transform .22s ease;
}

#work .work-caption a::after {
  position: absolute;
  inset: 0;
  content: '';
}

#work .work-entry:focus-visible,
#work .work-caption a:focus-visible::after {
  outline: 2px solid #eee8b7;
  outline-offset: 5px;
}

#work .work-caption a:focus-visible {
  outline: none;
}

@media (hover: hover) {
  #work .work-entry:hover h3::after {
    transform: translate(2px, -2px);
  }

  #work .work-entry:hover h3 {
    text-decoration: underline;
    text-underline-offset: .17em;
    text-decoration-thickness: 1px;
  }
}

@media (max-width: 1000px) {
  #studio-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #work .work-entry { grid-column: span 1; }
  #work .work-campaign { grid-column: 1 / -1; }
  #work .work-frame { height: auto; aspect-ratio: 1.12; }
  #work .work-campaign .work-frame { aspect-ratio: 2.25; }
}

@media (max-width: 720px) {
  #studio-projects { gap: 27px 13px; }
  #work :is(.work-commerce, .work-portraits) { grid-column: 1 / -1; }
  #work .work-campaign .work-frame { aspect-ratio: 1.72; padding: 3% 6%; gap: 3%; }
  #work .work-jewelry .work-frame, #work .work-beauty .work-frame { aspect-ratio: 1; }
  #work .work-caption { margin-top: 12px; }
  #work .work-caption p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  #work .work-caption h3::after { transition: none; }
}

