.project-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 32px 48px;
  align-items: start;
}

.project-gallery {
  min-width: 0;
  align-self: start;
}

.project-shot {
  display: block;
  width: 100%;
  height: min(52vh, 520px);
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
}

.project-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 12px;
}

.project-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 56px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.project-nav:hover {
  background: #fff;
  color: #111;
}

.project-menu-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.project-menu {
  width: min(440px, 100vw);
  height: 100vh;
  max-height: 100vh;
  margin: 0 0 0 auto;
  border: 0;
  padding: 64px 12px 32px;
  background: #0a0a0a;
  color: #f5f5f5;
}

.project-menu::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.project-menu-close {
  position: absolute;
  top: 22px;
  right: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.project-facts {
  min-width: 0;
}

.project-form {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-form form,
.project-audiences,
.project-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-form legend {
  margin-bottom: 16px;
}

.project-audiences {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.project-audiences label,
.project-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.project-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-field {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: inherit;
  padding: 14px 16px;
  font: inherit;
}

.project-field::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.project-field:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 0;
}

textarea.project-field {
  min-height: 130px;
  resize: none;
}

.project-submit {
  width: 100%;
  height: 52px;
  border: 0;
  background: #e6e6e6;
  color: #111;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.project-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.project-consent {
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.35;
}

.project-consent input,
.project-audiences input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  border: 1px solid currentColor;
  background: transparent;
}

.project-audiences input {
  border-radius: 50%;
}

.project-audiences input:checked {
  border-width: 6px;
  border-color: #fff;
}

.project-consent input:checked {
  background: #fff;
}

.project-status {
  margin: 0;
}

.project-others {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-others img {
  display: block;
  width: 100%;
  aspect-ratio: 660 / 440;
  object-fit: cover;
}

@media (max-width: 900px) {
  .project-top {
    grid-template-columns: 1fr;
  }

  .project-facts {
    order: 1;
  }

  .project-gallery {
    order: 2;
  }

  .project-form {
    order: 3;
  }

  .project-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-others {
    grid-template-columns: 1fr;
  }
}

.project-lightbox {
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  border: 0;
  padding: 0;
  background: #0a0a0a;
  color: #f5f5f5;
}

.project-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.project-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: #111;
}

.project-lightbox-close,
.project-lightbox-bar button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.project-lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 12px;
}

.project-lightbox-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 8px 16px;
}

.project-lightbox-bar button {
  width: 64px;
  height: 40px;
  font-size: 20px;
}
