/* Einzelpaare Plugin Styles - Dance Pair Cards */

/* Picture width 200px */
.ep-einzelpaare-imgwrap {
    position: relative;
    display: inline-block;
    width: 200px;
}

.ep-image {
    width: 200px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.ep-image-placeholder {
    width: 200px;
    aspect-ratio: 3 / 4;
    background: #e0e0e0;
}

/* Gray box: 90% width of picture, starts at 80% height, vertically centered */
.ep-einzelpaare-info-box {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    top: 80%;
    background: #d3d3d3;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
}

/* Inner container: centered content */
.ep-einzelpaare-info-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
}

/* Follow and Leed: Helvetica, bold, centered */
.ep-einzelpaare-follow,
.ep-einzelpaare-leed {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
    display: block;
    width: 100%;
}

/* Leed below follow with some spacing */
.ep-einzelpaare-leed {
    margin-top: 4px;
}

/* Class: Helvetica, not bold, bigger space above, centered, gray color */
.ep-einzelpaare-class {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    margin-top: 12px;
    display: block;
    width: 100%;
    color: #777;
}

/* Card wrapper */
.ep-einzelpaare-card {
    border: none;
    box-shadow: none;
    background: transparent;
    cursor: pointer;
}

/* Modal styling */
.ep-einzelpaare-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 800px;
}

.ep-einzelpaare-modal-inner {
    display: flex;
    position: relative;
    padding: 20px;
    gap: 30px;
}

.ep-einzelpaare-modal-left {
    flex: 0 0 auto;
}

.ep-einzelpaare-modal-media {
    width: 300px;
}

.ep-einzelpaare-modal-media .ep-image {
    width: 100%;
    height: auto;
    display: block;
}

.ep-einzelpaare-modal-right {
    flex: 1;
}

/* Header with follow & leed in bold Helvetica */
.ep-einzelpaare-modal-header {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.ep-einzelpaare-modal-follow,
.ep-einzelpaare-modal-leed,
.ep-einzelpaare-modal-separator {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 1rem;
}

/* Class field in Helvetica, below follow/leed */
.ep-einzelpaare-modal-class {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 16px;
}

/* Bio field with larger space above */
.ep-einzelpaare-modal-bio {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-top: 24px;
}

.ep-einzelpaare-modal-bio p {
    margin: 0 0 12px 0;
}

.ep-einzelpaare-modal-bio p:last-child {
    margin-bottom: 0;
}

.ep-einzelpaare-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ep-einzelpaare-modal-close:hover {
    color: #000;
}

/* Modal overlay backdrop */
.ep-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ep-modal-overlay.hidden {
    display: none;
}

/* Elementor integration */
.elementor .elementor-widget-epa_einzelpaare_single {
    display: inline-block !important;
    vertical-align: top !important;
    width: auto !important;
    margin: 0 8px 16px 8px !important;
}

.elementor .elementor-widget-epa_einzelpaare_single .ep-einzelpaare-card {
    max-width: 220px !important;
    width: 220px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

