.inner {
border: 1px solid #ffffff;
position: relative;
}

.inner:hover .transparent-box {
background-color: rgba(0, 0, 0, 0.6);
}

.inner:hover .caption {
transform: translateY(-5px);
}

.inner .thumbnail {
width: 100%;
}

.caption {
color: white;
transition: transform 0.3s ease, opacity 0.3s ease;
font-size: 1.5rem;
}

.transparent-box {
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.5);
position: absolute;
top: 0;
left: 0;
transition: background-color 0.3s ease;
display: flex;
justify-content: center;
align-items: center;
}
