/* WYNEATLAS GRAPES — four-column A4 standard */

.grape-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:13px 0 0;
}

.grape-grid.grapes-2 > .grape:first-child {
  grid-column:2;
}

.grape-grid .grape {
  min-width:0;
  padding:0 8px;
  border-left:1px solid var(--line);
}

.grape-grid .grape:first-child {
  border-left:0;
}

.grape-grid .grape h2 {
  margin:0 0 3px;
  text-align:center;
  font-size:13pt;
  line-height:1.2;
}

.grape-grid .tag {
  min-height:18px;
  color:var(--wine);
  font-weight:700;
  text-align:center;
  text-transform:uppercase;
  font-size:6.8pt;
  line-height:1.2;
}


.grape-grid .grape-photo {
  display:block;
  width:100%;
  height:135px;
  object-fit:cover;
  object-position:center;
  margin:5px 0;
}

.grape-grid .desc {
  min-height:36px;
  color:#505050;
  text-align:center;
  font-size:8pt;
  line-height:1.35;
  font-weight:500;
}

.grape-grid .small {
  font-size:7.5pt;
  line-height:1.36;
}

.grape-grid .label {
  margin:10px 0 5px;
  padding:0 0 4px;
  border-bottom:1px solid rgba(109,122,82,.35);
  color:var(--green);
  font-size:7.2pt;
  font-weight:750;
  text-align:left;
}

.grape-grid .info-photo {
  display:block;
  width:100%;
  height:75px;
  object-fit:cover;
  object-position:center;
  margin:3px 0;
}

/* Larger food-pairing illustrations across all regions */
.grape-grid .info-photo[src$=".food.png"] {
  height:105px;
}

.grape-grid .caption {
  color:var(--grey);
  font-size:8pt;
  line-height:1.35;
}

/* Consistent vertical alignment for all grape profiles, across 1–4 columns. */
.grape-grid { grid-template-rows:repeat(13,auto); }
.grape-grid > .grape { display:grid; grid-row:1 / span 13; grid-template-rows:subgrid; row-gap:0; }
.grape-grid.grapes-2 > .grape:first-child { grid-column:2; }
.grape-grid.grapes-2 > .grape:nth-child(2) { grid-column:3; }
.grape-grid.grapes-4 > .grape:nth-child(1) { grid-column:1; }
.grape-grid.grapes-4 > .grape:nth-child(2) { grid-column:2; }
.grape-grid.grapes-4 > .grape:nth-child(3) { grid-column:3; }
.grape-grid.grapes-4 > .grape:nth-child(4) { grid-column:4; }

/* Keep the entire aroma still life visible in the fixed A4 slot. */
@media print {
  .page .grape-grid img.info-photo[src$=".aroma.png"] {
    object-fit:contain;
  }
}
