.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}


.headline-container {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    background: none;
    color: white;
    transition: all 0.3s ease;
    z-index: 999;
}

h1, h2 {
    margin: 0;
}
.sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 54px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px 12px 32px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    
    transition: all 0.3s ease;
}
.sticky-bar h1, .sticky-bar h2 {
    font-size: 1.5rem;
}

.headline-spacer {
    display: none; /* Only appears when sticky */
    height: 0px; /* Matches headline-container height when active */
}

.sticky-bar + .headline-spacer {
    display: block;
    height: 54px; /* Ensure this matches .sticky-bar height */
}


.intro {
    width: 100%;
    background-color: #fff;
    border: 8px double #999;
    padding: 28px;
    margin: 12px 0 32px;
}


#thumb-container {
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 888;
}

.sticky-thumbs {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 888;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    transition: top 0.3s ease; /* Smooth transition when resizing */
}

.sticky-thumbs + .thumb-spacer {
    display: block;
    height: 54px; /* Ensure this matches sticky height */
}

.thumb {
    height: 45px;
    width: 45px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.2s ease;
    overflow: hidden;
    cursor: pointer !important;
}
.thumb:hover {
    cursor: pointer !important;
    opacity: 1;
    transform: scale(1.1);
}
.thumb img {
    cursor: pointer !important;
}

.thumb.active {
    opacity: 1;
    transform: scale(1.1);
}





/* Blocks container */
.blocks {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.block {
    display: none !important; /* 🚀 Ensure it's completely removed */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.visible-block {
    display: block !important; /* 🚀 Bring it back properly */
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.block:first-child {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Remove default margins that could be causing extra space */
.block p {
    margin: 0 !important;
    padding: 0 !important;
}

.block h4 {
    font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
    font-weight: 800;
    font-size: 1.3em;
    line-height: 1.1em;
}
.block h4 span {
    font-weight: 400;
}

.block .copy p {
    font-family: Alegreya, Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 24px;
    color: #333;
}

.block .copy p span {
    font-size: 16px;
    font-style: italic;
    display: block;
    margin-top: 16px;
}

.block .copy:not(.left-text) p {
    padding: 0 80px !important;
}

/* Override for paragraphs inside ack-cols */
.copy.ack .ack-cols p {
    padding: 0 !important;
}

.left-text p {
    padding: 0 32px 0 0 !important;
}


/* Modal (Full-Screen Overlay) */
#imageModal {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex; /* Always present, just hidden */
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Image Inside Modal */
.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}

/* Fade-in effect */
#imageModal.show {
    opacity: 1;
    visibility: visible;
}




/* Remove unintended gaps */
.block {
    display: flex;
    flex-direction: column; /* Default: Image on top, text below */
}

/* Add intentional spacing */
.block img.top {
    margin-bottom: 32px; /* Ensures spacing between image and .copy */
}

.block .copy {
    margin-top: 0; /* Prevent any extra top margin */
}

/* Side-by-side layout when image is left/right */
.block:has(img.left), 
.block:has(img.right) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Adjustments to ensure spacing is applied correctly */
.block:has(img.left) .copy,
.block:has(img.right) .copy {
    flex-grow: 1;
    text-align: left;
    margin: 0 0 0 32px; /* Instead of gap, use margin */
}

/* Image Styling */
.block img.left,
.block img.right {
    width: 45%;
    flex-shrink: 0;
}

/* Ensure default top-bottom layout stays centered */
.block:has(img.top) .copy h4 {
    text-align: center;
}
.block:has(img.top) .copy p {
    text-align: left;
}

.ack h4 {
    text-align: center;
}

.ack p {
    text-align: left;
    margin-bottom: 32px !important;
}

.ack hr {
    border: 1px solid #ccc;
    margin: 0 80px;
}

/* Acknowledgements section */
.ack-cols {
    display: flex;
    gap: 32px; /* Space between columns */
    justify-content: space-between;
    padding: 0 80px !important;
    margin-top: 32px;
}

/* Each paragraph inside ack-cols takes equal space */
.ack-cols p {
    flex: 1;
    margin: 0; /* Remove default margin */
    padding: 0;
}

/* Ensure the rest of the text stacks normally */
.copy.ack p {
    margin-top: 16px; /* Add space between stacked paragraphs */
}

#nav-links {
    text-align: center;
    padding: 32px 0;
}


#et-main-area {
    padding-top: 64px !important;
    background-color: #ccc;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-blend-mode: screen;
    background-image: url(https://www.laborarts.org/wp-content/uploads/opelbg.png)!important;
}

@media (max-width: 768px) {
    .sticky-bar {
        height: 48px;
        padding: 18px 24px 10px 24px;
    }
    .sticky-bar h1, .sticky-bar h2 {
        font-size: 1.2rem;
    }
}


/* Tablet Override */
@media (max-width: 992px) {
    .block h4 {
        font-size: 18px;
        line-height: 24px;
    }
}

/* Mobile Override: Stack All */
@media (max-width: 800px) {
    .thumb {
        height: 35px;
        width: 35px;
    }
    .ack-cols {
        flex-direction: column;
        gap: 16px; /* Reduce gap when stacked */
        padding: 0 !important;
    }
    
    .ack hr {
        margin: 0;
    }

    .block {
        flex-direction: column !important;
        align-items: center;
    }
    
    .block img.left,
    .block img.right {
        width: 100%;
    }
    
    .block img {
        margin-bottom: 32px;
    }
    
    .block img.left {
        padding: 0 32px;
    }
    .block .copy {
        padding: 0;
        text-align: center !important;
    }

    .block .copy h4 {
        text-align: center !important;
    }
    
    .block .copy:not(.left-text) p {
        padding: 0 !important;
    }
}

/* Small Mobile Override */
@media (max-width: 500px) {
    
    .block img.left {
        padding: 0;
    }
    
}
