.coin-gallery-main {
  background: white;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  padding-top: calc(1.5rem + 48px);
}

.coin-gallery-container {
  max-width: 1440px;
  margin: 0;
}

.coin-gallery-header {
  text-align: left;
  margin-bottom: 0;
}

.coin-gallery-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2.25rem;
  color: black;
  margin-bottom: 2rem;
}

.coin-gallery-title-image {
  margin-bottom: 1.5rem;
  text-align: left;
}

.coin-gallery-title-image-file {
  max-width: 85%;
  max-height: 800px;
  height: auto;
  width: auto;
  display: block;
}

.coin-gallery-placeholder-image {
  width: 100%;
  max-width: 800px;
  height: 300px;
  background-color: var(--color-bg-light);
  border: 2px dashed var(--color-border-medium);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1rem;
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  color: var(--color-text-muted);
  font-size: 1.2rem;
}

.coin-gallery-title-summary {
  font-size: 1.2rem;
  text-align: left;
}

/* Gallery summary overrides for markdown-content base */
.coin-gallery-title-summary p:last-child {
  margin-bottom: 0;
}

.coin-gallery-title-summary img {
  margin: 1rem 0;
}

.coin-gallery-expand-all-section {
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.coin-gallery-expand-all-button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--color-link);
  padding: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.coin-gallery-expand-all-button:hover:not(:disabled) {
  opacity: 0.8;
}

.coin-gallery-expand-all-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.coin-gallery-loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.coin-gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-link);
  animation: coin-gallery-bounce 1.4s infinite ease-in-out both;
}

.coin-gallery-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.coin-gallery-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.coin-gallery-dot:nth-child(3) {
  animation-delay: 0;
}

@keyframes coin-gallery-bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.coin-gallery-coin-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .coin-gallery-title {
    font-size: 1.75rem;
  }

  .coin-gallery-title-summary {
    font-size: 1rem;
  }

  .coin-gallery-coin-list {
    gap: 1rem;
  }
}
