/* Lux Core Frontend Styles */

:root {
    --lux-color-gold: var(--accent, #c5a47e);
    --lux-color-dark: var(--contrast, #1a1a1a);
    --lux-color-gray: var(--contrast-3, #666);
    --lux-font-serif: "Playfair Display", serif;
}


/* Price Field */
.lux-field-price .lux-value {
    font-size: 1.5rem;
    color: var(--lux-color-dark);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

/* Specs Grid */
.lux-specs-grid {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 1.5rem 0;
    margin: 2rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.lux-spec-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.lux-spec-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -1.5rem;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #e5e5e5;
}

.lux-spec-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--lux-color-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.lux-spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--lux-color-gray);
    font-weight: 500;
}

/* Gallery Grid */
.lux-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.lux-gallery-item {
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.lux-gallery-item:hover {
    transform: translateY(-2px);
}

.lux-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.lux-gallery-item:hover img {
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .lux-specs-grid {
        gap: 1.5rem;
    }

    .lux-spec-item:not(:last-child)::after {
        display: none;
    }

    .lux-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

/* =========================================
   Block: Featured Property
   ========================================= */
.lux-featured-block {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 4rem 0;
}

.lux-featured-image {
    width: 60%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.lux-featured-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.lux-featured-content {
    width: 40%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.lux-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.lux-featured-content .lux-badge {
    background-color: var(--lux-color-dark);
}

.lux-featured-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.lux-location {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--lux-color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.lux-location a {
    color: var(--lux-color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.lux-location a:hover {
    color: var(--accent);
}

.lux-price {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--accent);
}

.lux-button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.lux-button:hover {
    background: var(--lux-color-gold);
    color: #fff;
}

@media (max-width: 900px) {

    .lux-featured-image,
    .lux-featured-content {
        width: 100%;
    }

    .lux-featured-image {
        min-height: 300px;
    }
}


/* =========================================
   Block: Property Grid (Realtor Style)
   ========================================= */
.lux-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    /* Increased spacing between cards */
}

/* Dynamic Columns */
.lux-property-grid-block.lux-cols-1 .lux-grid-container {
    grid-template-columns: 1fr;
}

.lux-property-grid-block.lux-cols-2 .lux-grid-container {
    grid-template-columns: repeat(2, 1fr);
}

.lux-property-grid-block.lux-cols-3 .lux-grid-container {
    grid-template-columns: repeat(3, 1fr);
}

.lux-property-grid-block.lux-cols-4 .lux-grid-container {
    grid-template-columns: repeat(4, 1fr);
}

.lux-property-grid-block.lux-cols-5 .lux-grid-container {
    grid-template-columns: repeat(5, 1fr);
}

/* Responsiveness for high columns */
@media (max-width: 1200px) {

    .lux-property-grid-block.lux-cols-4 .lux-grid-container,
    .lux-property-grid-block.lux-cols-5 .lux-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {

    .lux-property-grid-block.lux-cols-3 .lux-grid-container,
    .lux-property-grid-block.lux-cols-4 .lux-grid-container,
    .lux-property-grid-block.lux-cols-5 .lux-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .lux-property-grid-block.lux-cols-2 .lux-grid-container,
    .lux-property-grid-block.lux-cols-3 .lux-grid-container,
    .lux-property-grid-block.lux-cols-4 .lux-grid-container,
    .lux-property-grid-block.lux-cols-5 .lux-grid-container {
        grid-template-columns: 1fr;
    }
}

.lux-card {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer, deeper shadow like screenshot */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lux-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Location Header */
.lux-card-header-location {
    padding: 1.5rem 2rem;
    /* Wider padding */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: var(--lux-color-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Image */
.lux-card-image {
    position: relative;
    padding-top: 60%;
    /* Slightly wider default ratio */
    overflow: hidden;
}

.lux-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lux-card:hover .lux-card-image img {
    transform: scale(1.03);
}

/* Status Overlay */
/* Status Overlay */
.lux-card-status-overlay {
    position: absolute;
    top: auto;
    bottom: 1rem;
    left: 1rem;
    transform: none;
    background: rgba(0, 0, 0, 0.6);
    /* Slightly darker for legibility on small text */
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 0.25rem 0.75rem;
    /* Smaller padding */
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 0.65rem;
    /* Smaller font */
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}

/* Badge (Global Network) */
.lux-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--lux-color-dark);
    color: #fff;
    padding: 0.35rem 0.8rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
}

/* Details */
.lux-card-details {
    padding: 2rem;
    /* More breathing room */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.lux-card-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.lux-card-details h3 a {
    text-decoration: none;
    color: var(--lux-color-dark);
}

.lux-card-price {
    font-size: 1.2rem;
    color: var(--lux-color-dark);
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.lux-card-excerpt {
    font-size: 0.95rem;
    color: #555;
    /* Slightly darker for readability */
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Meta */
.lux-card-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #777;
    font-weight: 600;
    margin-top: auto;
    /* Push to bottom of details if content short */
}

.lux-meta-icon {
    color: var(--lux-color-gold);
    margin-right: 4px;
    font-weight: bold;
}

/* Footer Button */
.lux-card-footer {
    background: #f8f9fa;
    /* Very light subtle gray */
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.lux-card-button {
    text-transform: uppercase;
    color: var(--lux-color-dark);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
}

.lux-card-button:hover {
    color: var(--lux-color-gold);
    transform: translateX(3px);
}


/* =========================================
   Single Property Template (Monte Carlo Style)
   ========================================= */

/* Force Full Width on Property Pages (GeneratePress Override) */
body.single-property #page,
body.single-property .site.grid-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-property .site-content {
    padding: 0 !important;
    max-width: 100% !important;
    display: block !important;
    /* Ensure flex/grid doesn't restrict */
}

/* Ensure the main content area is also full width */
body.single-property #primary,
body.single-property #main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.lux-property-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.lux-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
}

.lux-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.lux-hero-title {
    font-family: var(--lux-font-serif);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #fff;
}

.lux-hero-location {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.9;
}

/* Specs Bar */
.lux-specs-bar {
    background-color: #0d1b2a;
    /* Deep Blue/Black */
    color: #fff;
    padding: 3rem 0;
}

.lux-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.lux-specs-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.lux-spec-col {
    text-align: center;
}

.lux-spec-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--lux-color-gold);
    /* Gold accents */
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.lux-spec-val {
    display: block;
    font-size: 1.5rem;
    font-family: var(--lux-font-serif);
}

/* Main Content */
.lux-main-content {
    padding: 4rem 2rem;
}

.lux-entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--lux-color-gray);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery Masonry */
.lux-gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.lux-gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.lux-gallery-item img:hover {
    transform: scale(1.02);
}

/* Agent Section */
.lux-agent-section {
    /* max-width: 800px; Removed to align with remaining content */
    /* margin: 0 auto; */
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 3rem;
}

.lux-section-title {
    font-family: var(--lux-font-serif);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--lux-color-dark);
}

.lux-agent-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.lux-agent-image {
    flex-shrink: 0;
    /* Prevents image from shrinking */
}

.lux-agent-image img,
.lux-agent-image img.sab-custom-avatar {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    min-width: 150px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

.lux-agent-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--lux-color-dark);
}

.lux-agent-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--lux-color-gray);
    margin-bottom: 1rem;
}

.lux-button-gold {
    background: var(--lux-color-gold);
    color: #fff;
    border: none;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 1rem;
}

.lux-agent-cta {
    color: var(--lux-color-dark);
    font-family: var(--lux-font-serif);
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.4;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--lux-color-gold);
    display: inline-block;
    max-width: 100%;
}

.lux-button-gold:hover {
    background: var(--lux-color-dark);
}

@media (max-width: 768px) {
    .lux-hero-title {
        font-size: 2rem;
    }

    .lux-specs-row {
        flex-direction: column;
        align-items: center;
    }

    .lux-gallery-masonry {
        grid-template-columns: 1fr;
    }

    .lux-agent-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Gravity Forms Button Override */
.lux-contact-form .gform_footer input[type='submit'] {
    background: var(--lux-color-gold) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 30px !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border-radius: 0 !important;
    /* Optional: Match theme radius if needed */
}

.lux-contact-form .gform_footer input[type='submit']:hover {
    background: var(--lux-color-dark) !important;
}

/* User Request: Center and restrict width of contact form on property page */
.single-property .lux-contact-form .gform_wrapper {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Offices Grid */
.lux-footer-offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 3rem;
    width: 100%;
}

.lux-footer-office-item {
    margin-bottom: 2rem;
}

.lux-footer-office-title {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.lux-footer-office-title:before {
    content: 'LUX ';
    color: var(--accent);
}

.lux-footer-office-content p {
    color: #e5e5e5;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.lux-footer-office-content a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.lux-footer-office-content a:hover {
    opacity: 0.8;
}

/* Make sure the headings override any theme defaults if inside footer */
.site-footer .lux-footer-office-title {
    color: #fff;
}

/* =========================================
   Block: Team Member (Custom)
   ========================================= */
.lux-team-block {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin: 4rem 0;
    font-family: 'Lato', sans-serif;
    /* Default sans-serif */
}

.lux-team-image {
    width: 35%;
    flex-shrink: 0;
}

.lux-team-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.lux-team-content {
    flex-grow: 1;
    padding-top: 1rem;
}

.lux-team-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.lux-team-name {
    font-family: 'Playfair Display', serif;
    /* Or maybe inherit if screenshot implies sans-serif bold? Let's stick to Lux Brand Serif for headers usually, but screenshot looks sans-serif. I'll try sans-serif for now to match screenshot strictly. Update: Screenshot name looks like sans-serif bold. */
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #0d1b2a;
    /* Deep blue/black */
    margin: 0;
    line-height: 1.2;
}

.lux-team-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #0d1b2a;
    font-size: 1.1rem;
}

.lux-icon-phone {
    color: var(--lux-color-gold);
    width: 1.2rem;
    height: 1.2rem;
}

.lux-team-phone a {
    color: inherit;
    text-decoration: none;
}

.lux-team-position {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    /* Italic usually implies serif in this brand, checking screenshot again.. looks like serif italic. */
}

.lux-team-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2.5rem;
}

.lux-team-actions .lux-button-gold {
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .lux-team-block {
        flex-direction: column;
        gap: 2rem;
    }

    .lux-team-image {
        width: 100%;
    }
}


/* Team Member Grid Layouts */
.lux-team-grid {
    display: grid;
    gap: 4rem;
    /* Big gap between grid items */
}

/* 1 Column (Default) - Keeps original styling */
.lux-team-grid-1 {
    grid-template-columns: 1fr;
}

/* 2 Columns */
.lux-team-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* 3 Columns */
.lux-team-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 4 Columns */
.lux-team-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Adjust inner items when in grid > 1 */
/* Adjust inner items when in grid > 1 */
.lux-team-grid-3 .lux-team-block,
.lux-team-grid-4 .lux-team-block {
    flex-direction: column;
    /* Stack image and content only for 3+ cols */
    gap: 1.5rem;
    margin: 0;
}

/* Ensure 2-column grid keeps horizontal layout (Image Left) */
.lux-team-grid-2 .lux-team-block {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

/* Correctly stack the TOP section (Image + Content) for narrow grids */
.lux-team-grid-3 .lux-team-top,
.lux-team-grid-4 .lux-team-top {
    flex-direction: column;
    gap: 1rem;
}

.lux-team-grid-3 .lux-team-image,
.lux-team-grid-4 .lux-team-image {
    width: 100%;
    /* Image full width when stacked */
}

/* For 2-Col, maybe adjust image width slightly if needed, but 35% (default) should work fine */
.lux-team-grid-2 .lux-team-content {
    padding-top: 0;
    /* Align top */
}

.lux-team-grid-3 .lux-team-content,
.lux-team-grid-4 .lux-team-content {
    padding-top: 0;
}

/* Stack header items if narrow */
.lux-team-grid-3 .lux-team-header,
.lux-team-grid-4 .lux-team-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

@media (max-width: 900px) {

    .lux-team-grid-2,
    .lux-team-grid-3,
    .lux-team-grid-4 {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   Grid Cleanup (3 & 4 Cols)
   ========================================= */

/* Left alignment for 3 and 4 columns */
.lux-team-grid-3 .lux-team-block,
.lux-team-grid-4 .lux-team-block {
    text-align: left;
    gap: 1.5rem;
}

.lux-team-grid-3 .lux-team-top,
.lux-team-grid-4 .lux-team-top {
    align-items: flex-start;
}

.lux-team-grid-3 .lux-team-header,
.lux-team-grid-4 .lux-team-header {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.5rem;
}

.lux-team-grid-3 .lux-team-phone,
.lux-team-grid-4 .lux-team-phone {
    justify-content: flex-start;
}

.lux-team-grid-3 .lux-team-image,
.lux-team-grid-4 .lux-team-image {
    width: auto;
    max-width: 250px;
    /* Constrain image size */
}

/* Restore Bio */
.lux-team-grid-3 .lux-team-bio,
.lux-team-grid-4 .lux-team-bio {
    display: block;
    font-size: 0.95rem;
    /* Slightly smaller text for dense grids */
}

/* Adjust Typography */
.lux-team-grid-3 .lux-team-name,
.lux-team-grid-4 .lux-team-name {
    font-size: 1.1rem;
}

.lux-team-grid-4 .lux-team-position {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.lux-team-grid-3 .lux-team-actions,
.lux-team-grid-4 .lux-team-actions {
    margin-top: 1rem;
}



/* Team Member Block - 2 Row Layout */
.lux-team-block {
    display: flex;
    flex-direction: column !important;
    /* Force column: Row 1 (Top), Row 2 (Bio) */
    gap: 2rem;
    margin-bottom: 0;
    /* Let grid handle gap */
}

/* Row 1: Image + Content */
.lux-team-top {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
}

.lux-team-image {
    width: 35%;
    /* Fixed width for column 1 */
    flex-shrink: 0;
}

.lux-team-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/4;
    /* standardized portrait ratio */
    object-fit: cover;
    /* crop to fit */
    display: block;
    border-radius: 2px;
}

.lux-team-content {
    flex-grow: 1;
    padding-top: 0.5rem;
}

/* Row 2: Bio */
.lux-team-bio {
    width: 100%;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .lux-team-top {
        flex-direction: column;
    }

    .lux-team-image {
        width: 100%;
    }

    .lux-team-image img {
        aspect-ratio: 16/9;
        /* Landscape on mobile? or keep portrait? Let's keep portrait or square */
        aspect-ratio: 1/1;
    }
}

/* =========================================
   Utility: Office Display Modes
   ========================================= */

/* Dark Text Mode (for use on white backgrounds, e.g., Contact Page) 
   Usage: [lux_main_office class="lux-mode-dark-text"]
*/
.lux-mode-dark-text .lux-footer-office-title,
.lux-footer-office-item.lux-mode-dark-text .lux-footer-office-title {
    color: var(--lux-color-dark);
}

.lux-mode-dark-text .lux-footer-office-content p,
.lux-footer-office-item.lux-mode-dark-text .lux-footer-office-content p {
    color: var(--lux-color-gray);
}

.lux-mode-dark-text .lux-footer-office-content a,
.lux-footer-office-item.lux-mode-dark-text .lux-footer-office-content a {
    color: var(--lux-color-dark);
}

.lux-mode-dark-text .lux-footer-office-content a:hover,
.lux-footer-office-item.lux-mode-dark-text .lux-footer-office-content a:hover {
    color: var(--lux-color-gold);
}

/* Corporate Logo Override for Agent Image */
.lux-agent-image.lux-is-logo img {
    border-radius: 0 !important;
    object-fit: contain !important;
    width: auto !important;
    height: auto !important;
    max-width: 250px !important;
    max-height: 150px !important;
    aspect-ratio: auto !important;
    box-shadow: none !important;
}