.ig-gallery {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem 0 3rem;
}
.ig-gallery__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.ig-gallery__profile-card-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ig-gallery__profile-avatar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  width: 4rem;
  border-radius: 999rem;
  overflow: hidden;
  border: 1px solid #737373;
}
.ig-gallery__profile-avatar {
  width: calc(100% - 0.25rem);
  height: calc(100% - 0.25rem);
  object-fit: cover;
  object-position: center;
  border-radius: 999rem;
}
.ig-gallery__profile-card-inner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}
.ig-gallery__profile-name {
  align-self: end;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
}
.ig-gallery__profile-handle {
  font-size: 0.875rem;
  color: #737373;
}
.ig-gallery__profile-name:hover,
.ig-gallery__profile-handle:hover {
  text-decoration: underline;
  text-underline-position: under;
}
.ig-gallery__profile-details-wrapper {
  display: flex;
  gap: 1.5rem;
}
.ig-gallery__profile-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #737373;
  text-align: center;
  line-height: 120%;
}
.ig-gallery__profile-detail span {
  font-weight: 700;
  font-size: 1.125rem;
  color: #000;
}
.ig-gallery__follow-btn {
  background: #0095f6;
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  line-height: 120%;
}
.ig-gallery__follow-btn:hover {
  background: #1877f2;
}
/*  */
.ig-gallery__posts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  list-style: none;
}
.ig-gallery__posts-list-item {
  display: flex;
}
.ig-gallery__post-link {
  display: flex;
  aspect-ratio: 3/4;
  position: relative;
  width: 100%;
}
.ig-gallery__post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ig-gallery__post-media-type {
  position: absolute;
  right: 0.375rem;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
  opacity: 0.8;
  z-index: 1;
}
.ig-gallery__post-media-type--carousel {
  width: 1.25rem;
  height: 1.25rem;
  top: 0.375rem;
}
.ig-gallery__post-media-type--video {
  width: 1.5rem;
  height: 1.5rem;
  top: 0.25rem;
}
.ig-gallery__post-hover-wrapper {
  opacity: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: 0.3s ease-in-out all;
}
.ig-gallery__post-link:hover .ig-gallery__post-hover-wrapper {
  opacity: 1;
  visibility: visible;
}
.ig-gallery__post-detail {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ig-gallery__post-detail-icon {
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
  object-position: center;
}
.ig-gallery__post-detail-icon--comment {
  width: 1rem;
  height: 1rem;
}
/*  */
@media only screen and (min-width: 380px) {
  .ig-gallery__post-detail {
    font-size: 1rem;
  }
  .ig-gallery__post-detail-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  .ig-gallery__post-detail-icon--comment {
    width: 1.125rem;
    height: 1.125rem;
  }
}
@media only screen and (min-width: 768px) {
  .ig-gallery__post-hover-wrapper {
    flex-direction: row;
    gap: 2rem;
  }
}
@media only screen and (min-width: 1024px) {
  .ig-gallery__header {
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
    max-width: 900px;
    margin: auto;
  }
  .ig-gallery__posts-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
