.sc-62f7a8f1-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.sc-62f7a8f1-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    cursor: pointer;
    background-color: #000;
}

.sc-62f7a8f1-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sc-62f7a8f1-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* transition-duration is set via Elementor controls */
    transition-property: opacity, transform;
    transition-timing-function: ease-in-out;
    transform: scale(1);
}

.sc-62f7a8f1-image.active {
    opacity: 1;
}

/* Ken Burns effect on hover, applied only if the setting is ON */
.sc-62f7a8f1-card.has-ken-burns:hover .sc-62f7a8f1-image.active {
    transform: scale(1.15);
    /* Override transition duration for the transform to make it slow and smooth,
       while opacity transition still uses the custom speed. */
    transition: opacity 1s ease-in-out, transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sc-62f7a8f1-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.4s ease;
    z-index: 2;
}

.sc-62f7a8f1-content-top {
    position: absolute;
    top: 40px;
    width: 100%;
    z-index: 3;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.sc-62f7a8f1-number {
    font-size: 60px;
    font-weight: 200;
    line-height: 1;
    margin-bottom: 5px;
}

.sc-62f7a8f1-category {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.sc-62f7a8f1-content-main {
    position: relative;
    z-index: 3;
    transition: transform 0.4s ease;
    margin-top: auto;
    margin-bottom: auto;
}

.sc-62f7a8f1-title {
    font-size: 36px;
    margin: 0;
    color: #fff;
    font-weight: 500;
}

.sc-62f7a8f1-content-hover {
    position: absolute;
    bottom: 40px;
    width: 100%;
    padding: 0 30px;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.sc-62f7a8f1-details {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.sc-62f7a8f1-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sc-62f7a8f1-button:hover {
    background-color: #ddd;
    color: #000;
}

/* Hover States for slidedown / slide up */
.sc-62f7a8f1-card:hover .sc-62f7a8f1-content-top {
    transform: translateY(-15px);
}

.sc-62f7a8f1-card:hover .sc-62f7a8f1-content-main {
    transform: translateY(-30px);
}

.sc-62f7a8f1-card:hover .sc-62f7a8f1-content-hover {
    opacity: 1;
    transform: translateY(0);
}
