/* ---------- GRUNDSTIL ---------- */
/*vil den slet ikke hente denne fil..hmm */
body {
    margin: 0;
    font-family: sans-serif;
    background: #ffffff;/*  varm papirtonet */
    color: #222;
    font-size: 0.8em;
}

.wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}  
.small{
    font-size: 0.6em;
}

/* ---------- HEADER / LOGO ---------- */
header {
    height: 110px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 10px 0px;
    margin-bottom: 20px;
    border: 1px dotted rgba(0,0,0,0.4);

}

header img {
    max-height: 100%;
}

/* ---------- MENU ---------- */
a{
    text-decoration: none;
    color:#222
}
a:hover{
    color:#000;
}
.menu {
    margin-bottom: 30px;
    position: relative;
}

.burger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
}

#menuToggle {
    display: none;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.menu li {
    border: 1px solid black;
    padding: 8px 14px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
    white-space: nowrap;
}

/* hover-farver */
.menu li:nth-child(1):hover { background:#a1d2ff; }
.menu li:nth-child(2):hover { background:#fff; }
.menu li:nth-child(3):hover { background:#fff; }
.menu li:nth-child(4):hover { background:#fff; }
.menu li:nth-child(5):hover { background:#fff; }
.menu li:nth-child(6):hover { background:#fff; }
.menu li:nth-child(7):hover { background:#fff; }
.menu li:nth-child(8):hover { background:#fff; }
.menu li:nth-child(9):hover { background:#fff; }
.menu li:nth-child(10):hover{ background:#fff; }
.menu li:nth-child(11):hover { background:#fff; }
.menu li:nth-child(12):hover { background:#fff; }
.menu li:nth-child(13):hover { background:#fff; }
.menu li:nth-child(14):hover { background:#fff; }
.menu li:nth-child(15):hover { background:#fff; }
.menu li:nth-child(16):hover { background:#ffbef6; }
.menu li:nth-child(17):hover { background:#ffab96; }

/* ---------- MOBIL MENU ---------- */

@media (max-width: 700px) {

    .burger {
        display: block;
        margin-bottom: 10px;
    }

    .menu ul {
        display: none;
        flex-direction: column;
        gap: 6px;
    }

    #menuToggle:checked + .burger + ul {
        display: flex;
    }
}

@media (max-width: 600px) {
    .item {
        width: 100%;
        height: 260px;
    }
}


/* ---------- INTRO ---------- */
.intro h1 {
    margin-bottom: 10px;
}

.intro p {
    max-width: 700px;
    line-height: 1.5;
    margin-bottom: 40px;
}

/* ---------- GALLERI ---------- */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;   
}

/* hver container tilpasser sig billedets bredde */
.itemnew {
    position: relative;
    height: 400px;      /* FAST HØJDE */
    width: auto;       /* VARIABEL BREDDE */
    background: #fff;
    overflow: hidden;
    display: flex;
}


/* hver container tilpasser sig billedets bredde */
.item {
    position: relative;
    height: 220px;      /* FAST HØJDE */
    width: auto;       /* VARIABEL BREDDE */
    background: #fff;
    overflow: hidden;
    display: flex;
}

.item img {
    height: 100%;
    width: auto;       /* BEVARER FORMAT */
    object-fit: contain;
    display: block;
}

/* gør den til 3 pr række på mindre skærme */
@media (max-width: 900px) {
    .item {
        width: calc(33.333% - 12px);
    }
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* nummer i hjørnet */
.item .number {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 12px;
    background: rgba(255,255,255,0.7);
    padding: 2px 6px;
    border-radius: 6px;
}
/* nummer i hjørnet */
.itemnew .number {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 12px;
    background: rgba(255,255,255,0.7);
    padding: 2px 6px;
    border-radius: 6px;
}

/* den lille prik */
.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 4px;
    background: red;  /* skift til transparent hvis usynlig */
}

.dotwhite {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 4px;
    background: transparent; 
}

/* ---------- VÆRKLISTE ---------- */

.works {
    margin-top: 60px;
    max-width: 900px;
}

.works h2 {
    margin-bottom: 20px;
}

.worklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.worklist li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    line-height: 1.4;
}




/* ---------- FOOTER ---------- */
footer {
    margin-top: 60px;
    padding: 20px;
    border-top: 1px solid black;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials a {
    margin-left: 10px;
    text-decoration: none;
    font-size: 20px;
}

.socials {
    display: flex;
    gap: 14px;
}

.icon {
    width: 22px;
    height: 22px;
    fill: #222;
    transition: fill 0.2s, transform 0.2s;
}

.socials a:hover .icon {
    fill: #b03030;      /* sart kunst-rød */
    transform: scale(1.1);
}

/* ---------- LIGHTBOX ---------- */
.item img,
.itemnew img {
    cursor: pointer;
}
.item img:hover,
.itemnew img:hover {
    filter: brightness(1.05);
    transform: scale(1.01);
    transition: transform 0.2s, filter 0.2s;
}


#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(30,30,30,0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

#lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lb-inner {
    position: relative;
    width: fit-content;
    height: fit-content;
    max-width: 90vw;
    max-height: 90vh;
}

#lightbox img {
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    object-fit: contain !important;

    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    background: #fff;

    display:block;
    
}
/*
#lightbox .copyright {
    position: absolute;
    bottom: 20px;
    right: 24px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.03em;
    user-select: none;
}
    */

/* © inde i billedet */
.lb-inner .copyright {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.03em;
    text-shadow: 0 0 6px rgba(0,0,0,0.7);
    user-select: none;
    pointer-events: none;

    background: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 4px;

}
