/* --- STYLES for gallery_styles.css --- */

:root {
    /* Re-declare variables for standalone use */
    --color-dark-navy: #101828;
    --color-slate-grey: #344054;
    --color-light-cream: #F8F9FA;
    --color-white: #FFFFFF;
    --color-accent-azure: #005AEE;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-slate-grey);
    margin: 0;
}

/* --- Gallery Page Header --- */
.gallery-header {
    background-color: var(--color-dark-navy);
    color: var(--color-white);
    padding: 6rem 1rem;
    text-align: center;
    background-image: linear-gradient(rgba(16, 24, 40, 0.8), rgba(16, 24, 40, 0.8)), url('https://images.unsplash.com/photo-1595152772109-10e42358c24f?w=800');
    background-size: cover;
    background-position: center;
}

.gallery-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 0.5rem;
}

.gallery-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    color: #EAECEF;
}

.gallery-header a {
    display: inline-block;
    color: var(--color-white);
    text-decoration: none;
    margin-top: 2rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gallery-header a:hover {
    opacity: 1;
}

/* --- Gallery Grid --- */
.gallery-container {
    padding: 4rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.loader {
    text-align: center;
    font-size: 1.2rem;
    padding: 2rem;
}

#image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '\f00e'; /* Font Awesome search-plus icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-white);
    background-color: rgba(16, 24, 40, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --- Lightbox Styles --- */
#lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(16, 24, 40, 0.9);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

#lightbox.active #lightbox-img {
    transform: scale(1);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.close-btn { top: 20px; right: 20px; width: 40px; height: 40px; }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }


/* --- Video Gallery Styles --- */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.video-gallery video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Keeps the videos proportional */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    object-fit: cover;
}
