.track-modal[hidden] {
  display: none;
}
.track-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(26, 31, 60, 0.82);
  backdrop-filter: blur(6px);
}
.track-modal__backdrop {
  position: absolute;
  inset: 0;
}
.track-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  color: var(--text-on-dark);
  --text: var(--text-on-dark);
  --muted: var(--muted-on-dark);
  --line: var(--line-on-dark);
}
.track-modal__image {
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.track-modal__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
}
.track-modal__caption {
  padding: 18px 20px 24px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.track-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text-on-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
}
.track-modal__close:hover,
.track-modal__close:focus-visible {
  border-color: rgba(243, 126, 40, 0.8);
  background: rgba(243, 126, 40, 0.2);
  box-shadow: 0 12px 30px rgba(243, 126, 40, 0.28);
  transform: translateY(-1px);
}
.modal-open {
  overflow: hidden;
}


/* Instagram home section */
.instagram-section__header {
  margin-bottom: 18px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.instagram-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  text-decoration: none;
}

.instagram-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.instagram-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instagram-card__caption {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .instagram-grid {
    grid-template-columns: 1fr;
  }
}
