/* Explain: Styles for the Calypso gallery strip and stack components. */
/* ---------- Calypso gallery strip ---------- */
.gallery-strip {
    display: grid;
    gap: 0.6rem;
    margin-top: 2.5rem;
}

.gallery-stack {
    display: grid;
    gap: 0.6rem;
    min-height: 0;
}

.gallery-strip .photo-frame {
    min-height: 0;
    overflow: hidden;
}

.gallery-strip .photo-frame img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.gallery-stack .photo-frame img {
    aspect-ratio: 16 / 9;
}

.gallery-strip > .photo-frame img {
    aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
    .gallery-strip {
        grid-template-columns: 1fr 1.4fr;
        height: 360px !important;
        max-height: 360px !important;
        overflow: hidden;
    }

    .gallery-stack {
        grid-template-rows: 1fr 1fr;
        overflow: hidden;
    }

    .gallery-strip .photo-frame {
        display: flex;
        flex-direction: column;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden;
    }

    .gallery-strip .photo-frame img {
        flex: 1 1 auto;
        height: 100% !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
    }

    .gallery-strip .photo-frame .photo-caption {
        flex: 0 0 auto;
    }
}