/* Team Bio Block Styles */

.wp-block-lakesuperior-team-bio {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem !important;
    max-width: 400px;
}

.wp-block-lakesuperior-team-bio .team-bio-image {
    position: relative;
    overflow: hidden;
}

.wp-block-lakesuperior-team-bio .team-bio-image img {
    width: 100%;
    height: auto;
    display: block;
}

.wp-block-lakesuperior-team-bio .team-bio-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wp-block-lakesuperior-team-bio .team-bio-name {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--wp--preset--color--base, #333);
}

.wp-block-lakesuperior-team-bio .team-bio-title {
    margin: 0;
    font-size: 1rem;
    font-style: normal;
    font-family: var(--wp--preset--font-family--roboto-mono, monospace);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wp--preset--color--base, #666);
    line-height: 1.4;
    text-wrap: balance;
}

.wp-block-lakesuperior-team-bio .team-bio-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--wp--preset--color--base, #333);
}

.wp-block-lakesuperior-team-bio .team-bio-description p {
    margin: 0 0 16px 0;
}

.wp-block-lakesuperior-team-bio .team-bio-description p:last-child {
    margin-bottom: 0;
}

/* Editor-specific styles */
.editor-styles-wrapper .wp-block-lakesuperior-team-bio {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
}

.editor-styles-wrapper .wp-block-lakesuperior-team-bio .team-bio-image {
    position: relative;
    overflow: hidden;
}

.editor-styles-wrapper .wp-block-lakesuperior-team-bio .team-bio-image img {
    width: 100%;
    height: auto;
    display: block;
}

.editor-styles-wrapper .wp-block-lakesuperior-team-bio .team-bio-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.editor-styles-wrapper .wp-block-lakesuperior-team-bio .team-bio-name {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.editor-styles-wrapper .wp-block-lakesuperior-team-bio .team-bio-title {
    margin: 0;
    font-size: 1rem;
    font-style: normal;
    font-family: var(--wp--preset--font-family--roboto-mono, monospace);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wp--preset--color--base, #666);
    line-height: 1.4;
    text-wrap: balance;
}

.editor-styles-wrapper .wp-block-lakesuperior-team-bio .team-bio-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Placeholder styles */
.editor-styles-wrapper .team-bio-image-placeholder {
    margin-bottom: 20px;
}

/* Alignment support */
.wp-block-lakesuperior-team-bio.alignleft {
    float: left;
    margin-right: 2em;
    margin-bottom: 1em;
}

.wp-block-lakesuperior-team-bio.alignright {
    float: right;
    margin-left: 2em;
    margin-bottom: 1em;
}

.wp-block-lakesuperior-team-bio.aligncenter {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.wp-block-lakesuperior-team-bio.alignwide {
    max-width: var(--wp--style--global--wide-size, 1280px);
}

.wp-block-lakesuperior-team-bio.alignfull {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wp-block-lakesuperior-team-bio {
        max-width: 100%;
    }
    
    .wp-block-lakesuperior-team-bio.alignleft,
    .wp-block-lakesuperior-team-bio.alignright {
        float: none;
        margin: 0 0 2em 0;
    }
}

/* Focus styles for accessibility */
.wp-block-lakesuperior-team-bio:focus-within {
    outline: none;
}

/* Team Showcase Grid: when team-bio blocks are in a Group with this class */
.team-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--wp--preset--spacing--30, 1.5rem);
    row-gap: var(--wp--preset--spacing--60, 2rem);
}

.team-showcase-grid .wp-block-lakesuperior-team-bio {
    max-width: none;
    margin-bottom: 0 !important;
    margin-block-start: 0 !important;
}

.team-showcase-grid .wp-block-lakesuperior-team-bio .team-bio-image {
    aspect-ratio: 528/646;
    overflow: hidden;
}

.team-showcase-grid .wp-block-lakesuperior-team-bio .team-bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-showcase-grid .wp-block-lakesuperior-team-bio .team-bio-name {
    font-size: var(--wp--preset--font-size--medium-large, 1.25rem) !important;
    font-weight: 400 !important;
    font-family: var(--wp--preset--font-family--neue-haas-grotesk, sans-serif) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.team-showcase-grid .wp-block-lakesuperior-team-bio .team-bio-title {
    font-size: var(--wp--preset--font-size--small, 0.9rem) !important;
    font-family: var(--wp--preset--font-family--roboto-mono, monospace) !important;
    text-wrap: balance;
}

@media (max-width: 1024px) {
    .team-showcase-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .team-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
