/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: white;
    color: black;
}

.container {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    position: relative;
    min-height: 100vh; /* Change from height to min-height */
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0; /* Remove default margin */
}

.header h1 a {
    font-family: 'Radio Canada', Arial, sans-serif;
    font-size: 24px;
    font-weight: 600; /* Medium-bold weight (adjust 400-700 as needed) */
    margin-left: 11px;
    padding: 5px;
    position: relative;
    z-index: 1;
    color: black;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

/* Header hover effect - pure CSS solution */
.header h1 a {
    /* Your existing styles */
    position: relative;
    z-index: 1;
}

.header h1 a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: cover;
    background-position: center;
}

/* Dynamic backgrounds for each page */
.header h1 a[data-hover-bg="home"]::before {
    background-image: url('aljaz_web_hover/aljaz_web_hover_home.jpg');
}

.header h1 a[data-hover-bg="01"]::before {
    background-image: url('aljaz_web_hover/aljaz_web_hover_01.jpg');
}

.header h1 a[data-hover-bg="02"]::before {
    background-image: url('aljaz_web_hover/aljaz_web_hover_02.jpg');
}

.header h1 a[data-hover-bg="03"]::before {
    background-image: url('aljaz_web_hover/aljaz_web_hover_03.jpg');
}

.header h1 a[data-hover-bg="04"]::before {
    background-image: url('aljaz_web_hover/aljaz_web_hover_04.jpg');
}

.header h1 a[data-hover-bg="05"]::before {
    background-image: url('aljaz_web_hover/aljaz_web_hover_05.jpg');
}

.header h1 a[data-hover-bg="06"]::before {
    background-image: url('aljaz_web_hover/aljaz_web_hover_06.jpg');
}

.header h1 a[data-hover-bg="07"]::before {
    background-image: url('aljaz_web_hover/aljaz_web_hover_07.jpg');
}

.header h1 a[data-hover-bg="08"]::before {
    background-image: url('aljaz_web_hover/aljaz_web_hover_08.jpg');
}

.header h1 a:hover::before {
    opacity: 1;
}

/* Hover state - both image and text */
.header h1 a:hover {
    color: white; /* Text turns white on hover */
}

.header h1 a:hover::before {
    opacity: 1; /* Background image appears on hover */
}


.menu-toggle {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
    margin: 0;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-icon, .close-icon {
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

/* Ensure the icons use a font that supports these symbols */
.menu-toggle {
    font-family: Arial, "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none; /* Hide by default */
    font-size: 24px;
    cursor: pointer;
    z-index: 1000; /* Ensure it's above other elements */
}

/* Show the menu toggle on mobile */
@media (max-width: 1200px) {
    .menu-toggle {
        display: block; /* Show the burger button on mobile */
    }
}


.overlay.active {
    display: block; /* Show the overlay when active */
}


/* Sidebar Styles */
.sidebar {
    font-family: 'Roboto Serif', serif; 
    font-size: 14px;
    font-weight: 300;
    position: fixed;
    left: 20px; /* Hide sidebar by default */
    width: 250px;
    height: 300px;
    background-color: white;
    transition: left 0.3s ease; /* Smooth transition for sidebar */
    z-index: 999; /* Ensure sidebar is above other content */
}

.sidebar.active {
    left: 0; /* Show sidebar when active */
    position: sticky;
}

.sidebar hr {
    border: 0;
    margin: 20px 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}
    
.menu {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.menu li {
    margin-bottom: 10px;
}

.menu a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

/* Menu item styles */
.menu li {
    padding-left: 5px; /* Add left padding to all menu items */
    margin-bottom: 10px; /* Consistent spacing between items */
}

/* Menu link styles */
.menu li a {
    display: inline-block;
    font-family: 'Roboto Serif', serif; 
    font-weight: 300;
    padding:  5px; /* Right padding to match left padding */
}

/* Hover effects - now only needs to modify background */
.menu li:nth-child(1) a:hover { background-color: #FEB8B8; }
.menu li:nth-child(2) a:hover { background-color: #C4FFAF; }
.menu li:nth-child(3) a:hover { background-color: #c6c6f4; }
.menu li:nth-child(4) a:hover { background-color: #FCF3A6; }
.menu li:nth-child(5) a:hover { background-color: #B8F5F9; }
.menu li:nth-child(6) a:hover { background-color: #FFCCB0; }
.menu li:nth-child(7) a:hover { background-color: #DFDFDF; }
.menu li:nth-child(8) a:hover { background-color: #BABABA; }

/* Common hover styles */
.menu li a:hover {
    padding:  5px; /* Maintains same padding as non-hover */
}

/* Section divider after 6th item */
.menu li:nth-child(6) {
    padding-bottom: 20px;
    position: relative;
}

/* Active state for sidebar items (matches hover colors) */
.sidebar .menu li a.active {
    background-color: var(--active-color);
    padding: 5px;
    pointer-events: none; /* Disables clicking on active item */
}

/* Define colors for each item (matches your hover colors) */
.sidebar .menu li:nth-child(1) a.active { --active-color: #FEB8B8; } /* Pink */
.sidebar .menu li:nth-child(2) a.active { --active-color: #C4FFAF; } /* Green */
.sidebar .menu li:nth-child(3) a.active { --active-color: #c6c6f4; } /* Lavender */
.sidebar .menu li:nth-child(4) a.active { --active-color: #FCF3A6; } /* Yellow */
.sidebar .menu li:nth-child(5) a.active { --active-color: #B8F5F9; } /* Cyan */
.sidebar .menu li:nth-child(6) a.active { --active-color: #FFCCB0; } /* Peach */
.sidebar .menu li:nth-child(7) a.active { --active-color: #DFDFDF; } /* Light Gray */
.sidebar .menu li:nth-child(8) a.active { --active-color: #BABABA; } /* Gray */


/* Content Styles */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-top: 20px;
}

/* Gallery Styles */
.gallery {
    height: 800px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

/* Square container for the image */
.square-container {
    width: 100%;
    height: 100%;
    max-height: 600px;
    max-width: 600px;
    aspect-ratio: 1 / 1; /* Enforce a square aspect ratio */
    display: flex;
    align-items: center; /* Center the image vertically */
    justify-content: center; /* Center the image horizontally */
    overflow: hidden; /* Hide any overflow */
}

/* Gallery image */
.gallery img {
    max-width: 100%; /* Ensure image scales to fit the container width */
    max-height: 100%; /* Ensure image scales to fit the container height */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the whole image is visible without cropping */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.navigation-buttons button {
    font-family: 'Roboto Serif', serif; 
    font-size: 11px;
    background: none;
    border: none;
    color: black;
    padding: 5px 10px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation-buttons button:hover {
    color: #555;
}

/* Blog Content Styles */
.blog-content {
    font-family: 'Roboto Serif', serif; 
    line-height: 1.5;
    font-size: 12px;
    width: 100%;
    max-width: 800px;
    text-align: justify; /* Add this line for justified text */
    color: #333;
}

.blog-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #000;
}

.blog-content p {
    margin-bottom: 20px;
    text-align: justify; /* Add this line for justified text */
    hyphens: auto; /* Optional: enables hyphenation for better justification */
}

/* Blog Image Styles */
.blog-image {
    margin: 30px 0;
    text-align: center;
}

.blog-image img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Image caption styling - more specific selector */
.blog-image p.image-caption {
    font-style: italic !important;
    font-size: 11px !important;
    text-align: center !important;
    display: block; /* Ensures centering works */
    width: 100%; /* Takes full width of container */
    margin: 5px auto 0 auto !important; /* Top margin only, centered */
    padding: 0; /* Remove any padding */
    color: grey;
    line-height: 1.3;
}


/* General Styles for Desktop */
@media (min-width: 1201px) {
    .content {
        display: flex;
        flex-direction: column; /* Stack gallery and blog content vertically */
        align-items: center; /* Center children horizontally */
        width: 100%; /* Ensure the container takes full width */
    }

    .sidebar {
        left:30px;
        width: 270px; /* Fixed width for the sidebar */
        margin-right: 20px; /* Add some spacing between sidebar and gallery */
        flex-shrink: 0; /* Prevent the sidebar from shrinking */
        position: absolute;
    }

    .gallery {
        flex: 1; /* Allow the gallery to take up remaining space */
        margin: 0 auto; /* Center the gallery within the available space */
    }

    .blog-content {
        width: 100%; /* Full width within the content container */
        max-width: 800px; /* Limit the blog content width */
        margin: 40px auto; /* Center the blog content */
    }
}

/* Mobile Styles */
@media (max-width: 1200px) {
    .content {
        display: flex;
        flex-direction: column; /* Stack children vertically */
        align-items: center; /* Center children horizontally */
        width: 100%; /* Ensure the container takes full width */
    }

    .sidebar {
        position: absolute; /* Sidebar is fixed on mobile */
        top: 0;
        left: -250px; /* Hide sidebar by default */
        width: 225px; /* Adjust width for mobile */
        height: 100vh; /* Full height */
        background-color: white;
        transition: left 0.3s ease; /* Smooth transition for sidebar */
        z-index: 999; /* Ensure sidebar is above other content */
    }

    .sidebar.active {
        left: 0; /* Show sidebar when active */
        padding-left: 50px;
        padding-right: 20px;
        padding-bottom: 20px;
        height: auto;
        margin-top: 73px;
        width: auto;
    }

    .gallery {
        width: 90%; /* Set gallery width to 90% of the screen width */
        max-width: none; /* Remove max-width constraint */
        margin: 0 auto; /* Center the gallery */
    }

    .square-container {
        width: 100%; /* Full width within the gallery */
        height: auto; /* Allow height to adjust based on aspect ratio */
        aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
    }

    .gallery img {
        max-width: 100%; /* Ensure image scales to fit the container width */
        max-height: 100%; /* Ensure image scales to fit the container height */
        width: auto; /* Maintain aspect ratio */
        height: auto; /* Maintain aspect ratio */
    }

    .blog-content {
        width: 90%; /* Match the width of the gallery */
        max-width: 700px; /* Remove max-width constraint */
        margin: 20px auto; /* Add some margin for spacing */
    }
}

/* Footer logo - appears after all content */
.footer-logo {
    width: 100%;
    text-align: center;
    margin: 40px 0 20px 0; /* Space above and below logo */
    padding: 20px 0;
}

.footer-logo img {
    width: 60px;
    height: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-logo img:hover {
    opacity: 1;
    transform: scale(1.05); /* Optional: slight zoom on hover */
}

/* Remove default link styling */
.footer-logo a, 
.footer-logo a:hover, 
.footer-logo a:visited {
    text-decoration: none;
    border: none;
    outline: none;
}

/*______________________________________________________________________________________________________________
/*______________________________________________________________________________________________________________
/* About Page Styles */
/* About Page Styles */
.about-content {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    font-family: 'Roboto Serif', serif;
    font-size: 12px;
}

.about-image {
    float: left;
    width: 300px;
    height: auto;
    margin: 0 30px 20px 0; /* Top, Right, Bottom, Left */
    shape-outside: margin-box;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    min-width: 300px;
}

/* Key fix - ensures text starts at top */
.about-text::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-top: -20px; /* Adjust this to fine-tune alignment */
    padding-top: 20px;
}

/* Typography styles */
.about-text h3 {
    font-family: 'Radio Canada', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    clear: both; /* Start headings below floated image */
    margin-top: 1em;
}

.about-text p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 1em;
    text-align: justify;
    hyphens: auto;
}

.exhibitions-list {
    list-style-type: none;
    padding: 0;
    clear: both; /* Start list below floated image */
}

.exhibitions-list li {
    margin-bottom: 0.83em;
}

/* Mobile layout */
@media (max-width: 600px) {
    .about-content {
        padding: 0 20px;
    }
    
    .about-image {
        float: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
    }
    
    .about-text::before {
        display: none; /* Disable the top alignment hack on mobile */
    }
}

/*______________________________________________________________________________________________________________
/*______________________________________________________________________________________________________________
/* About Page Styles */
/* About Page Styles */
.contact-content {
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
    font-family: 'Roboto Serif', serif;
    font-size: 12px;
}

.contact-image {
    float: right;
    width: 300px;
    height: auto;
    margin: 0 30px 20px 0; /* Top, Right, Bottom, Left */
    shape-outside: margin-box;
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
}


.contact-text {
    min-width: 300px;
}

/* Key fix - ensures text starts at top */
.contact-text::before {
    content: "";
    bottom: 0;
    display: block;
    margin-right: 50px;
    width: 0;
    height: 0;
    margin-top: 90px; /* Adjust this to fine-tune alignment */
}

/* Typography styles */
.contact-text h3 {
    font-family: 'Radio Canada', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    clear: both; /* Start headings below floated image */
    margin-top: 1em;
}

.contact-text p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 1em;
    text-align: justify;
    hyphens: auto;
}

/* Mobile layout */
@media (max-width: 600px) {
    .contact-content {
        padding: 0 20px;
    }
    
    .contact-image {
        float: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
    }
    
        .contact-text {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
        margin: 0 auto; /* Center the container */
    }
    }





.auto-gallery {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    overflow: hidden;
    background: white;
}

.auto-gallery .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.auto-gallery .slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Hover effect for ALL images */
.auto-gallery .slide img:hover {
    transform: scale(1.02);
}

/* First slide visible initially */
.auto-gallery .slide:first-child {
    opacity: 1;
    z-index: 2;
}





/* ==================== */
/* DEBUGGING HELPERS */
/* ===========dd class="debug"========= */
.debug *:not(.no-debug) {
    outline: 1px dashed rgba(255, 0, 0, 0.3); /* Subtle red outline for all elements */
}

/* Container-specific debugging */
.debug .container { outline: 2px solid rgba(255, 0, 0, 0.5)  ; }
.debug .header { outline: 2px solid rgba(0, 0, 255, 0.5) ; }
.debug .sidebar { outline: 2px solid rgba(0, 128, 0, 0.5); }
.debug .gallery { outline: 2px solid rgba(255, 165, 0, 0.5); }
.debug .square-container { outline: 2px solid rgba(128, 0, 128, 0.5); }
.debug .navigation-buttons { outline: 2px solid rgba(0, 255, 255, 0.5); }
.debug .blog-content { outline: 2px solid rgba(255, 0, 255, 0.5); }
    

/* Z-index visualization */
.debug [class*="z-"],
.debug [class*="zindex"],
.debug [style*="z-index"] {
    position: relative;
}
.debug [class*="z-"]::after,
.debug [class*="zindex"]::after,
.debug [style*="z-index"]::after {
    content: "z-index: " attr(style);
    position: absolute;
    top: 0;
    left: 0;
    background: black;
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    z-index: 9999;
}
