[hidden] {
  display: none !important;
}
.collection-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 32px;
}
.collection-tabs button {
  font: inherit;
  color: var(--plum);
  background: transparent;
  border: 0;
  border-radius: 30px;
  min-height: 44px;
  padding: 11px 24px;
  cursor: pointer;
}
.collection-tabs button[aria-selected="true"] {
  background: var(--plum);
  color: var(--paper);
}
.our-work-heading {
  margin-bottom: 28px;
}
.our-work-heading h2 {
  font-size: 36px;
}
.our-work-heading p {
  margin-top: 12px;
  color: var(--muted);
}
#our-work-collection .gallery-grid {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.work-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.work-open img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}
.work-open .gallery-caption {
  display: block;
  margin-top: 18px;
}
#our-work-collection figcaption p {
  margin: 12px 0;
  line-height: 1.6;
  color: var(--muted);
  font-size: 14px;
}
.sample-tag {
  font-size: 12px;
  color: var(--muted);
}
.work-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--plum);
  padding: 20px;
}
.work-dialog::backdrop {
  background: #38202f99;
}
.work-dialog img {
  display: block;
  max-height: 65vh;
  max-width: 100%;
  width: auto;
  margin: 16px auto;
  border-radius: 14px;
}
.work-dialog h2 {
  font-size: 28px;
}
.work-close {
  min-height: 44px;
  margin-left: auto;
  display: block;
}
@media (max-width: 700px) {
  #our-work-collection .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .work-open .gallery-caption {
    font-size: 23px;
  }
}
@media (max-width: 450px) {
  #our-work-collection .gallery-grid {
    grid-template-columns: 1fr;
  }
  .collection-tabs button {
    flex: 1;
    padding-inline: 14px;
  }
}

.work-upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  margin-top: 24px;
}
.work-upload input[type="file"] {
  max-width: 100%;
  font-size: 14px;
}
.work-upload label,
.work-preview label {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}
.work-upload .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.work-upload .check input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.work-upload .button,
.work-preview .button {
  margin-top: 8px;
}
.work-preview > img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  border-radius: 16px;
  margin: 20px 0;
  background: var(--studio-rose);
}
.work-preview input,
.work-preview textarea {
  width: 100%;
  box-sizing: border-box;
}
.work-empty {
  padding: 25px;
  background: var(--studio-rose);
  border-radius: 16px;
  align-self: start;
}
.work-empty p {
  margin-top: 12px;
}
.work-library-title {
  margin-top: 48px !important;
}
.work-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.work-library article > img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--studio-rose);
}
.work-library h3 {
  margin: 16px 0 8px;
}
.work-library button {
  margin: 6px 8px 0 0;
}
#work-message {
  min-height: 25px;
  margin-top: 16px;
  font-size: 14px;
}
.work-caption {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.work-collection-status {
  margin: 16px 0;
  color: var(--muted);
}
@media (max-width: 700px) {
  .work-upload-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .work-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  .work-library {
    grid-template-columns: 1fr;
  }
}
