/*
|--------------------------------------------------------------------------
| SLT Gallery (Visual Story Cards)
|--------------------------------------------------------------------------
*/

.cew-slt-gal {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #f9f9f8;
}

.cew-slt-gal-container {
    max-width: 1200px;
    margin: auto;
    padding-left: 48px;
    padding-right: 48px;
}

.cew-slt-gal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/*
|--------------------------------------------------------------------------
| Card
|--------------------------------------------------------------------------
*/

.cew-slt-gal-card {
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cew-slt-gal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/*
|--------------------------------------------------------------------------
| Media
|--------------------------------------------------------------------------
*/

.cew-slt-gal-media {
    position: relative;
    height: 256px;
    overflow: hidden;
    background-color: #e2e2e2;
}

.cew-slt-gal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.5s ease;
}

.cew-slt-gal-card:hover .cew-slt-gal-media img {
    transform: scale(1.1);
}

.cew-slt-gal-cat {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 16px;
    background-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.60),
        transparent
    );
}

.cew-slt-gal-cat span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Body
|--------------------------------------------------------------------------
*/

.cew-slt-gal-body {
    padding: 32px;
}

.cew-slt-gal-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #0f5238;
    margin: 0 0 16px 0;
}

.cew-slt-gal-text {
    font-size: 16px;
    line-height: 26px;
    color: #404943;
    margin: 0 0 24px 0;
}

.cew-slt-gal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;
    color: #2D6A4F;
}

.cew-slt-gal-link .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

.cew-slt-gal-link:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {

    .cew-slt-gal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {

    .cew-slt-gal {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .cew-slt-gal-container {
        padding-left: 25px;
        padding-right: 25px;
    }

    .cew-slt-gal-grid {
        grid-template-columns: minmax(0, 1fr);
    }

}
