.reveal-card {
position: relative; /* Establishes containing block for absolute positioning if needed later */
overflow: hidden; /* Clips the content that goes outside the card boundaries */
border-radius: 8px; /* Optional: for rounded corners */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: for a subtle shadow */
max-width: 400px; /* Adjust as needed */
}
.reveal-card__media {
position: relative; /* Good practice for potential overlays */
}
.reveal-card__image {
display: block; /* Prevents extra space below the image */
width: 100%;
height: auto;
}
.reveal-card__content {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background-color: white; /* Or any background color for the content area */
padding: 20px;
transform: translateY(100%); /* Initially hide the content below */
transition: transform 0.3s ease-in-out; /* Smooth transition for the reveal */
}
.reveal-card:hover .reveal-card__content {
transform: translateY(0); /* Slide the content up on hover */
}
.reveal-card__title {
margin-top: 0;
margin-bottom: 10px;
}
.reveal-card__description {
margin-bottom: 15px;
}
.reveal-card__button {
display: inline-block;
padding: 10px 20px;
background-color: #007bff; /* Example button color */
color: white;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.2s ease-in-out;
}
.reveal-card__button:hover {
background-color: #0056b3;
}
.reveal-card__expand {
/* Optional: Style the container for description and button if needed */
}