/* =========================================
   Art / Collections Page
   ========================================= */

.art-page {
  width: 100%;
}




/* ---- Collection Block ---- */

.collection {
  border-bottom: 1px solid var(--color-border);
}

.collection__header {
  padding: 2rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.collection__header-main {
  flex: 1;
}

.collection__date {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #888;
  margin-left: 2rem;
  padding-top: 0.25rem;
}

.collection__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.collection__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 600px;
}

/* ---- Image Grid ---- */

.collection__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: -1px;
}

.collection__item {
  padding: 1.5rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.collection__item-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.75rem;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Remove right border on last item of each row */
.collection__item:nth-child(3n) {
  border-right: none;
}

.collection__image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.collection__image-wrapper img {
  max-width: 100%;
  max-height: 400px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ---- Mobile ---- */

@media (max-width: 768px) {
  .art-page__title {
    font-size: 1.5rem;
  }

  .collection__title {
    font-size: 1.25rem;
  }

  .collection__grid {
    grid-template-columns: 1fr 1fr;
  }

  .collection__item:nth-child(3n) {
    border-right: 1px solid var(--color-border);
  }

  .collection__item:nth-child(2n) {
    border-right: none;
  }

  .collection__item {
    padding: 0.75rem;
  }
}
