.gallery-card {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 20px;
  
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.gallery-card img {
  width: 100%;
  height: 500px;
  object-fit: cover; 
  border-radius: 4px;
  background-color: #f4f4f9;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#current_image {
    animation: fadeIn 0.4s ease-in-out;
}
.image-details {
  text-align: center;
}
.image-details h2 {
  margin: 0 5px;
  font-size: 1.25rem;
  color: #020202;
}

.image-details p {
  margin: 0;
  font-size: 0.9rem;
  color: #666666;
}
.image-controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.delete-btn {
  background-color: #cc0000;
  transform: translateX(-12px);
}
.delete-btn:hover {
  background-color: #a30000;
}


#comments_list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px; 
}
@keyframes popIn {
  0% { 
      opacity: 0; 
      transform: scale(0.95); 
  }
  100% { 
      opacity: 1; 
      transform: scale(1); 
  }
}
.comment-item {
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 15px;
  animation: popIn 0.3s ease-out forwards;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.comment-author {
  font-weight: bold;
  color: #020202;
  font-size: 1rem;
}

.comment-date {
  font-size: 0.8rem;
  color: #666666;
}

.comment-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.comment-text {
  margin: 0;
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.4;
  flex-grow: 1;
}
.comment-delete-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  margin-top: 0;
}
.comment-controls {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  padding-top: 15px;
}
#galleries_list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery-header {
  text-align: center;
}
#add_image_form {
  background-image: url('../media/image-icon.png');
  background-repeat: no-repeat;
  background-size: 28px 28px;
  background-position: 22px 22px; 
}
#comment_form {
  background-image: url('../media/comment-icon.png');
  background-repeat: no-repeat;
  background-size: 28px 28px;
  background-position: 24px 24px;
}