/* Gallery Page Specific Styles */

.page-title-section {
    padding: 3rem 0;
    background: var(--white);
    text-align: center;
    border-bottom: 2px solid var(--gold);
}

.page-title {
    font-size: 2.5rem;
    color: var(--green-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--green-dark);
    max-width: 800px;
    margin: 1rem auto 0;
    line-height: 1.8;
}

.gallery-intro-text {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: var(--cream);
    border-radius: 10px;
    border: 2px solid var(--gold);
}

.gallery-intro-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
    color: var(--green-dark);
    font-size: 1.05rem;
}

.gallery-intro-text p:last-child {
    margin-bottom: 0;
}

/* Gallery Grid */
.gallery-section {
    padding: 4rem 0;
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--gold);
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 80, 22, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-view-btn {
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--green-dark);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.gallery-view-btn:hover {
    background: var(--gold-light);
    transform: scale(1.1);
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    color: var(--green-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.gallery-info p {
    color: var(--green-dark);
    line-height: 1.8;
    text-align: justify;
    font-size: 1rem;
}

/* Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--gold);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--green-primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close:hover {
    background: var(--green-light);
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 2rem;
}

.modal-info h2 {
    color: var(--green-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.modal-info p {
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
    color: var(--green-dark);
}

/* Gallery Articles Section */
.gallery-articles-section {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    color: var(--green-primary);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: var(--cream);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--gold);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.article-card h3 {
    color: var(--green-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.article-card p {
    line-height: 1.8;
    text-align: justify;
    color: var(--green-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.article-card p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .gallery-intro-text {
        padding: 1.5rem;
        margin: 1.5rem 1rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image {
        height: 250px;
    }

    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }

    .modal-image {
        height: 300px;
    }

    .modal-info {
        padding: 1.5rem;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        padding: 1.5rem;
    }

    .gallery-info {
        padding: 1.2rem;
    }
}

