/* v2 single project — desktop + mobile */

.v2-project {
  padding-bottom: 0;
}

.v2-back {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.5rem 0 1.75rem;
  color: var(--v2-green);
  font-size: 1rem;
  font-weight: 600;
}

.v2-back img {
  width: 20px;
  height: 16px;
  display: block;
}

.v2-back:hover {
  color: var(--v2-green);
  opacity: 0.85;
}

.v2-project__category {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v2-grey);
}

.v2-project__title {
  margin: 0 0 1rem;
  max-width: 38rem;
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--v2-black);
}

.v2-project__lead {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--v2-black);
}

.v2-project__status {
  margin: 0 0 2rem;
}

.v2-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0 0 3rem;
  padding: 2rem 2.5rem;
  background: #eaeaea;
  border-radius: var(--v2-radius);
}

.v2-meta__item {
  min-width: 0;
}

.v2-meta__label {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--v2-black);
}

.v2-meta__value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--v2-black);
}

.v2-meta__value--areas {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.v2-meta__value--areas > span,
.v2-areas-more__list span {
  display: block;
}

.v2-areas-more {
  margin-top: 0.15rem;
}

.v2-areas-more__toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 0.25rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--v2-green);
  user-select: none;
}

.v2-areas-more__toggle::-webkit-details-marker {
  display: none;
}

.v2-areas-more__close {
  display: none;
}

.v2-areas-more[open] .v2-areas-more__open {
  display: none;
}

.v2-areas-more[open] .v2-areas-more__close {
  display: inline;
}

.v2-areas-more__list {
  margin-top: 0.15rem;
}

.v2-project__section-title {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--v2-black);
}

.v2-project__description {
  margin: 0 0 3rem;
  max-width: 48rem;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--v2-black);
  white-space: pre-wrap;
}

.v2-gallery {
  margin: 0 0 4rem;
}

.v2-gallery__main {
  width: 100%;
  aspect-ratio: 1300 / 678;
  margin-bottom: 1rem;
  border-radius: var(--v2-radius);
  overflow: hidden;
  background: #eaeaea;
}

.v2-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-gallery__main--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #eaeaea;
}

.v2-gallery__main--placeholder img {
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 60%;
  object-fit: contain;
}

.v2-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.v2-gallery__thumb {
  width: 187px;
  height: 118px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  overflow: hidden;
  background: #eaeaea;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.v2-gallery__thumb:hover,
.v2-gallery__thumb.is-active {
  opacity: 1;
}

.v2-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-gallery__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border-radius: var(--v2-radius);
  background: #eaeaea;
  color: var(--v2-grey);
  font-weight: 300;
}

@media (max-width: 1100px) {
  .v2-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-gallery__thumb {
    width: calc((100% - 1.8rem) / 3);
    height: auto;
    aspect-ratio: 187 / 118;
  }
}

@media (max-width: 767px) {
  .v2-back {
    margin: 1.25rem 0 1.5rem;
  }

  .v2-project__category {
    font-size: 0.875rem;
    letter-spacing: 0.09em;
  }

  .v2-project__title {
    max-width: none;
    font-size: 2.125rem;
  }

  .v2-project__lead {
    max-width: none;
    font-size: 1rem;
  }

  .v2-project__status {
    margin-bottom: 2.25rem;
  }

  .v2-meta {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.75rem 2rem;
  }

  .v2-meta__value {
    font-size: 1.5rem;
  }

  .v2-meta__value--areas {
    font-size: 1.125rem;
  }

  .v2-project__section-title {
    font-size: 1.5rem;
  }

  .v2-project__description {
    max-width: none;
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
  }

  .v2-gallery {
    margin-bottom: 3rem;
  }

  .v2-gallery__main {
    aspect-ratio: 340 / 390;
    margin-bottom: 0.75rem;
  }

  .v2-gallery__thumbs {
    gap: 0.5rem;
  }

  .v2-gallery__thumb {
    width: calc((100% - 1rem) / 3);
    height: auto;
    aspect-ratio: 107 / 68;
    border-radius: 15px;
  }
}
