/* Theme Colors & Typography */
.gold-label {
    font-family: 'Montserrat', serif;
}

.serif-display {
    font-family: 'Playfair Display', serif;
}

.shifman-difference-gallery {
    background-color: #fff;
    margin-top: 116px;
    text-align: center;
}

.canvas-width { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Intro */
.difference-intro { padding: 120px 0 80px; }
.difference-intro .gold-label {
    font-size: 16px;
}
.difference-intro h1.serif-display {
    font-size: 4.5rem;
    line-height: 1;
}
.intro-divider { width: 50px; height: 1px; background: var(--shifman-gold); margin: 30px auto; }
.hero-desc { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; color: #555; line-height: 1.8; }

/* General Item Styling */
.image-frame { overflow: hidden; background: var(--shifman-cream); }
.image-frame img { width: 100%; display: block; object-fit: cover; transition: transform 2s ease; }
.pillar-gallery-item:hover img { transform: scale(1.03); }

.content-frame { font-family: 'Montserrat', sans-serif; padding: 60px 20px; max-width: 600px; margin: 0 auto; }
.pillar-id { font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 4px; font-size: 0.7rem; color: var(--shifman-gold); display: block; margin-bottom: 20px; }

/* Layout Variations */
.pillar-gallery-item.full-width .image-frame { height: 70vh; width: 100%; }

/* Pillar Duo Grid */
.pillar-gallery-duo { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    max-width: 1300px; 
    margin: 100px auto; 
    padding: 0 60px; 
}

/* Updated to handle square-ish images using existing class */
.image-frame.portrait {
    width: 100%;
    aspect-ratio: 1 / 1; /* Forces the container to a square profile */
    background-color: var(--shifman-cream);
    overflow: hidden;
}

.image-frame.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the 667x556 image fills the square frame perfectly */
    transition: transform 1.2s ease;
}

.duo-item:hover .image-frame img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .pillar-gallery-duo {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 0 20px;
    }

    .difference-intro h1.serif-display {
        font-size: 3rem;
    }
}

.image-frame.portrait { aspect-ratio: 4 / 5; }
.image-frame.wide-crop { aspect-ratio: 21 / 9; max-width: 1200px; margin: 0 auto; }

/* --- MOBILE CASE --- */
@media (max-width: 768px) {
    .difference-intro { padding: 60px 0; }
    .hero-desc { font-size: 1rem; }

    .pillar-gallery-item.full-width .image-frame { height: 50vh; }
    
    .pillar-gallery-duo { 
        grid-template-columns: 1fr; /* Pure vertical stack */
        gap: 60px;
        padding: 0 20px;
    }

    .image-frame.wide-crop { aspect-ratio: 16 / 9; width: 100%; }
    
    .content-frame h2, .content-frame h3 {
        font-size: 1.8rem;
    }
}

/* Target the image in the first item of the duo grid (Pillar Two) */
.pillar-gallery-duo .duo-item:first-child .image-frame img {
    filter: grayscale(100%);
    /* Optional: Add a transition if you want it to fade back to color on hover */
    transition: filter 0.5s ease, transform 1.2s ease;
}

/* Brand Ethos */
.ethos-canvas-section {
    background-color: #ffffff;
    width: 100%;
}

.ethos-flex-container {
    display: flex;
    align-items: stretch; /* Ensures both sides are the same height */
    max-width: 1600px;
    margin: 0 auto;
}

/* --- Image Side (Vertical Portrait) --- */
.ethos-image-wrap {
    flex: 1;
    position: relative;
    height: 100vh; /* Controlled height for the portrait image */
    overflow: hidden;
}

.ethos-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay-text {
    position: absolute;
    top: 9%;
    left: 0;
    width: 96%;
    text-align: center;
    color: #fff;
    padding: 0 40px;
}

.image-overlay-text p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1.2;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    white-space: nowrap; 
    display: inline-block;
    width: auto;
}

/* Specific Desktop Logo Placement */
@media (min-width: 1025px) {
    .image-overlay-logo {
        position: absolute;
        bottom: 1%;      /* Nudged to the very bottom as requested */
        left: 45%;       /* Off-center alignment as requested */
        transform: translateX(-50%);
        width: 145px;    /* Refined width for desktop */
        z-index: 15;
    }
}

/* Maintain standard centering for Mobile/Tablet */
@media (max-width: 1024px) {
    .image-overlay-logo {
        position: absolute;
        bottom: 5%;
        left: 50%;
        transform: translateX(-50%);
        width: clamp(150px, 14.2vw + 104px, 250px);
    }

    .image-overlay-text p {
        font-size: clamp(0.93rem, 2vw, 1.8rem);
    }
}

/* --- Narrative Side (Text Box) --- */
.ethos-text-wrap {
    flex: 1;
    background-color: var(--shifman-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

.ethos-text-inner {
    max-width: 480px;
}

.ethos-text-inner h2 {
    font-size: 2.4rem;
    line-height: 1.2;
    color: #4a3633;
    margin: 20px 0;
}

.ethos-narrative .desc-body {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.85; /* Spacious leading for storytelling */
    color: #444;
    margin-bottom: 20px;
}

.ethos-narrative .desc-body.secondary {
    font-style: italic;
    color: #555;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(193, 161, 89, 0.2); /* Very light gold divider */
}

.ethos-narrative .final-note {
    font-weight: 600;
    color: var(--shifman-taupe);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-top: 30px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .ethos-flex-container { flex-direction: column; }
    .ethos-image-wrap { height: 70vh; }
    .ethos-text-wrap { padding: 60px 30px; }
}

@media (max-width: 768px) {
    .image-overlay-text {
        width: 100%;
    }

    .image-overlay-text p {
        width: 100%;
        margin: 0 auto;
    }
}

/* --- Color-Rich Science Section --- */
.science-banner-section.color-flush {
    /* Using a deep, rich background for the whole section */
    background-color: #2c2e31; /* Deep Charcoal */
    padding: 120px 0;
    color: #ffffff;
}

.science-container {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    gap: 100px;
}

/* Image Frame with Color Pop */
.science-image-wrap {
    flex: 1.2;
}

.image-frame.color-accent {
    position: relative;
    padding: 20px;
    /* This creates the "matting" effect like a framed photo */
    background-color: #f4f1ea; /* Shifman Cream */
}

.image-frame.color-accent img {
    display: block;
    width: 100%;
    height: auto;
}

/* Text Content Adjustments */
.science-content {
    flex: 1;
}

.science-content h2 {
    color: #ffffff; /* Contrast against dark background */
}

.science-content .desc-body {
    color: #d1d1d1; /* Softer white for readability */
}

.science-content .gold-label {
    color: var(--shifman-gold);
    border-bottom: 1px solid var(--shifman-gold);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* CTA Button Over Dark */
.btn-view-all.white-outline {
    border: 1px solid #ffffff;
    background-color: #ffffff;
    color: #2c2e31;
    padding: 15px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all.white-outline:hover {
    color: #ffffff;
    background-color: #2c2e31;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .science-container {
        flex-direction: column;
        padding: 0 30px;
        gap: 60px;
    }
    .image-frame.color-accent {
        box-shadow: 20px 20px 0px rgba(193, 161, 89, 0.2);
    }
}

