/* =========================================================
   MEENA PHOTOGRAPHY - PORTFOLIO
   Responsive editorial masonry gallery + lightbox
========================================================= */

:root {
    --portfolio-bg: #fbf6ee;
    --portfolio-cream: #f5eadc;
    --portfolio-dark: #211e1b;
    --portfolio-muted: #756d65;
    --portfolio-gold: #c89b62;
    --portfolio-gold-light: #dfc39e;
    --portfolio-white: #fffdf9;
    --portfolio-gap: 22px;
}

/* =========================================================
   PAGE
========================================================= */

.portfolio-page {
    width: 100%;
    overflow: hidden;
    background: var(--portfolio-bg);
    color: var(--portfolio-dark);
}

.portfolio-page *,
.portfolio-page *::before,
.portfolio-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   HERO
========================================================= */

.portfolio-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at 8% 45%, rgba(212,154,84,.14), transparent 24%),
        radial-gradient(circle at 92% 55%, rgba(212,154,84,.11), transparent 25%),
        linear-gradient(135deg, #fffdf9 0%, #f8eee1 100%);
}

.portfolio-hero::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(200,155,98,.18);
    pointer-events: none;
}

.portfolio-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -170px;
    width: min(800px, 80vw);
    height: 300px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(200,155,98,.07);
    pointer-events: none;
}

.portfolio-hero-inner {
    position: relative;
    z-index: 2;
    width: min(900px, calc(100% - 40px));
    padding: 150px 0 70px;
}

.portfolio-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #8f704b;
    font-family: var(--fb, sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .28em;
}

.portfolio-eyebrow span {
    width: 48px;
    height: 1px;
    flex: 0 0 48px;
    background: var(--portfolio-gold-light);
}

.portfolio-hero h1 {
    margin: 20px 0 0;
    color: var(--portfolio-dark);
    font-family: var(--fh, Georgia, serif);
    font-size: clamp(60px, 9vw, 120px);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.06em;
}

.portfolio-hero h1 em {
    color: var(--portfolio-gold);
    font-style: normal;
}

.portfolio-script {
    margin: 18px 0 22px;
    color: #9a7551;
    font-family: var(--mct-script, cursive);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
}

.portfolio-intro {
    max-width: 600px;
    margin: 0 auto;
    color: var(--portfolio-muted);
    font-family: var(--fb, sans-serif);
    font-size: 14px;
    line-height: 1.8;
}

.portfolio-hero-decoration {
    position: absolute;
    color: rgba(169,112,59,.20);
    font-size: 100px;
    pointer-events: none;
    user-select: none;
}

.decoration-left {
    left: 1%;
    top: 20%;
    transform: rotate(-15deg);
}

.decoration-right {
    right: 2%;
    bottom: 8%;
    transform: rotate(25deg);
}

/* =========================================================
   SECTION / HEADING
========================================================= */

.portfolio-section {
    padding: 110px 24px 120px;
    background: var(--portfolio-white);
}

.portfolio-container {
    width: min(1400px, 100%);
    margin: 0 auto;
}

.portfolio-heading {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 60px;
}

.section-label {
    display: block;
    margin-bottom: 20px;
    color: #a27b52;
    font-family: var(--fb, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .25em;
}

.portfolio-heading h2 {
    max-width: 750px;
    margin: 0;
    color: var(--portfolio-dark);
    font-family: var(--fh, Georgia, serif);
    font-size: clamp(45px, 6vw, 80px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.045em;
}

.portfolio-heading h2 span {
    display: block;
    color: var(--portfolio-gold);
}

.portfolio-heading-right {
    padding-bottom: 6px;
}

.portfolio-heading-right p {
    max-width: 470px;
    margin: 0;
    color: var(--portfolio-muted);
    font-family: var(--fb, sans-serif);
    font-size: 16px;
    line-height: 1.9;
}

/* =========================================================
   FILTER
========================================================= */

.portfolio-filter {
    position: relative;
    width: 100%;
}

.portfolio-filter input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 45px;
    padding-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filter-buttons::-webkit-scrollbar {
    display: none;
}

.filter-buttons label {
    flex: 0 0 auto;
    padding: 11px 19px;
    border: 1px solid rgba(33,30,27,.16);
    border-radius: 100px;
    color: #625b54;
    background: transparent;
    font-family: var(--fb, sans-serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    cursor: pointer;
    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.filter-buttons label:hover {
    border-color: var(--portfolio-gold);
    color: var(--portfolio-gold);
    transform: translateY(-1px);
}

#filter-all:checked ~ .filter-buttons label[for="filter-all"],
#filter-wedding:checked ~ .filter-buttons label[for="filter-wedding"],
#filter-newborn:checked ~ .filter-buttons label[for="filter-newborn"],
#filter-maternity:checked ~ .filter-buttons label[for="filter-maternity"],
#filter-baby:checked ~ .filter-buttons label[for="filter-baby"],
#filter-family:checked ~ .filter-buttons label[for="filter-family"],
#filter-events:checked ~ .filter-buttons label[for="filter-events"] {
    background: var(--portfolio-dark);
    border-color: var(--portfolio-dark);
    color: #fff;
}

/* =========================================================
   MASONRY GALLERY
   Natural image height - NO object-fit: cover
========================================================= */

.portfolio-grid {
    width: 100%;
    column-count: 3;
    column-gap: var(--portfolio-gap);
}

.portfolio-card {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 var(--portfolio-gap);
    overflow: hidden;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    background: #eee5da;
    border-radius: 3px;
    vertical-align: top;
    animation: portfolioCardIn .5s ease both;
}

@keyframes portfolioCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    cursor: zoom-in;
    background: #eee5da;
}

.portfolio-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: initial;
    vertical-align: middle;
    transform: scale(1);
    transition: transform .7s cubic-bezier(.22,.61,.36,1);
}

.portfolio-image:hover img {
    transform: scale(1.025);
}

/* =========================================================
   OVERLAY
========================================================= */

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px;
    color: #fff;
    background: linear-gradient(180deg, transparent 34%, rgba(0,0,0,.08) 52%, rgba(0,0,0,.78) 100%);
    opacity: 0;
    transition: opacity .35s ease;
}

.portfolio-image:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    display: block;
    margin-bottom: 7px;
    color: #e1c08f;
    font-family: var(--fb, sans-serif);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.portfolio-overlay h3 {
    margin: 0 0 18px;
    color: #fff;
    font-family: var(--fh, Georgia, serif);
    font-size: clamp(27px, 2.6vw, 42px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.025em;
}

.portfolio-view {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--fb, sans-serif);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

.portfolio-view b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 400;
}

/* =========================================================
   FILTER LOGIC
========================================================= */

#filter-wedding:checked ~ .portfolio-grid .portfolio-card:not(.wedding),
#filter-newborn:checked ~ .portfolio-grid .portfolio-card:not(.newborn),
#filter-maternity:checked ~ .portfolio-grid .portfolio-card:not(.maternity),
#filter-baby:checked ~ .portfolio-grid .portfolio-card:not(.baby),
#filter-family:checked ~ .portfolio-grid .portfolio-card:not(.family),
#filter-events:checked ~ .portfolio-grid .portfolio-card:not(.events) {
    display: none;
}

/* =========================================================
   CTA
========================================================= */

.portfolio-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: 100px;
    padding: 60px 65px;
    overflow: hidden;
    background: linear-gradient(135deg, #f2e4d3, #f8eee3);
    border: 1px solid rgba(200,155,98,.18);
}

.portfolio-cta::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(200,155,98,.08);
    pointer-events: none;
}

.portfolio-cta-content {
    position: relative;
    z-index: 1;
}

.portfolio-cta-content > span {
    display: block;
    margin-bottom: 15px;
    color: #9a7551;
    font-family: var(--fb, sans-serif);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .25em;
}

.portfolio-cta h2 {
    max-width: 700px;
    margin: 0;
    font-family: var(--fh, Georgia, serif);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.04em;
}

.portfolio-cta h2 em {
    color: var(--portfolio-gold);
    font-style: normal;
}

.portfolio-cta-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 0 0 auto;
    padding: 17px 25px;
    background: var(--portfolio-dark);
    color: #fff;
    font-family: var(--fb, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease;
}

.portfolio-cta-button span {
    font-size: 18px;
}

.portfolio-cta-button:hover {
    background: #8f704b;
    transform: translateY(-2px);
}

/* =========================================================
   LIGHTBOX
========================================================= */

.portfolio-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 30px;
    background: rgba(15,13,11,.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.portfolio-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.lightbox-open {
    overflow: hidden !important;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    max-width: 94vw;
    max-height: 92vh;
    transform: scale(.94);
    transition: transform .35s ease;
}

.portfolio-lightbox.is-open .lightbox-content {
    transform: scale(1);
}

#lightboxImage {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(92vw, 1500px) !important;
    max-height: 80vh !important;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 30px 100px rgba(0,0,0,.55);
    opacity: 1;
    transition: opacity .2s ease;
}

#lightboxImage.lightbox-changing {
    opacity: 0;
}

.lightbox-caption {
    width: 100%;
    margin-top: 18px;
    text-align: center;
}

.lightbox-caption span {
    display: block;
    margin-bottom: 7px;
    color: #d6aa70;
    font-family: var(--fb, sans-serif);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.lightbox-caption h3 {
    margin: 0;
    color: #fff;
    font-family: var(--fh, Georgia, serif);
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 400;
    line-height: 1;
}

.lightbox-close {
    position: fixed !important;
    top: 22px;
    right: 25px;
    z-index: 1000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,.18);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: fixed !important;
    top: 50%;
    z-index: 1000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .25s ease, transform .25s ease;
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.lightbox-prev:hover {
    background: rgba(255,255,255,.18);
    transform: translate(-3px,-50%);
}

.lightbox-next:hover {
    background: rgba(255,255,255,.18);
    transform: translate(3px,-50%);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
    .portfolio-section {
        padding: 90px 20px 100px;
    }

    .portfolio-heading {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .portfolio-heading-right {
        padding-bottom: 0;
    }

    .portfolio-grid {
        column-count: 2;
        column-gap: 18px;
    }

    .portfolio-card {
        margin-bottom: 18px;
    }

    .portfolio-overlay {
        padding: 24px;
    }

    .portfolio-overlay h3 {
        font-size: 32px;
    }

    .portfolio-cta {
        padding: 50px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
    .portfolio-hero {
        min-height: 470px;
    }

    .portfolio-hero::before {
        inset: 10px;
    }

    .portfolio-hero-inner {
        width: calc(100% - 30px);
        padding: 110px 0 55px;
    }

    .portfolio-eyebrow {
        gap: 8px;
        font-size: 8px;
        letter-spacing: .2em;
    }

    .portfolio-eyebrow span {
        width: 25px;
        flex-basis: 25px;
    }

    .portfolio-hero h1 {
        font-size: 58px;
    }

    .portfolio-script {
        font-size: 31px;
    }

    .portfolio-intro {
        padding: 0 15px;
        font-size: 13px;
    }

    .portfolio-hero-decoration {
        font-size: 65px;
    }

    .portfolio-section {
        padding: 75px 16px 80px;
    }

    .portfolio-heading {
        margin-bottom: 40px;
    }

    .portfolio-heading h2 {
        font-size: 45px;
    }

    .portfolio-heading-right p {
        font-size: 13px;
        line-height: 1.8;
    }

    .filter-buttons {
        margin-bottom: 30px;
        padding-bottom: 10px;
    }

    .filter-buttons label {
        padding: 9px 15px;
        font-size: 11px;
    }

    .portfolio-grid {
        column-count: 1;
        column-gap: 0;
    }

    .portfolio-card {
        width: 100%;
        margin-bottom: 16px;
    }

    .portfolio-image {
        width: 100%;
        height: auto;
    }

    .portfolio-image img {
        width: 100%;
        height: auto;
    }

    .portfolio-overlay {
        opacity: 1;
        padding: 21px;
        background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.76) 100%);
    }

    .portfolio-overlay h3 {
        margin-bottom: 12px;
        font-size: 29px;
    }

    .portfolio-category,
    .portfolio-view {
        font-size: 8px;
    }

    .portfolio-view b {
        width: 23px;
        height: 23px;
    }

    .portfolio-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-top: 65px;
        padding: 40px 25px;
    }

    .portfolio-cta h2 {
        font-size: 40px;
    }

    .portfolio-cta-button {
        width: 100%;
        justify-content: center;
    }

    /* Mobile lightbox */
    .portfolio-lightbox {
        padding: 12px;
    }

    .lightbox-content {
        width: 100%;
        max-width: 96vw;
        max-height: 90vh;
    }

    #lightboxImage {
        max-width: 94vw !important;
        max-height: 74vh !important;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 27px;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 62px;
        width: 42px;
        height: 42px;
        transform: none;
    }

    .lightbox-prev { left: 18px; }
    .lightbox-next { right: 18px; }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        transform: none;
    }

    .lightbox-caption {
        margin-top: 10px;
    }

    .lightbox-caption span {
        font-size: 7px;
    }

    .lightbox-caption h3 {
        font-size: 22px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {
    .portfolio-hero h1 {
        font-size: 50px;
    }

    .portfolio-script {
        font-size: 28px;
    }

    .portfolio-heading h2 {
        font-size: 39px;
    }

    .portfolio-overlay {
        padding: 17px;
    }

    .portfolio-overlay h3 {
        font-size: 26px;
    }

    #lightboxImage {
        max-height: 70vh !important;
    }
}

/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) and (pointer: coarse) {
    .portfolio-image img,
    .portfolio-image:hover img {
        transform: none;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .portfolio-page *,
    .portfolio-page *::before,
    .portfolio-page *::after {
        animation: none !important;
        transition: none !important;
    }

    .portfolio-image img {
        transform: none !important;
    }
}
