@import "https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap";

#instagram {
  overflow: hidden;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#instagram.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

@media (width >= 768px) {
  #instagram.section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

#instagram .display,
#instagram .eyebrow,
#instagram .btn-line {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

#instagram .eyebrow {
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 0.7rem;
}

#instagram h2.display {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

@media (width >= 768px) {
  #instagram h2.display {
    font-size: 3.25rem;
  }
}

.ig-profile {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgb(242 242 244 / 0.1);
  background: rgb(10 10 12 / 0.6);
  overflow: hidden;
}

@media (width < 768px) {
  .ig-profile {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 0.85rem;
    row-gap: 0.75rem;
  }

  .ig-story-ring {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
  }

  .ig-profile > :nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .ig-profile__avatar {
    width: 58px;
    height: 58px;
  }

  .ig-profile__handle {
    font-size: 0.95rem;
    flex-wrap: wrap;
  }

  .ig-profile__meta {
    gap: 0.35rem 0.85rem;
  }

  .ig-profile__teaser {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
  }

  .ig-profile__cta {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
    text-align: center;
    justify-content: center;
  }
}

@media (width >= 768px) {
  .ig-profile {
    grid-template-columns: auto 1fr auto;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
  }
}

.ig-story-ring {
  display: inline-flex;
  flex-shrink: 0;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  border-radius: 999px;
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  padding: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ig-story-ring:hover,
.ig-story-ring:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 0 0 3px rgb(214 41 118 / 0.12);
}

.ig-story-ring__gap {
  display: block;
  padding: 2px;
  border-radius: 999px;
  background: rgb(10 10 12);
}

.ig-story-ring__inner {
  display: block;
  border-radius: 999px;
  overflow: hidden;
  line-height: 0;
}

.ig-profile__avatar {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  object-fit: cover;
  border: 0;
  box-shadow: none;
  display: block;
}

.ig-profile__avatar--fallback {
  display: grid;
  place-items: center;
  font-family: inherit;
  font-weight: 500;
  font-size: 1.1rem;
  color: rgb(242 242 244);
  background: rgb(18 18 22);
}

.ig-profile__handle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgb(242 242 244);
}

.ig-profile__verified {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.ig-profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.35rem;
  color: rgb(242 242 244 / 0.55);
  font-size: 0.8125rem;
}

.ig-profile__meta strong {
  color: rgb(242 242 244);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
}

.ig-profile__teaser {
  margin-top: 0.75rem;
  max-width: 28rem;
  color: rgb(242 242 244 / 0.72);
  font-size: 0.875rem;
  line-height: 1.5;
}

.ig-profile__cta {
  justify-self: start;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
}

@media (width >= 768px) {
  .ig-profile__cta {
    justify-self: end;
  }
}

.ig-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

@media (width >= 640px) {
  .ig-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (width >= 1024px) {
  .ig-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ig-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: rgb(18 18 22);
  display: block;
}

.ig-item img,
.ig-item__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.ig-item__fallback {
  display: grid;
  place-items: center;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 500;
  color: rgb(242 242 244 / 0.25);
}

.ig-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 0.55rem;
  background: linear-gradient(to top, rgb(10 10 12 / 0.88), rgb(10 10 12 / 0.1) 55%, transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ig-item:hover img,
.ig-item:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.ig-item:hover .ig-item__overlay,
.ig-item:focus-visible .ig-item__overlay {
  opacity: 1;
  transform: none;
}

.ig-item__type {
  align-self: flex-start;
  padding: 0.12rem 0.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(242 242 244);
  background: rgb(228 2 43);
  font-weight: 500;
}

.ig-item__caption {
  color: rgb(242 242 244 / 0.92);
  font-size: 0.72rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ig-item__stats {
  color: rgb(242 242 244 / 0.55);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.ig-footer-link {
  margin-top: 1rem;
  text-align: center;
}

.ig-footer-link a {
  color: rgb(242 242 244 / 0.45);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: color 0.2s ease;
}

.ig-footer-link a:hover {
  color: rgb(228 2 43);
}
