/* Ensure no element in the gallery block gets a border radius */
.gallery-block * {
  border-radius: 0 !important;
}

/* Filter buttons */
.filter-btn {
  background-color: #546672;
  color: #fff;
  padding: 15px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}
.filter-btn:hover {
  background-color: #43515a; /* Slightly darker on hover */
}

/* Thumbnail styling */
.thumbnail {
  position: relative;
  overflow: hidden;
}
.thumbnail img {
  display: block;
  width: 100%;
  transition: transform 0.3s ease;
}
.thumbnail .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(84,102,114,0.3);
  transition: opacity 0.3s ease;
}
.thumbnail:hover .overlay {
  opacity: 0;
}
.thumbnail:hover img {
  transform: scale(1.05);
}

/* Post excerpt overlay styling */
.thumbnail a {
display: block;
position: relative;
}

.thumbnail .post-excerpt {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: rgba(0, 0, 0, 0.7); /* Tinted background */
color: #fff;
padding: 10px;
transform: translateY(100%);
transition: transform 0.3s ease;
text-align: center;
font-size: 14px;
line-height: 1.4;
}

.thumbnail:hover .post-excerpt {
transform: translateY(0);
}

.am-gallery-img{
  aspect-ratio: 3 / 4;
  object-fit: cover;
}