/* YONDR compact Photos & Videos profile preview */
.y8c-profile-page .yonder-media-card {
  position: relative;
  margin: 18px 0 !important;
  padding: 22px 22px 20px !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(43,45,66,.08) !important;
  box-shadow: 0 16px 42px rgba(43,45,66,.07) !important;
  overflow: hidden;
}
.y8c-profile-page .yonder-media-card-head,
.y8c-profile-page .yonder-media-card-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.y8c-profile-page .yonder-media-card-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.y8c-profile-page .yonder-media-title-dot {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1976ff,#7b35ff);
  box-shadow: 0 0 0 8px rgba(37,96,255,.08);
}
.y8c-profile-page .yonder-media-card-title h5 {
  margin: 0 !important;
  color: #11152c !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  letter-spacing: -.03em;
}
.y8c-profile-page .yonder-media-see-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2768ff;
  font-size: 15px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.y8c-profile-page .yonder-media-see-all span {
  font-size: 24px;
  line-height: .8;
}
.y8c-profile-page .yonder-media-card-subhead {
  margin-top: 18px;
  align-items: flex-start;
}
.y8c-profile-page .yonder-media-counts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  min-width: 0;
}
.y8c-profile-page .yonder-media-counts span {
  color: #6b6f8d;
  font-size: 15px;
  font-weight: 800;
}
.y8c-profile-page .yonder-media-counts b {
  color: #6d43ff;
  font-weight: 950;
}
.y8c-profile-page .yonder-media-owner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.y8c-profile-page .yonder-media-owner-action {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  color: #58607d;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 800;
}
.y8c-profile-page .yonder-media-owner-action span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg,rgba(35,108,255,.10),rgba(108,59,255,.12));
  color: #11152c;
  border: 1px solid rgba(43,45,66,.08);
  font-size: 24px;
  line-height: 1;
}
.y8c-profile-page .yonder-media-preview-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 1fr);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 14px 2px 4px;
  margin: 0 -2px;
}
.y8c-profile-page .yonder-media-video-row {
  grid-auto-columns: minmax(104px, 1fr);
  padding-top: 18px;
}
.y8c-profile-page .yonder-media-preview-row::-webkit-scrollbar {
  height: 0;
  width: 0;
}
.y8c-profile-page .yonder-media-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  border-radius: 18px;
  background: #eef0f7;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(43,45,66,.08);
  scroll-snap-align: start;
}
.y8c-profile-page .yonder-media-video-thumb {
  border-radius: 16px;
}
.y8c-profile-page .yonder-media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.y8c-profile-page .yonder-media-more-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg,rgba(17,21,44,.55),rgba(109,67,255,.45));
  font-size: 24px;
  font-weight: 950;
}
.y8c-profile-page .yonder-media-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #11152c;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
  font-size: 18px;
  padding-left: 2px;
}
.y8c-profile-page .yonder-media-duration {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 9px;
  background: rgba(17,21,44,.72);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}
.y8c-profile-page .yonder-media-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px 0 0;
  color: #8a8fa6;
  font-size: 13px;
  font-weight: 800;
}
.y8c-profile-page .yonder-media-swipe-hint span {
  font-size: 22px;
  line-height: .8;
}
.y8c-profile-page .yonder-media-empty-state {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(43,45,66,.14);
  background: rgba(247,248,255,.78);
  color: #6f748e;
  text-align: center;
  font-weight: 750;
}
.y8c-profile-page .yonder-media-empty-state p { margin: 0; }
.y8c-profile-page .yonder-media-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.y8c-profile-page .yonder-media-empty-actions a {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg,#1976ff,#7b35ff);
  color: #fff !important;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none !important;
}

.yonder-media-lock-scroll { overflow: hidden !important; }
.yonder-media-overlay,
.yonder-media-viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  background: rgba(248,249,255,.98);
  color: #11152c;
}
.yonder-media-overlay.is-open,
.yonder-media-viewer.is-open { display: flex; }
.yonder-media-overlay {
  flex-direction: column;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}
.yonder-media-overlay-head,
.yonder-media-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}
.yonder-media-overlay-head h3 {
  margin: 0;
  color: #11152c;
  font-size: 22px;
  font-weight: 950;
}
.yonder-media-close,
.yonder-media-viewer-close,
.yonder-media-viewer-prev,
.yonder-media-viewer-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(43,45,66,.10);
  border-radius: 50%;
  background: #fff;
  color: #11152c;
  box-shadow: 0 8px 22px rgba(43,45,66,.08);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.yonder-media-tabs {
  display: flex;
  gap: 10px;
  max-width: 960px;
  width: 100%;
  margin: 18px auto 16px;
}
.yonder-media-tab {
  border: 1px solid rgba(43,45,66,.08);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  color: #6b6f8d;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.yonder-media-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg,#1976ff,#7b35ff);
  border-color: transparent;
}
.yonder-media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 40px;
  overflow-y: auto;
}
.yonder-media-gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  background: #eef0f7;
  cursor: pointer;
}
.yonder-media-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yonder-media-viewer {
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
  background: rgba(10,12,24,.96);
  color: #fff;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
}
.yonder-media-viewer-head {
  max-width: 1200px;
  color: #fff;
}
.yonder-media-viewer-counter {
  font-size: 14px;
  font-weight: 850;
  color: rgba(255,255,255,.86);
}
.yonder-media-viewer-close,
.yonder-media-viewer-prev,
.yonder-media-viewer-next {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
}
.yonder-media-viewer-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-width: 1200px;
  width: 100%;
  margin: 12px auto 0;
}
.yonder-media-viewer-stage img,
.yonder-media-viewer-stage video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 18px;
  object-fit: contain;
  background: #000;
}
.yonder-media-viewer-prev,
.yonder-media-viewer-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.yonder-media-viewer-prev { left: 10px; }
.yonder-media-viewer-next { right: 10px; }
@media (max-width: 700px) {
  .y8c-profile-page .yonder-media-card {
    padding: 18px 16px 17px !important;
    border-radius: 26px !important;
  }
  .y8c-profile-page .yonder-media-card-title h5 {
    font-size: 20px !important;
  }
  .y8c-profile-page .yonder-media-card-subhead {
    margin-top: 14px;
  }
  .y8c-profile-page .yonder-media-counts {
    gap: 18px;
  }
  .y8c-profile-page .yonder-media-preview-row {
    grid-auto-columns: minmax(96px, 1fr);
    gap: 9px;
  }
  .y8c-profile-page .yonder-media-video-row {
    grid-auto-columns: minmax(82px, 1fr);
  }
  .y8c-profile-page .yonder-media-thumb {
    border-radius: 14px;
  }
  .y8c-profile-page .yonder-media-owner-action span {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .yonder-media-gallery-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
  }
  .yonder-media-viewer-prev,
  .yonder-media-viewer-next { display: none; }
}

/* YONDR Photos & Videos Concept Grid refinements */
.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid {
  margin: 18px 0 !important;
  padding: 20px 18px 18px !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.97) !important;
  border: 1px solid rgba(43,45,66,.08) !important;
  box-shadow: 0 18px 46px rgba(43,45,66,.07) !important;
}

.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-card-head {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  margin-bottom: 16px;
}

.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-card-title {
  gap: 12px;
  min-width: 0;
}

.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-title-dot {
  width: 16px;
  height: 16px;
  min-width: 16px;
  box-shadow: 0 0 0 7px rgba(37,96,255,.08);
}

.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-card-title h5 {
  font-size: 24px !important;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.y8c-profile-page .yonder-media-inline-counts {
  justify-self: end;
  color: #777c96;
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}

.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-see-all {
  justify-self: end;
  color: #6d43ff;
  font-size: 16px;
  font-weight: 900;
}

.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-card-subhead,
.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-preview-row,
.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-swipe-hint {
  display: none !important;
}

.y8c-profile-page .yonder-media-concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.y8c-profile-page .yonder-media-concept-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #eef0f7;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(43,45,66,.075);
}

.y8c-profile-page .yonder-media-concept-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.y8c-profile-page .yonder-media-concept-tile .yonder-media-play-icon {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.y8c-profile-page .yonder-media-concept-more {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(109,67,255,.12);
  background:
    radial-gradient(circle at 20% 15%, rgba(35,108,255,.10), transparent 34%),
    linear-gradient(135deg, rgba(247,248,255,.96), rgba(239,233,255,.96));
  color: #6d43ff;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 24px rgba(43,45,66,.055);
}

.y8c-profile-page .yonder-media-concept-more-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(109,67,255,.10);
  color: #6d43ff;
  font-size: 24px;
  line-height: 1;
}

.y8c-profile-page .yonder-media-concept-more strong {
  display: block;
  margin-top: 2px;
  color: #414965;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.y8c-profile-page .yonder-media-concept-more small {
  display: block;
  color: #70758e;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 750;
}

.y8c-profile-page .yonder-media-concept-more em {
  display: block;
  margin-top: 6px;
  color: #2768ff;
  font-size: 13px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 640px) {
  .y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid {
    padding: 18px 14px 16px !important;
    border-radius: 26px !important;
  }

  .y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-card-head {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
  }

  .y8c-profile-page .yonder-media-inline-counts {
    grid-column: 1 / 2;
    grid-row: 2;
    justify-self: start;
    margin-left: 28px;
    font-size: 13px;
  }

  .y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-see-all {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 15px;
  }

  .y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-card-title h5 {
    font-size: 22px !important;
  }

  .y8c-profile-page .yonder-media-concept-grid {
    gap: 10px;
  }

  .y8c-profile-page .yonder-media-concept-tile {
    border-radius: 14px;
  }

  .y8c-profile-page .yonder-media-concept-more strong {
    font-size: 26px;
  }

  .y8c-profile-page .yonder-media-concept-more-icon {
    width: 34px;
    height: 34px;
    font-size: 21px;
  }
}

@media (max-width: 380px) {
  .y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-card-title h5 {
    font-size: 20px !important;
  }
  .y8c-profile-page .yonder-media-concept-grid {
    gap: 8px;
  }
  .y8c-profile-page .yonder-media-concept-more strong {
    font-size: 23px;
  }
  .y8c-profile-page .yonder-media-concept-more small,
  .y8c-profile-page .yonder-media-concept-more em {
    font-size: 12px;
  }
}

/* Header alignment fix: keep Photos & Videos, media counts, and See all aligned on the same top baseline */
.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-card-head {
  align-items: start !important;
  padding-top: 0 !important;
}

.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-card-title,
.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-inline-counts,
.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-see-all {
  align-self: start !important;
  margin-top: 0 !important;
  line-height: 1.1 !important;
}

.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-card-title h5 {
  line-height: 1.1 !important;
}

.y8c-profile-page .yonder-media-inline-counts,
.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-see-all {
  font-size: 18px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
}

.y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-see-all span {
  font-size: 18px !important;
  line-height: 1 !important;
}

@media (max-width: 640px) {
  .y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-card-head {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: start !important;
    column-gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .y8c-profile-page .yonder-media-inline-counts {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin-left: 0 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  .y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-see-all {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: start !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  .y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-see-all span {
    font-size: 14px !important;
  }
}

@media (max-width: 420px) {
  .y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-card-title h5 {
    font-size: 20px !important;
  }

  .y8c-profile-page .yonder-media-inline-counts,
  .y8c-profile-page .yonder-media-card.is-yonder-media-concept-grid .yonder-media-see-all {
    font-size: 12px !important;
  }
}
