/* Fullscreen photo lightbox — full-width image, tweet + comments below */

body.yg-photo-lightbox-open {
  overflow: hidden;
}

.yg-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

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

.yg-photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(4px);
}

.yg-photo-lightbox-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 44px 0 0;
}

.yg-photo-lb-close {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 40px;
  height: 40px;
  border: 1px solid #444;
  border-radius: 50%;
  background: #111;
  color: #ffe566;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.yg-photo-lb-close:hover {
  background: #e21c21;
  color: #fff;
  border-color: #e21c21;
}

.yg-photo-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 64px;
  border: 1px solid #444;
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.92);
  color: #ffe566;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.yg-photo-lb-nav:hover {
  background: #e21c21;
  color: #fff;
  border-color: #e21c21;
}

.yg-photo-lb-prev {
  left: 6px;
}

.yg-photo-lb-next {
  right: 6px;
}

.yg-photo-lb-layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0a0a0a;
}

.yg-photo-lb-stage {
  flex: 0 0 auto;
  width: 100%;
  min-height: 42vh;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 0;
  box-sizing: border-box;
}

.yg-photo-lb-image {
  width: 100%;
  max-width: 100vw;
  max-height: 72vh;
  height: auto;
  object-fit: contain;
  display: block;
}

.yg-photo-lb-side {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #141414;
  border-top: 1px solid #333;
}

.yg-photo-lb-tweet {
  flex: 0 0 auto;
  overflow: visible;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
}

.yg-photo-lb-handle {
  margin: 0 0 4px;
  color: #ffe566;
  font: 600 14px/1.3 system-ui, sans-serif;
}

.yg-photo-lb-date {
  margin: 0 0 10px;
  color: #888;
  font: 12px/1.3 system-ui, sans-serif;
}

.yg-photo-lb-tweet-text {
  color: #eee;
  font: 16px/1.55 Georgia, serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.yg-photo-lb-comments {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding: 14px 20px 20px;
}

.yg-photo-lb-comments-title {
  margin: 0 0 8px;
  color: #ddd;
  font: 600 13px/1.3 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.yg-photo-lb-comments-list {
  flex: 0 0 auto;
  min-height: 48px;
  max-height: 240px;
  overflow: auto;
  margin-bottom: 12px;
}

.yg-photo-lb-comments-empty,
.yg-photo-lb-comments-loading {
  color: #888;
  font: 13px/1.4 system-ui, sans-serif;
}

.yg-photo-lb-comment {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2a2a;
}

.yg-photo-lb-comment-meta {
  margin: 0 0 4px;
  color: #aaa;
  font: 12px/1.3 system-ui, sans-serif;
}

.yg-photo-lb-comment-body {
  margin: 0;
  color: #eee;
  font: 14px/1.45 system-ui, sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.yg-photo-lb-comment-form {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yg-photo-lb-comment-label {
  font: 11px/1.2 system-ui, sans-serif;
  color: #888;
}

.yg-photo-lb-comment-name,
.yg-photo-lb-comment-text {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #444;
  border-radius: 6px;
  background: #0a0a0a;
  color: #eee;
  font: 14px/1.4 system-ui, sans-serif;
  padding: 8px 10px;
}

.yg-photo-lb-comment-submit {
  align-self: flex-start;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: #e21c21;
  color: #fff;
  font: 600 13px/1 system-ui, sans-serif;
  cursor: pointer;
}

.yg-photo-lb-comment-submit:hover {
  background: #c41818;
}

.yg-photo-lb-comment-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.yg-photo-lb-counter {
  margin: 0;
  padding: 8px 0 12px;
  text-align: center;
  color: #aaa;
  font: 12px/1.4 system-ui, sans-serif;
  background: #141414;
  border-top: 1px solid #2a2a2a;
}

.yg-photo-gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #666;
  padding: 24px 12px;
  font: 15px/1.5 Georgia, serif;
}

@media (max-width: 700px) {
  .yg-photo-lb-stage {
    min-height: 36vh;
    max-height: 58vh;
  }

  .yg-photo-lb-image {
    max-height: 58vh;
  }

  .yg-photo-lb-prev {
    left: 2px;
  }

  .yg-photo-lb-next {
    right: 2px;
  }
}
