/* DataPet - Instagram feed (home page) */
.dpinstagram {
  padding: 0 0 80px;
}
.dpinstagram__title {
  margin-bottom: 24px;
  text-align: center;
}
.dpinstagram__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .dpinstagram__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
.dpinstagram__item {
  margin: 0;
}
.dpinstagram__link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f6f4f2;
}
.dpinstagram__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .4s ease;
}
.dpinstagram__link:hover .dpinstagram__img,
.dpinstagram__link:focus-visible .dpinstagram__img {
  transform: scale(1.04);
  opacity: .9;
}
.dpinstagram__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.dpinstagram__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6));
  background: no-repeat center / contain;
}
.dpinstagram__badge--video {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}
.dpinstagram__badge--album {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
}
.dpinstagram__cta {
  margin: 32px 0 0;
  text-align: center;
}
.dpinstagram__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .dpinstagram__img {
    transition: none;
  }
}
