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

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

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

.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, rgb(0 0 0 / 0%) 63.82%, rgb(0 0 0 / 84%) 100%);
    padding: 25px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 2;
    border-radius: 6px;
}

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

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

.custom-content {
    margin-top: 10px;
}

.custom-description {
    color: #fff;
    font-family: "mundial", Sans-serif;
    font-size: 16px;
    font-weight: 200;
    line-height: 22px;
    width: 90%;
}

.interest-button {
    color: #fff;
    display: block;
    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: 400;
    letter-spacing: 0.5px;
}

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

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


@media (max-width: 767px) {
    .custom-section {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }

    .custom-image {
        height: 390px;
    }

    .custom-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgb(0 0 0 / 0%) 63.82%, rgb(0 0 0 / 100%) 100%);
        padding: 20px;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        z-index: 2;
        border-radius: 6px;
    }
}