/* The instagram-posts block (blocks/instagram-posts.php): what the Von Block classes cannot say */

.vb-instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 767px) {
  .vb-instagram-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

.vb-instagram-post a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.vb-instagram-shot {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #e6dcc6;
  background: #16120e;
}
.vb-instagram-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.vb-instagram-post a:hover img, .vb-instagram-post a:focus-visible img { transform: scale(1.04); }
.vb-instagram-post a:focus-visible { outline: 2px solid #a4161a; outline-offset: 4px; border-radius: 6px; }
.vb-instagram-post a:hover .vb-instagram-caption { color: #a4161a; }

.vb-instagram-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(22, 18, 14, 0.7);
  color: #fff;
  font-size: 13px;
  line-height: 32px;
  text-align: center;
}

/* two lines at most */
.vb-instagram-caption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .vb-instagram-shot img { transition: none; }
}
