/*
|--------------------------------------------------------------------------
| GFL Gallery
|--------------------------------------------------------------------------
*/

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

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

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.cew-gfl-gal-header {
    display: flex;
    align-items: flex-end;
    gap: 24px;

    margin-bottom: 48px;
}

.cew-gfl-gal-header-text {
    max-width: 576px;
}

.cew-gfl-gal-heading {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    color: #0f5238;
    margin: 0 0 8px 0;
}

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

.cew-gfl-gal-rule {
    flex: 1;
    height: 1px;

    background-color: #bfc9c1;
    margin: 0 24px 12px 24px;
}

.cew-gfl-gal-eyebrow {
    flex-shrink: 0;
    padding-bottom: 4px;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: #2D6A4F;
}

/*
|--------------------------------------------------------------------------
| Grid
|--------------------------------------------------------------------------
*/

.cew-gfl-gal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.cew-gfl-gal-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.cew-gfl-gal-item--offset {
    margin-top: 48px;
}

/*
|--------------------------------------------------------------------------
| Image card
|--------------------------------------------------------------------------
*/

.cew-gfl-gal-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;

    border-radius: 16px;
    border: 1px solid rgba(191, 201, 193, 0.20);
    background-color: #e2e2e2;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.10);

    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.cew-gfl-gal-item:hover .cew-gfl-gal-image {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);
}

.cew-gfl-gal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cew-gfl-gal-caption {
    text-align: center;

    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.05em;

    color: #0f5238;
}

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

@media (max-width: 1024px) {

    .cew-gfl-gal-rule {
        margin-left: 16px;
        margin-right: 16px;
    }

}

@media (max-width: 900px) {

    .cew-gfl-gal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* the rule only reads as a divider when it sits between two things */
    .cew-gfl-gal-rule {
        display: none;
    }

}

@media (max-width: 768px) {

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

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

    .cew-gfl-gal-header {
        margin-bottom: 32px;
    }

    .cew-gfl-gal-heading {
        font-size: 28px;
        line-height: 36px;
    }

    /* the stagger has nothing to stagger against in a single column */
    .cew-gfl-gal-item--offset {
        margin-top: 0 !important;
    }

}
