/* --- BETŰTÍPUSOK --- */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2') format('woff2');
}

/* --- VÁLTOZÓK (VILÁGOS MÓD - ALAPÉRTELMEZETT) --- */
:root {
    --primary: #222;
    --bg-color: #f3f5f7;
    --card-bg: #ffffff;
    --text-color: #333;
    --text-muted: #555;
    --title-color: #222;
    --border-color: #eeeeee;
    --input-bg: #ffffff;
    --nav-bg: #ffffff;
    
    --nav-action-bg: rgba(0, 0, 0, 0.03);
    --nav-divider: rgba(0, 0, 0, 0.1);
    
    --modal-overlay: rgba(0, 0, 0, 0.7);
    
    --card-shadow: 0 5px 15px rgba(0,0,0,0.05);
    --hover-shadow: 0 15px 30px rgba(0,0,0,0.06), 0 5px 10px rgba(0,0,0,0.03);
    
    --btn-cancel-bg: #eee;
    --btn-cancel-text: #555;
    --btn-submit-bg: var(--primary);
    --btn-submit-text: #ffffff;
    --badge-bg: #eee;
    --badge-text: #555;
    --page-btn-disabled: 0.5;
    
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    
    --radius: 12px;
    --transition: 0.2s ease;
}

/* --- SÖTÉT MÓD (CSAK A VÁLTOZÓK FELÜLÍRÁSA) --- */
body.dark-theme {
    --primary: #ffffff;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #aaaaaa;
    --title-color: #ffffff;
    --border-color: #2a2a2a;
    --input-bg: #2a2a2a;
    --nav-bg: #1e1e1e;
    
    --nav-action-bg: rgba(255, 255, 255, 0.05);
    --nav-divider: rgba(255, 255, 255, 0.1);
    
    --modal-overlay: rgba(0, 0, 0, 0.85);
    
    --card-shadow: 0 4px 8px rgba(0,0,0,0.5);
    --hover-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px #3a3a3a;
    
    --btn-cancel-bg: #2a2a2a;
    --btn-cancel-text: #aaaaaa;
    --btn-submit-bg: #e0e0e0;
    --btn-submit-text: #121212;
    --badge-bg: #333;
    --badge-text: #ccc;
    --page-btn-disabled: 0.3;
}

/* --- ALAPSTÍLUSOK --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body { 
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    background: var(--bg-color); 
    color: var(--text-color); 
    margin: 0; 
    padding: 15px; 
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

main {
    flex: 1;
}

input, button, select, textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* --- NAVIGÁCIÓ --- */
nav { 
    display: flex; 
    justify-content: center;
    background: var(--nav-bg); 
    padding: 0 20px; 
    height: 70px;
    position: sticky; 
    top: 10px;
    z-index: 1000; 
    
    border-radius: var(--radius); 
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    
    width: 100%;
    margin-bottom: 30px;
    
    transition: background var(--transition), border-color var(--transition), transform 0.3s ease;

    transform: translateZ(0);
    -webkit-transform: translateZ(0);

}

nav::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: -30px;
    right: -30px;
    height: 50vh;
    background: var(--bg-color);
    z-index: -1;
    pointer-events: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.brand { 
    font-size: 22px; 
    font-weight: bold; 
    color: var(--title-color); 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    transition: opacity var(--transition);
}

.brand:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 40px; 
    width: auto;
    object-fit: contain;
}

body.dark-theme .nav-logo { 
    filter: brightness(0) invert(1); 
}

body.dark-theme .protected-logo { 
    filter: invert(1); 
    background-color: #cccccc; 
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--nav-action-bg);
    padding: 5px 5px 5px 15px;
    border-radius: 50px;
    transition: background var(--transition);
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--nav-divider);
    margin: 0 5px;
}

.nav-cta-btn {
    background: var(--primary);
    color: var(--bg-color) !important;
    padding: 10px 22px; 
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: inline-flex;
    align-items: center;
}

.nav-cta-btn:hover {
    background: transparent;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

body.dark-theme .nav-cta-btn {
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.theme-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    color: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin: 0;
}

.theme-btn:hover {
    transform: rotate(15deg) scale(1.1);
    color: var(--primary);
}

.theme-btn:focus {
    outline: none;
}

/* --- VEZÉRLŐK (KERESÉS, SZŰRÉS) --- */
.controls { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    margin-bottom: 30px; 
    background: var(--card-bg); 
    padding: 20px; 
    border-radius: var(--radius); 
    align-items: center; 
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.search-box { flex: 2; min-width: 200px; }
.filter-box { flex: 1; min-width: 150px; }

.search-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-box input, 
.filter-box select { 
    width: 100%; 
    padding: 12px; 
    background: var(--input-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color); 
    border-radius: 8px; 
    font-size: 16px; 
    outline: none; 
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.search-box input { 
    padding: 12px 40px 12px 12px;
}

.search-box input:focus,
.filter-box select:focus {
    border-color: var(--primary);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    display: none;
    transition: color var(--transition);
}

.clear-search-btn:hover {
    color: var(--danger);
}

/* --- ALBUM RÁCS ÉS KÁRTYÁK --- */
.albums-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 20px;
    min-height: 50vh;
    align-content: start;
}

.album-card { 
    background: var(--card-bg); 
    border-radius: var(--radius); 
    overflow: hidden; 
    cursor: pointer; 
    contain: content;
    box-shadow: var(--card-shadow); 
    border: 1px solid var(--border-color);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
                background var(--transition), border-color var(--transition);
}

.album-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--hover-shadow);
}

.album-cover-container {
    position: relative;
}

.album-cover { 
    height: 180px; 
    width: 100%; 
    object-fit: cover; 
    background-color: var(--border-color);
    transition: opacity 0.3s ease-in, 
                transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.album-cover.protected-logo {
    object-fit: contain;
    padding: 40px;
    background-color: var(--bg-color);
}

.protected-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.album-info { padding: 18px; }

.album-title { 
    margin: 0; 
    font-size: 18px; 
    color: var(--title-color); 
    font-weight: bold; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal; 
}

.album-meta { 
    margin-top: 8px; 
    font-size: 13px; 
    color: var(--text-muted); 
    display: flex; 
    justify-content: space-between; 
}

.album-badge { 
    background: var(--badge-bg); 
    color: var(--badge-text); 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-weight: bold; 
    font-size: 12px; 
}

.no-results-msg {
    text-align: center; 
    display: none; 
    padding: 40px; 
    color: var(--text-muted);
}

/* --- PAGINÁCIÓ --- */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) { 
    background: var(--border-color); 
}

.page-btn.active { 
    background: var(--primary); 
    color: var(--bg-color); 
    border-color: var(--primary); 
}

.page-btn:disabled { 
    opacity: var(--page-btn-disabled); 
    cursor: not-allowed; 
}

.page-btn.dots {
    border: none;
    background: transparent;
    cursor: default;
    color: var(--text-muted);
    min-width: 30px;
}

.page-btn.dots:hover {
    background: transparent;
    border: none;
}

.page-btn i {
    font-size: 12px;
}

/* --- GALÉRIA NÉZET ÉS KÉPEK --- */
#singleGalleryView { display: none; }

.gallery-header { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 25px; 
}

.back-btn {
    background-color: var(--card-bg);
    color: var(--title-color);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.back-btn:hover {
    background-color: var(--primary);
    color: var(--bg-color);
    border-color: var(--primary);
    transform: translateX(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.back-btn i {
    font-size: 1.1em;
}

.gallery-title-wrapper { flex: 1; overflow: hidden; }
#viewAlbumTitle { margin: 0; font-size: 20px; overflow: hidden; text-overflow: ellipsis; color: var(--title-color); }
#viewAlbumDate { color: var(--text-muted); }

.photos-grid {
    --target-height: 250px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.photo-item {
    flex-grow: var(--ratio);
    flex-basis: calc(var(--ratio) * var(--target-height));
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--border-color);
    contain: content;
}

@media (min-width: 700px) { .photos-grid { --target-height: 180px; } }
@media (min-width: 1000px) { .photos-grid { --target-height: 220px; } }

@keyframes smoothReveal {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.4s ease;
    cursor: pointer;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1.01);
    will-change: transform;
}

.photo-item img.loaded {
    opacity: 1;
}

@media (hover: hover) {
    .photo-item:hover img.loaded {
        transform: translateZ(0) scale(1.04);
    }
}

.photos-grid::after {
    content: "";
    flex-grow: 999;
}

/* --- LIGHTBOX --- */
#lightbox { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95); 
    z-index: 2000; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
}

.lb-top-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3000;
}

.lb-fullscreen, .lb-close {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    margin: 0;
    outline: none;
}

.lb-fullscreen { font-size: 20px; }
.lb-close { font-size: 34px; line-height: 0; }

.lb-fullscreen:hover, .lb-close:hover { 
    background: rgba(255, 255, 255, 0.4); 
    transform: scale(1.1); 
}

.lb-content { 
    position: relative; 
    width: 100%; 
    height: 80%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

#lightboxImg { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.15s ease-out;
    will-change: opacity;
    position: relative; 
    z-index: 2;
}

.lb-fade {
    opacity: 0.3;
}

.lb-btn { 
    position: absolute; 
    top: 50%; transform: translateY(-50%); 
    background: rgba(255,255,255,0.15); 
    color: white; 
    border: none; 
    font-size: 24px; 
    width: 50px; height: 50px; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; justify-content: center; align-items: center; 
    transition: background var(--transition);
}
.lb-btn:hover { background: rgba(255,255,255,0.3); }

.lb-prev { left: 15px; } 
.lb-next { right: 15px; }

.lb-footer { height: 10%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; gap: 10px; }

.lb-footer-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lb-icon-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: transform var(--transition), background var(--transition);
}
.lb-icon-btn:hover { background: rgba(255, 255, 255, 0.4); transform: scale(1.1); }

.lb-download { 
    color: var(--primary);
    background: var(--card-bg);
    text-decoration: none; 
    padding: 8px 20px; 
    border-radius: 20px; 
    font-weight: bold; 
    font-size: 14px; 
    transition: transform var(--transition), background var(--transition); 
}

.lb-download:hover { 
    transform: scale(1.05); 
    background: var(--border-color);
}

#lightbox.is-fullscreen .lb-content {
    height: 100%;
}

#lightbox.is-fullscreen .lb-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 40px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); 
    z-index: 3000;
}

#lightbox.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: lb-spin 1s linear infinite;
    z-index: 1;
}

@keyframes lb-spin { 
    to { transform: rotate(360deg); } 
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    .lb-fullscreen {
        display: none !important;
    }
}

/* --- VISSZA A TETEJÉRE GOMB --- */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.3s;
    z-index: 1500;
}

#backToTop:hover { 
    background: rgba(0, 0, 0, 0.9); 
}

#backToTop.show { 
    opacity: 1; 
    visibility: visible; 
}

/* --- MODAL (JELSZÓ KÉRÉS) --- */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--modal-overlay);
    backdrop-filter: blur(5px);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.modal-overlay.show { display: flex; opacity: 1; }

.modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    transform: translateY(20px);
    transition: transform var(--transition);
    border: 1px solid var(--border-color);
}
.modal-overlay.show .modal-content { transform: translateY(0); }

.modal-content h3 { margin-top: 0; color: var(--title-color); font-size: 22px; margin-bottom: 10px; }
.modal-content p { color: var(--text-muted); font-size: 15px; margin-bottom: 25px; }
.modal-error { color: var(--danger) !important; font-weight: bold; display: none; margin-bottom: 15px !important; }

.password-input-group { position: relative; margin-bottom: 25px; }
.password-input-group input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color var(--transition);
    background: var(--input-bg);
    color: var(--text-color);
}
.password-input-group input:focus { border-color: var(--primary); }

.pw-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color var(--transition);
}
.pw-toggle-btn:hover { color: var(--primary); }

.modal-actions { display: flex; gap: 15px; }
.modal-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}
.btn-cancel { background: var(--btn-cancel-bg); color: var(--btn-cancel-text); }
.btn-cancel:hover { opacity: 0.8; }
.btn-submit { background: var(--btn-submit-bg); color: var(--btn-submit-text); }
.btn-submit:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* --- SKELETON LOADING --- */
.skeleton {
    background-color: var(--border-color);
    background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 36px 20px 26px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

footer strong { color: var(--title-color); }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-4px);
    color: #fff;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.social-link.fb:hover { background-color: #1877F2; }
.social-link.insta:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-link.yt:hover { background-color: #FF0000; }

body.dark-theme footer a:not(.social-link) { color: var(--text-muted); }
body.dark-theme footer a:not(.social-link):hover { color: var(--title-color); }

/* --- MOBIL NÉZET SZABÁLYOK --- */
@media (max-width: 768px) { 
    body { padding: 10px; } 
    
    .controls { 
        flex-direction: row; 
        flex-wrap: wrap; 
        gap: 10px; 
        padding: 12px;
    } 

    .search-box { 
        flex: 1 1 100%; 
        min-width: 100%; 
    }

    .filter-box { 
        flex: 1; 
        min-width: 0;
    }

    .search-box input, 
    .filter-box select {
        padding: 10px;
        font-size: 14px;
    }
    
    #lightbox {
        height: 100dvh; 
        padding-bottom: env(safe-area-inset-bottom); 
        touch-action: none; 
    }

    .lb-top-bar {
        top: max(15px, env(safe-area-inset-top));
        right: max(15px, env(safe-area-inset-right));
        gap: 10px;
    }

    .lb-fullscreen, .lb-close {
        width: 44px;
        height: 44px;
    }

    .lb-content {
        height: 85%;
    }

    .lb-btn {
        display: none;
    }

    .lb-download {
        padding: 12px 25px;
        font-size: 16px;
    }

    .lb-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .lb-btn {
        display: flex ;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 18px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9999;
        cursor: pointer;
    }

    .lb-prev {
        left: 15px;
    }

    .lb-next {
        right: 15px;
    }
    
    .lb-btn:active {
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-50%) scale(0.95);
    }

    #photosGrid {
        --target-height: 140px;
        gap: 8px !important;
        padding: 8px !important;
    }

    #photosGrid .photo-item {
        margin: 0 !important;
        background: transparent !important;
        border-radius: 4px !important;
    }

    .photos-grid::after {
        content: "";
        flex-grow: 6 !important;
        display: block !important;
    }
    #photosGrid .photo-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 4px !important;
    }

    #lightbox, #lightboxImg {
        touch-action: pan-y pinch-zoom;    
    }
    .nav-cta-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    .brand {
        font-size: 18px;
    }

    .brand span {
        display: none;
    }

    .brand {
        width: auto;
        margin-bottom: 0;
        justify-content: flex-start;
    }

    .nav-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    nav {
        height: 60px;
        top: 10px;
        margin-bottom: 20px;
    }
}

/* --- LÁTHATÓ FÓKUSZ BILLENTYŰZETES NAVIGÁCIÓHOZ --- */
.album-card:focus-visible,
.nav-cta-btn:focus-visible,
.back-btn:focus-visible,
.lb-download:focus-visible {
    outline: 3px solid var(--info); 
    outline-offset: 4px; 
    border-radius: var(--radius);
}

.photo-item img:focus-visible {
    outline: 4px solid var(--info) !important;
    outline-offset: -4px !important;
    border-radius: 8px;
}

.lb-btn:focus-visible,
.lb-close:focus-visible,
.lb-fullscreen:focus-visible,
.lb-icon-btn:focus-visible {
    outline: 3px solid var(--info) !important;
    outline-offset: 2px;
    border-radius: 50%;
}

.album-card:focus-visible {
    transform: translateY(-8px); 
    box-shadow: var(--hover-shadow);
}


/* --- TAGOK --- */
.members-page-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.member-group-title { text-align: center; width: 100%; margin: 50px 0 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.members-row { display: grid; gap: 25px; justify-content: center; margin-bottom: 40px; }

.members-row.top-trio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto 40px;

}.members-row.standard-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.members-row.alumni { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.alumni-name { background: var(--badge-bg); color: var(--badge-text); padding: 6px 15px; border-radius: 20px; font-size: 0.9em; }

.member-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); transition: transform 0.3s; }
.member-card:hover { transform: translateY(-5px); }
.member-image { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.member-info {
    padding: 15px;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-role {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.2;
    margin-top: 5px;
}

@media (max-width: 768px) { .members-row.top-trio { grid-template-columns: 1fr; } }


/* --- NAVIGÁCIÓS GOMB STÍLUSOK --- */

nav .nav-actions .nav-cta-btn.secondary {
    background: transparent;
    background-color: transparent;
    color: var(--primary) !important; 
    border: 2px solid transparent;
    box-shadow: none;
}

nav .nav-actions .nav-cta-btn.secondary:hover {
    background: var(--nav-action-bg) !important;
}

body.dark-theme nav .nav-actions .nav-cta-btn.secondary {
    color: var(--primary) !important;
}

nav .nav-actions .nav-cta-btn.secondary.active {
    border-bottom: 2px solid var(--primary);
    border-radius: 0;
}

/*Lábléc*/

footer a.footer-email {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

footer a.footer-email:hover {
    color: var(--primary);
    text-decoration: underline;
}

body.dark-theme footer a.footer-email {
    color: var(--text-muted);
}

body.dark-theme footer a.footer-email:hover {
    color: var(--title-color);
}

.nowrap {
    white-space: nowrap;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 12px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 90%;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    letter-spacing: 0.2px;
}

.footer-divider {
    color: var(--border-color);
}

@media (max-width: 600px) {
    .footer-divider {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 5px;
    }
}

