/* Masonry Grid Styles */
.masonry-grid {
  display: flex;
  margin-left: -16px; /* gutter size offset */
  width: auto;
}

.masonry-grid-column {
  padding-left: 16px; /* gutter size */
  background-clip: padding-box;
}

/* Masonry Grid Item */
.masonry-grid-column > div {
  margin-bottom: 16px;
}

/* App Styles */
.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  padding: 20px;
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 图片保护样式 */
img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* 禁用图片的右键菜单和拖拽 */
img::-webkit-media-controls {
  display: none !important;
}

img::-webkit-media-controls-enclosure {
  display: none !important;
}

/* 防止通过开发者工具轻易复制图片 */
.image-protected {
  position: relative;
}

.image-protected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
  pointer-events: none;
}

/* 禁用文本选择和拖拽 */
.no-select {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .masonry-grid {
    margin-left: -8px;
  }
  
  .masonry-grid-column {
    padding-left: 8px;
  }
  
  .masonry-grid-column > div {
    margin-bottom: 8px;
  }
} 
