/*
|--------------------------------------------------------------------------
| PAV Masonry Gallery
|--------------------------------------------------------------------------
*/

.cew-pav-gal {
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
    background-color: #eeeeed;
}

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

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

.cew-pav-gal-header {
    text-align: center;
    margin-bottom: 32px;
}

.cew-pav-gal-heading {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #2D6A4F;
    margin: 0;
}

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

/*
|--------------------------------------------------------------------------
| Masonry
|--------------------------------------------------------------------------
*/

/* CSS columns flow items top-to-bottom per column, not left-to-right */
.cew-pav-gal-masonry {
    columns: 3;
    column-gap: 24px;
}

.cew-pav-gal-item {
    /* stops a card being split across two columns */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;

    display: block;
    overflow: hidden;
    margin: 0 0 24px 0;

    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #bfc9c1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/*
|--------------------------------------------------------------------------
| Photo item
|--------------------------------------------------------------------------
*/

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

.cew-pav-gal-media {
    width: 100%;
    height: 256px;

    background-size: cover;
    background-position: center;
    background-color: #e2e2e2;
}

.cew-pav-gal-caption {
    padding: 16px;

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

/*
|--------------------------------------------------------------------------
| Icon tile
|--------------------------------------------------------------------------
*/

.cew-pav-gal-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 32px;
    min-height: 300px;

    background-color: rgba(15, 82, 56, 0.05);
}

.cew-pav-gal-tile-icon {
    font-size: 48px;
    line-height: 1;
    color: #F4A261;
    margin-bottom: 16px;
}

.cew-pav-gal-tile-caption {
    text-align: center;

    font-size: 24px;
    font-weight: 600;
    font-style: italic;
    line-height: 32px;
    color: #1a1c1c;
}

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

@media (max-width: 1024px) {

    .cew-pav-gal-heading {
        font-size: 32px;
        line-height: 40px;
    }

}

@media (max-width: 768px) {

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

    .cew-pav-gal-container {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    /* offsets only read as intentional across multiple columns */
    .cew-pav-gal-item {
        margin-top: 0 !important;
    }

    .cew-pav-gal-tile-caption {
        font-size: 20px;
        line-height: 28px;
    }

}
