@media (min-width: 1025px) {
    .footer-content {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 60px;
        text-align: left;
    }
    footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .portfolio-header {
        margin-top: 170px !important;
    }
}
/* --- GALLERIE D'ART 3.0 (EDITORIAL & CINEMATIC REBIRTH) --- */

:root {
    --exhib-gold: #d4af37;
    --exhib-spacing: 50px;
    --font-heading: 'Playfair Display', serif;
}

#portfolio {
    margin-top: 0 !important;
    padding-top: 8px !important;
    display: block !important;
    min-height: auto !important;
    transform: none !important;
    background: #050b14 !important;
}

/* Luxury Exhibit Header - Marketing Editorial Style */
.portfolio-header {
        text-align: center;
        padding: 24px 20px 44px;
        background: radial-gradient(circle at 50% 0%, #13223a 0%, #050b14 62%, #03070e 100%);
        position: relative;
        overflow: hidden;
        margin-top: 0 !important;
}

@media (min-width: 1025px) {
    .portfolio-header {
        margin-top: 90px !important;
    }
}

/* Background decoration removed for clarity */

.portfolio-header h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5.5rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-top: 0 !important;
    margin-bottom: 16px;
    color: #fff;
    position: relative;
    z-index: 2;
    line-height: 0.92;
    background: linear-gradient(to bottom, #ffffff 40%, #aaaaaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-header h1 span {
    display: block;
    color: var(--exhib-gold);
    -webkit-text-fill-color: var(--exhib-gold);
    font-size: 0.35em;
    letter-spacing: 15px;
    font-weight: 400;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
}

.portfolio-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 600px;
    margin: 30px auto 0;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.portfolio-header p::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--exhib-gold);
    margin: 30px auto 0;
    opacity: 0.5;
}

/* Minimalist Museum Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 80px;
    flex-wrap: wrap;
    padding: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    background: #050505;
}

.filter-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 500;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--exhib-gold);
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.filter-btn:hover {
    color: #fff;
    letter-spacing: 7px;
}

.filter-btn.active {
    color: var(--exhib-gold);
    letter-spacing: 7px;
}

.filter-btn.active::after {
    width: 100%;
    left: 0;
}

/* Instagram-Style Feed Container */
.feed-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: #000;
}

/* Feed Post Element */
.feed-post {
    background: #000;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
    /* transition: transform 0.3s ease; eliminated for native feel */
}

/* Feed Header */
.feed-header {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    gap: 12px;
}

.feed-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #aa8222);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    font-family: var(--font-heading);
}

.feed-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

.feed-location {
    font-size: 0.75rem;
    color: #c8bfaf;
    margin: 0;
    font-weight: 300;
}

.feed-options {
    margin-left: auto;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

/* 4:5 Aspect Ratio Image Carousel (Instagram Standard) */
.feed-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #050505;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    scrollbar-width: none;
    /* Firefox */
}

.feed-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.feed-image-wrapper {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    position: relative;
}

.feed-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(6%) contrast(1.12) brightness(0.95);
    transition: filter 0.3s ease;
}

/* Carousel Dots */
.carousel-dots-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--exhib-gold);
}

/* Feed Actions Bar (Like, Comment, Share) */
.feed-actions {
    padding: 9px 12px 6px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.feed-btn {
    background: transparent;
    border: none;
    color: #f7f7f7;
    font-size: 0;
    cursor: pointer;
    padding: 3px;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-btn-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.feed-btn-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.feed-btn:hover {
    opacity: 0.72;
    color: #f7f7f7;
}

.feed-btn.liked {
    color: #ff3b30;
    animation: heartBeat 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feed-btn.liked:hover {
    color: #ff3b30;
}

.feed-btn.saved {
    color: #f7f7f7;
    animation: heartBeat 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.save-btn {
    margin-left: auto;
}

/* Caption and Meta */
.feed-likes-count {
    padding: 0 15px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 5px;
    display: block;
}

.feed-caption {
    padding: 0 15px 5px;
    color: #ddd;
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
}

.feed-caption strong {
    color: #fff;
    font-weight: 600;
    margin-right: 5px;
    cursor: pointer;
}

.feed-comments-list {
    padding: 0 15px;
    margin-bottom: 5px;
}

.feed-comment {
    color: #ddd;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
}

.feed-comment strong {
    color: #fff;
    font-weight: 600;
    margin-right: 5px;
}

.feed-time {
    color: #c8bfaf;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 15px 10px;
    display: block;
}

.feed-add-comment {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 10px;
}

.feed-add-comment input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.feed-add-comment input::placeholder {
    color: #c8bfaf;
}

.feed-add-comment button {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.feed-add-comment button:hover {
    opacity: 1;
}

/* Portfolio Item Card 4.0 (Insta/Editorial Hybrid) */
.portfolio-item {
    position: relative;
    background: #080808;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Asymmetric sizing based on content */
.item-tall {
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
}

.item-large {
    grid-row: span 2;
    grid-column: span 2;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
    filter: grayscale(10%) contrast(1.1) brightness(0.9);
}

/* Exhibition Label Styling */
.portfolio-item .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 30px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}

.portfolio-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(-5px);
}

.portfolio-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1.05) brightness(1.05);
}

.portfolio-item:hover .info {
    transform: translateY(0);
}

.portfolio-item .info h3 {
    color: #fff;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.portfolio-item .info span {
    color: var(--exhib-gold);
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Like Button (Heart) */
.like-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-10px);
}

.portfolio-item:hover .like-btn,
.like-btn.liked {
    opacity: 1;
    transform: translateY(0);
}

.like-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--exhib-gold);
    transform: scale(1.1);
}

.like-btn.liked i {
    color: #ff3b30;
    animation: heartBeat 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Reel/Video Badge */
.reel-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.65rem;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Mobile Adjustments (Museum View) */
@media (max-width: 768px) {
    #portfolio {
        margin-top: 0 !important;
        padding-top: 4px !important;
        min-height: auto !important;
        display: block !important;
    }

    .portfolio-header::before {
        display: none;
    }

    .portfolio-header {
        padding: 16px 15px 20px !important;
        background: none;
        margin-top: 0 !important;
    }

    .portfolio-header h1 {
        font-size: 1.8rem !important;
        letter-spacing: 4px !important;
        margin-bottom: 15px !important;
    }

    .gallery-filters {
        gap: 8px !important;
        margin-bottom: 10px !important;
        padding: 10px !important;
    }

    .filter-btn {
        font-size: 0.5rem !important;
        letter-spacing: 1px !important;
        padding: 8px 10px !important;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 4px;
        white-space: nowrap;
    }

    .feed-container {
        padding: 10px !important;
        gap: 25px !important;
    }

    .feed-post {
        border-radius: 4px;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }

    .item-tall {
        grid-row: span 2;
    }

    .item-wide {
        grid-column: span 2;
    }

    .item-large {
        grid-row: span 2;
        grid-column: span 2;
    }

    .portfolio-item .info {
        transform: translateY(0);
        padding: 30px 10px 10px;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .portfolio-item:active .info {
        opacity: 1;
    }

    .portfolio-item:hover {
        transform: none;
        box-shadow: none;
    }

    .like-btn {
        opacity: 1;
        transform: none;
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Lightbox Cinematic Overlay */
#lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #000;
    /* Absolute black */
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#lightbox-modal.active {
    display: flex;
    opacity: 1;
}

#lightbox-img {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

#lightbox-close:hover {
    background: rgba(212, 175, 55, 0.4);
}

.lightbox-controls {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.lightbox-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    opacity: 0.6;
    transition: all 0.3s;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.lightbox-btn:hover {
    opacity: 1;
    color: var(--exhib-gold);
    transform: scale(1.1);
}

.swipe-hint {
    position: absolute;
    bottom: 80px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
}