/* me-grid.css */

/**
 * Grid System inspired by Bootstrap
 * Author: ModernEarth | Julius Garcia
 * Description: A custom responsive grid system with prefixed classes and responsive containers.
 */

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fluid Container */
.me-container-fluid {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

/* Centered Containers */
.me-container,
.me-container-sm,
.me-container-md,
.me-container-lg,
.me-container-xl,
.me-container-xxl {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
    display: block;
}

@media (min-width: 576px) {
    .me-container, .me-container-sm {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .me-container, .me-container-sm, .me-container-md {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .me-container, .me-container-sm, .me-container-md, .me-container-lg {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .me-container, .me-container-sm, .me-container-md, .me-container-lg, .me-container-xl {
        max-width: 1200px;
    }
}

@media (min-width: 1400px) {
    .me-container, .me-container-sm, .me-container-md, .me-container-lg, .me-container-xl, .me-container-xxl {
        max-width: 1420px;
    }
}

/* Specific responsive containers */
@media (min-width: 768px) {
    .me-container-sm {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .me-container-sm, .me-container-md {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .me-container-sm, .me-container-md, .me-container-lg {
        max-width: 1200px;
    }
}

@media (min-width: 1400px) {
    .me-container-sm, .me-container-md, .me-container-lg, .me-container-xl {
        max-width: 1420px;
    }
}

/* Row */
.me-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

/* Columns */
[class*='me-col-'] {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

/* Column Widths */
.me-col-12 { flex: 0 0 100%; max-width: 100%; }
.me-col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.me-col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.me-col-9  { flex: 0 0 75%; max-width: 75%; }
.me-col-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
.me-col-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
.me-col-6  { flex: 0 0 50%; max-width: 50%; }
.me-col-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
.me-col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.me-col-3  { flex: 0 0 25%; max-width: 25%; }
.me-col-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
.me-col-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }

/* Responsive Columns */
@media (min-width: 576px) {
    .me-col-sm-12 { flex: 0 0 100%; max-width: 100%; }
    .me-col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .me-col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .me-col-sm-9  { flex: 0 0 75%; max-width: 75%; }
    .me-col-sm-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .me-col-sm-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .me-col-sm-6  { flex: 0 0 50%; max-width: 50%; }
    .me-col-sm-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .me-col-sm-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .me-col-sm-3  { flex: 0 0 25%; max-width: 25%; }
    .me-col-sm-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .me-col-sm-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }
}

@media (min-width: 768px) {
    .me-col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .me-col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .me-col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .me-col-md-9  { flex: 0 0 75%; max-width: 75%; }
    .me-col-md-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .me-col-md-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .me-col-md-6  { flex: 0 0 50%; max-width: 50%; }
    .me-col-md-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .me-col-md-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .me-col-md-3  { flex: 0 0 25%; max-width: 25%; }
    .me-col-md-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .me-col-md-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }
}

@media (min-width: 992px) {
    .me-col-lg-12 { flex: 0 0 100%; max-width: 100%; }
    .me-col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .me-col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .me-col-lg-9  { flex: 0 0 75%; max-width: 75%; }
    .me-col-lg-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .me-col-lg-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .me-col-lg-6  { flex: 0 0 50%; max-width: 50%; }
    .me-col-lg-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .me-col-lg-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .me-col-lg-3  { flex: 0 0 25%; max-width: 25%; }
    .me-col-lg-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .me-col-lg-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }
}

@media (min-width: 1200px) {
    .me-col-xl-12 { flex: 0 0 100%; max-width: 100%; }
    .me-col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .me-col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .me-col-xl-9  { flex: 0 0 75%; max-width: 75%; }
    .me-col-xl-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .me-col-xl-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .me-col-xl-6  { flex: 0 0 50%; max-width: 50%; }
    .me-col-xl-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .me-col-xl-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .me-col-xl-3  { flex: 0 0 25%; max-width: 25%; }
    .me-col-xl-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .me-col-xl-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }
}

@media (min-width: 1400px) {
    .me-col-xxl-12 { flex: 0 0 100%; max-width: 100%; }
    .me-col-xxl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .me-col-xxl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .me-col-xxl-9  { flex: 0 0 75%; max-width: 75%; }
    .me-col-xxl-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .me-col-xxl-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .me-col-xxl-6  { flex: 0 0 50%; max-width: 50%; }
    .me-col-xxl-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .me-col-xxl-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .me-col-xxl-3  { flex: 0 0 25%; max-width: 25%; }
    .me-col-xxl-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .me-col-xxl-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }
}




/* Text alignment for block elements */
.me-text-start {
    text-align: left !important;
}

.me-text-end {
    text-align: right !important;
}

.me-text-center {
    text-align: center !important;
}

.me-text-justify {
    text-align: justify;
}

.me-text-inherit {
    text-align: inherit;
}

/* Alignment for flex containers */
.me-align-items-start {
    align-items: flex-start;
}

.me-align-items-end {
    align-items: flex-end;
}

.me-align-items-center {
    align-items: center;
}

.me-align-items-stretch {
    align-items: stretch;
}

.me-align-items-baseline {
    align-items: baseline;
}

.me-justify-content-start {
    justify-content: flex-start;
}

.me-justify-content-end {
    justify-content: flex-end;
}

.me-justify-content-center {
    justify-content: center;
}

.me-justify-content-between {
    justify-content: space-between;
}

.me-justify-content-around {
    justify-content: space-around;
}

.me-justify-content-evenly {
    justify-content: space-evenly;
}

.me-align-content-start {
    align-content: flex-start;
}

.me-align-content-end {
    align-content: flex-end;
}

.me-align-content-center {
    align-content: center;
}

.me-align-content-between {
    align-content: space-between;
}

.me-align-content-around {
    align-content: space-around;
}

.me-align-content-stretch {
    align-content: stretch;
}

.me-align-self-start {
    align-self: flex-start;
}

.me-align-self-end {
    align-self: flex-end;
}

.me-align-self-center {
    align-self: center;
}

.me-align-self-baseline {
    align-self: baseline;
}

.me-align-self-stretch {
    align-self: stretch;
}


/* Margin */
.me-m-0 { margin: 0 !important; }
.me-m-1 { margin: 0.25rem !important; }
.me-m-2 { margin: 0.5rem !important; }
.me-m-3 { margin: 1rem !important; }
.me-m-4 { margin: 1.5rem !important; }
.me-m-5 { margin: 3rem !important; }

/* Margin Top */
.me-mt-0 { margin-top: 0 !important; }
.me-mt-1 { margin-top: 0.25rem !important; }
.me-mt-2 { margin-top: 0.5rem !important; }
.me-mt-3 { margin-top: 1rem !important; }
.me-mt-4 { margin-top: 1.5rem !important; }
.me-mt-5 { margin-top: 3rem !important; }

/* Margin Right */
.me-mr-0 { margin-right: 0 !important; }
.me-mr-1 { margin-right: 0.25rem !important; }
.me-mr-2 { margin-right: 0.5rem !important; }
.me-mr-3 { margin-right: 1rem !important; }
.me-mr-4 { margin-right: 1.5rem !important; }
.me-mr-5 { margin-right: 3rem !important; }

/* Margin Bottom */
.me-mb-0 { margin-bottom: 0 !important; }
.me-mb-1 { margin-bottom: 0.25rem !important; }
.me-mb-2 { margin-bottom: 0.5rem !important; }
.me-mb-3 { margin-bottom: 1rem !important; }
.me-mb-4 { margin-bottom: 1.5rem !important; }
.me-mb-5 { margin-bottom: 3rem !important; }

/* Margin Left */
.me-ml-0 { margin-left: 0 !important; }
.me-ml-1 { margin-left: 0.25rem !important; }
.me-ml-2 { margin-left: 0.5rem !important; }
.me-ml-3 { margin-left: 1rem !important; }
.me-ml-4 { margin-left: 1.5rem !important; }
.me-ml-5 { margin-left: 3rem !important; }

/* Margin X (left and right) */
.me-mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.me-mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.me-mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.me-mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.me-mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.me-mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }

/* Margin Y (top and bottom) */
.me-my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.me-my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.me-my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.me-my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.me-my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.me-my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

/* Padding */
.me-p-0 { padding: 0 !important; }
.me-p-1 { padding: 0.25rem !important; }
.me-p-2 { padding: 0.5rem !important; }
.me-p-3 { padding: 1rem !important; }
.me-p-4 { padding: 1.5rem !important; }
.me-p-5 { padding: 3rem !important; }

/* Padding Top */
.me-pt-0 { padding-top: 0 !important; }
.me-pt-1 { padding-top: 0.25rem !important; }
.me-pt-2 { padding-top: 0.5rem !important; }
.me-pt-3 { padding-top: 1rem !important; }
.me-pt-4 { padding-top: 1.5rem !important; }
.me-pt-5 { padding-top: 3rem !important; }

/* Padding Right */
.me-pr-0 { padding-right: 0 !important; }
.me-pr-1 { padding-right: 0.25rem !important; }
.me-pr-2 { padding-right: 0.5rem !important; }
.me-pr-3 { padding-right: 1rem !important; }
.me-pr-4 { padding-right: 1.5rem !important; }
.me-pr-5 { padding-right: 3rem !important; }

/* Padding Bottom */
.me-pb-0 { padding-bottom: 0 !important; }
.me-pb-1 { padding-bottom: 0.25rem !important; }
.me-pb-2 { padding-bottom: 0.5rem !important; }
.me-pb-3 { padding-bottom: 1rem !important; }
.me-pb-4 { padding-bottom: 1.5rem !important; }
.me-pb-5 { padding-bottom: 3rem !important; }

/* Padding Left */
.me-pl-0 { padding-left: 0 !important; }
.me-pl-1 { padding-left: 0.25rem !important; }
.me-pl-2 { padding-left: 0.5rem !important; }
.me-pl-3 { padding-left: 1rem !important; }
.me-pl-4 { padding-left: 1.5rem !important; }
.me-pl-5 { padding-left: 3rem !important; }

/* Padding X (left and right) */
.me-px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.me-px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.me-px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.me-px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.me-px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.me-px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

/* Padding Y (top and bottom) */
.me-py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.me-py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.me-py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.me-py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.me-py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.me-py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
