/* --- Preloader Styles (Dark Blue Gradient) --- */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;


    background: radial-gradient(circle, #000000 0%, #0e1d2e 100%);

    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

#preloader .preloader-logo {
    display: block;
    width: 120px;
    animation: focusPulse 2.5s ease-in-out infinite;
}

@keyframes focusPulse {
    0% {
        transform: scale(1);
        filter: blur(0px);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        filter: blur(1px);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        filter: blur(0px);
        opacity: 1;
    }
}

/* --- End of Preloader Styles --- */


:root {
    /* Color Palette */
    --paynes-gray: #475461;
    /* ...rest of your css... */
}




/* gallery.css */
:root {
    --primary-color: #0e1216;
}

/* Sets the default font for the entire page */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    /* Ensures there's no default margin */
    padding: 0;
    /* Ensures there's no default padding */
}

.gallery-section {
    padding: 100px 40px;
    text-align: center;
    background-color: #F5F5F7;
}

.gallery-section h2,
.gallery-section p {
    font-family: 'Poppins', sans-serif;
    /* Ensures this section uses the correct font */
}

.gallery-section h2 {
    font-size: 2.8em;
    font-weight: 700;
    color: #36454F;
    margin-bottom: 10px;
}

/* ... a.gallery-section p styles are above this ... */

.gallery-section p {
    font-size: 1.2em;
    color: #475461;
    margin-bottom: 30px;
    /* Reduced margin to make space for buttons */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- NEW: Filter Button Styles --- */
.filter-group {
    margin-bottom: 25px;
    text-align: center;
}

.filter-btn {
    font-family: 'Poppins', sans-serif;
    background-color: transparent;
    border: 1px solid #c0c0c0;
    color: #475461;
    padding: 8px 18px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
    border-color: #a0a0a0;
}

.filter-btn.active {
    /* This is your charcoal color from header.css */
    background-color: #36454F;
    color: #FFFFFF;
    border-color: #36454F;
}

#sub-filter-group .filter-btn {
    font-size: 0.8em;
    padding: 6px 14px;
}

/* --- End of New Styles --- */



.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1600px;
    margin: 0 auto;
}



.gallery-grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ... your existing overlay styles are above this ... */

.gallery-grid-item:hover .overlay-caption {
    transform: translateY(0);
}

/* --- NEW: Ribbon Styles for Ranked Photos --- */
.ribbon {
    position: absolute;
    top: -4px;
    /* Slightly off-canvas */
    left: -4px;
    /* Slightly off-canvas */
    width: 60px;
    height: 60px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    /* This creates the triangle shape */
    clip-path: polygon(0 0, 100% 0, 0 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
    /* These push the text into the corner */
    padding-bottom: 20px;
    padding-right: 20px;
    border-radius: 12px 0 0 0;
    /* Match top-left corner radius */
}

/* 1st Place - Gold */
.ribbon.rank-1 {
    background-color: #ffd700;
    /* Gold */
    color: #4d2d00;
}

/* 2nd Place - Silver */
.ribbon.rank-2 {
    background-color: #c0c0c0;
    /* Silver */
    color: #2b2b2b;
}

/* 3rd Place - Bronze */
.ribbon.rank-3 {
    background-color: #cd7f32;
    /* Bronze */
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* --- End of Ribbon Styles --- */


.gallery-grid-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-grid-item .overlay-caption {
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.gallery-grid-item:hover .overlay {
    opacity: 1;
}

.gallery-grid-item:hover .overlay-caption {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 80px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid-item {
        height: auto;
    }
}

/* Footer Styles */
footer {
    /* THIS IS THE DIRECT FIX FOR THE FOOTER FONT */
    font-family: 'Poppins', sans-serif;

    background-color: #2c2c2c;
    color: #a0a0a0;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
}

/* Social Media Icon Styles */
.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Contact Info Styles */
.footer-contact {
    margin-bottom: 20px;
}

.footer-contact p {
    margin: 5px 0;
    line-height: 1.6;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

/* Copyright Text Style */
.footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid #444;
    padding-top: 20px;
}