.page-header-gallery {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.95) 0%, rgba(183, 28, 28, 0.95) 100%), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23d32f2f" width="1200" height="400"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-gallery::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
}

.page-header-gallery h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInDown 0.6s ease;
}

.page-header-gallery p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.gallery-section {
    padding: 4rem 0;
    background-color: white;
}
.gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #e0e0e0;
    background-color: white;
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 280px;
    opacity: 1;
    animation: fadeIn 0.6s ease;
    transform: scale(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.gallery-item.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #e0e0e0;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.15) rotate(2deg);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.85) 0%, rgba(183, 28, 28, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    padding: 2rem;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.gallery-info p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.gallery-zoom {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background-color: white;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 2px solid white;
    cursor: pointer;
}

.gallery-zoom:hover {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
    border-color: var(--accent-color);
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.4s ease;
    border-radius: 8px;
    background-color: #000;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2001;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: scale(1.2) rotate(90deg);
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2001;
}

.lightbox-prev,
.lightbox-next {
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
    pointer-events: auto;
    padding: 10px 20px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
    transform: scale(1.2);
}

.lightbox-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 2001;
    font-size: 0.95rem;
}

.lightbox-counter {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}
.cta-gallery {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 12px;
}

.cta-gallery .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-gallery .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-gallery .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-gallery .btn-primary:hover {
    background-color: var(--light-bg);
}

.cta-gallery .btn-secondary {
    border: 2px solid white;
    background-color: transparent;
    color: white;
}

.cta-gallery .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}
.gallery-loading {
    text-align: center;
    padding: 3rem 0;
}

.spinner-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid var(--primary-color);
    border-color: var(--primary-color) transparent transparent transparent;
    animation: spinner-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spinner-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.gallery-no-results {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.gallery-no-results h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.gallery-no-results p {
    color: var(--text-light);
    font-size: 1rem;
}
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .gallery-item {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .page-header-gallery h1 {
        font-size: 2rem;
    }

    .page-header-gallery p {
        font-size: 1rem;
    }

    .gallery-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-item {
        height: 200px;
    }

    .gallery-info h3 {
        font-size: 1.2rem;
    }

    .gallery-info p {
        font-size: 0.8rem;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 8px 15px;
        min-width: 40px;
        min-height: 40px;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 85vh;
    }

    .cta-gallery .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header-gallery h1 {
        font-size: 1.5rem;
    }

    .page-header-gallery p {
        font-size: 0.9rem;
    }

    .gallery-filters {
        gap: 0.3rem;
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        padding: 0.7rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        height: 250px;
    }

    .gallery-info {
        padding: 1rem;
    }

    .gallery-info h3 {
        font-size: 1rem;
    }

    .gallery-info p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .gallery-zoom {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .lightbox-content {
        max-width: 98vw;
        max-height: 80vh;
    }

    .lightbox-nav {
        padding: 0 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 5px 10px;
        min-width: 35px;
        min-height: 35px;
    }

    .lightbox-close {
        font-size: 24px;
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }

    .cta-gallery {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .cta-gallery .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-gallery .cta-content p {
        font-size: 1rem;
    }
}
@media (prefers-color-scheme: dark) {
    .gallery-item {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .gallery-item:hover {
        box-shadow: 0 15px 40px rgba(211, 47, 47, 0.3);
    }

    .lightbox {
        background-color: rgba(0, 0, 0, 0.98);
    }
}
@media print {
    .gallery-filters,
    .lightbox,
    .cta-gallery {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        break-inside: avoid;
    }
}