.collection-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 4vw 2rem;
  border-bottom: 1px solid var(--frame);
  align-items: start;
}

.overview-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.overview-text .collection-name {
  text-align: left;
  margin-bottom: 0;
}

.overview-text .collection-intro {
  text-align: left;
  max-width: none;
  margin: 0;
}

.collection-overview-controls {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.collection-overview-controls .control-btn,
.detail-image-nav .control-btn {
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.55rem 1.25rem;
  min-width: 3rem;
  min-height: 2.75rem;
  border-radius: 999px;
  border: 1.5px solid rgba(143, 46, 43, 0.45);
  background: rgba(220, 214, 208, 0.45);
  color: rgba(143, 46, 43, 0.85);
  font-weight: 600;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.collection-overview-controls .control-btn:hover,
.collection-overview-controls .control-btn:focus,
.detail-image-nav .control-btn:hover,
.detail-image-nav .control-btn:focus {
  background: rgba(143, 46, 43, 0.92);
  color: #fff;
  border-color: rgba(143, 46, 43, 0.92);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  outline: none;
}

.overview-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  align-items: flex-start;
}

.overview-thumb {
  flex: 0 0 auto;
  width: 155px;
  height: 155px;
  border: 8px solid var(--frame);
  border-bottom-width: 22px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--frame-dark);
  padding: 0;
  cursor: pointer;
  opacity: 0.85;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.overview-thumb:hover,
.overview-thumb:focus,
.overview-thumb.active {
  opacity: 1;
  transform: translateY(-4px) scale(1.03);
  border-color: var(--frame);
  outline: none;
  box-shadow:
    0 0 0 2px var(--accent-strong),
    0 14px 30px rgba(0, 0, 0, 0.25);
}

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

.artwork-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 4vw 3rem;
  align-items: start;
}

.detail-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: var(--frame-dark);
  padding: clamp(1rem, 2.5vw, 2rem);
  border-radius: 4px;
  box-shadow:
    0 28px 80px rgba(15, 15, 18, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 90px 40px rgba(15, 15, 18, 0.45);
  border: 1px solid rgba(44, 40, 38, 0.55);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  min-height: 50vh;
}

.detail-image img {
  width: auto;
  height: 72vh;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
  border: 12px solid var(--frame);
  border-bottom-width: 28px;
  border-radius: 2px;
  background: var(--frame);
}

@media (max-width: 899px) {
  .detail-image img {
    height: 58vh;
    max-height: 64vh;
    border-width: 8px;
    border-bottom-width: 20px;
  }
}

.detail-image-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-info .artwork-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.detail-info .artwork-price {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--clay-rose);
  font-size: 1rem;
}

.detail-info .artwork-description {
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
}

.detail-info .artwork-description p {
  margin-bottom: 1rem;
}

.detail-nav {
  display: inline-flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .collection-overview {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .overview-thumbs {
    justify-content: flex-end;
  }

  .artwork-detail {
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .collection-overview {
    grid-template-columns: 1fr 1.2fr;
  }

  .overview-thumb {
    width: 180px;
    height: 180px;
  }

  .artwork-detail {
    grid-template-columns: 1.5fr 1fr;
  }
}
