.pgp-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pgp-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid rgb(243 243 243);
    border-radius: 3px;
    overflow: hidden;
    background: var(--pgp-card-bg, #fff);
}

.pgp-card-media {
    line-height: 0;
    position: relative;
    overflow: hidden;
    box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
}

.pgp-card-image {
    width: 100%;
    height: 300px !important;
    display: block;
    object-fit: cover;
    transition: transform 420ms ease;
}

.pgp-card:hover .pgp-card-image {
    transform: scale(1.1);
}


.pgp-card-media::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale3d(1.9, 1.4, 1) rotate(-45deg) translateY(-150%);
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.pgp-card:hover .pgp-card-media::before {
    transform: scale3d(1.9, 1.4, 1) rotate(-45deg) translateY(150%);
}

.pgp-card-body {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1;
}

.pgp-card-title {
    margin: 0;
    position: relative;
    padding: 1.5rem 1rem 0.3rem 1rem;
    font-size: 20px;
}


.pgp-card-description {
    padding: 0.25rem 1rem 0.1rem;
}

.pgp-card-contacts,
.pgp-card-socials {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pgp-card-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    display: flex;
    padding-bottom: 20px;
}

.pgp-contact-item {
    margin: 0;
}



.pgp-contact-item a {
    text-decoration: none;
    position: relative;
    color: inherit;
    transition: color 0.3s ease; 
}


.pgp-contact-item a:hover {
    color: #ae3335; 
}



/* Default icon color */
.pgp-social-link i {
    color: inherit;
    transition: color 200ms ease;
}

.pgp-social-link .dashicons {
    color: inherit;
    transition: color 200ms ease;
}

/* Hover base (white icon) */
.pgp-social-link:hover i {
    color: #ffffff;
}

.pgp-social-link:hover .dashicons {
    color: #ffffff;
}

/* Facebook */
.pgp-social-facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
}

/* Instagram */
.pgp-social-instagram:hover {
    background-color: #E4405F;
    border-color: #E4405F;
}

/* TikTok */
.pgp-social-tiktok:hover {
    background-color: #010101;
    border-color: #010101;
}

/* LinkedIn */
.pgp-social-linkedin:hover {
    background-color: #0A66C2;
    border-color: #0A66C2;
}

/* YouTube */
.pgp-social-youtube:hover {
    background-color: #FF0000;
    border-color: #FF0000;
}

/* Website */
.pgp-social-website:hover {
    background-color: #1f7a8c;
    border-color: #1f7a8c;
}

/* Map */
.pgp-social-map:hover {
    background-color: #2e7d32;
    border-color: #2e7d32;
}

.pgp-contact-link {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    line-height: 1.35;
}



.pgp-contact-link .dashicons {
    flex: 0 0 auto;
}

.pgp-contact-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pgp-contact-static {
    cursor: default;
}

.pgp-card-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 10px;
    margin-top: auto;
    border-top: 1px solid #e1e1e1;
    background: #f3f3f3;
}


.pgp-social-link {
     width: 2.1rem;
    min-width: 2.1rem;
    min-height: 2.1rem;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(243 243 243);
    transition: all 200ms ease;
    color: inherit;
}

button.pgp-social-link {
    padding: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.pgp-social-label {
    line-height: 1;
}

.pgp-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.pgp-modal.is-active {
    display: flex;
}

.pgp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 85%);
}

.pgp-modal-content {
    position: relative;
    width: min(92vw, 760px);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 3px;
    padding: 0.5rem;
    z-index: 1;
}

.pgp-modal-close {
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    margin-left: auto;
    display: block;
    width: 30px;
    height: 30px;
    padding: 0;
    margin-bottom: 5px;
}

.pgp-map {
    width: 100%;
    height: 450px;
    background: #f9f9f9;
    border-radius: 3px;
    box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
    border: 1px solid #e3e3e3;
}

.pgp-map-address {
    margin: 0.75rem 0 0;
}

@media (max-width: 1024px) {
    .pgp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pgp-grid {
        grid-template-columns: 1fr;
    }
}


