﻿body {
}
/* =============================================
   Photo Gallery Styles
   Author: Denny A Devassy
   Date: 2025-10-12
   ============================================= */
 
/* =============================================
   Filters Section
   ============================================= */
.photo-gallery-listing-page {
    padding: 0 0 60px;
    background: #f8f9fa;
    min-height: 100vh;
   
    position: relative;
    z-index: 10;
}
/* Search Header */
.photo-gallery-search-header {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    margin-top: -50px;
    backdrop-filter: blur(10px);
}

    .photo-gallery-search-header h1 {
        font-size: 42px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 30px;
    }

/* Search Filters */
.search-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;     
    font-size: 16px;
    transition: all 0.3s ease;  
}

    .search-input:focus {
        outline: none;
        border-color: #c41e3a;
        box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
    }

.search-input-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: stretch;
}

.filter-select,
.filter-date {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: 48px;
}

    .filter-select:focus,
    .filter-date:focus {
        outline: none;
        border-color: #c41e3a;
    }

.search-btn {
    padding: 12px 30px;
    background: #c41e3a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    width: 100%;
}

    .search-btn:hover {
        background: #a01730;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    }
/* =============================================
   Gallery Section
   ============================================= */
.gallery-section {
  /*  padding: 4rem 0;*/
    min-height: 900px;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* =============================================
   Photo Card
   ============================================= */
.photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 320px;
}

    .photo-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .photo-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .photo-card:hover img {
        transform: scale(1.1);
    }

.photo-count {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.5);
    color: rgba(0,0,0,1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(10px);
}

    .photo-count i {
        font-size: 0.85rem;
    }

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.photo-card:hover .photo-overlay {
    transform: translateY(0);
    opacity: 1;
}

.photo-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.photo-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.photo-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}
.photo-text h4 {
    color: #fff;
}
    .photo-card h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-link {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

    .photo-link::after {
        content: '→';
        transition: transform 0.3s ease;
    }

    .photo-link:hover {
        gap: 0.75rem;
    }

        .photo-link:hover::after {
            transform: translateX(4px);
        }

/* =============================================
   Loading & No Content
   ============================================= */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c41e3a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.no-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1rem;
    color: #666;
}

    .no-content i {
        font-size: 4rem;
        color: #ddd;
    }

    .no-content p {
        font-size: 1.1rem;
        color: #999;
    }

/* =============================================
   Pagination
   ============================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-number {
    padding: 0.75rem 1.25rem;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .pagination-btn:hover:not(:disabled),
    .pagination-number:hover:not(.active) {
        background: #f8f9fa;
        border-color: #c41e3a;
        color: #c41e3a;
    }

    .pagination-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .pagination-number.active {
        background: #c41e3a;
        color: #fff;
        border-color: #c41e3a;
        font-weight: 600;
    }

.pagination-info {
    padding: 0.75rem 1.25rem;
    color: #666;
    font-size: 0.9rem;
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .photo-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filters-row {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .search-btn {
        width: 100%;
    }

    .pagination {
        gap: 0.25rem;
    }

    .pagination-btn,
    .pagination-number {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

        .pagination-btn span:last-child,
        .pagination-btn span:first-child {
            display: none;
        }
}

@media (max-width: 480px) {
    .page-hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .photo-card {
        height: 280px;
    }
}