/* _CSS-return-section.css */

/* Main container for the return section */
.return-section {
    max-width: 850px;
    margin: 0.2em auto 0.1em auto; /* ADJUSTED: Top margin 0.2em, Bottom margin 0.1em */
    padding: 1em; /* Keep internal padding for now, adjust if needed */
    text-align: center;
}

/* Styling for the "Go to Section:" heading */
.return-section-heading {
    font-family: 'Cinzel Decorative', serif;
    color: var(--primary-accent);
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 0.2em;
    margin-bottom: 0.5em;
    letter-spacing: 0.03em;
    text-align: center;
}

/* Flexbox container for the navigation links */
.return-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

/* Styling for each individual link */
.return-link {
    display: block;
    padding: 8px 12px;
    background-color: var(--photo-bg);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.return-link:hover {
    background-color: var(--link-hover);
    color: white;
}

/* Horizontal Rule (HR) styling specific to this section */
.return-hr {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    border: none;
    border-top: 1px solid #ccc;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

/* UPDATED Media query: Prevent links from stacking vertically */
@media (max-width: 650px) {
    .return-links-container {
        /* Changed from column to row to prevent stacking */
        flex-direction: row; 
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px; /* Slightly tighter gap for mobile */
    }
    
    .return-link {
        /* Removed the 80% width so they only take up as much space as the text needs */
        width: auto; 
        max-width: none;
        margin: 0;
        font-size: 0.9em; /* Slightly smaller text helps prevent too much wrapping */
        padding: 6px 10px;
    }
}