/* --- RESET & BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: black;
    line-height: 1.4;
    font-size: 14px;
}

a {
  text-decoration: none !important;
  color:black;
}

a:hover {
  text-decoration: none !important;
  color:red;
}

a.active {
  color:red;
}

p {
  font-size:14px;
}

ul {
  margin:0;
  padding: 0 10px 0 20px;
}

h1,h2 {
  font-size: 14px;
}


/* --- DESKTOP LAYOUT (CSS GRID) --- */
.main-container {
    display: grid;
    /* Col 1: Fixed 300px
       Col 2: 1fr (Takes all remaining space, making it the only one that resizes)
       Col 3: Fixed 300px (To ensure only the middle shrinks/grows) 
    */
    grid-template-columns: 300px 1fr 350px;
    min-height: 100vh;
}

/* --- COLUMN 1: NAVIGATION --- */
.col-1-nav {
    background-color: white;
    color: black;
    height: 100%; /* Full height on desktop */

    /* REQUIRED FOR FIXED BEHAVIOR */
    position: sticky; 
    top: 0;           /* Sticks to top of viewport */
    height: 100vh;    /* Occupies full screen height */
    overflow-y: auto; /* Scroll internal menu if screen is too short */
    z-index: 100;
}

.col-1-nav h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.nav-links {
    list-style: none;
    margin-top: 10px;
    list-style-type: none;
    font-size: 12px;
}

.nav-links li {
    margin:5px 0;
}

.nav-links a {

}

.nav-links a:hover {
    color: red;
}

.title h1 {
  margin-top:10px;
  margin-left:20px;
  font-size: 14px;
  text-transform: uppercase;
}

.cv-text {
    margin-top: 50px;
}

/* Mobile Toggle Button (Hidden on Desktop) */
.hamburger-btn {
    display: none; 
    background: white;
    color: black;
    border: none;
    font-size: 14px;
    padding: 15px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-weight: 500;
}

.inter-link {
    margin-bottom: 40px !important;
}

.inter-link-edit {
    margin-bottom: 20px;
}

/* ************* WPML */
.wpml-ls-legacy-list-horizontal {
    border: 1px solid transparent;
    padding: 0 !important;
    clear: both;
}

.wpml-ls-legacy-list-horizontal a {
    display: block;
    text-decoration: none;
    padding: 0 !important;
}

.wpml-ls-legacy-list-horizontal a:hover {
  position:relative;
  color:grey;
}

/* --- COLUMN 2: IMAGE GRID --- */
.col-2-images {
    background-color: white;
    margin-top:50px;
    overflow-y: auto; /* Allows scrolling if content is long */
}

.image-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
     gap: 10px; 
}
/*
.image-grid {
    display: grid;
    /* Responsive grid for images inside the column */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 5px;
}
*/
.image-card {
    background: white;
}

.image-card img {
    width: 100%;
    height:100%;
    object-fit: contain;
}

.image-card video {
    width: 100%;
    height:100%;
    object-fit: contain;
    display: block;
}

/* --- COLUMN 3: TEXT ONLY --- */
.col-3-text {
    background-color: #ffffff;
    padding: 0 1rem 0 1rem;
    margin-top:50px;
    overflow-y: auto;
}

.col-3-text h3 {
    margin-top: 0;
}

.col-3-text a {
    font-weight:500;
    text-decoration: underline !important;
}

/* ************* EDIT POST LINK  */
.edit_post_link {


}

.edit_post_link:hover {

}

/* --- MOBILE RESPONSIVENESS --- */
/* Trigger when screen is smaller than 900px (adjust as needed) */
@media (max-width: 900px) {
    
    .main-container {
        display: flex;
        flex-direction: column; /* Stack everything vertically */
    }

    /* Header / Hamburger Area */
    .hamburger-btn {
        display: block; /* Show button */
    }

    #menu-title {
        display:none;
    }

    /* Hide Nav links by default on mobile */
    .col-1-nav {
        padding: 0;
        height: auto;
    }

    .nav-content {
        display: none; /* Hidden state */
        padding: 1rem;
        background-color: white;
    }

    .nav-links {
        list-style: none;
        margin-top:10px;
        list-style-type: none;
    }

    /* Class added via JS to show menu */
    .nav-content.show {
        display: block;
    }

    /* Adjust columns to full width */
    .col-2-images, .col-3-text {
        padding:0 10px 0 10px;
        width: 100%;
        margin-top:0;
        height: auto;
        border-left: none;
    }

    .col-3-text {
        margin-top:20px;
    }

}