.container {
    min-height: 100vh;
}

#gallery-map {
    width: 100%;
    height: max(50vh, 400px);
}

/* Map pin popup */
.map-gallery-popup .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}
.map-gallery-popup .leaflet-popup-content {
    margin: 0;
    width: 180px !important;
    line-height: 1;
}
.map-popup-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.map-popup-cover {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: var(--bs-secondary-bg);
}
.map-popup-info {
    padding: 8px 10px 10px;
    background: var(--bs-body-bg);
    text-align: center;
}
.map-popup-title {
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--bs-body-color);
}
.map-popup-date {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    margin-top: 3px;
}
[data-bs-theme="dark"] .map-gallery-popup .leaflet-popup-content-wrapper {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
}
[data-bs-theme="dark"] .map-gallery-popup .leaflet-popup-tip {
    background: var(--bs-body-bg);
}



.login-container {
    background: var(--bs-body-bg);
    padding: 3rem;
    border-radius: 0.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.gallery-logo {
    max-height: 80px;
}



.user-info-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery-container {
    background: var(--bs-body-bg);
    padding: 3rem;
    border-radius: 0.5rem;
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
}

.no-projects {
    text-align: center;
    padding: 5rem 1rem;
    background: var(--custom-body-bg);
    border-radius: 0.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: var(--bs-body-color);
    cursor: pointer;
    height: 100%;
}

.project-card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px var(--bs-primary);
    color: var(--bs-body-color);
}

.project-card .card-body {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bs-light);
    position: relative;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .project-cover-placeholder {
    filter: invert(1);
}
