/* --- GENERELT --- */
body {
    font-family: "Times New Roman", serif;
    margin: 0;
    color: #111;
    background: #e5e5e5;
}

/* --- HEADER / TOPBAR --- */
header {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 40px;
    border-bottom: 2px solid #56bdb9;
}

/* NAVN / LOGO */
.logo {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Farver til hvert bogstav */
.l1 { color: #c44f53; }
.l2 { color: #c5a242; }
.l3 { color: #5c8024; }
.l4 { color: #225f85; }
.l6 { color: #4d3372; }
.l7 { color: #730c0f; }
.l8 { color: #beac7a; }
.l9 { color: #525d41; }
.l10 { color: #31434f; }
.l11 { color: #591575; }
.l12 { color: #c98083; }
.l13 { color: #946e05; }

/* --- MENU --- */
.menu {
    display: flex;
    gap: 20px;
}

.menu a {
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    transition: opacity 0.2s ease;
}

/* Minimalistisk hover */
.menu a:hover {
    opacity: 0.5;
}

/* --- GALLERI --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
}

.gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.3s ease;
}

.gallery img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* --- FULLSCREEN VIEWER --- */
.viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.viewer.hidden {
    display: none;
}

.viewer img {
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.arrow {
    position: absolute;
    top: 50%;
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.arrow.left {
    left: 40px;
}

.arrow.right {
    right: 40px;
}

/* --- FOOTER --- */
footer {
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid #6356e8;
    color: #704fd7;
}


/* --- HOVER-FIRKANT / ARTNODE EFFEKT --- */
.project-link {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.project-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d4a300; /* gul firkant */
    opacity: 0;
    transform: scale(0.2);
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    z-index: -1; /* ligger bag billedet */
}

.project-link:hover::before {
    opacity: 0.4;
    transform: scale(1);
}



.project-page-img {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 60px auto;
}

.project-page-img:hover {
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}


.back-handdrawn {
    display: inline-block;
    margin: 20px 40px;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.back-handdrawn:hover {
    transform: translateX(-6px) rotate(-3deg);
    opacity: 0.7;
}


/* Container til billedet */
.project-page-img {
    position: relative;
    max-width: 350px; /* ← styrer størrelsen */
    margin: 60px auto;
}

/* Selve billedet */
.project-page-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* GUL FIRKANT BAG BILLEDET */
.project-page-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d4a300;
    opacity: 0;
    transform: scale(0.2);
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    z-index: -1;
}

/* HOVER-EFFEKT */
.project-page-img:hover::before {
    opacity: 0.4;
    transform: scale(1);
}
