.cfp-container-1594 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    position: relative;
}

.cfp-item-1594 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cfp-item-1594:hover {
    transform: scale(1.02);
}

.cfp-image-wrapper-1594 {
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px; /* Default fallback */
}

.cfp-image-wrapper-1594 img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Modal Overlay styling */
.cfp-overlay-1594 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cfp-overlay-1594.is-active {
    opacity: 1;
    visibility: visible;
}

.cfp-modal-1594 {
    background: transparent;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    z-index: 9999;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.cfp-overlay-1594.is-active .cfp-modal-1594 {
    transform: scale(1);
}

.cfp-modal-1594 img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px; /* Default fallback */
    margin-bottom: 20px;
}

.cfp-modal-1594 .cfp-content-1594 {
    display: block !important;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cfp-modal-1594 .cfp-title-1594 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.cfp-modal-1594 .cfp-desc-1594 {
    margin: 0;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cfp-container-1594 {
        flex-direction: column;
    }
    
    .cfp-item-1594 {
        width: 100%;
    }
}