.my-custom-overlay {
position: relative;
padding-top: 10px;
}
.my-custom-text {
display: flex;
align-items: flex-end;
position: absolute;
top: 0; right: 0;bottom: 0; left: 0;
background-color: rgba(255,255,255, .3);
}
.my-custom-text h2 {
width: 100%;
padding: 10px;
text-align: center;
color: #000;
font-family: inherit;
letter-spacing: inherit;
font-size: 24px;
line-height: 1;
font-style: italic;
font-weight: 400;
}
.my-custom-text h2 span:last-child {
font-size: 16px;
}
@media (min-width: 576px) {
.my-custom-text h2 {
font-size: 30px;
}
.my-custom-text h2 span:last-child {
font-size: 20px;
}
}
@media (min-width: 768px) {
.my-custom-text h2 {
font-size: 40px;
}
.my-custom-text h2 span:last-child {
font-size: 24px;
}
}