/* ============================================================
   Project detail (single proyecto)
   ============================================================ */

#work-header { padding: 104px 40px 0; }

.work-eyebrow {
  font-size: 9px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.work-eyebrow::before {
  content: ''; display: inline-block;
  width: 18px; height: 1px; background: #fff200; flex-shrink: 0;
}

#project-title {
  font-size: clamp(24px, 3.9vw, 55px);
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.9;
  color: #fff; margin-bottom: 20px;
}

#talent-credit {
  font-size: 12px; font-weight: 300; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.35); margin-bottom: 44px;
}
#talent-credit a { text-decoration: none; transition: color 0.2s; }
#talent-credit a:hover { color: #fff200; }
#talent-credit strong { color: rgba(255,255,255,0.6); font-weight: 400; }

/* ---- Actions row ---- */
#work-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 32px; gap: 24px;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  margin-bottom: 4px;
}
#back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); text-decoration: none;
  padding: 4px; background: none; border: none;
  transition: color 0.22s; flex-shrink: 0;
}
#back-btn:hover { color: #fff200; }
#back-btn svg { width: 22px; height: 22px; display: block; }

/* ---- Share ---- */
#share-wrap { position: relative; flex-shrink: 0; }
#page-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); cursor: pointer;
  padding: 4px; background: none; border: none;
  transition: color 0.22s; flex-shrink: 0;
}
#page-share-btn:hover { color: #fff200; }
#page-share-btn svg { width: 16px; height: 16px; display: block; }

#page-share-dropdown {
  position: absolute; bottom: calc(100% + 10px); right: 0;
  display: flex; gap: 8px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 10;
}
#page-share-dropdown.open { opacity: 1; pointer-events: all; visibility: visible; transform: translateY(0); }

.sib {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(0,0,0,0.4);
  border: none; text-decoration: none; cursor: pointer;
  transition: color 0.2s, background 0.2s; flex-shrink: 0;
}
.sib:hover { color: #060606; background: #fff200; }
.sib svg { width: 14px; height: 14px; display: block; }

/* ---- Photos grid ---- */
#photos-section { padding-bottom: 90px; }
#photos-grid { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.photo-item { position: relative; overflow: hidden; background: #111; }
.photo-item.full { width: 100%; }
.photo-item.half { width: calc(50% - 2px); }
.photo-item img {
  display: block; width: 100%; height: auto;
  transition: transform 0.75s cubic-bezier(0, 0, 0.1, 1);
  will-change: transform;
}
.photo-item:hover img { transform: scale(1.025); }

.photo-share-btn {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); border: none;
  color: #fff; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.photo-share-btn:hover { color: #060606; background: #fff200; }
.photo-share-btn svg { width: 13px; height: 13px; display: block; pointer-events: none; }

.photo-share-panel {
  position: absolute; top: calc(100% + 6px); right: 0;
  display: flex; align-items: center; gap: 4px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transform: translateY(-4px); white-space: nowrap;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.photo-share-panel.open { opacity: 1; pointer-events: all; visibility: visible; transform: translateY(0); }

.psi {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(0,0,0,0.4);
  text-decoration: none; cursor: pointer;
  transition: color 0.18s, background 0.18s; flex-shrink: 0;
}
.psi:hover { color: #060606; background: #fff200; }
.psi svg { width: 13px; height: 13px; display: block; }

/* ---- Video project viewed directly ---- */
#work-video {
  position: relative; width: 100%;
  padding-bottom: 56.25%; height: 0;
  background: #000; margin-top: 4px;
}
#work-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ---- Project nav ---- */
#work-nav {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  z-index: 100; pointer-events: none;
}
.work-nav-btn {
  pointer-events: all;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
  color: rgba(255,255,255,0.85); text-decoration: none; cursor: pointer;
  background: none; border: none; padding: 8px;
  transition: color 0.22s;
}
.work-nav-btn:hover { color: #fff200; }
.work-nav-btn.disabled { color: rgba(200,200,200,0.28); pointer-events: none; }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 768px) {
  #work-header { padding: 88px 24px 0; }
  #project-title { font-size: clamp(20px, 5.4vw, 36px); margin-bottom: 14px; }
  #talent-credit { margin-bottom: 28px; }
  #work-actions { flex-direction: row; align-items: center; gap: 12px; padding-bottom: 24px; }
  #share-wrap { margin-left: auto; }
  .photo-share-panel { gap: 8px; }
  #page-share-dropdown { gap: 8px; }
  #work-nav { bottom: 20px; }
  #photos-section { padding-bottom: 80px; }
}
