body,form,figure{margin:0;padding:0}img{border:0}header,footer,nav,section,aside,article,figure,figcaption{display:block}body{font-size:100.01%}select,input,textarea{font-size:99%}#container,.inside{position:relative}#main,#left,#right{float:left;position:relative}#main{width:100%}#left{margin-left:-100%}#right{margin-right:-100%}#footer{clear:both}#main .inside{min-height:1px}.ce_gallery>ul,.content-gallery>ul{margin:0;padding:0;overflow:hidden;list-style:none}.ce_gallery>ul li,.content-gallery>ul li{float:left}.ce_gallery>ul li.col_first,.content-gallery>ul li.col_first{clear:left}.float_left,.media--left>figure{float:left}.float_right,.media--right>figure{float:right}.block{overflow:hidden}.media{display:flow-root}.clear,#clear{height:.1px;font-size:.1px;line-height:.1px;clear:both}.invisible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.custom{display:block}#container:after,.custom:after{content:"";display:table;clear:both}
@media (max-width:767px){#wrapper{margin:0;width:auto}#container{padding-left:0;padding-right:0}#main,#left,#right{float:none;width:auto}#left{right:0;margin-left:0}#right{margin-right:0}}img{max-width:100%;height:auto}.audio_container audio{max-width:100%}.video_container video{max-width:100%;height:auto}.aspect,.responsive{position:relative;height:0}.aspect iframe,.responsive iframe{position:absolute;top:0;left:0;width:100%;height:100%}.aspect--16\:9,.responsive.ratio-169{padding-bottom:56.25%}.aspect--16\:10,.responsive.ratio-1610{padding-bottom:62.5%}.aspect--21\:9,.responsive.ratio-219{padding-bottom:42.8571%}.aspect--4\:3,.responsive.ratio-43{padding-bottom:75%}.aspect--3\:2,.responsive.ratio-32{padding-bottom:66.6666%}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem 0;
    text-align: center;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

h1 {
    margin: 0;
    padding-bottom: 10px;
}

nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.column-switcher {
    background-color: #007bff;
    color: white;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    margin: 0;
    cursor: pointer;
    border-radius: 0;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 25%;
    box-sizing: border-box;
}

.column-switcher:last-child {
    border-right: none;
}

.column-switcher:hover {
    background-color: #0056b3;
}

.column-switcher.active {
    background-color: #004499;
    box-shadow: none;
}

.container {
    flex-grow: 1;
    position: relative;
    min-height: 0;
    overflow: hidden; /* Main container prevents its own scroll */
}

.column {
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: absolute; /* All columns are absolutely positioned for animation */
    width: 100%;
    height: 100%; /* Ensure columns fill container height */
    top: 0;
    bottom: 0;
    box-sizing: border-box;
    opacity: 0;
    /* Default columns (1, 2, 3) will handle their own scrolling within this height */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px; /* Default padding for columns 1, 2, 3 */
}

/* --- Specific Styles for Column 4 (the absolute container) --- */
#column4 {
    padding: 0; /* Remove its default padding to allow inner wrapper to control content */
    display: block; /* It does not need to be a flex container itself */
    overflow: hidden; /* It will hide overflow from its direct children if they exceed its bounds,
                         but the inner wrapper will handle its own scroll. */
    height: 100%; /* Ensure #column4 itself remains 100% height of its parent container */
}

/* --- The New Inner Content Wrapper for Flexbox and Scrolling --- */
.column-content-wrapper {
    display: flex;
    flex-direction: row; /* Default to row for desktop */
    flex-wrap: nowrap; /* PREVENT WRAPPING ON DESKTOP */
    align-items: flex-start; /* Align items to the top */
    width: 100%;
    height: 100%; /* Make this wrapper fill the height of its parent (#column4) */
    box-sizing: border-box;
    overflow-y: auto; /* THIS IS WHERE THE SCROLLING FOR COLUMN 4 HAPPENS (both desktop and mobile) */
    -webkit-overflow-scrolling: touch;
}

/* Width Utility Classes (applied to direct children of column-content-wrapper) */
.col-40 {
    flex: 0 0 40%;
}

.col-60 {
    flex: 0 0 60%;
}

/* --- Specific Styles for Column 4's Inner Content Elements --- */
#column4 .column4-left,
#column4 .column4-right {
    padding: 20px; /* Apply padding to specific inner columns */
    box-sizing: border-box;
    /* In a flex container with overflow:auto on the parent, children usually don't need explicit heights.
       Let the flex grow/shrink properties manage their size. */
    /* If you still prefer independent scrolling for these, add overflow-y: auto here.
       But generally, having one scrollable area is better for usability. */
}

/* Media Query for Mobile Responsiveness (adjust breakpoint if needed) */
@media (max-width: 768px) {
    .column-content-wrapper {
        flex-direction: column; /* Stack inner columns vertically on mobile */
        flex-wrap: wrap; /* ALLOW WRAPPING ON MOBILE */
        height: 100%; /* IMPORTANT: Wrapper *still* takes 100% height of #column4 */
        overflow-y: auto; /* It is responsible for its own scrolling */
    }

    #column4 .column4-left,
    #column4 .column4-right {
        flex: 0 0 100%; /* Each takes 100% width on mobile */
        height: auto; /* ALLOW HEIGHT TO ADJUST NATURALLY BASED ON CONTENT when stacked */
    }

    /* Remove overflow-y: auto from html, body in mobile media query.
       It should be handled by .column-content-wrapper or the main .column. */
}
