/* Sidebar group button */
.group-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: #fff; border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px; padding: 10px 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.group-item:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.07); }
.group-item.active { outline: 2px solid rgba(22,163,74,.4); border-color: rgba(22,163,74,.5); }

.group-thumb {
  width: 42px; height: 42px; border-radius: 9px; object-fit: cover; background: #f1f5f9;
  border: 1px solid rgba(0,0,0,.06);
}

/* Media tiles */
.media-tile {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #f3f4f6; cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease;
}
.media-tile:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0,0,0,.08); }
.media-thumb { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.media-tag {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 7px; border-radius: 999px;
}

/* Modal navigation buttons */
.mm-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff; background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1;
  transition: background .12s ease, transform .12s ease;
}
.mm-nav:hover { background: rgba(255,255,255,.28); transform: translateY(-50%) scale(1.04); }
.mm-nav--left { left: 10px; }
.mm-nav--right { right: 10px; }

/* Modal appear animation */
#media-modal:not(.hidden) .relative { animation: modalIn .18s ease-out; }
@keyframes modalIn { from{ transform: translateY(8px) scale(.98); opacity:.9; } to{ transform: translateY(0) scale(1); opacity:1; } }
