/* layout-07 */

.custom-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px; /* temporary so you can see output */
    margin: 20px auto;
    border-radius: 16px;
    overflow: hidden;
    background: #ddd; /* helps debug */
}

/* gives height — without this nothing shows */
.custom-card-image {
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
    position: relative;
    background: #ccc; /* debug */
}

.custom-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* bottom-left text */
.custom-card-text {
    position: absolute;
    left: 15px;
    bottom: 15px;
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.custom-card-image {
    padding-top: 55%; /* was 56.25% */
}


.custom-card-image img {
    transition: transform 0.4s ease;
}

.custom-card-wrapper:hover .custom-card-image img {
    transform: scale(1.15);
}