/* MM Portfolio Gallery — Morgan Metzger Interior Design
   Designed to complement the site's refined, editorial aesthetic */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ── Section wrapper ── */
.mm-portfolio-section {
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
    max-width: 1400px;
}

/* ── Filter Bar ── */
.mm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 0;
    list-style: none;
    border: none;
}

.mm-filter-btn {
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a0917e;
    background: none;
    border: none;
    padding: 0.25rem 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.mm-filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #3a3028;
    transition: width 0.35s ease;
}

.mm-filter-btn:hover,
.mm-filter-btn.mm-filter-active {
    color: #3a3028;
}

.mm-filter-btn:hover::after,
.mm-filter-btn.mm-filter-active::after {
    width: 100%;
}

/* ── Portfolio Grid ── */
.mm-portfolio-grid {
    display: grid;
    gap: 1.25rem;
}

.mm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mm-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mm-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Project Card ── */
.mm-project-card {
    position: relative;
    overflow: hidden;
    background: #f5f3f0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mm-project-card.mm-hidden {
    display: none;
}

/* ── Card Image ── */
.mm-card-image-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    /* Intrinsic ratio — landscape default; portrait images self-size */
    aspect-ratio: 3 / 4;
}

.mm-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mm-project-card:hover .mm-card-image {
    transform: scale(1.04);
}

/* ── Overlay ── */
.mm-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 24, 18, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.mm-overlay-icon {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 2.5rem;
    color: #f9f7f4;
    opacity: 0;
    transform: scale(0.8) rotate(90deg);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    line-height: 1;
}

.mm-project-card:hover .mm-card-overlay {
    background: rgba(30, 24, 18, 0.42);
}

.mm-project-card:hover .mm-overlay-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ── Card Meta (title + collection) ── */
.mm-card-meta {
    padding: 0.85rem 0.25rem 0.5rem;
}

.mm-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.02em;
    color: #3a3028;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.mm-card-collection {
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a0917e;
    margin: 0;
}

/* ── No results ── */
.mm-no-projects {
    grid-column: 1 / -1;
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    color: #a0917e;
    padding: 3rem 0;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .mm-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .mm-cols-3,
    .mm-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .mm-cols-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .mm-cols-2,
    .mm-cols-3,
    .mm-cols-4 { grid-template-columns: 1fr; }
    .mm-portfolio-grid { gap: 0.85rem; }
}
