.custom-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.custom-link {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-out;
}


.custom-link:hover .custom-image {
    transform: scale(1.1);
}

.custom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 72.82%, rgba(0, 0, 0, 0.75) 100%);
    padding: 25px;
    display: none;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 2;
}

.custom-title {
    display: flex;
    flex-direction: column;
}

.custom-link h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 100;
    margin-bottom: 0px;
    z-index: 2;
    font-family: "mundial", Sans-serif;
    letter-spacing: 1px;
}

.custom-bannerszovegek {
    color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, transform 0.5s ease;
    transform: translateY(100%);
    margin-top: 10px;
    font-family: "mundial", Sans-serif;
    font-size: 17px;
    font-weight: 200;
    letter-spacing: 0.5px;
    margin-bottom: 0px;
    line-height: 23px;
    width: 90%;
}

.custom-link:hover .custom-bannerszovegek {
    max-height: 100px;
    transform: translateY(0);
}

svg.svghome {
    width: 35px;
    height: auto;
    fill: white;
}


.custom-section.custom-alt .custom-image {
    width: 100%;
    aspect-ratio: 8 / 11;
    object-fit: cover;
    transition: transform 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.custom-section.custom-alt .custom-bannerszovegek {
    font-size: 16px;
}


.custom-title {
    display: flex;
    flex: 1;
}


@media (max-width: 768px) {

    .custom-section {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .custom-title {
        margin-bottom: 0px;
        color: #ffffff;
        font-family: "mundial", Sans-serif;
        font-weight: 300;
        letter-spacing: 1px;
        width: 100%;
        font-size: 30px;
        line-height: 40px;
        display: flex;
        justify-content: flex-end;
    }

    svg.svghome {
        width: 35px;
        height: auto;
        fill: white;
        display: none;
    }

    .custom-section.custom-alt .custom-image {
        aspect-ratio: 9 / 10;
        object-fit: cover;
        height: 350px;
    }
    .custom-bannerszovegek {
        max-height: 125px !important;
        transform: translateY(0) !important; /* Felülírjuk az eredeti transform-ot */
        opacity: 1;
        font-size: 15px;
        line-height: 1.4;
        width: 100%;
    }
    .custom-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgb(0 0 0 / 34%) 72.82%, rgba(0, 0, 0, 0.75) 100%);
        padding: 25px;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        z-index: 2;
    }

}