:root {
    --gallery-bg: #f9f9f9;
    --gallery-primary: var(--primary, #378036);
    --gallery-secondary: var(--secondary, #6bb449);
    --text-color: #333;
}

.gallery-section {
    padding: 60px 10px;
    background-color: var(--gallery-bg);
    min-height: 80vh;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}


.section-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.section-header-left {
    flex: 1;
}

.section-header-right {
    flex: 0 0 auto;
}

.section-title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: none;
    color: var(--text-color);
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    line-height: 1.6;
}

.btn-section-link {
    display: inline-block;
    padding: 0.75rem 0;
    width: 200px;
    text-align: center;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    background-color: var(--gallery-secondary);
    color: #fff;
    border: 2px solid var(--gallery-secondary);
}

.btn-section-link:hover {
    background-color: var(--gallery-primary);
    border-color: var(--gallery-primary);
}


.gallery-masonry-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 768px) {
    .gallery-masonry-grid {
        flex-direction: column;
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-icon {
    width: 50px;
    height: 50px;
    background: var(--gallery-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    transform: translateY(0);
}


.no-gallery-message {
    text-align: center;
    padding: 60px;
}

.no-gallery-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.no-gallery-text {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}