/* =========================
   GRID
========================= */

.pgd-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    /* espace vertical / horizontal */
    row-gap: 70px;
    column-gap: 30px;

    width: 100%;
    box-sizing: border-box;
}

/* =========================
   ITEM
========================= */

.pgd-post-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* =========================
   IMAGE
========================= */

.pgd-image-link {
    display: block;
    text-decoration: none !important;
}

/* Container image uniforme */
.pgd-image-wrapper {
    position: relative;
    overflow: hidden;

    width: 100%;

    /* ratio rectangle stable */
    padding-top: 62.5%;
}

/* Image uniforme */
.pgd-post-image {
    position: absolute;
    top: 0;
    left: 0;

    width: 100% !important;
    height: 100% !important;

    display: block;

    object-fit: cover !important;
    object-position: center !important;

    transition: transform 0.4s ease;
}

/* Hover image */
.pgd-image-link:hover .pgd-post-image {
    transform: scale(1.05);
}

/* =========================
   TITLE
========================= */

.pgd-post-title {
    margin-top: 18px;
    margin-bottom: 12px;

    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;

    text-decoration: none !important;

    word-break: break-word;
}

/* suppression soulignement */
.pgd-post-title a,
.pgd-post-title a:visited,
.pgd-post-title a:hover,
.pgd-post-title a:focus,
.pgd-post-title a:active {

    text-decoration: none !important;
    color: inherit !important;
}

.pgd-post-title a:hover {
    opacity: 0.8;
}

/* =========================
   DATE
========================= */

.pgd-post-date {
    margin-bottom: 14px;

    font-size: 13px;
    line-height: 1.5;

    font-weight: 500;

    letter-spacing: 0.3px;

    text-transform: uppercase;

    opacity: 0.6;
}

/* =========================
   EXCERPT
========================= */

.pgd-post-excerpt {
    margin-top: 12px;

    font-size: 16px;
    line-height: 1.7;

    word-break: break-word;
}

/* =========================
   PAGINATION
========================= */

.pgd-pagination {
    margin-top: 60px;
    text-align: center;

    width: 100%;
    overflow: hidden;
}

.pgd-pagination .page-numbers {
    display: inline-block;

    margin: 0 6px;
    padding: 4px 8px;

    text-decoration: none !important;
    color: inherit !important;

    font-size: 16px;
    line-height: 1.4;
}

.pgd-pagination .current {
    font-weight: bold;
}

.pgd-pagination .page-numbers:hover {
    opacity: 0.7;
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {

    .pgd-post-grid {
        grid-template-columns: repeat(2, 1fr);

        row-gap: 60px;
        column-gap: 25px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

    .pgd-post-grid {

        grid-template-columns: 1fr;

        row-gap: 50px;

        width: 100%;

        padding-left: 10px;
        padding-right: 10px;

        box-sizing: border-box;
    }

    .pgd-post-item {
        width: 100%;
        max-width: 100%;
    }

    .pgd-post-title {
        font-size: 20px;
    }

    .pgd-post-excerpt {
        font-size: 15px;
    }
}