@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

   :root {
        --gp-bg-light: #fcfdff;
        --gp-bg-dark: #252323;
        --gp-accent: #c59b5b;
        --gp-accent-hover: #b0874a;
        --gp-accent-dark: #8b6b3d;
        --gp-accent-dark-hover: #6e5430;
        --gp-border: #ded2b6;
        --gp-text-main: #252323;
        --gp-text-muted: #5b5f68;
        --gp-text-soft: #3b3f47;
        --gp-tag-bg: #f3ebdd;
        --gp-tag-text: #7a5a2e;
        --gp-mark: #ebd9b4;
        --gp-card-bg: #ffffff;
        --gp-font-serif: "Newsreader", Georgia, serif;
        --gp-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
        --gp-font-mono: "JetBrains Mono", ui-monospace, monospace;
   }

   body {
        font-family: var(--gp-font-sans);
        -webkit-font-smoothing: antialiased;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        background-color: var(--gp-bg-light);
        color: var(--gp-text-main);
        overflow-x: hidden;
    }

.page-content {
    max-width: 1400px;
    margin: auto;
}

a {
    color: var(--gp-accent-dark);
    text-decoration: underline;
}

a:hover {
    color: var(--gp-accent-dark-hover);
    text-decoration: none;
}

 /* Search container on other pages (standalone) - default styling */
 .search-container {
    margin-top: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--gp-bg-light);
    max-width: 800px;
    /* margin-left: auto;
    margin-right: auto; */
 }
 
 /* Override for hero section */
 .hero-content .search-container {
    margin-top: 0;
    padding: 0;
    align-items: flex-start;
    background-color: transparent;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
 }

 .search-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
 }

 .search-instructions {
    width: 100%;
    margin-bottom: 1.25rem;
    text-align: left;
    font-family: var(--gp-font-serif);
    font-size: 1.625rem;
    color: var(--gp-text-main);
    font-weight: 400;
    line-height: 1.3;
 }

 .search-input-wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    margin-bottom: 0.75rem;
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(37, 35, 35, 0.06);
    overflow: hidden;
 }

 .search-form input[type="text"] {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--gp-border);
    border-right: none;
    border-radius: 7px 0 0 7px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    background-color: #ffffff;
    color: var(--gp-text-main);
 }

 @media (max-width: 360px) {
    .search-form input[type="text"] {
        padding: 0.75rem 0.9rem;
        font-size: 0.9rem;
    }
 }

 .search-form input[type="text"]:focus {
    outline: none;
    border-color: var(--gp-accent);
 }

 #q {
    flex: 1;
 }

 .search-form button {
    padding: 0;
    margin: 0;
    background-color: var(--gp-accent);
    border: 1px solid var(--gp-accent);
    border-left: none;
    border-radius: 0 7px 7px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    transition: background-color 0.2s;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
 }

 .search-form button:hover {
    background-color: var(--gp-accent-hover);
 }

 #search-button::before,
 #search-button::after {
    content: "";
    position: absolute;
    right: 38%;
    top: 50%;
    width: 12px;
    height: 2.5px;
    background-color: #fff;
    transform-origin: right center;
 }
 #search-button::before {
    transform: translateY(-50%) rotate(-45deg);
 }
 #search-button::after {
    transform: translateY(-50%) rotate(45deg);
 }

 .search-subtitle {
    font-family: var(--gp-font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: #7a6243;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
 }

 .search-separator {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin-top: 0.5rem;
 }

.hiw-columns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 1.5em;
}

.hiw-first-column,
.hiw-second-column {
    flex: 1;
}

@media screen and (min-width: 800px) {
    .hiw-columns {
        flex-direction: row;
        align-items: flex-start;
    }

    .hiw-first-column {
        margin-right: 40px;
    }
}

/* Tighter layout inside the dark logo bar */
#negative-logo-bar .hiw-columns {
    margin-left: 0;
    gap: 0;
    align-items: center;
}

@media screen and (min-width: 800px) {
    #negative-logo-bar .hiw-first-column {
        margin-right: 0;
        flex: 0 0 20%;
    }

    #negative-logo-bar .hiw-second-column {
        flex: 0 0 80%;
    }
}

.small-navi-container {
    background-color: rgba(200, 200, 245, 0.9);
    color: black;
    margin-top: 0px;
    padding: 1rem;
}

.site-section-container-dark {
    background-color: var(--gp-bg-dark);
    color: #ffffff;
    margin-top: 0px;
    padding: 2rem;
}

.site-section-container-dark a {
    color: var(--gp-accent);
}

.site-section-container-dark a:hover {
    color: #e1c08b;
}

.site-section-container-dark h3 {
    text-align: left;
    margin-bottom: 0.5rem;
    margin-top: 0px;
    font-family: var(--gp-font-serif);
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

@media (max-width: 600px) {
    .site-section-container-dark {
        padding: 1.5rem 1rem;
    }

    .site-section-container-dark h3 {
        font-size: 1.5rem;
    }
}

.site-section-container-light {
    background-color: var(--gp-bg-light);
    color: var(--gp-text-main);
    margin-top: 0px;
    padding: 3rem 2rem 3.25rem;
}

.site-section-container-light h3 {
    text-align: center;
    margin: 0 0 1.5rem;
    font-family: var(--gp-font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

@media (max-width: 720px) {
    .site-section-container-light {
        padding: 2rem 1rem;
    }

    .site-section-container-light h3 {
        font-size: 2rem;
    }
}

.site-section-container-light p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #2b2e35;
}

.news-container {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    padding: 1.5rem 0;
    border-top: 1px solid var(--gp-border);
}

.news-item:first-child {
    border-top: 2px solid var(--gp-text-main);
}

.news-item h4 {
    margin: 0;
    font-family: var(--gp-font-mono);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gp-accent-dark);
}

.news-item p {
    margin: 0.5rem 0 0;
    font-size: 1.0625rem;
    color: var(--gp-text-soft);
}

.site-section-container-accent {
    background-color: #c0a270;
    color: var(--gp-text-main);
    margin-top: 0px;
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    padding: 3rem 0;
}

@media screen and (min-width: 1400px) {
    .site-section-container-accent {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
}

.site-section-container-accent.limit-width {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.accent-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media screen and (min-width: 768px) {
    .accent-section-inner {
        padding: 0 3.5rem;
    }
}


.site-section-container-accent h3 {
    text-align: left;
    margin: 0 0 2rem 0;
    font-family: var(--gp-font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.carrousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.carrousel-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.25rem;
    padding: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    flex: 1;
}

.carrousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.carrousel-item {
    background-color: var(--gp-card-bg);
    border: 1px solid var(--gp-border);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(37, 35, 35, 0.07);
    display: flex;
    flex-direction: column;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.carrousel-item:hover {
    transform: translateY(-2px);
    border-color: var(--gp-accent);
    box-shadow: 0 4px 12px rgba(37, 35, 35, 0.12);
}

.carrousel-item-link {
    display: block;
    text-decoration: none;
    color: var(--gp-text-main);
    height: 100%;
}

.carrousel-item-meta {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.carrousel-item-date,
.carrousel-item-address,
.result-item-address,
.result-item-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gp-text-main);
}

.result-item-address,
.result-item-date {
    padding: 0.2rem 0;
}

.carrousel-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.separator-line {
    width: 100%;
    height: 1px;
    border-top: 1px dashed var(--gp-border);
    margin: 0.75rem 0;
}

.carrousel-nav {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    flex-shrink: 0;
    z-index: 10;
}

.carrousel-nav:hover {
    opacity: 0.7;
}

.carrousel-nav img {
    width: 32px;
    height: 32px;
    display: block;
}

.carrousel-nav-prev {
    order: 1;
}

.carrousel-wrapper .carrousel-container {
    order: 2;
}

.carrousel-nav-next {
    order: 3;
}

.carrousel-loader {
       width: 100px;
      height: 100px;
      background-image: url('/static/img/image-placeholder.gif');
      background-position: center;
      background-size: 100%;
      background-repeat: no-repeat;
      margin: 20px auto;
      display: block;
}

.carrousel-thumbnail-container img {
    max-height: 340px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top:5px;
}

.carrousel-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.about-bottom-container {
    background-color: var(--gp-bg-dark);
    color: #a9a69e;
    padding: 1.75rem 0;
}

.about-bottom-container a {
    color: var(--gp-bg-light);
}

.about-bottom-container a:hover {
    color: var(--gp-accent);
}

.about-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 2rem;
    margin: 0 auto;
    font-weight: 400;
    font-size: 0.8125rem;
    flex-wrap: wrap;
}

@media screen and (max-width: 600px) {
    .about-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 0 1.25rem;
    }
}

.results-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
    padding: 1rem 2rem;
}

@media (max-width: 1100px) {
    .results-container {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .results-container {
        padding: 0.5rem 1rem;
        gap: 16px;
    }
}

.results-count {
    font-weight: 600;
}

.results-header {
    padding: 2.5rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Tighter spacing between the search box and the results heading */
.hero-section:has(+ .results-header) {
    padding-bottom: 0.5rem;
}

.hero-section + .results-header {
    padding-top: 0.75rem;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gp-text-muted);
}

.breadcrumbs a {
    color: var(--gp-text-muted);
}

.breadcrumbs a:hover {
    color: var(--gp-accent-dark-hover);
}

.results-title {
    margin: 0;
    font-family: var(--gp-font-serif);
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.results-subtitle {
    margin: 0;
    font-size: 1rem;
    color: var(--gp-text-muted);
}

.results-subtitle .results-count {
    color: var(--gp-text-main);
}

@media (max-width: 720px) {
    .results-header {
        padding: 1.5rem 1rem 0.5rem;
        gap: 1rem;
    }

    .results-title {
        font-size: 2.125rem;
        line-height: 1.1;
    }
}

.matched-streets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.matched-street {
    background-color: var(--gp-bg-dark);
    color: var(--gp-bg-light);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
}

.matched-street-label {
    flex-basis: 100%;
    font-family: var(--gp-font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a9a69e;
}

.matched-street-name {
    font-family: var(--gp-font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.matched-street-modern {
    font-size: 1rem;
    color: #c9c6be;
}

.matched-street-modern strong {
    color: #ffffff;
    font-weight: 600;
}

.matched-street-count {
    flex-basis: 100%;
    font-size: 0.9375rem;
    color: #c9c6be;
}

.matched-street .results-count {
    color: #ffffff;
}

@media (max-width: 720px) {
    .matched-street {
        border-radius: 16px;
        padding: 1.25rem;
    }

    .matched-street-name {
        font-size: 1.875rem;
    }
}

.result-item-snippet {
    grid-area: snippet;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gp-text-soft);
}

.result-item-snippet em {
    font-style: normal;
    font-weight: 400;
    color: var(--gp-text-main);
    background-color: var(--gp-mark);
    padding: 0 3px;
    border-radius: 3px;
}

.entry-image-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

@media (max-width: 600px) {
    .entry-image-container {
        padding: 0.5rem;
    }
}

.entry-image-container img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

.matched-content,
 .text-content {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

.matched-content p,
 .text-content p {
    max-width: 800px;
    margin-left: 1em;
    font-family: monospace;
}

.result-item {
    background-color: var(--gp-card-bg);
    border: 1px solid var(--gp-border);
    border-radius: 16px;
    padding: 1rem;
    text-align: left;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
        "thumb address"
        "thumb date"
        "thumb snippet"
        "thumb cta";
    grid-template-rows: auto auto auto 1fr;
    gap: 10px 24px;
}

/* The link only groups address, date, snippet and thumbnail; they sit in the card grid */
.result-item-link {
    display: contents;
    text-decoration: none;
    color: var(--gp-text-main);
}

@media (max-width: 720px) {
    .result-item {
        border-radius: 14px;
        padding: 0.75rem;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "thumb"
            "address"
            "date"
            "snippet"
            "cta";
        grid-template-rows: none;
        gap: 12px;
    }
}

.result-item .result-item-address {
    grid-area: address;
    align-self: start;
    justify-self: start;
    padding: 4px 8px;
    background-color: var(--gp-tag-bg);
    color: var(--gp-tag-text);
    border-radius: 6px;
    font-family: var(--gp-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
}

.result-item .result-item-date {
    grid-area: date;
    padding: 0;
    font-family: var(--gp-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.result-item .result-item-date .carrousel-icon,
.result-item .result-item-address .carrousel-icon {
    display: none;
}

.result-item .separator-line {
    display: none;
}

.result-item-actions {
    grid-area: cta;
    align-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.result-item-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.result-item-cta {
    background-color: var(--gp-accent);
    color: var(--gp-text-main);
}

.result-item-cta:hover {
    background-color: var(--gp-accent-hover);
    color: var(--gp-text-main);
}

@media (max-width: 720px) {
    .result-item-actions {
        margin-top: 0;
        flex-wrap: nowrap;
    }

    .result-item-cta {
        flex: 1;
        height: 44px;
    }
}

.thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-container {
    grid-area: thumb;
    height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #e8dfc9;
    background-color: var(--gp-card-bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.thumbnail-container:has(img.thumbnail)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
}

.thumbnail-container img.thumbnail {
    width: 100%;
    height: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.thumbnail-container .loader {
    width: 80px;
    height: 80px;
    margin: auto;
}

.no-results {
    grid-column: 1 / -1;
    background-color: var(--gp-card-bg);
    border: 1px solid var(--gp-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mention-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.mention-metadata-col,
.mention-links-col {
    flex: 1;
}

.mention-description a {
    margin-right: 1rem;
    margin-top: 5px;
    text-decoration: none;
}

.mention-description a:hover {
    text-decoration: underline;
}


.mention-metadata-col {
    font-size: 0.9rem;
    text-align: left;
    width: 100%;
}

.mention-links-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.wbc-logo {
    max-height: 30px;
    width: auto;
    margin-left: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--gp-text-main);
    background-color: #f7f7f7;
    color: var(--gp-text-main);
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

@media screen and (min-width: 768px) {
    .wbc-logo {
        padding: 0.8rem 3.2rem;
    }
}


@media screen and (min-width: 768px) {
    .mention-description {
        flex-direction: row;
        align-items: flex-start;
    }

    .mention-metadata-col {
        margin-right: 40px;
    }
}


.collections-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}

.collections-list-desc {
    flex-basis: 100%;
    padding: 0.5em;
}

.collection-desc {
    flex: 0 1 320px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.collection-name {
    font-weight: bold;
}

.collection-desc img {
    width: 200px;
    margin-top: 0.5rem;
}

.collection-desc a {
    text-decoration: none;
    color: black;
}

.collection-desc a:hover {
     color: #007bff;
}

.collection-desc button {
    padding: 10px 15px;
    margin: 5px 5px;
    border: 1px solid #ccc;
    background-color: #007bff;
    cursor: pointer;
    border-radius: 3px;
    color: #fff;
    transition: background 0.3s ease;
}

/* Collections page carousel - wrap items to multiple rows on all screen sizes */
.collections-carrousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
    overflow: visible;
    padding: 0;
}

.collections-carrousel .carrousel-item {
    min-width: 0;
    max-width: none;
}

.collections-carrousel .carrousel-item-meta {
    flex: 1;
}

.collection-name {
    font-family: var(--gp-font-serif);
    font-size: 1.375rem;
    font-weight: 600;
}

.collections-carrousel p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--gp-text-soft);
}

.collections-carrousel a {
    text-decoration: none;
}

.collection-button {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background-color: var(--gp-accent);
    color: var(--gp-text-main);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.collection-button:hover {
    background-color: var(--gp-accent-hover);
}

@media (max-width: 1000px) {
    .collections-carrousel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .collections-carrousel {
        gap: 16px 12px;
    }
}

.preview-box {
    flex: 1 1 calc(40% - 1rem);
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.preview-box {
    flex: 1 1 calc(40% - 1rem);
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}

.modal-content-container {
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.top-links {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--gp-bg-dark);
    font-family: var(--gp-font-sans);
}

.top-links-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0 1.5rem;
    flex-wrap: wrap;
    min-height: 52px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 2rem;
    margin: 0 auto;
}

.top-links-left {
    display: flex;
    align-items: center;
}

.top-links-right {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #ffffff;
}

.top-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 14px 0;
    transition: color 0.2s;
}

.top-links a:hover {
    color: var(--gp-accent);
}

.top-links a[aria-current="page"] {
    color: var(--gp-accent);
}

.top-links-logo-link {
    font-weight: 600;
    font-size: 1rem !important;
}

.top-links-separator {
    color: #ffffff;
    font-size: 0.8125rem;
}

/* Full-width dark bar in the middle of the page */
#negative-logo-bar {
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
}

@media screen and (min-width: 1400px) {
    #negative-logo-bar {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
}

.negative-logo-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media screen and (min-width: 768px) {
    .negative-logo-inner {
        padding: 0 3.5rem;
    }
}

.main-logo-container {
    background-color: var(--gp-bg-light);
    display: flex;
    justify-content: flex-start;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.main-logo {
    max-height: 120px;
    height: auto;
    width: auto;
}

.hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    padding-top: 1.5rem;
    background-color: var(--gp-bg-light);
    align-items: flex-start;
}

.hero-collage {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
}

.hero-collage-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

.hero-content {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-description {
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gp-text-main);
}

.hero-description p {
    margin: 0;
}

.hero-description a {
    color: var(--gp-accent-dark);
    text-decoration: underline;
}

.hero-description a:hover {
    color: var(--gp-accent);
}

.logo {
    max-height: 150px;
    height: auto;
    width: auto;
}

.logo-content {
    margin: 10px;
    width: 150px;
}

@media (max-width: 800px) {
    #ig-link, #about-link, #ig-link-sep, #about-link-sep {
        display: none;
    }

    .top-links-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        min-height: 0;
        padding: 0 1rem;
    }

    .top-links-left {
        padding: 12px 0 2px;
    }

    .top-links-logo-link {
        font-size: 0.9375rem !important;
        padding: 0;
    }

    .top-links-right {
        gap: 10px;
        font-size: 0.72rem;
    }

    .top-links a,
    .top-links-separator {
        font-size: 0.72rem;
    }

    .top-links-right a {
        white-space: nowrap;
        padding: 10px 0;
    }

    .main-logo-container {
        display: none;
    }

    .main-logo {
        max-height: 80px;
    }

    .hero-section {
        flex-direction: column;
        padding: 1.5rem 1rem;
        padding-top: 1rem;
        gap: 1.5rem;
    }
    
    .hero-collage,
    .hero-content {
        max-width: 100%;
    }
    
    .hero-collage {
        order: 1;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-description {
        font-size: 0.875rem;
        margin-top: 1rem;
    }
    
    .search-instructions {
        font-size: 1.25rem;
    }
    
    .carrousel-wrapper {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .carrousel-nav {
        padding: 0.25rem;
    }
    
    .carrousel-nav img {
        width: 24px;
        height: 24px;
    }
    
    .carrousel-container {
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .carrousel-wrapper .carrousel-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .carrousel-item {
        min-width: 240px;
        max-width: 240px;
    }
    
    /* Mobile content ordering */
    .homepage-content {
        display: flex;
        flex-direction: column;
    }
    
    #ra-container-dark {
        order: 1;
    }
    
    #rp-container-light {
        order: 2;
    }
    
    #rf-container-dark {
        order: 3;
    }
    
    .homepage-content .site-section-container-light:first-of-type {
        order: 4;
    }
}

@media (max-width: 360px) {
    .top-links-right {
        gap: 6px;
    }

    .top-links a,
    .top-links-separator {
        font-size: 0.65rem;
    }
}

.homepage-content {
    display: contents;
}



.street-index-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-left: 1rem;
    margin-top: 1rem;
}

.street-index-col1,
.street-index-col2,
.street-index-col3 {
    width: 100%;
}

.street-index-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.street-index-columns li {
    margin-bottom: 8px;
}

@media screen and (min-width: 768px) {
    .street-index-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

.street-index-container-white a {
    color: #000;
    text-decoration: none;
    margin-right: 1rem;
}

.street-index-container a {
    color: #fff;
    text-decoration: none;
    margin-right: 1rem;
}

.street-index-columns a,
.street-index-columns li {
    padding: 0.2em;
}

.full-index-link {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: heavier;
    color: #007bff;
    text-align: right;
    width: 100%;
}

.full-index-link a:hover {
    text-decoration: underline;
}

.section-header-content-container {
    margin-left: 10px;
    margin-top: 0.5em;
}

@media (max-width: 600px) {
    .section-header-content-container {
        margin-left: 5px;
        margin-right: 5px;
    }

    .section-header-desc {
        font-size: 0.9rem;
    }
}

/* Homepage accent version of the street index section */
.site-section-container-accent .street-index-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 2rem 0 0 0;
    padding: 0 1.5rem 0 1.5rem;
}

.site-section-container-accent .street-index-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-section-container-accent .street-index-columns li {
    position: relative;
    margin-bottom: 0.35rem;
    padding: 0.25rem 0 0.4rem 1.6rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(37, 35, 35, 0.22);
}

.site-section-container-accent .street-index-columns li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--gp-text-main);
}

.site-section-container-accent .street-index-columns a {
    color: var(--gp-text-main);
    text-decoration: none;
}

.site-section-container-accent .street-index-columns a:hover {
    color: #ffffff;
}

.site-section-container-accent .full-index-link {
    margin-top: 3rem;
    text-align: center;
}

.site-section-container-accent .full-index-link a {
    display: inline-block;
    padding: 0.9rem 2.25rem;
    border-radius: 999px;
    border: 1.5px solid var(--gp-text-main);
    color: var(--gp-text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.site-section-container-accent .full-index-link a:hover {
    background-color: var(--gp-text-main);
    color: #ffffff;
}

/* Hide third column on mobile for accent section */
@media screen and (max-width: 767px) {
    .site-section-container-accent .street-index-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .site-section-container-accent .street-index-col3 {
        display: none;
    }
}

.about-container {
    background-color: #fff;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    width: 100%;
}

.about-text{
    padding: 0rem 1rem 1rem 1rem;
    max-width: 800px;
}

.wbc-logo {
 width: 120px;
 padding: 5px;
 vertical-align: middle;
 }

 .loader {
      width: 100px;
      height: 100px;
      background-image: url('/static/img/logo_robocze.png');
      background-position: center;
      background-size: 100%;
      background-repeat: no-repeat;
      animation: scale-in-out 3s infinite ease-in-out;
      margin: 20px auto;
      display: block;
  }

@keyframes scale-in-out {
  0% {
    background-size: 0%;
  }
  50% {
    background-size: 100%;
  }
  100% {
    background-size: 0%;
  }
}

.photowall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    padding: 20px;
}

.photowall img {
    width: 100%;
    max-width: 800px; /* Ensure images are not wider than 800px */
    height: auto;
    /*border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}

.pagination {
    display: flex;
    padding: 1rem 1rem 3rem;
    width: 100%;
    box-sizing: border-box;
    margin: auto;
    justify-content: center;
}

.pagination button {
    height: 48px;
    padding: 0 28px;
    border-radius: 10px;
    border: 1.5px solid var(--gp-text-main);
    background-color: transparent;
    color: var(--gp-text-main);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pagination button:hover {
    background-color: var(--gp-text-main);
    color: var(--gp-bg-light);
}

.pagination button:disabled {
    background-color: #777;
    color: #999;
    border-color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Ghost button, same look as the pagination button */
.load-more {
    display: inline-block;
    height: 48px;
    padding: 0 28px;
    border-radius: 10px;
    border: 1.5px solid var(--gp-text-main);
    background-color: transparent;
    color: var(--gp-text-main);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.load-more:hover {
    background-color: var(--gp-text-main);
    color: var(--gp-bg-light);
}

.thumbnail-missing {
    min-height: 120px;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gp-text-muted);
    background-color: var(--gp-bg-light);
    border: 1px dashed var(--gp-border);
    border-radius: 10px;
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* About page */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 2rem 2rem 1rem;
}

.about-stat {
    background-color: var(--gp-card-bg);
    border: 1px solid var(--gp-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-stat-number {
    font-family: var(--gp-font-serif);
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
}

.about-stat:first-child .about-stat-number {
    color: var(--gp-accent-dark);
}

.about-stat-desc {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gp-text-soft);
}

.about-stat-source {
    font-family: var(--gp-font-mono);
    font-size: 0.75rem;
    color: var(--gp-text-muted);
}

.about-stat-dark {
    background-color: var(--gp-bg-dark);
    color: var(--gp-bg-light);
}

.about-stat-dark .about-stat-number,
.about-stat-dark .about-stat-source {
    color: var(--gp-accent);
}

.about-stat-dark .about-stat-desc {
    color: #c9c6be;
}

.about-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background-color: #f7f0e3;
    border: 1px solid var(--gp-border);
    border-radius: 14px;
    padding: 20px 22px;
    font-size: 1rem !important;
    line-height: 1.6;
}

.about-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.about-search-band {
    background-color: var(--gp-bg-dark);
    color: var(--gp-bg-light);
    padding: 4.5rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.about-search-band h2 {
    margin: 0;
    max-width: 720px;
    font-family: var(--gp-font-serif);
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.about-search-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 640px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 14px;
    padding: 8px;
}

.about-search-form input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 14px;
    font: inherit;
    font-size: 1.125rem;
    color: var(--gp-text-main);
}

.about-search-form button {
    height: 50px;
    padding: 0 26px;
    border: none;
    border-radius: 10px;
    background-color: var(--gp-accent);
    color: var(--gp-text-main);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.about-search-form button:hover {
    background-color: var(--gp-accent-hover);
}

.about-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 0 2rem 4rem;
    background-color: var(--gp-card-bg);
    border: 1px solid var(--gp-border);
    border-radius: 20px;
    padding: 28px 32px;
}

.about-contact-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9375rem;
    color: #4a4e57;
}

.about-contact-title {
    font-family: var(--gp-font-serif);
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--gp-text-main);
}

.about-contact-button {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 24px;
    border: 1.5px solid var(--gp-text-main);
    border-radius: 10px;
    color: var(--gp-text-main);
    font-weight: 600;
    text-decoration: none;
}

.about-contact-button:hover {
    background-color: var(--gp-text-main);
    color: var(--gp-bg-light);
}

@media (max-width: 900px) {
    .about-stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .about-stats {
        padding: 1.25rem 1rem 0.5rem;
    }

    .about-stat-number {
        font-size: 3rem;
    }

    .about-search-band {
        padding: 3rem 1rem;
    }

    .about-search-band h2 {
        font-size: 2rem;
    }

    .about-contact {
        margin: 0 1rem 2rem;
        padding: 1.25rem;
    }
}

/* Collections page: "suggest a collection" card */
.collection-suggest {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    border: 1.5px dashed #8a8d94;
    border-radius: 16px;
    padding: 28px;
}

.collection-suggest h3 {
    margin: 0 0 10px;
    font-family: var(--gp-font-serif);
    font-size: 1.625rem;
    font-weight: 600;
}

.collection-suggest p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #4a4e57;
}

.collection-suggest a {
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}


/* "Cały numer w WBC" button on the entry page (sits in the dark header section) */
.mention-description .wbc-button {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    margin: 0;
    padding: 0 16px;
    border-radius: 8px;
    background-color: var(--gp-accent);
    color: var(--gp-text-main);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.mention-description .wbc-button:hover {
    background-color: var(--gp-accent-hover);
    color: var(--gp-text-main);
    text-decoration: none;
}
