/*
|--------------------------------------------------------------------------
| NOTICIAS ALTEA — ARTÍCULO Y GALERÍA ESTÁTICA
|--------------------------------------------------------------------------
*/

.article-modern {
    --article-green: #15302b;
    --article-green-soft: #285449;
    --article-paper: #fafaf8;
    --article-white: #fafaf8;
    --article-ink: #17211e;
    --article-muted: #69736f;
    --article-line: #d9dfdc;

    padding: 34px 32px 110px;
    color: var(--article-ink);
    background: var(--article-paper);
}

.article-modern__shell {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.article-modern__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    color: var(--article-muted);
    font-size: 13px;
    text-decoration: none;
}

.article-modern__back:hover {
    color: var(--article-green);
}

/*
|--------------------------------------------------------------------------
| ENCABEZADO
|--------------------------------------------------------------------------
*/

.article-modern__intro {
    display: grid;
    grid-template-columns:
        minmax(320px, .82fr)
        minmax(480px, 1.18fr);
    min-height: 480px;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--article-line);
}

.article-modern__heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 6vw, 78px);
    background: var(--article-white);
}

.article-modern__heading h1 {
    margin: 0;
    font: 500 40px/1.3 "Manrope", sans-serif;
    letter-spacing: -.02em;
}

.article-modern__heading time {
    display: inline-block;
    width: max-content;
    margin-top: 28px;
    padding-top: 16px;
    color: var(--article-muted);
    border-top: 1px solid var(--article-line);
    font-size: 13px;
}

.article-modern__cover {
    min-width: 0;
    min-height: 480px;
    margin: 0;
    overflow: hidden;
    background: var(--article-white);
}

.article-modern__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
|--------------------------------------------------------------------------
| CONTENIDO COMPLETO
|--------------------------------------------------------------------------
*/

.article-modern__content {
    width: 100%;
    max-width: none;
    margin: 70px 0 0;
    font-size: 18px;
    line-height: 1.86;
}

.article-modern__content > *:first-child {
    margin-top: 0;
}

.article-modern__content > *:last-child {
    margin-bottom: 0;
}

.article-modern__content p {
    margin: 0 0 1.4em;
}

.article-modern__content h2,
.article-modern__content h3 {
    margin: 1.8em 0 .7em;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.article-modern__content h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.article-modern__content h3 {
    font-size: clamp(22px, 2.4vw, 29px);
}

.article-modern__content ul,
.article-modern__content ol {
    padding-left: 1.3em;
}

.article-modern__content img {
    display: block;
    width: 100%;
    height: auto;
    margin: 40px 0;
}

/*
|--------------------------------------------------------------------------
| GALERÍA ESTÁTICA TIPO MASONRY
|--------------------------------------------------------------------------
|
| Las imágenes mantienen su proporción natural.
| No existen alturas fijas, object-fit, zoom, modal ni botones.
|
*/

.gallery-static {
    width: 100%;
    margin-top: 82px;
}

.gallery-static__grid {
    width: 100%;
    columns: 3;
    column-gap: 12px;
}

.gallery-static__item {
    display: inline-block;
    width: 100%;
    margin: 0 0 12px;
    overflow: hidden;
    vertical-align: top;
    background: transparent;
    break-inside: avoid;
    page-break-inside: avoid;
}

.gallery-static__item img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    margin: 0;
    object-fit: initial;
}

.gallery-static__item figcaption {
    padding: 12px 2px 7px;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| ETIQUETAS
|--------------------------------------------------------------------------
*/

.article-modern__tags {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 58px;
    padding-top: 28px;
    border-top: 1px solid var(--article-line);
}

.article-modern__tags span {
    padding: 9px 13px;
    color: var(--article-green-soft);
    background: #f5f6f4;
    border: 1px solid var(--article-line);
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| EDITOR DE DESCRIPCIONES
|--------------------------------------------------------------------------
*/

.editor-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.editor-gallery-grid:empty {
    display: none;
}

.editor-gallery-item {
    display: grid;
    gap: 11px;
    min-width: 0;
    padding: 12px;
    background: #f6f7f5;
    border: 1px solid var(--article-line);
}

.editor-gallery-item > img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: initial;
}

.editor-gallery-item label {
    display: grid;
    gap: 6px;
    color: var(--article-muted);
    font-size: 12px;
}

.editor-gallery-item textarea {
    min-height: 82px;
    padding: 9px;
    font-size: 12px;
    resize: vertical;
}

.editor-gallery-item > small {
    overflow: hidden;
    color: var(--article-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-gallery-remove {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    color: #7b2e25 !important;
}

.editor-gallery-remove input {
    width: auto;
}

/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    .article-modern__intro {
        grid-template-columns: 1fr;
    }

    .article-modern__heading {
        min-height: 260px;
    }

    .article-modern__cover {
        min-height: 420px;
        max-height: 560px;
    }

    .gallery-static__grid {
        columns: 2;
    }
}

/*
|--------------------------------------------------------------------------
| MÓVIL
|--------------------------------------------------------------------------
*/

@media (max-width: 680px) {
    .article-modern {
        padding: 22px 18px 75px;
    }

    .article-modern__back {
        margin-bottom: 18px;
    }

    .article-modern__intro {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .article-modern__heading {
        min-height: 0;
        padding: 35px 24px 40px;
    }

    .article-modern__heading h1 {
        font-size: 20px;
        line-height: 1.3;
    }

    .article-modern__cover {
        min-height: 0;
        max-height: none;
    }

    .article-modern__cover img {
        height: auto;
        object-fit: initial;
    }

    .article-modern__content {
        margin-top: 48px;
        font-size: 17px;
        line-height: 1.8;
    }

    .gallery-static {
        margin-top: 58px;
    }

    .gallery-static__grid {
        columns: 1;
        column-gap: 0;
    }

    .gallery-static__item {
        margin-bottom: 14px;
    }

    .editor-gallery-grid {
        grid-template-columns: 1fr;
    }
}
