/* ==========================================================================
   Maison Living — storefront design layer
   Loaded after the inline header styles. Refines the existing look (Playfair +
   Karla, gold accent) into one consistent, quieter system.

   1. Tokens & base      2. Navbar        3. Heroes        4. Sections
   5. Cards & grids      6. Tiles         7. Chips         8. Pagination
   9. Projects           10. Catalogs     11. Banner       12. Utilities
   13. Home              14. Footer & floating button
   ========================================================================== */

/* 1. Tokens & base --------------------------------------------------------- */
:root {
    --ml-ink: #1a1a1a;
    --ml-text: #4a4a4a;
    --ml-muted: #8a8a8a;
    --ml-line: #ececec;
    --ml-soft: #faf9f7;
    --ml-gold: #ffc107;
    --ml-gold-deep: #8f6b00;
    --ml-radius: 16px;
    --ml-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
    --ml-shadow-hover: 0 18px 44px rgba(0, 0, 0, .12);
    --ml-nav-h: 72px;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    letter-spacing: .005em;
}

body a {
    transition: color .25s ease, opacity .25s ease;
}

:focus-visible {
    outline: 2px solid var(--ml-gold);
    outline-offset: 3px;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* 2. Navbar ---------------------------------------------------------------- */
body #navbar .navbar-nav .nav-link {
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .06em;
    padding-top: .55rem;
    padding-bottom: .55rem;
}

/* gold underline for plain links (dropdown toggles keep Bootstrap's caret) */
body #navbar .navbar-nav .nav-link:not(.dropdown-toggle) {
    position: relative;
}

body #navbar .navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--ml-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

body #navbar .navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
body #navbar .navbar-nav .nav-link:not(.dropdown-toggle).active::after {
    transform: scaleX(1);
}

@media (max-width: 991.98px) {
    body #navbar .navbar-nav .nav-link:not(.dropdown-toggle)::after {
        display: none;
    }
}

/* 3. Heroes ---------------------------------------------------------------- */
.ml-hero {
    padding: calc(var(--ml-nav-h) + 56px) 0 56px;
    text-align: center;
    background: linear-gradient(180deg, var(--ml-soft) 0%, #fff 100%);
    border-bottom: 1px solid var(--ml-line);
}

.ml-eyebrow,
body .section-subtitle {
    display: block;
    margin-bottom: 14px;
    font-family: 'Karla', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ml-gold-deep);
}

.ml-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ml-ink);
}

.ml-rule {
    width: 48px;
    height: 2px;
    margin: 22px auto 0;
    background: var(--ml-gold);
}

.ml-lead {
    max-width: 640px;
    margin: 22px auto 0;
    font-family: 'Karla', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ml-muted);
}

/* photo hero: brand pages, catalogs */
.ml-hero--photo {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--ml-nav-h) + 24px) 0 56px;
    border: 0;
    background: #111;
    color: #fff;
}

.ml-hero--photo .ml-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}

.ml-hero--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, .65) 100%);
}

.ml-hero--photo .container {
    position: relative;
    z-index: 2;
}

.ml-hero--photo .ml-eyebrow {
    color: var(--ml-gold);
}

.ml-hero--photo .ml-title,
.ml-hero--photo .ml-lead {
    color: #fff;
}

.ml-hero--photo .ml-lead {
    opacity: .8;
}

/* 4. Sections -------------------------------------------------------------- */
.ml-section {
    padding: 80px 0;
}

.ml-section--soft {
    background: var(--ml-soft);
    border-top: 1px solid var(--ml-line);
    border-bottom: 1px solid var(--ml-line);
}

.ml-section-head {
    margin-bottom: 44px;
    text-align: center;
}

.ml-section-head h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .ml-section {
        padding: 56px 0;
    }

    .ml-hero {
        padding-top: calc(var(--ml-nav-h) + 36px);
        padding-bottom: 40px;
    }
}

/* 5. Cards & grids --------------------------------------------------------- */
.ml-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 28px;
}

@media (max-width: 575.98px) {
    .ml-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

.ml-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--ml-line);
    border-radius: var(--ml-radius);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.ml-card:hover {
    transform: translateY(-4px);
    border-color: #e2e2e2;
    box-shadow: var(--ml-shadow-hover);
    color: inherit;
}

.ml-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fff;
}

.ml-card-media img {
    width: 100%;
    height: 100%;
    padding: 14px;
    object-fit: contain;
    transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}

.ml-card:hover .ml-card-media img {
    transform: scale(1.05);
}

.ml-card-body {
    padding: 16px 18px 20px;
    text-align: center;
}

.ml-card-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ml-ink);
}

.ml-card-meta {
    margin-top: 6px;
    font-family: 'Karla', sans-serif;
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ml-muted);
}

.ml-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 50px;
    background: #111;
    color: #fff;
    font-family: 'Karla', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ml-empty {
    padding: 72px 16px;
    text-align: center;
}

.ml-empty p {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--ml-muted);
}

/* 6. Tiles (rooms, categories, brands) ------------------------------------- */
.ml-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--ml-radius);
    background: #2b2b2b;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--ml-shadow);
    transition: transform .4s ease, box-shadow .4s ease;
}

.ml-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--ml-shadow-hover);
    color: #fff;
}

.ml-tile-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.1s cubic-bezier(.4, 0, .2, 1);
}

.ml-tile:hover .ml-tile-bg {
    transform: scale(1.07);
}

.ml-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .7) 100%);
}

.ml-tile-label {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 22px;
    font-family: 'Karla', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.ml-tile-label::before {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-bottom: 10px;
    background: var(--ml-gold);
    transition: width .35s ease;
}

.ml-tile:hover .ml-tile-label::before {
    width: 56px;
}

/* brand tile: photo + logo */
.ml-brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.ml-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 calc(33.333% - 16px);
    min-width: 280px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--ml-radius);
    background: #222;
    text-decoration: none;
    box-shadow: var(--ml-shadow);
    transition: transform .4s ease, box-shadow .4s ease;
}

.ml-brand:hover {
    transform: translateY(-4px);
    box-shadow: var(--ml-shadow-hover);
}

.ml-brand-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.1s cubic-bezier(.4, 0, .2, 1);
}

.ml-brand:hover .ml-brand-bg {
    transform: scale(1.07);
}

.ml-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, .42);
    transition: background .4s ease;
}

.ml-brand:hover::after {
    background: rgba(10, 10, 10, .3);
}

.ml-brand img {
    position: relative;
    z-index: 2;
    max-width: 58%;
    max-height: 42%;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35));
    transition: transform .5s ease;
}

.ml-brand:hover img {
    transform: scale(1.06);
}

@media (max-width: 991.98px) {
    .ml-brand {
        flex-basis: calc(50% - 12px);
        min-width: 240px;
    }
}

@media (max-width: 575.98px) {
    .ml-brand-grid {
        gap: 12px;
    }

    .ml-brand {
        flex-basis: calc(50% - 6px);
        min-width: 0;
        aspect-ratio: 4 / 3;
    }

    .ml-brand img {
        max-width: 66%;
    }
}

/* carousel arrows: clean white discs that sit just outside the tiles */
.ml-section .splide__arrow {
    width: 2.6rem;
    height: 2.6rem;
    background: #fff;
    opacity: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ml-section .splide__arrow:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

.ml-section .splide__arrow svg {
    width: 1rem;
    height: 1rem;
    fill: var(--ml-ink);
}

.ml-section .splide__arrow--prev {
    left: -1.3rem;
}

.ml-section .splide__arrow--next {
    right: -1.3rem;
}

@media (max-width: 1399.98px) {
    .ml-section .splide__arrow--prev {
        left: -.4rem;
    }

    .ml-section .splide__arrow--next {
        right: -.4rem;
    }
}

/* 7. Filter chips ---------------------------------------------------------- */
.ml-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 44px;
}

.ml-chip {
    padding: 9px 20px;
    border: 1px solid #e3e3e3;
    border-radius: 50px;
    background: #fff;
    color: #666;
    font-family: 'Karla', sans-serif;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
}

.ml-chip:hover {
    border-color: var(--ml-ink);
    color: var(--ml-ink);
}

.ml-chip.active {
    border-color: var(--ml-ink);
    background: var(--ml-ink);
    color: #fff;
}

/* 8. Pagination ------------------------------------------------------------ */
.ml-pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 56px 0 10px;
    padding: 0;
    list-style: none;
}

.ml-pager a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #666;
    font-family: 'Karla', sans-serif;
    text-decoration: none;
    transition: all .25s ease;
}

.ml-pager a:hover {
    background: #f1efea;
    color: var(--ml-ink);
}

.ml-pager .active a {
    background: var(--ml-ink);
    color: #fff;
}

.ml-pager-info {
    text-align: center;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ml-muted);
}

/* 9. Projects -------------------------------------------------------------- */
.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--ml-radius);
    background: #222;
    box-shadow: var(--ml-shadow);
    transition: transform .4s ease, box-shadow .4s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ml-shadow-hover);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.4, 0, .2, 1);
}

.project-card:hover img {
    transform: scale(1.06);
}

.project-card-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 56px 28px 26px;
    background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-card-overlay::before {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-bottom: 12px;
    background: var(--ml-gold);
    transition: width .35s ease;
}

.project-card:hover .project-card-overlay::before {
    width: 56px;
}

.project-card-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
}

.project-feature {
    width: 100%;
    max-height: 640px;
    object-fit: cover;
    border-radius: var(--ml-radius);
    box-shadow: var(--ml-shadow-hover);
}

/* 10. Catalogs (catalog page + brand detail) ------------------------------- */
.catalog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    border: 1px solid var(--ml-line);
    border-radius: var(--ml-radius);
    background: #fff;
    text-align: center;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    border-color: #e2e2e2;
    box-shadow: var(--ml-shadow-hover);
}

.catalog-cover-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    background: var(--ml-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.4, 0, .2, 1);
}

.catalog-card:hover .catalog-cover {
    transform: scale(1.05);
}

.catalog-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, .45);
    opacity: 0;
    transition: opacity .3s ease;
}

.catalog-card:hover .catalog-overlay {
    opacity: 1;
}

.catalog-read-btn {
    padding: 10px 22px;
    border-radius: 50px;
    background: #fff;
    color: var(--ml-ink);
    font-family: 'Karla', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    transform: translateY(12px);
    transition: transform .3s ease;
}

.catalog-card:hover .catalog-read-btn {
    transform: none;
}

.catalog-brand-label {
    margin: 0 0 4px;
    font-family: 'Karla', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ml-gold-deep);
}

.catalog-title {
    margin: 0;
    font-family: 'Karla', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ml-ink);
}

/* 11. Promotional banner --------------------------------------------------- */
.ads-container {
    max-width: 900px;
    margin: 0 auto 64px;
    padding: 0 15px;
}

.ads-container img {
    border-radius: var(--ml-radius);
}

.ads-floating-btn {
    z-index: 2;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Karla', sans-serif;
    font-size: clamp(.7rem, 1.5vw, 1rem);
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .ads-floating-btn {
        padding: 6px 14px;
    }
}

/* 12. Utilities ------------------------------------------------------------ */
.ml-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.ml-about img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--ml-radius);
    box-shadow: var(--ml-shadow-hover);
}

.ml-about h2 {
    margin: 0 0 20px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
}

.ml-about p {
    margin: 0;
    font-family: 'Karla', sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--ml-text);
}

@media (max-width: 991.98px) {
    .ml-about {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* 13. Home ----------------------------------------------------------------- */
.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    background: #0d0d0d;
    text-align: center;
}

.home-hero #homecover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .7) 100%);
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: calc(var(--ml-nav-h) + 24px) 0 64px;
    color: #fff;
}

.home-hero-eyebrow {
    margin-bottom: 20px;
    font-family: 'Karla', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--ml-gold);
}

.home-hero-title {
    margin: 0 0 22px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    font-weight: 400;
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

.home-hero-lead {
    max-width: 640px;
    margin: 0 auto 40px;
    font-family: 'Karla', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .82);
}

.home-hero .search-container {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.home-scroll {
    display: inline-block;
    margin-top: 44px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-family: 'Karla', sans-serif;
    font-size: .85rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
}

.home-scroll:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.home-scroll i {
    margin-left: 12px;
    font-size: .75rem;
    transition: transform .3s ease;
}

.home-scroll:hover i {
    transform: translateX(6px);
}

.home-featured .splide__slide {
    padding: 8px;
}

.home-featured .splide__arrow {
    width: 2.6rem;
    height: 2.6rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    opacity: 1;
}

.home-featured .splide__arrow svg {
    fill: var(--ml-ink);
}

body .store-section {
    padding: 96px 0;
    min-height: 0;
}

body .store-card {
    border-radius: var(--ml-radius);
}

/* 13b. About ---------------------------------------------------------------- */
.ml-about--reverse > img {
    order: 2;
}

@media (max-width: 991.98px) {
    .ml-about--reverse > img {
        order: 0;
    }
}

.ml-about p + p {
    margin-top: 16px;
}

.ml-facts {
    border-bottom: 1px solid var(--ml-line);
    background: #fff;
}

.ml-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.ml-fact {
    padding: 36px 16px;
    text-align: center;
    border-left: 1px solid var(--ml-line);
}

.ml-fact:first-child {
    border-left: 0;
}

.ml-fact strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--ml-ink);
}

.ml-fact span {
    display: block;
    margin-top: 8px;
    font-family: 'Karla', sans-serif;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ml-muted);
}

@media (max-width: 575.98px) {
    .ml-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ml-fact:nth-child(odd) {
        border-left: 0;
    }

    .ml-fact {
        border-top: 1px solid var(--ml-line);
        padding: 26px 12px;
    }

    .ml-fact:nth-child(-n+2) {
        border-top: 0;
    }
}

.ml-vm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 56px;
}

.ml-vm-card {
    padding: 44px 40px;
    border: 1px solid var(--ml-line);
    border-radius: var(--ml-radius);
    background: #fff;
    box-shadow: var(--ml-shadow);
}

.ml-vm-card h2 {
    margin: 0 0 16px;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
}

.ml-vm-card p {
    margin: 0;
    font-family: 'Karla', sans-serif;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--ml-text);
}

@media (max-width: 767.98px) {
    .ml-vm {
        grid-template-columns: 1fr;
    }

    .ml-vm-card {
        padding: 32px 26px;
    }
}

.ml-wide-img {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: var(--ml-radius);
    box-shadow: var(--ml-shadow);
}

@media (max-width: 575.98px) {
    .ml-wide-img {
        aspect-ratio: 4 / 3;
    }
}

.ml-gallery-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ml-gallery-row img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--ml-radius);
    box-shadow: var(--ml-shadow);
}

@media (max-width: 575.98px) {
    .ml-gallery-row {
        gap: 10px;
    }
}

/* justified gallery: rows are balanced server-side, so every row spans the full width and
   all photos in a row share one height (widths follow each photo's ratio) */
.ml-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ml-row {
    display: flex;
    gap: 14px;
}

.ml-row-item {
    position: relative;
    display: block;
    min-width: 0;
    flex: var(--r) 1 0;
    aspect-ratio: var(--r);
    overflow: hidden;
    border-radius: 12px;
    background: #ece9e3;
}

.ml-row-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.4, 0, .2, 1);
}

.ml-row-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0);
    transition: background .35s ease;
}

.ml-row-item:hover img {
    transform: scale(1.05);
}

.ml-row-item:hover::after {
    background: rgba(10, 10, 10, .18);
}

/* phones: plain two-column grid of equal tiles */
@media (max-width: 767.98px) {
    .ml-rows {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ml-row {
        display: contents;
    }

    .ml-row-item {
        flex: none;
        aspect-ratio: 1 / 1;
        border-radius: 8px;
    }
}

/* 14. Footer & floating button -------------------------------------------- */
body .wa-floating-button {
    width: 60px;
    height: 60px;
    right: 24px;
    bottom: 24px;
    border-width: 1px;
    box-shadow: 0 8px 22px rgba(18, 140, 126, .35);
}

body .wa-floating-button i {
    font-size: 30px;
    animation: none;
}

body footer .container {
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
}
