/* "On our Instagram" card in the blog sidebar. Brand tokens come from the theme's style.css :root. */
.gp-ig { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--gp-line); border-radius: var(--gp-panel-radius); background: var(--gp-panel); }
.gp-ig::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--gp-cyan), var(--gp-orange)); }
.gp-ig__head { display: flex; align-items: center; gap: 12px; }
.gp-ig__ring { flex: none; width: 48px; height: 48px; padding: 2px; border-radius: 50%; background: conic-gradient(from 200deg, var(--gp-cyan), var(--gp-orange), var(--gp-cyan)); box-sizing: border-box; }
.gp-ig__ring img { display: block; width: 100%; height: 100%; padding: 6px; border: 2px solid var(--gp-panel); border-radius: 50%; background: var(--gp-ink); box-sizing: border-box; }
.gp-ig__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gp-ig h3 { margin: 0; font-size: 20px; }
.gp-ig__handle { align-self: start; color: var(--gp-cyan); font-size: 14px; font-weight: 600; text-decoration: none; }
.gp-ig__handle:hover { text-decoration: underline; }
.gp-ig svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gp-ig__glyph { flex: none; width: 24px; height: 24px; color: var(--gp-mist); }
.gp-ig > p { margin: 0; color: var(--gp-mist); font-size: 14px; }
.gp-ig__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.gp-ig__tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: var(--gp-line); }
.gp-ig__tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--gp-out); }
.gp-ig__tile::after { content: ""; position: absolute; inset: 0; background: rgba(34, 33, 33, .3); opacity: 0; transition: opacity .2s var(--gp-out); }
.gp-ig__tile:hover img, .gp-ig__tile:focus-visible img { transform: scale(1.05); }
.gp-ig__tile:hover::after, .gp-ig__tile:focus-visible::after { opacity: 1; }
.gp-ig__tile:focus-visible { outline-offset: 2px; }
.gp-ig__badge { position: absolute; z-index: 1; top: 8px; right: 8px; width: 18px; height: 18px; color: #fff; stroke-width: 2.2 !important; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }
.gp-ig__actions { display: flex; gap: 8px; }

/* /blog/ index on desktop: the script sets the grid height so the card ends level with the last post card. */
.gp-ig--fit .gp-ig__grid { grid-template-rows: repeat(var(--gp-ig-rows, 3), minmax(0, 1fr)); }
.gp-ig--fit .gp-ig__grid li { min-height: 0; }
.gp-ig--fit .gp-ig__tile { aspect-ratio: auto; height: 100%; }
.gp-ig__actions .gp-blog-btn:first-child { flex: 1; }

/* Sidebar drops below the posts: one row of six, then a swipe row on phones. */
@media (max-width: 1000px) {
	.gp-ig__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.gp-ig__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }
	.gp-ig__grid::-webkit-scrollbar { display: none; }
	.gp-ig__grid li { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
	.gp-ig__tile img, .gp-ig__tile::after { transition: none; }
	.gp-ig__tile:hover img, .gp-ig__tile:focus-visible img { transform: none; }
}
