body.gallery-page {
    background-color: var(--color-bg, #f8fafc);
    color: #334155;
    min-height: 100vh;
}

.gallery-header-spacing {
    height: var(--header-height, 6rem);
}


.gallery-hero {
    padding: 4rem 0 0.5rem 0;
    position: relative;
    background: transparent;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
}

.filter-group {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.filter-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.filter-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--color-brand-dark, #003354);
    background: white;
    transition: all 0.3s;
    color-scheme: light;
}

.filter-input:focus {
    outline: none;
    border-color: var(--color-brand-blue, #00a9e0);
    box-shadow: 0 0 0 3px rgba(0, 169, 224, 0.1);
    background: white;
}

.filter-input::placeholder {
    color: #94a3b8;
}

.filter-reset-btn {
    background: #fef2f2;
    color: #ef4444;
    border: 2px solid #fecaca;
    height: 42px;
    width: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-reset-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .filter-group {
        min-width: 100%;
    }
}


.g-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .g-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2rem;
    }
}

.g-item {
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.g-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.g-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.g-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.g-item:hover .g-img-wrap img {
    transform: scale(1.08);
    filter: brightness(0.8);
}

.g-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(0, 51, 84, 0.1);
    background: linear-gradient(135deg, rgba(0, 169, 224, 0.05) 0%, transparent 100%);
}

.g-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 51, 84, 0.95) 0%, rgba(0, 51, 84, 0.4) 50%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    transition: opacity 0.4s ease;
}

.g-item:hover .g-overlay {
    opacity: 1;
}

.g-overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.g-item:hover .g-overlay-content {
    transform: translateY(0);
}

.g-overlay h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.g-tags {
    color: var(--color-brand-orange, #f58025);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.g-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 84, 0.7);
    backdrop-filter: blur(16px);
}

.lb-content {
    position: relative;
    z-index: 10000;
    width: 95%;
    max-width: 1500px;
    height: 90vh;
    display: flex;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
    .lb-content {
        flex-direction: column;
        height: 95vh;
        width: 95%;
    }
}

.lb-main-area {
    flex: 1;
    position: relative;
    background: white;
    padding: 1.5rem;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.lb-img-container {
    padding: 0;
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    animation: lbFadeIn 0.3s ease forwards;
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-brand-dark, #003354);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    z-index: 2;
}

.lb-nav:hover {
    background: var(--color-brand-orange, #f58025);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lb-prev {
    left: 1rem;
}

.lb-next {
    right: 1rem;
}

.lb-info-panel {
    width: 450px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

@media (max-width: 900px) {
    .lb-info-panel {
        width: 100%;
        height: 35%;
        padding: 1.5rem;
    }
}

.lb-info-panel h3 {
    color: var(--color-brand-dark, #003354);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lb-info-panel p {
    color: #475569;
    line-height: 1.6;
    text-align: justify;
}

.lb-thumbnails {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lb-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    opacity: 0.6;
}

.lb-thumb:hover {
    opacity: 0.8;
}

.lb-thumb.active {
    border-color: var(--color-brand-orange, #f58025);
    opacity: 1;
    transform: scale(1.05);
}

.lb-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-brand-dark, #003354);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 10001;
    color: #ef4444;    
    transition: background 0.3s, color 0.3s;
}

@media (min-width: 901px) {}

.lb-close:hover {
    background: #ef4444;
    color: white;
}

.mt-4 {
    margin-top: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-white {
    color: white !important;
}

.text-slate-300 {
    color: #cbd5e1 !important;
}

.text-slate-400 {
    color: #94a3b8 !important;
}

.text-2xl {
    font-size: 1.5rem !important;
}

.text-4xl {
    font-size: 2.25rem !important;
}

.font-bold {
    font-weight: 700 !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}