/*
 * File: loop-property/assets/css/module-properties.css
 * Styles for the [module_properties] shortcode output.
 * Carousel chrome lives in the theme (e.g. module-exp-properties/module.scss + module.js).
 */

.loop-properties-shortcode-wrapper {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.loop-properties-shortcode-wrapper.properties-grid-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.loop-properties-shortcode-wrapper.properties-grid-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.loop-properties-shortcode-wrapper.properties-grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* carousel="true": grid shell only; width/transform when enhanced is theme-scoped */
.loop-properties-shortcode-wrapper.loop-properties-module-grid {
    display: block;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.loop-properties-shortcode-wrapper.loop-properties-module-grid .loop-properties-module-items {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 992px) {
    .loop-properties-shortcode-wrapper.properties-grid-columns-3,
    .loop-properties-shortcode-wrapper.properties-grid-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .loop-properties-shortcode-wrapper:not(.loop-properties-module-grid) {
        gap: 20px;
        grid-template-columns: 1fr !important;
    }
}
