/* --- Brand Reset Properties & Variables --- */
body {
    background-color: #000;
    color: #fff;
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Section Structural Framework --- */
.luxury-gallery-section {
    padding: 120px 40px;
    display: flex;
    justify-content: center;
}

.gallery-master-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Header Text Content Elements --- */
.gallery-header-block {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-main-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 52px;
    font-weight: 500;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
}

.gallery-subtitle {
    font-size: 14px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Navigation Interactive Filter Component --- */
.gallery-filter-nav-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-pill {
    background-color: transparent;
    border: 1px solid #1a1a1a;
    color: #888;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.filter-pill:hover {
    border-color: #333;
    color: #fff;
}

.filter-pill.active {
    background-color: #d4a74a; /* Brand Identity Signature Color Accent */
    border-color: #d4a74a;
    color: #000;
    font-weight: 600;
}

/* --- High-Performance Asymmetric Bento Grid Mesh --- */
.gallery-asymmetric-mesh {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Balanced 3-column architecture setup */
    gap: 20px;
    width: 100%;
    margin-bottom: 80px;
}

/* Core Structural Sizing Elements Mapping Styles */
.gallery-mesh-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #050505;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dynamic State Classes parsed from active javascript filtering pipeline logic updates */
.gallery-mesh-item.is-hidden-by-filter {
    opacity: 0;
    transform: scale(0.96);
    position: absolute;
    pointer-events: none;
    visibility: hidden;
    width: 0; height: 0; overflow: hidden; margin: 0; padding: 0;
}

/* Explicit Asymmetric Multi-Row Span Target Overrides matching the reference mockup layout blueprint */
.item-row-span-2 {
    grid-row: span 2;
}

.item-col-span-2 {
    grid-column: span 2;
}

/* Proportional Frame Safety Boxes preventing raw user uploaded photo clippings */
.image-frame-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    /* Aspect-ratio calculations guarantee images scale precisely without clipping */
    aspect-ratio: 4 / 3; 
    display: block;
}

/* Force image components to take full area with uniform box bounds matching ratio anchors */
.item-row-span-2 .image-frame-wrapper {
    aspect-ratio: 4 / 6.3; /* Adjusted ratio mapping rules for double row block items */
}

.gallery-mesh-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Core protective constraint layer: handles absolute scaling cleanly */
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-mesh-item:hover img {
    transform: scale(1.03); /* Graceful premium macro-lens hover animation script path */
}

/* Modern clean typography overlay card labels visible on mouse focus interaction streams */
.frame-editorial-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-mesh-item:hover .frame-editorial-overlay {
    opacity: 1;
}

.frame-editorial-overlay span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #d4a74a;
    font-weight: 500;
}

/* --- Footnote Editorial Call-to-Action Signature Banner --- */
.gallery-editorial-cta-banner {
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    box-sizing: border-box;
    background-color: #0a0a0a;
}

.banner-gradient-shield {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.banner-parallax-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    object-position: center right;
    z-index: 1;
}

.banner-content-flex-bridge {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gold-accent-line-marker {
    width: 35px;
    height: 1px;
    background-color: #d4a74a;
    margin-bottom: 16px;
}

.banner-left-meta h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    margin: 0;
    color: #fff;
}

.inline-editorial-link-cta {
    color: #d4a74a;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}

.inline-editorial-link-cta i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.inline-editorial-link-cta:hover { color: #fff; }
.inline-editorial-link-cta:hover i { transform: translateX(6px); }

/* --- High-Performance Responsive Reflow Query Breakpoints --- */
@media (max-width: 1024px) {
    .gallery-asymmetric-mesh {
        grid-template-columns: repeat(2, 1fr); /* Reflow matrix stream maps to double column tracks */
    }
    /* Safely dismantle specific desktop col spans to keep items filling screens beautifully */
    .item-col-span-2 { grid-column: span 1; }
    .item-row-span-2 .image-frame-wrapper { aspect-ratio: 4 / 3; }
    .luxury-gallery-section { padding: 80px 24px; }
}

@media (max-width: 768px) {
    .gallery-main-title { font-size: 38px; }
    .gallery-asymmetric-mesh {
        grid-template-columns: 1fr; /* Complete fallback drop sequence down to fluid vertical column tracks */
        gap: 16px;
    }
    .item-row-span-2 { grid-row: span 1; }
    .gallery-editorial-cta-banner { padding: 40px 24px; }
    .banner-content-flex-bridge {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .banner-left-meta h2 { font-size: 26px; }
}