/* Gallery page styles */
.gallery-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.gallery-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  overflow: hidden;
}

.gallery-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.gallery-header h2 {
  margin: 0;
  font-size: 18px;
  border-bottom: none;
}

.gallery-header h3 {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: normal;
  color: #666;
  border-bottom: none;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 4px;
  background-color: #f8f8f8;
}

.image-item {
  position: relative;
  padding-bottom: 100%;
  overflow: hidden;
}

.image-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-item img:hover {
  transform: scale(1.05);
}

.release-description {
  padding: 16px;
  background-color: #fff;
  border-top: 1px solid #eee;
}

.description-text {
  white-space: pre-wrap;
  line-height: 1.6;
  overflow-wrap: break-word;
  font-size: 14px;
  padding: 0 10px;
  max-height: none;
  color: #333;
}

.description-text h1, .description-text h2, .description-text h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  border-bottom: none;
}

.description-text ul, .description-text ol {
  padding-left: 20px;
  margin: 8px 0;
}

.timeline-separator {
  height: 60px;
  position: relative;
}

.timeline-separator:after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 2px;
  background-color: #ddd;
  transform: translateX(-50%);
}

/* Rating and comments styles */
.rating-container {
  padding: 16px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}

.star-rating {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.rating-label {
  font-weight: bold;
  margin-right: 10px;
}

.stars {
  display: flex;
}

.star {
  color: #ddd;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.star:hover, .star.hover {
  color: #FFD700;
}

.star.active {
  color: #FFD700;
}

.comments-section {
  margin-top: 16px;
}

.comment-form {
  margin-bottom: 16px;
}

.comment-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 8px;
}

.comment-form button {
  background-color: #0366d6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.comment-form button:hover {
  background-color: #0255b3;
}

.comment-list {
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.comment {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: #666;
}

.comment-rating {
  color: #FFD700;
}

.comment-content {
  font-size: 14px;
}

.status-message {
  padding: 12px;
  margin: 10px 0;
  border-radius: 4px;
  text-align: center;
}

.status-success {
  background-color: #e6ffed;
  color: #22863a;
  border: 1px solid #22863a;
}

.status-error {
  background-color: #ffeef0;
  color: #cb2431;
  border: 1px solid #cb2431;
}

/* Pagination styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination-button, .pagination-page {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #0366d6;
  background-color: #fff;
  transition: background-color 0.3s, color 0.3s;
}

.pagination-button:hover, .pagination-page:hover {
  background-color: #f1f8ff;
  border-color: #0366d6;
}

.pagination-page.current {
  background-color: #0366d6;
  color: white;
  border-color: #0366d6;
  font-weight: bold;
}

.pagination-button.disabled {
  color: #ccc;
  border-color: #eee;
  background-color: #f8f8f8;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .pagination-container {
    gap: 8px;
    padding: 0 10px;
  }
  
  .pagination-button, .pagination-page {
    padding: 6px 12px;
    margin: 0 2px;
  }
}
