.mcd-feature-header-wrapper {
    position: relative;
    width: 100%;
}

.mcd-feature-image-container {
    position: fixed;
    top: 100px; 
    left: 0;
    width: 100%;
    z-index: -1; 
    overflow: hidden;
}

/* Renamed from .mcd-parallax-img to apply to both img and video */
.mcd-parallax-media {
    width: 100%;
    height: auto;
    display: block;
    will-change: transform; 
}

/* Hide mobile video by default on larger screens */
.mcd-video-mobile {
    display: none;
}

/* Switch visibility on screens 768px and below (adjust breakpoint as needed) */
@media (max-width: 768px) {
    .mcd-video-mobile {
        display: block;
    }
    .mcd-hide-on-mobile {
        display: none;
    }
}

.mcd-feature-spacer {
    display: block;
    width: 100%;
    padding-top: 26.6%;
}

@media (max-width: 1920px) {.mcd-feature-spacer {padding-top: 28%;}}
@media (max-width: 1400px) {.mcd-feature-spacer {padding-top: 30%;}}
@media (max-width: 768px) {.mcd-feature-spacer {padding-top: 33%;}}

.mcd-subfeature-wrapper {background-color: white;z-index:0;}

.mcd-project-content-wrapper {
    width: 100%;
    padding: 40px 0;
    margin:auto;max-width:1200px;
}

.mcd-project-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mcd-project-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* Two-column layout */
.mcd-project-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mcd-project-details p {
    margin: 0 0 12px 0;
}

.mcd-text-green {
    /* Approximated green from your screenshot */
    color: #2e9f5b; 
}

.mcd-fast-facts-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.mcd-fast-facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Thicker top border as seen in screenshot */
    border-top: 2px solid #000; 
}

.mcd-fast-facts-list li {
    padding: 10px 0;
    /* Thin separators between facts */
    border-bottom: 1px solid #000; 
}

/* Base spacing for the imported rich text */
.mcd-project-body p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mcd-project-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.mcd-project-body li {
    margin-bottom: 0.5rem;
}

/* Responsive: stack the grid columns on mobile and tablets */
@media (max-width: 768px) {
    .mcd-project-meta-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/*-------------------- gallery -------------------------- */

.mcd-gallery-wrapper {
    width: 100%;
    margin: 40px 0;
}

.mcd-gallery-grid {
    display: grid;
    /* Default to 4 columns */
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; /* Adjust spacing between thumbnails */
}

.mcd-gallery-item {
    overflow: hidden;
    /* Optional: add a slight border radius if it fits the design */
    border-radius: 4px; 
}

.mcd-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Optional hover effect to indicate clickability */
.mcd-gallery-item a:hover img {
    transform: scale(1.05);
}

/* Tablet: snap to 2 columns */
@media (max-width: 992px) {
    .mcd-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: snap to 1 column */
@media (max-width: 576px) {
    .mcd-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------- items grid ------------------------- */

.mcd-items-wrapper {
    width: 100%;
    margin: 60px 0;
}

.mcd-items-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

.mcd-items-grid {
    display: grid;
    gap: 30px;
}

/* Dynamic Column Support */
.mcd-items-grid.mcd-items-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mcd-items-grid.mcd-items-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Card Styling */
.mcd-items-card {
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Removes underline from links */
    color: inherit;
    transition: transform 0.2s ease;
}

.mcd-items-card:hover {
    /* Slight lift effect on hover */
    transform: translateY(-5px); 
}

/* Image Wrapper forces uniform dimensions */
.mcd-items-image-wrap {
    width: 100%;
    aspect-ratio: 60 / 67; /* Default portrait aspect */
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f5f5f5; /* Placeholder color while loading */
}

/* Landscape Aspect Override */
.mcd-items-grid-l .mcd-items-image-wrap {
    aspect-ratio: 60 / 34; 
}

.mcd-items-image-wrap img {
    width: 100%;
    height: 100%;
    /* Ensures the image fills the box without stretching */
    object-fit: cover; 
    display: block;
}

/* Typography */
.mcd-items-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mcd-items-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #000;
}

.mcd-items-subheading {
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
    color: #333;
}

/* Load More Button Foundation */
.mcd-items-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.mcd-items-load-more {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #000;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mcd-items-load-more:hover {
    background-color: #333;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .mcd-items-grid.mcd-items-cols-3,
    .mcd-items-grid.mcd-items-cols-2 {
        /* Force both 3-col and 2-col layouts to 2 columns on tablets */
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 576px) {
    .mcd-items-grid.mcd-items-cols-3,
    .mcd-items-grid.mcd-items-cols-2 {
        /* Stack vertically on mobile */
        grid-template-columns: 1fr; 
    }
}
/* ----------------------- contacts ------------------------*/

.mcd-contacts-wrapper {
    width: 100%;
    margin: 60px 0;
}

.mcd-contacts-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
}

/* Flex layout or Grid can be used here. Grid makes aligning tiles easier. */
.mcd-contacts-grid {
    display: grid;
    /* This creates responsive columns automatically based on screen size */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.mcd-contact-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Portrait Image Styles */
.mcd-contact-img-wrapper {
    margin-bottom: 20px;
    width: 100%;
}

.mcd-contacts-wrapper .mcd-contact-img-wrapper img {
    border-radius: 50%;
    border: 6px solid #515151;
    object-fit: cover;
    display: block;
    width: 180px;
    height: 180px;
    /* Replaces margin-left: 16% to guarantee perfect centering */
    margin: 0 auto; 
    background-color: #396a9f;
}

/* Typography */
.mcd-contact-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.mcd-contact-position {
    font-size: 1rem;
    color: #396a9f; /* Matches the blue in your screenshot */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Separator Line */
.mcd-contacts-wrapper .mcd-contact-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #396a9f;
    margin: 0 0 20px 0;
}

/* Icons */
.mcd-contact-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Ensures the global img rules don't mess up the SVGs */
.mcd-contact-icons img {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0;
    background: transparent;
    transition: transform 0.2s ease;
}

.mcd-contact-icons a:hover img {
    transform: translateY(-3px);
}