/* ============================================
   Mepom Community Portal - Gallery Page Styles
   ============================================ */

/* --- Material Icons Configuration --- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Community Stripe --- */
.community-stripe {
    height: 4px;
    background: linear-gradient(90deg, #d48c2c 0%, #8b4513 50%, #1b4d3e 100%);
}

/* --- Masonry Grid Layout --- */
.masonry-grid {
    column-count: 1;
    column-gap: 24px;
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
}

/* --- Glass Navigation Effect --- */
.glass-nav {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.85);
}

/* --- Image Optimization --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .community-stripe {
        height: 3px;
    }
    
    .glass-nav {
        backdrop-filter: blur(4px);
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    .masonry-item {
        margin-bottom: 16px;
    }
}

/* --- Smooth Scrolling (fallback) --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* --- Focus States for Accessibility --- */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #875300;
    outline-offset: 2px;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #edeeef;
}

::-webkit-scrollbar-thumb {
    background: #875300;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #663d00;
}

/* --- Print Styles --- */
@media print {
    .glass-nav {
        background: white !important;
        backdrop-filter: none !important;
    }
    
    .community-stripe {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .masonry-grid {
        column-count: 3;
    }
}