/* Products page: 5-card gallery + "coming soon" slots */
.gallery.gallery-5{max-width:640px}
@media (min-width:900px){
  .gallery.gallery-5{grid-template-columns:repeat(5,1fr);max-width:1120px;gap:18px}
  .gallery.gallery-5 .g-feature{grid-column:auto;max-width:none}
}
.g-slot .slot-media{background:repeating-linear-gradient(135deg,var(--stone) 0 14px,#f3eee7 14px 28px);box-shadow:none;border:1.5px dashed #cdbfae;display:flex;align-items:center;justify-content:center}
.slot-in{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:16px}
.slot-in .ic{width:60px;height:60px;border-radius:50%;background:#fff;color:var(--accent);display:grid;place-items:center;box-shadow:0 8px 20px -12px rgba(43,31,23,.45)}
.slot-in .ic svg{width:30px;height:30px}
.slot-cat{font-weight:800;font-size:20px;color:var(--ink)}
.slot-pill{display:inline-block;padding:5px 14px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-weight:700;font-size:14px;letter-spacing:.02em}
.g-slot figcaption span{color:var(--muted)}

/* 6 cards: 2 per row on phones, 3 per row on desktop */
@media (min-width:900px){.gallery.gallery-6{grid-template-columns:repeat(3,1fr);max-width:860px}}

/* Photo -> video pairs (before | after). RTL: photo on the right, video on the left */
.pairs{display:grid;grid-template-columns:1fr;gap:34px;margin-top:28px;max-width:560px}
.pair{margin:0;min-width:0}
.pair-row{display:grid;grid-template-columns:1fr 26px 1fr;align-items:end;gap:8px}
.pane{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.pane-tag{display:inline-block;padding:4px 12px;border-radius:999px;background:#fff;color:var(--ink);font-weight:700;font-size:14px;box-shadow:0 4px 12px -8px rgba(43,31,23,.5)}
.pane-tag.tag-video{background:var(--accent);color:#fff}
.pane-media{position:relative;width:100%;aspect-ratio:9/16;border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.pane-media.photo{background:#fff}
.pane-media.photo img{position:absolute;inset:0;width:100%;height:100%}
.pane-media.fit-cover img{object-fit:cover}
.pane-media.fit-contain{background:#fafafa}
.pane-media.fit-contain img{object-fit:contain}
.pair-arrow{align-self:center;margin-top:30px;width:26px;height:26px;color:var(--accent)}
.pair-arrow svg{width:26px;height:26px}
.pair figcaption{margin-top:12px;display:flex;flex-direction:column;gap:2px;font-size:14.5px;color:var(--ink-2);line-height:1.4;text-align:center}
.pair figcaption strong{color:var(--ink);font-size:16px}
@media (min-width:900px){
  .pairs{grid-template-columns:1fr 1fr;max-width:1000px;gap:48px}
  .pair-row{gap:14px;grid-template-columns:1fr 30px 1fr}
}
/* 4 cards: 2 per row on phones, 4 in a row on desktop */
@media (min-width:900px){.gallery.gallery-4{grid-template-columns:repeat(4,1fr);max-width:1000px;gap:18px}}

/* Single video card inside the pairs grid (no photo), sized like one pane of a pair */
.pair-solo{display:flex;flex-direction:column;align-items:center}
.pair-solo .pane{width:calc((100% - 42px)/2)}
@media (min-width:900px){
  .pair-solo{grid-column:2}
  .pair-solo .pane{width:calc((100% - 58px)/2)}
}

/* Campaigns: masonry that keeps each video's own aspect ratio.
   Phones: 2 columns (each .cg-half is one column). Desktop: 4 columns (each .cg-col). */
.cg{display:flex;gap:12px;margin-top:28px;align-items:flex-start}
.cg-half{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:18px}
.cg-col{display:flex;flex-direction:column;gap:18px;min-width:0}
.cg .g-media{background:#d9d2c6;border-radius:14px}
.cg .g-media video{object-fit:contain}
.cg .g-card figcaption{font-size:13.5px}
.cg .g-card figcaption strong{font-size:15px}
.cg .g-media .sound{bottom:8px;left:8px;min-height:30px;padding:0 10px 0 8px;font-size:12px}
@media (min-width:900px){
  .cg{gap:18px;max-width:1000px}
  .cg-half{flex-direction:row;gap:18px}
  .cg-col{flex:1 1 0}
}
@media (max-width:899px){
  .cg .g-media .sound{padding:0;width:32px;min-height:32px;justify-content:center}
  .cg .g-media .sound .sound-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
