/* Full-size profile photo lightbox (profile page) */

.yal-profile-photo-tappable {
  cursor: pointer;
}

.yal-profile-photo-tappable:focus-visible {
  outline: 2px solid #1d9bf0;
  outline-offset: 3px;
}

body.yal-profile-photo-open {
  overflow: hidden;
}

.yal-profile-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.yal-profile-photo-lightbox[hidden] {
  display: none !important;
}

.yal-profile-photo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.yal-profile-photo-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  animation: yal-profile-photo-in 0.22s ease-out;
}

@keyframes yal-profile-photo-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.yal-profile-photo-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.yal-profile-photo-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.yal-profile-photo-bubble {
  width: min(78vw, 360px);
  height: min(78vw, 360px);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.55);
  background: #16181c;
}

.yal-profile-photo-bubble--protected {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 0 0 999px rgba(0, 0, 0, 0.02);
}

.yal-profile-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.yal-profile-photo-img--protected {
  pointer-events: none;
}

.yal-profile-photo-caption {
  text-align: center;
  color: #e7e9ea;
  line-height: 1.35;
}

.yal-profile-photo-caption strong {
  display: block;
  font-size: 1.05rem;
}

.yal-profile-photo-handle {
  color: #71767b;
  font-size: 0.92rem;
}

.yal-profile-photo-notice {
  margin: 0;
  max-width: 320px;
  text-align: center;
  color: #71767b;
  font-size: 0.85rem;
  line-height: 1.4;
}

.yal-profile-photo-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.yal-profile-photo-save {
  border: 1px solid #536471;
  background: #eff3f4;
  color: #0f1419;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
}

.yal-profile-photo-save:hover {
  background: #d7dbdc;
}

.yal-profile-photo-save[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .yal-profile-photo-close {
    top: -2.25rem;
    right: 0.25rem;
  }

  .yal-profile-photo-bubble {
    width: min(84vw, 320px);
    height: min(84vw, 320px);
  }
}
