/* Post multi-image layouts */
.post-gallery-featured {
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
}

.post-gallery-featured img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.post-gallery-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.post-gallery-duo img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.post-gallery-trio {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.post-gallery-trio .trio-main {
    grid-row: span 2;
}

.post-gallery-trio img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.post-gallery-trio .trio-main img {
    min-height: 290px;
}

.post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.post-gallery-grid .grid-span-full {
    grid-column: 1 / -1;
}

.post-gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.post-gallery-grid img.portrait-tall {
    height: 320px;
}

.post-gallery-inline {
    margin: 2rem 0;
}

@media (max-width: 767px) {
    .post-gallery-duo,
    .post-gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .post-gallery-trio .trio-main {
        grid-row: span 1;
    }
}
