:root{
    --maxw: 1800px;
    --radius: 14px;
    --border: #e8e8e8;
    --bg: #ffffff;
    --muted: #666;
    --shadow: 0 8px 24px rgba(0,0,0,.08);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; margin: 0;}
body{
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.45;
    background: #fafafa;
    color: #111;
    display: flex;
    flex-direction: column;
    padding: 50px 0 0;
}

.container{
    max-width: var(--maxw);
    margin: 0 auto;
    width:100%;
    text-align: justify;
    /*padding: 14px;*/
}

a{ color: inherit; }
.muted{ color: var(--muted); }

main{
    flex: 1;
    display: flex;
}
main > .container{
    flex: 1;
}




.card{
    /*background: var(--bg);*/
    /*border: 1px solid var(--border);*/
    /*border-radius: var(--radius);*/
    /*box-shadow: var(--shadow);*/
    /*padding: 14px;*/

}

.card {
    /*background: red;*/
    flex: 1;
    display: flex;
    flex-direction: column;
    border:none;
    text-align: justify;
    padding:1rem;

}

.card li {
    text-align: justify;
    padding-top: 10px;
}




/* Header + nav */
.header{
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250,250,250,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner{
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.brand{
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .2px;
    white-space: nowrap;
}

/* Desktop nav */
.nav{
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a{
    text-decoration: none;
    padding: 5px 10px;
    font-size: 12px !important;
    border-radius: 10px;
}

.nav-link{
    font-size: 14px !important;
}
.nav a[aria-current="page"]{
    background: #f0f0f0;
}

.lang{
    display: flex;
    gap: 6px;
    align-items: center;
}

.lang a{
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.lang a[aria-current="page"]{
    border-color: var(--border);
    background: #fff;
}

/* Hamburger button (hidden on desktop) */
.menu-btn{
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
}

.menu-btn:focus{ outline: 2px solid #000; outline-offset: 2px; }

.menu-icon{
    display: inline-block;
    width: 20px;
    height: 14px;
    position: relative;
}

.menu-icon span{
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #111;
    border-radius: 999px;
}

.menu-icon span:nth-child(1){ top: 0; }
.menu-icon span:nth-child(2){ top: 6px; }
.menu-icon span:nth-child(3){ top: 12px; }

/* Mobile menu panel */
.mobile-panel{
    display: none;
    border-top: 1px solid var(--border);
    background: #fff;
}

.mobile-panel-inner{
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 10px 14px 14px;
    display: grid;
    gap: 10px;
}

.mobile-panel a{
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
}

.mobile-panel a[aria-current="page"]{
    background: #f5f5f5;
}

/* Page spacing */
main{ padding: 16px 0 26px; }
h1{ margin: 12px 0 8px; font-size: 25px;}
h2{ margin: 12px 0 8px; font-size: 20px;}
h3{
    margin: 12px 0 8px;
    font-size: 18px;
}
h4{ margin: 12px 0 8px; font-size: 16px;}




p{
    margin: 8px 0 0;
    /*text-indent:3rem;*/
}


ul {
    list-style: none;
    padding-left: 0;
}
ul li:not(.nav-item) {
    /*display: flex;*/
    /*align-items: flex-start;*/
    /*gap: 0.5rem;*/
}
ul li:not(.nav-item)::before {
    content: "🔹";
}


ul.unstyled  {
    list-style: none;
    padding-left: 0px;
}
ul.unstyled li{}
ul.unstyled li strong{}

ul.unstyled li::before {
    content: "";
}


/* Responsive gallery */
.gallery{
    margin-top: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.gallery img{
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: zoom-in;
    border: 1px solid var(--border);
    background: #fff;
}


.lb-gallery{
    --thumb-h: 280px;
    --thumb-min: 280px;
    /*--thumb-w: 280px;*/

    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(var(--thumb-min), 1fr));
    gap:16px;

}

.lb-gallery a{
    display:block; width:100%;
}

.lb-gallery img{
    width:100%;
    height:var(--thumb-h);
    object-fit:cover;
    border-radius:10px;
    display:block;
}

.gallery-item{
    display:inline-block;
    text-align:center;
}

.thumb-title{
    margin-top:6px;
    font-size:12px;
    color:#444;
}
.thumb-note{
    text-align:justify;
    margin-top:6px;
    font-size:14px;
    color:#444;
}

.blured img {
    filter: blur(18px);
    transition: filter 0.3s ease;
    cursor: pointer;
}
.blured img:hover {
    filter: blur(5px);
}

a.external-link::after {
    content: " ↗";
    font-size: 1em;
    opacity: 0.6;
    margin-left: 0px;
}
a.external-link:hover::after {
    opacity: 1;
}

a.external-link-icon {
    text-decoration: none;
}
a.external-link-icon::after {
    content: " ↗";
    font-size: 1em;
    opacity: 0.6;
    margin-left: 0px;
}
a.external-link-icon:hover::after {
    opacity: 1;
}

.home-icon{
    display:inline-block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3l9 8h-3v10h-5v-6H11v6H6V11H3z'/%3E%3C/svg%3E");
    mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3l9 8h-3v10h-5v-6H11v6H6V11H3z'/%3E%3C/svg%3E");
}

/* Lightbox */
.lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.82);
    display: grid;
    place-items: center;
    padding: 14px;
    z-index: 50;
}

.lightbox-img{
    max-width: 95vw;
    max-height: 80vh;
    border-radius: var(--radius);
    box-shadow: 0 18px 70px rgba(0,0,0,.4);
}

.lightbox-caption{
    color: #fff;
    margin-top: 10px;
    text-align: center;
}

.lightbox-close{
    position: fixed;
    top: 10px;
    right: 14px;
    font-size: 34px;
    line-height: 1;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

/* Buttons / language chooser */
.lang-chooser{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn{
    display: inline-block;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
}

/* Mobile behavior */
@media (max-width: 1366px){
    .nav{ display: none; }
    .menu-btn{ display: inline-flex; align-items: center; gap: 8px; }
    .mobile-panel[aria-hidden="false"]{ display: block; }
}
