*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    padding:0;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    color:#111;
    background:#fff;
}

.top{
    height:58px;
    display:flex;
    align-items:center;
    padding:0 42px;
    background:#fff;
}

.top a{
    color:#b20816;
    font-weight:900;
    letter-spacing:.14em;
    text-decoration:none;
    font-size:15px;
}

.hero{
    height:58vh;
    min-height:420px;
    max-height:650px;
    position:relative;

    background:
        linear-gradient(
            90deg,
            rgba(5,8,12,.62) 0%,
            rgba(5,8,12,.30) 43%,
            rgba(5,8,12,.08) 70%
        ),
        url('/albums/2024/04-21/full/01-IMG_9662.jpg');

    background-size:cover;
    background-position:center 48%;
}

.hero-title{
    position:absolute;
    top:38px;
    left:42px;

    color:#fff;
    font-family:Georgia,"Times New Roman",serif;
    font-style:italic;
    font-weight:700;

    font-size:clamp(38px,4vw,68px);
    line-height:1;
    white-space:nowrap;

    text-shadow:0 3px 18px rgba(0,0,0,.35);
}

.archive{
    width:min(1050px,calc(100% - 60px));
    margin:0 auto;
}

.year-row{
    min-height:135px;
    display:grid;
    grid-template-columns:220px 1fr;
    align-items:center;
    border-bottom:1px solid #ddd;
}

.year{
    font-size:54px;
    font-weight:900;
    letter-spacing:-.04em;
}

.dates a{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:26px 0;

    color:#111;
    text-decoration:none;
    font-size:28px;
    font-weight:700;
}

.dates a:hover{
    color:#b20816;
}

.dates b{
    font-size:28px;
}

.gallery-page{
    width:min(1450px,calc(100% - 36px));
    margin:0 auto;
    padding:35px 0 50px;
}

.gallery-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin-bottom:30px;
}

.gallery-head a{
    color:#555;
    text-decoration:none;
    font-weight:700;
}

.gallery-head div{
    text-align:right;
}

.gallery-head strong{
    display:block;
    font-size:48px;
}

.gallery-head span{
    font-size:22px;
    font-weight:700;
}

.photo-grid{
    columns:3 320px;
    column-gap:12px;
}

.photo{
    width:100%;
    padding:0;
    border:0;
    background:none;
    display:block;
    margin:0 0 12px;
    break-inside:avoid;
    cursor:pointer;
}

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

.lightbox{
    position:fixed;
    inset:0;
    z-index:100;
    background:rgba(0,0,0,.96);
    display:none;
    align-items:center;
    justify-content:center;
}

.lightbox.open{
    display:flex;
}

.lightbox img{
    max-width:92vw;
    max-height:90vh;
}

.lightbox button{
    position:absolute;
    width:50px;
    height:50px;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.13);
    color:#fff;
    font-size:34px;
    cursor:pointer;
}

.lb-close{
    top:20px;
    right:22px;
}

.lb-prev{
    left:18px;
}

.lb-next{
    right:18px;
}

.lb-count{
    position:absolute;
    bottom:20px;
    color:#fff;
}

@media(max-width:700px){

    .top{
        height:52px;
        padding:0 18px;
    }

    .hero{
        height:48vh;
        min-height:330px;
        background-position:60% center;
    }

    .hero-title{
        top:24px;
        left:18px;
        white-space:normal;
        width:calc(100% - 36px);
        font-size:37px;
    }

    .archive{
        width:calc(100% - 36px);
    }

    .year-row{
        grid-template-columns:1fr;
        padding:22px 0;
    }

    .year{
        font-size:42px;
    }

    .dates a{
        padding:12px 0;
        font-size:24px;
    }

    .photo-grid{
        columns:2 150px;
        column-gap:8px;
    }

    .photo{
        margin-bottom:8px;
    }
}

/* HAAB START V101 */
.hero{
    height:calc(100vh - 58px) !important;
    min-height:600px !important;
    max-height:none !important;
}

.archive-overlay{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    background:rgba(8,10,13,.82);
    backdrop-filter:blur(8px);
}

.archive-overlay a{
    width:min(1050px,calc(100% - 70px));
    min-height:100px;
    margin:0 auto;
    display:grid;
    grid-template-columns:180px 1fr 50px;
    align-items:center;
    color:#fff;
    text-decoration:none;
}

.archive-overlay strong{
    font-size:42px;
}

.archive-overlay span{
    font-size:25px;
    font-weight:700;
}

.archive-overlay b{
    font-size:28px;
    text-align:right;
}

.archive-overlay a:hover{
    color:#ddd;
}

@media(max-width:700px){
    .hero{
        height:calc(100svh - 52px) !important;
        min-height:520px !important;
    }

    .archive-overlay a{
        width:calc(100% - 36px);
        grid-template-columns:100px 1fr 30px;
        min-height:82px;
    }

    .archive-overlay strong{
        font-size:30px;
    }

    .archive-overlay span{
        font-size:20px;
    }
}

/* HAAB TOPPARKIV V102 */

.top{
    height:58px;
    display:flex;
    align-items:stretch;
    padding:0 28px;
    gap:18px;
}

.haab-home{
    display:flex;
    align-items:center;
    color:#b20816 !important;
}

.year-nav{
    display:flex;
    align-items:stretch;
    gap:3px;
}

.year-menu{
    position:relative;
}

.year-menu summary{
    height:58px;
    min-width:78px;
    padding:0 15px;
    display:flex;
    align-items:center;
    justify-content:center;

    background:#17191d;
    color:#fff;
    font-size:26px;
    font-weight:900;

    cursor:pointer;
    list-style:none;
    user-select:none;

    animation:yearHint 2.6s ease-in-out infinite;
}

.year-menu summary::-webkit-details-marker{
    display:none;
}

@keyframes yearHint{
    0%,100%{
        background:#17191d;
        box-shadow:0 0 0 rgba(178,8,22,0);
    }
    50%{
        background:#24272d;
        box-shadow:0 0 12px rgba(178,8,22,.28);
    }
}

.year-menu[open] summary{
    animation:none;
    background:#b20816;
}

.year-dropdown{
    position:absolute;
    top:58px;
    left:0;
    z-index:50;

    min-width:165px;
    background:#fff;
    border:1px solid #ddd;
    box-shadow:0 12px 30px rgba(0,0,0,.18);
}

.year-dropdown a{
    display:block;
    padding:14px 18px;
    color:#111;
    text-decoration:none;
    font-size:18px;
    font-weight:700;
    white-space:nowrap;
}

.year-dropdown a:hover{
    background:#f2f2f2;
    color:#b20816;
}

/* nedersta arkivlisten används inte längre */
.archive-overlay{
    display:none !important;
}

.hero{
    height:calc(100vh - 58px) !important;
    min-height:520px !important;
}

@media(max-width:700px){
    .top{
        height:52px;
        padding:0 14px;
        gap:10px;
    }

    .year-menu summary{
        height:52px;
        min-width:70px;
        font-size:22px;
    }

    .year-dropdown{
        top:52px;
    }

    .hero{
        height:calc(100svh - 52px) !important;
    }
}
