/* Cards */
.post-card {
  display: flex;
  flex-direction: column;
}

/* Gallery cover card — square with title overlay on hover */
.post-card-gallery-cover {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #15171a;
  text-decoration: none;
}

.post-card-gallery-cover::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-image: var(--lqip);
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  transition: opacity 0.4s ease;
  z-index: 0;
}

@media (hover: hover) {
  .post-card-gallery-cover:hover::before {
    opacity: 0;
  }
}

.post-card-gallery-cover picture,
.post-card-gallery-cover img,
.post-card-gallery-title {
  position: relative;
  z-index: 1;
}

.post-card-gallery-cover picture,
.post-card-gallery-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
  color: transparent;
  font-size: 0;
}

@media (hover: hover) {
  .post-card-gallery-cover:hover picture,
  .post-card-gallery-cover:hover img {
    opacity: 0.6;
  }
}

.post-card-gallery-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.3s ease;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
}


/* Placeholder when no hero image */
.post-card-gallery-cover--placeholder {
  background: var(--color-darkgrey);
}


.post-card-gallery-title span {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  display: block;
}

.post-card-gallery-title time {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  margin-top: 0.4rem;
  opacity: 0.7;
  display: block;
}

@media (max-width: 600px) {
  .post-card-gallery-title {
    text-align: center;
  }
}

.post-card-image-link {
  display: block;
  overflow: hidden;
  margin-bottom: 1.6rem;
  aspect-ratio: 16/9;
  background: var(--color-lightgrey);
}

.post-card-image-link picture,
.post-card-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card-image-link:hover img { transform: scale(1.03); }

.post-card-tag {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-midgrey);
  margin-bottom: 0.8rem;
}

.post-card-title {
  font-size: 2.0rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.post-card-title a { color: var(--color-darkgrey); }
.post-card-title a:hover { text-decoration: underline; }

.post-card-excerpt {
  font-size: 1.4rem;
  color: var(--color-midgrey);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.post-card-meta {
  font-size: 1.2rem;
  color: var(--color-midgrey);
  margin-top: auto;
  padding-top: 0.8rem;
}

/* Post reactions */

open-likes {
  color: var(--color-accent);
}

/* Mastodon comments */
.mastodon-comments {
  padding-top: 3.2rem;
  padding-bottom: 6.4rem;
  border-top: 1px solid var(--color-lightgrey);
}

.comments-title {
  font-size: 1.8rem;
  margin-bottom: 2.4rem;
}

.comments-loading,
.comments-empty {
  color: var(--color-midgrey);
  font-size: 1.4rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin-bottom: 2.4rem;
}

.comment {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.comment-author:hover { text-decoration: none; }

.comment-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.comment-name {
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-darkgrey);
}

.comment-date {
  font-size: 1.1rem;
  color: var(--color-midgrey);
  white-space: nowrap;
  text-decoration: none;
}

.comment-date:hover { color: var(--color-darkgrey); }


.comment-body {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--color-text);
}

.comment-body p { margin: 0; }

.comment-body a { color: var(--color-accent); }

.comments-reply-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.tag {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-midgrey);
  border: 1px solid var(--color-lightgrey);
  padding: 0.4rem 1.0rem;
}

.tag:hover { border-color: var(--color-midgrey); text-decoration: none; }

/* Country silhouette map on gallery pages */
.gallery-map {
  margin-top: 0;
  margin-bottom: 1.6rem;
  width: 80px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-map svg { width: 100%; height: auto; display: block; }
.country-fill { fill: var(--color-lightgrey); }
.location-dot { fill: var(--color-accent); }

/* Section headings */
.section-heading {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-midgrey);
  border-bottom: 1px solid var(--color-lightgrey);
  padding-bottom: 0.8rem;
  margin-bottom: 3.2rem;
}
