/* Our Story Page Specific Styles */

/* Expand container width for this page to accommodate side-by-side layout */
.container {
    max-width: 1200px;
}

.story-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: left;
}

.story-text {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.story-text p {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.1em; /* Slightly larger text for this page */
    line-height: 1.8; /* Increased line height for better readability */
}

.story-photos {
    flex: 0 0 280px; /* Fixed width for photo column */
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: flex-start; /* Prevents stretching to match text height */
}

.photo-placeholder {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5; /* Slightly wider portrait orientation */
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Photo Gallery Row at Bottom */
.photo-gallery {
    display: flex;
    gap: 15px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dotted #cccccc;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-photo {
    width: calc(33.333% - 10px); /* 3 photos in a row with gaps */
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/2; /* Landscape photos */
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive adjustments for tablets */
@media (max-width: 900px) {
    .story-layout {
        flex-direction: column;
    }

    .story-photos {
        flex: 1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .photo-placeholder {
        width: calc(33.333% - 14px);
        min-width: 180px;
    }

    .gallery-photo {
        width: 100%; /* Stack vertically on mobile */
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 600px) {
    .story-layout {
        gap: 25px;
    }

    .story-photos {
        gap: 15px;
    }

    .photo-placeholder {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .photo-gallery {
        gap: 10px;
        margin-top: 30px;
        padding-top: 20px;
    }

    .gallery-photo {
        width: 100%; /* Keep stacked on mobile */
        min-width: unset;
    }
}
