.primary{background:var(--burgundy)!important;color:#fff!important;border-radius:999px}
.w3-button.primary:hover{filter:brightness(1.06)}
.nav .w3-button{border-radius:999px}
.hero{background:linear-gradient(180deg,var(--ivory),#fff)}

/* Collections grid */
.grid-collections{row-gap:16px}
.collection-card{height:640px;display:flex;flex-direction:column;justify-content:flex-start;overflow:hidden;background:#fff;border:2px solid #800020}
.collection-card .thumb{height:540px;display:flex;align-items:center;justify-content:center;padding:24px 8px 8px}
.collection-card .thumb img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.collection-card .meta{flex:1 1 auto;margin-top:auto;text-align:center;padding:12px 12px 12px}
.collection-card .title{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.55rem;color:#800020;margin:0 0 6px}
.collection-card .meta p{font-size:1.15rem;margin:0}
.collection-card .desc{max-height:3.6em;overflow:hidden}

/* Responsive scaling for card heights */
@media (max-width: 992px){
  .collection-card{height:560px}
  .collection-card .thumb{height:480px}
}
@media (max-width: 600px){
  .collection-card{height:480px}
  .collection-card .thumb{height:360px}
}

/* Optional page background for Collections (palette 1) */
.page-collections-bg{background:#F9F0F2}
.page-collections-alt{background:#F3E6EA}
.ink-dark{color:#2E2E2E}
.accent-vinaccia{color:#800020}
.accent-soft{color:#C08FA3}

/* Page title adjustments */
.page-title{font-weight:700;font-style:italic;font-family:'Cormorant Garamond',serif}

/* Home sections (alternating image/text) */
.home-sections{display:flex;flex-direction:column;gap:32px;max-width:1200px;margin-inline:auto}
.home-section{display:flex;align-items:center;gap:24px;padding:24px 12px;border:1px solid rgba(128,0,32,.15);border-radius:16px;background:linear-gradient(180deg, #fff, #fff)}
.home-section.reverse{flex-direction:row-reverse}
.home-media{flex:1;aspect-ratio:auto;min-height:auto;max-width:1200px}
.home-media .ph{aspect-ratio:16/9;min-height:360px;border-radius:12px;background:linear-gradient(135deg,var(--ivory),#fff);box-shadow:0 2px 12px rgba(0,0,0,.06)}
.home-media img{width:100%;height:auto;object-fit:contain;border-radius:12px;display:block}
.home-text{flex:1}
.home-kicker{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.6rem;margin:.25rem 0 1rem;color:#800020}
.home-text p{font-size:1.05rem;line-height:1.6}
@media (min-width: 901px){
  .home-media{min-height:auto}
}
@media (max-width: 900px){
  .home-section,.home-section.reverse{flex-direction:column}
  .home-media{min-height:auto;width:100%}
}
/* Collection detail: cover + description two-columns */
.collection-cover-row .collection-desc{font-size:clamp(1.05rem,1.2vw,1.25rem);line-height:1.7}
@media (max-width:900px){
  .collection-cover-row .collection-desc{margin-top:12px}
}
/* Image captions clamp (2 lines with ellipsis) */
.img-caption.clamp-2{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2; /* standard property for broader compatibility */
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.4;
  max-height:calc(1.4em * 2);
}
/* Back link style */
.back-link{display:inline-block;padding:6px 10px;border:1px solid rgba(128,0,32,.25);border-radius:999px;text-decoration:none;color:#800020;background:rgba(128,0,32,.04)}
.back-link:hover{background:rgba(128,0,32,.08)}
.back-link .icon-left{margin-right:6px;vertical-align:-2px}