/* Reset some WordPress defaults */

body {
    max-width: unset !important;
}

.single-post-template {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove default WordPress content width */
.single-post-template .wp-block-post-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Reset alignments */
.single-post-template .alignwide,
.single-post-template .alignfull {
    margin: 2rem 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Fix image alignments */
.single-post-template .alignleft {
    float: left;
    margin: 0.5rem 1rem 0.5rem 0;
}

.single-post-template .alignright {
    float: right;
    margin: 0.5rem 0 0.5rem 1rem;
}

.single-post-template .aligncenter {
    margin-left: auto;
    margin-right: auto;
}

/* Reset margins and paddings */
.single-post-template .entry-content > * {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Fix caption styles */
.single-post-template .wp-caption {
    max-width: 100% !important;
    margin-bottom: 1.5rem;
}

.single-post-template .wp-caption img {
    width: 100%;
    height: auto;
}

.single-post-template .wp-caption-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Gallery fixes */
.single-post-template .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Table styles */
.single-post-template table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.single-post-template table th,
.single-post-template table td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

.single-post-template table th {
    background-color: #f9fafb;
}
