/* ===== Image Save Protection ===== */
.work-thumb, .work-thumb img,
.img-skeleton, .img-skeleton img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-touch-callout: none;
}

/* ===== Image Skeleton / Shimmer ===== */
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Work grid thumbnails */
.work-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #E8E8E8 25%, #F0F0F0 50%, #E8E8E8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.dark-mode .work-thumb::before {
  background: linear-gradient(90deg, #2D3237 25%, #383E45 50%, #2D3237 75%);
  background-size: 200% 100%;
}

.work-thumb.loaded::before {
  display: none;
}

.work-thumb img {
  opacity: 0 !important;
  transition: opacity 0.4s ease;
}

.work-thumb.loaded img {
  opacity: 1 !important;
}

/* Work detail content images */
.img-skeleton {
  position: relative;
  display: block;
  max-width: 100%;
  overflow: hidden;
  background: #E8E8E8;
}

.dark-mode .img-skeleton {
  background: #2D3237;
}

.img-skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #E8E8E8 25%, #F0F0F0 50%, #E8E8E8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.dark-mode .img-skeleton::before {
  background: linear-gradient(90deg, #2D3237 25%, #383E45 50%, #2D3237 75%);
  background-size: 200% 100%;
}

.img-skeleton.loaded::before {
  display: none;
}

.img-skeleton img {
  opacity: 0;
  transition: opacity 0.4s ease;
  display: block;
  width: 100%;
  height: auto;
}

.img-skeleton.loaded img {
  opacity: 1;
}
