
/* Media Query for Mobile Devices */
 @media (max-width: 480px) {
}

/* Media Query for low resolution Tablets, Ipads */
 @media (min-width: 481px) and (max-width: 767px) {
}

/* Media Query for Tablets Ipads portrait mode */
 @media (min-width: 768px) and (max-width: 1024px){
}

/* Media Query for Laptops and Desktops */
@media (min-width: 1025px) and (max-width: 1280px){
}

/* Media Query for Large screens */
@media (min-width: 1281px) {
}


/*==================================================
  RMenu COMPONENT
==================================================*/
.elx-cms-rbutton-menu{
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    font-size: 80%;
    margin-right: 0.3rem;
    margin-left: 0.3rem;
}

.elx-cms-rbutton-menu .rmenu-btn {
    display: none;
}

.elx-cms-rbutton-menu .rmenu-bars {
    display: block;
}

.cms-rmenu-popup {
    display: flex;
    position: absolute;
    left: 0.3rem;
    top: 1.3rem;
    z-index: 2100;
    text-align: center;
    overflow: hidden;
    font-size: 80%;
}

.cms-rmenu-container {
    display: flex;
    flex-direction: column;
}

.cms-rmenu-container .elx-cms-button {
    font-size:80%;
    justify-content: flex-start;
    border-radius: 0;
}

.cms-rmenu-container .elx-cms-button:hover {
    font-weight:normal;
}

.cms-rmenu-container .elx-cms-button:first-child {
    border-top-left-radius: 0.2rem;
    border-top-right-radius: 0.2rem
}

.cms-rmenu-container .elx-cms-button:last-child {
    border-bottom-left-radius: 0.2rem;
    border-bottom-right-radius: 0.2rem
}
/* Media Query for Laptops and Desktops */
@media (min-width: 1025px) and (max-width: 1280px){
    .cms-rmenu-popup{display: none;}
    .elx-cms-rbutton-menu { justify-content: normal;}
    .elx-cms-rbutton-menu .rmenu-btn { display: block;}
    .elx-cms-rbutton-menu .rmenu-bars { display: none;}
}

/* Media Query for Large screens */
@media (min-width: 1281px) {
    .cms-rmenu-popup{display: none;}
    .elx-cms-rbutton-menu { justify-content: normal;}
    .elx-cms-rbutton-menu .rmenu-btn { display: block;}
    .elx-cms-rbutton-menu .rmenu-bars { display: none;}
}

/*==================================================
  RESPONSIVE COLUMNS
==================================================*/
:root {
    --gap: 0px;
}

/* === NO GAP MODIFIER === */
.elx-cms-row-container.no-gap {
    column-gap: 0;
    row-gap: 0;
}

/* === OVERRIDE DEFAULT CMS ROW CONTAINER === */
.elx-cms-row {
    /*display: unset;*/
    flex: unset;
}

/* === ROW CONTAINER === */
.elx-cms-row-container {
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--gap);
    row-gap: var(--gap);
}

/* === COLUMN BASE === */
[class*="elx-cms-col-"] {
    box-sizing: border-box;
    flex-grow: 0;
    flex-shrink: 0;
    min-width: 0;
}

/* === DESKTOP (default) === */
.elx-cms-col-1  { width: calc(100% / 12 * 1); }
.elx-cms-col-2  { width: calc(100% / 12 * 2); }
.elx-cms-col-3  { width: calc(100% / 12 * 3); }
.elx-cms-col-4  { width: calc(100% / 12 * 4); }
.elx-cms-col-5  { width: calc(100% / 12 * 5); }
.elx-cms-col-6  { width: calc(100% / 12 * 6); }
.elx-cms-col-7  { width: calc(100% / 12 * 7); }
.elx-cms-col-8  { width: calc(100% / 12 * 8); }
.elx-cms-col-9  { width: calc(100% / 12 * 9); }
.elx-cms-col-10 { width: calc(100% / 12 * 10); }
.elx-cms-col-11 { width: calc(100% / 12 * 11); }
.elx-cms-col-12 { width: 100%; }

[class*="elx-cms-col-"] {
    box-sizing: border-box;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: unset;
    min-width: 0;
}

.elx-cms-col-auto {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    width: auto; 
    min-width: 0; 
}

/* === TABLET (≤992px) === */
@media screen and (max-width: 992px) {
    .elx-cms-col-md-1  { width: calc(100% / 12 * 1); }
    .elx-cms-col-md-2  { width: calc(100% / 12 * 2); }
    .elx-cms-col-md-3  { width: calc(100% / 12 * 3); }
    .elx-cms-col-md-4  { width: calc(100% / 12 * 4); }
    .elx-cms-col-md-5  { width: calc(100% / 12 * 5); }
    .elx-cms-col-md-6  { width: calc(100% / 12 * 6); }
    .elx-cms-col-md-7  { width: calc(100% / 12 * 7); }
    .elx-cms-col-md-8  { width: calc(100% / 12 * 8); }
    .elx-cms-col-md-9  { width: calc(100% / 12 * 9); }
    .elx-cms-col-md-10 { width: calc(100% / 12 * 10); }
    .elx-cms-col-md-11 { width: calc(100% / 12 * 11); }
    .elx-cms-col-md-12 { width: 100%; }
    
    [class*="elx-cms-col-sm-"] {
        box-sizing: border-box;
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: unset;
        min-width: 0;
    }

    .elx-cms-col-sm-auto {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 0;
        width: auto; 
        min-width: 0; 
    }
}

/* === MOBILE (≤600px): Full Width Columns === */
@media screen and (max-width: 600px) {
    .elx-cms-col-sm-1  { width: calc(100% / 12 * 1); }
    .elx-cms-col-sm-2  { width: calc(100% / 12 * 2); }
    .elx-cms-col-sm-3  { width: calc(100% / 12 * 3); }
    .elx-cms-col-sm-4  { width: calc(100% / 12 * 4); }
    .elx-cms-col-sm-5  { width: calc(100% / 12 * 5); }
    .elx-cms-col-sm-6  { width: calc(100% / 12 * 6); }
    .elx-cms-col-sm-7  { width: calc(100% / 12 * 7); }
    .elx-cms-col-sm-8  { width: calc(100% / 12 * 8); }
    .elx-cms-col-sm-9  { width: calc(100% / 12 * 9); }
    .elx-cms-col-sm-10 { width: calc(100% / 12 * 10); }
    .elx-cms-col-sm-11 { width: calc(100% / 12 * 11); }
    .elx-cms-col-sm-12 { width: 100%; }
    
    [class*="elx-cms-col-sm-"] {
        box-sizing: border-box;
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: unset;
        min-width: 0;
    }

    .elx-cms-col-sm-auto {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 0;
        width: auto; 
        min-width: 0; 
    }
}
/* End Responsive Grid */