/* Gallery Page Styles */
.gallery-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/gallery-hero.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.gallery-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.gallery-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.featured-gallery {
    padding: 60px 20px;
    background: #f9f9f9;
}

.featured-gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.gallery-category {
    padding: 60px 0;
}

.gallery-category:nth-child(even) {
    background: #f9f9f9;
}

.category-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    transition: bottom 0.3s;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    color: #ddd;
}

.no-images {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 0;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-modal.active {
    display: flex;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    background: #fff;
    padding: 15px;
    text-align: center;
}

.lightbox-caption h3 {
    margin: 0 0 10px;
    color: #333;
}

.lightbox-caption p {
    margin: 0;
    color: #666;
}

/* Admin Gallery Styles */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #555;
}

.tab-button.active {
    border-bottom-color: #ff6b6b;
    color: #333;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.inline-form {
    display: inline-block;
    margin-right: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-hero {
        padding: 80px 0;
    }
    
    .gallery-hero h1 {
        font-size: 2.2rem;
    }
}