/**
 * Taxonomy Hero Block Styles
 */

.taxonomy-hero-block {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

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

.taxonomy-hero-block.alignwide {
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-left: auto;
    margin-right: auto;
}

/* Default alignment (no align class) - respects content width */
.taxonomy-hero-block:not([class*="align"]) {
    width: 100%;
    max-width: var(--wp--style--global--content-size, 800px);
    margin-left: auto;
    margin-right: auto;
}

.taxonomy-hero-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.taxonomy-hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .taxonomy-hero-image-wrapper {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .taxonomy-hero-image-wrapper {
        max-height: 300px;
    }
}

/* Optional: Add aspect ratio container for consistent height */
.taxonomy-hero-image-wrapper.aspect-ratio {
    position: relative;
    padding-bottom: 40%; /* 5:2 aspect ratio, adjust as needed */
    height: 0;
}

.taxonomy-hero-image-wrapper.aspect-ratio .taxonomy-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Backend editor preview styles */
.taxonomy-hero-preview-message {
    padding: 30px;
    background: #f0f0f0;
    text-align: center;
    border: 2px dashed #ccc;
    border-radius: 4px;
}

.taxonomy-hero-preview-message p {
    margin: 0;
    color: #666;
    font-size: 14px;
}