.page-title {
    background-color: #3b5998;
    color: white;
    padding: 2rem 5%;
    text-align: center;
}

.page-title h1 {
    margin-bottom: 0.5rem;
}

/* Gallery Intro */
.gallery-intro {
    padding: 2rem 5%;
    background-color: #f5f5f5;
    margin-bottom: 2rem;
}

.gallery-intro-text {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-intro-text h2 {
    color: #3b5998;
    margin-bottom: 1rem;
    text-align: center;
}

.gallery-intro-text p {
    margin-bottom: 1rem;
    text-align: center;
}

.gallery-intro-text a {
    color: #3b5998;
    text-decoration: none;
    font-weight: bold;
}

.gallery-intro-text a:hover {
    text-decoration: underline;
}

/* Gallery Filter */
.gallery-filter {
    padding: 0 5% 1.5rem;
    text-align: center;
}

.gallery-filter h3 {
    margin-bottom: 1rem;
    color: #3b5998;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #e6e6e6;
}

.filter-btn.active {
    background-color: #3b5998;
    color: white;
    border-color: #3b5998;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 5% 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.image-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    padding: 2rem;
    box-sizing: border-box;
}

.lightbox.active {
    display: block;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 80%;
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#lightbox-caption {
    color: white;
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    position: absolute;
    bottom: 10%;
    left: 0;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover, .close:hover {
    color: #bbb;
}

/* Upload Section */
.upload-section {
    background-color: #f5f5f5;
    padding: 3rem 5%;
    text-align: center;
    margin-bottom: 2rem;
}

.upload-info {
    max-width: 700px;
    margin: 0 auto;
}

.upload-info h2 {
    color: #3b5998;
    margin-bottom: 1rem;
}

.upload-info p {
    margin-bottom: 1.5rem;
}

.upload-info .btn {
    display: inline-block;
    background-color: #3b5998;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.upload-info .btn:hover {
    background-color: #2d4373;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 80%;
        margin-bottom: 0.5rem;
    }
}
