/* Gallery Page Styles */
:root {
    --swamp-green: #4a5d23;
    --swamp-green-light: #6b7d3a;
    --swamp-green-dark: #2d3a15;
    --brown: #6b4423;
    --brown-light: #8b5a3c;
    --brown-dark: #4a2f1a;
    --accent-frog: #7a9a4a;
    --accent-drop: #5a8a7a;
    --text-light: #e8e5d8;
    --text-dark: #2d2a1f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--swamp-green-dark) 0%, var(--brown-dark) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 93, 35, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107, 68, 35, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(90, 138, 122, 0.2) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: waveMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes waveMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(122, 154, 74, 0.03) 100px, rgba(122, 154, 74, 0.03) 102px),
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(90, 138, 122, 0.03) 100px, rgba(90, 138, 122, 0.03) 102px);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

main {
    position: relative;
    z-index: 1;
}

/* Page Hero */
.page-hero {
    padding: 4rem 20px;
    text-align: center;
    background: rgba(45, 58, 21, 0.3);
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--accent-frog);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    padding-top: 6rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-frog);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(122, 154, 74, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 58, 21, 0.95), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    color: var(--accent-frog);
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    max-width: 900px;
    background: rgba(45, 58, 21, 0.95);
    border-radius: 10px;
    border: 2px solid var(--accent-frog);
    padding: 2rem;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    color: var(--accent-frog);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.modal-info h2 {
    font-size: 2rem;
    color: var(--accent-frog);
    margin-bottom: 1rem;
}

.modal-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-info strong {
    color: var(--accent-frog);
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }

    .modal-info p {
        font-size: 1rem;
    }
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background: rgba(45, 58, 21, 0.3);
}

.content-text {
    max-width: 900px;
    margin: 0 auto;
}

.content-text h3 {
    font-size: 1.8rem;
    color: var(--accent-frog);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

@media (max-width: 768px) {
    .content-text h3 {
        font-size: 1.5rem;
    }

    .content-text p {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 2rem 20px;
    }

    .gallery-section {
        padding: 2rem 0;
    }

    .content-section {
        padding: 2rem 0;
    }
}

