/* WordPress Block Library Styles */

/* Basic block styles */
.wp-block {
    max-width: 100%;
}

/* Alignment classes */
.alignleft {
    float: left;
    margin-right: 2em;
}

.alignright {
    float: right;
    margin-left: 2em;
}

.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: var(--wp--style--global--wide-size, 1200px);
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Button block */
.wp-block-button {
    margin-bottom: 1.5em;
}

.wp-block-button__link {
    background-color: #32373c;
    border-radius: 9999px;
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.125em;
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    text-align: center;
    text-decoration: none;
    word-break: break-word;
}

/* Image block */
.wp-block-image {
    margin-bottom: 1.5em;
}

.wp-block-image img {
    height: auto;
    max-width: 100%;
}

/* Paragraph block */
.wp-block-paragraph {
    margin-bottom: 1.5em;
}

/* Heading blocks */
.wp-block-heading {
    margin-bottom: 1em;
}

/* List blocks */
.wp-block-list {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

/* Quote block */
.wp-block-quote {
    border-left: 4px solid #000;
    margin: 1.5em 0;
    padding-left: 1em;
}

/* Separator block */
.wp-block-separator {
    border: none;
    border-top: 2px solid #8f98a1;
    margin: 2em auto;
}

/* Spacer block */
.wp-block-spacer {
    clear: both;
}

/* Cover block */
.wp-block-cover {
    align-items: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    min-height: 430px;
    padding: 1em;
    position: relative;
}

/* Group block */
.wp-block-group {
    margin-bottom: 1.5em;
}

/* Columns block */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5em;
}

.wp-block-column {
    flex-basis: 0;
    flex-grow: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Media and text block */
.wp-block-media-text {
    display: grid;
    grid-template-columns: 50% 1fr;
    grid-template-rows: auto;
    margin-bottom: 1.5em;
}

/* Gallery block */
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.wp-block-gallery .blocks-gallery-item {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    position: relative;
}

/* Table block */
.wp-block-table {
    margin-bottom: 1.5em;
}

.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid;
    padding: 0.5em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-media-text {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .alignwide,
    .alignfull {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
}

