.gallery-header {
    background: linear-gradient(135deg, #0f2818 0%, #1a472a 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 4px solid #2ecc71;
}

.gallery-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.gallery-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.category-section {
    margin-bottom: 4rem;
}

.category-title {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 8px 8px 0 0;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 40, 24, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    color: #0f2818;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    min-height: 2.4em;
}

.gallery-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    min-height: 3em;
}

.gallery-link {
    display: inline-block;
    color: #2ecc71;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gallery-link:hover {
    color: #27ae60;
    transform: translateX(5px);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    color: #999;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 1rem;
}

/* Modal styles for enlarged image */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding: 0;
    width: auto;
    max-width: none;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0;
    box-shadow: none;
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(-50%);
        opacity: 1;
    }
}

.modal-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    cursor: zoom-out;
    transition: all 0.3s ease;
    max-width: 90vw;
    max-height: 70vh;
}

.modal-image.zoomed {
    cursor: zoom-in;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: auto;
    max-width: auto;
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    z-index: 2000;
    object-fit: contain;
}

.modal-title {
    display: none !important;
    font-size: 1.8rem;
    color: #0f2818;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    background-color: #fefefe;
    padding: 1.5rem 2rem 0;
    border-radius: 12px 12px 0 0;
    text-align: center;
    width: 95%;
}

.modal-description {
    color: #666;
    line-height: 1.6;
    background-color: #fefefe;
    padding: 0 2rem 1.5rem;
    border-radius: 0 0 12px 12px;
    text-align: center;
    width: 95%;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 0.25rem 0.75rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    z-index: 2001;
    line-height: 1;
}

.close:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .gallery-header h2 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .category-title {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .close {
        right: 1.5rem;
        top: 1.5rem;
    }
}
