/* Shortcode Styles */

/* Image Gallery */
.image-gallery {
  margin: 2rem 0;
}

.gallery-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.gallery-caption {
  padding: 0.5rem;
  margin: 0;
  background: #f5f5f5;
  font-size: 0.9rem;
  text-align: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }
}

/* Code Snippet */
.code-snippet {
  margin: 2rem 0;
  position: relative;
}

.code-snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #2d2d2d;
  color: #ffffff;
  border-radius: 4px 4px 0 0;
  font-size: 0.9rem;
  font-family: monospace;
}

.copy-button {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.copy-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.code-snippet pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 0 0 4px 4px;
  background-color: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-top: none;
}

.code-snippet code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}