.pc-67c55837-grid {
    display: grid;
    gap: 20px;
}

.pc-67c55837-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
}

/* Hover Shadow Class */
.pc-hover-shadow-yes .pc-67c55837-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pc-67c55837-image-wrapper {
    width: 100%;
    position: relative;
    padding-top: 66%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.pc-67c55837-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Image Hover Zoom Class */
.pc-img-hover-zoom-yes .pc-67c55837-card:hover .pc-67c55837-image {
    transform: scale(1.05);
}

.pc-67c55837-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pc-67c55837-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.pc-67c55837-desc {
    margin: 0 0 20px 0;
    color: #666;
    flex-grow: 1;
}

.pc-67c55837-complete-info {
    display: none; /* Hidden on card */
}

/* Visibility toggles via prefix classes */
.pc-show-desc-yes .pc-67c55837-card .pc-67c55837-desc,
.pc-show-btn-yes .pc-67c55837-card .pc-button-wrapper {
    display: block;   
}

.pc-show-btn-yes .pc-67c55837-card .pc-button-wrapper {
   display: flex;
}

/* Defaults (hide if prefix classes not present) */
.pc-67c55837-card .pc-67c55837-desc,
.pc-67c55837-card .pc-button-wrapper {
    display: none;
}

.pc-button-wrapper {
    width: 100%;
    margin-top: auto;
}

.pc-67c55837-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s, opacity 0.2s;
    text-align: center;
    text-decoration: none;
}

.pc-67c55837-button:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}

.pc-icon {
    display: inline-flex;
    align-items: center;
}

/* Modal Styles */
.pc-67c55837-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

body.admin-bar .pc-67c55837-modal-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .pc-67c55837-modal-overlay {
        top: 46px;
        height: calc(100% - 46px);
    }
}

.pc-67c55837-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pc-67c55837-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pc-67c55837-modal-overlay.active .pc-67c55837-modal-content {
    transform: scale(1) translateY(0);
}

.pc-67c55837-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    color: #000;
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.pc-67c55837-modal-close:hover {
    background: rgba(0,0,0,0.2);
}

.pc-67c55837-modal-body {
    display: flex;
    flex-direction: column;
}

/* Modal Specific Adjustments */
.pc-67c55837-modal-body .pc-67c55837-image-wrapper {
    padding-top: 50%;
}

.pc-67c55837-modal-body .pc-67c55837-card-content {
    padding: 30px;
}

.pc-67c55837-modal-body .pc-67c55837-title {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.pc-67c55837-modal-body .pc-67c55837-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: block !important; /* Force show in modal */
}

.pc-67c55837-modal-body .pc-67c55837-complete-info {
    display: block; /* Show in modal */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.pc-67c55837-modal-body .pc-button-wrapper {
    display: flex !important; /* Force show in modal */
}