.reference-collection {
  width: min(1160px, calc(100% - 48px));
  margin: 54px auto 0;
}

.reference-collection-heading {
  margin-bottom: 24px;
  text-align: center;
}

.reference-collection-heading span {
  display: block;
  margin-bottom: 9px;
  color: #d7a64c;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.reference-collection-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.reference-collection-heading p {
  max-width: 650px;
  margin: 10px auto 0;
  color: #aeb7c2;
  font-size: 0.88rem;
  line-height: 1.65;
}

.reference-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reference-entry {
  overflow: hidden;
  border: 1px solid rgba(216, 166, 76, 0.28);
  border-radius: 9px;
  background: linear-gradient(145deg, #101d2d, #080f1a);
}

.reference-entry summary {
  position: relative;
  display: grid;
  grid-template-columns: 155px 1fr 30px;
  align-items: center;
  min-height: 122px;
  cursor: pointer;
  list-style: none;
}

.reference-entry summary::-webkit-details-marker { display: none; }

.reference-entry summary img {
  width: 100%;
  height: 122px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
}

.reference-entry summary div { padding: 16px 14px; }
.reference-entry summary small { color: #d7a64c; font-size: 0.59rem; font-weight: 800; letter-spacing: 0.13em; }
.reference-entry summary strong { display: block; margin-top: 7px; color: #f4f5f7; font-family: "Playfair Display", serif; font-size: 1.08rem; line-height: 1.18; }

.reference-entry summary::after {
  content: "+";
  color: #e8bd64;
  font-size: 1.5rem;
  font-weight: 300;
}

.reference-entry[open] { grid-column: 1 / -1; border-color: rgba(226, 182, 87, 0.68); }
.reference-entry[open] summary { border-bottom: 1px solid rgba(216, 166, 76, 0.24); }
.reference-entry[open] summary::after { content: "\\2212"; }
.reference-entry[open] .reference-project { width: 100%; margin: 0; padding: 28px 24px 36px; }
.reference-entry[open] .project-intro { margin-top: 0; }

@media (max-width: 700px) {
  .reference-collection { width: min(100% - 32px, 1160px); }
  .reference-collection-grid { grid-template-columns: 1fr; }
  .reference-entry[open] { grid-column: auto; }
  .reference-entry summary { grid-template-columns: 112px 1fr 25px; min-height: 100px; }
  .reference-entry summary img { height: 100px; }
  .reference-entry summary strong { font-size: 0.96rem; }
  .reference-entry[open] .reference-project { padding: 22px 14px 28px; }
}
