/* Gallery Page Custom Styles */

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

.gallery-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
}

.gallery-header-row h1 {
    font-size: 2.3rem;
    font-family: var(--heading-font);
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.gallery-header-row .btn {
    font-size: 1.1rem;
    padding: 0.7rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.gallery-section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.gallery-section-title {
    flex: 1 0 180px;
    font-size: 1.7rem;
    font-family: var(--heading-font);
    font-weight: 700;
    text-align: left;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: #254d32;
}

.gallery-images-row {
    display: flex;
    gap: 2rem;
    flex: 3 1 0;
    align-items: center;
}

.gallery-image-frame {
    position: relative;
    width: 266px;
    height: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
}

.gallery-image-frame:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.gallery-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.2s;
}

.gallery-image-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(38,77,50,0.85);
    color: #eaefd1;
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5em 0;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.gallery-image-frame:hover .gallery-image-title {
    opacity: 1;
}

.gallery-section .see-all-btn {
    margin-left: 2rem;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1.05rem;
    padding: 0.7rem 1.1rem;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .gallery-section {
        flex-direction: column;
        align-items: stretch;
    }
    .gallery-images-row {
        justify-content: flex-start;
        gap: 1rem;
    }
    .gallery-image-frame {
        width: 187px;
        height: 140px;
    }
    .gallery-section-title {
        margin-bottom: 1rem;
    }
    .gallery-section .see-all-btn {
        margin-left: 0;
        margin-top: 1rem;
        align-self: flex-end;
    }
}

@media (max-width: 600px) {
    .gallery-container {
        padding: 1rem 0.2rem 2rem 0.2rem;
    }
    .gallery-header-row h1 {
        font-size: 1.3rem;
    }
    .gallery-section-title {
        font-size: 1.1rem;
    }
    .gallery-image-frame {
        width: 120px;
        height: 90px;
    }
}
