* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;

    background: #E3D7C9;
}

body {
    overflow: hidden;
}


/* =========================================
   GALLERI
========================================= */

.foto-gallery {
    width: 100vw;
    height: 100vh;

    overflow-y: auto;
    overflow-x: hidden;

    background: #E3D7C9;

    scrollbar-width: none;
}

.foto-gallery::-webkit-scrollbar {
    display: none;
}


/* =========================================
   ÉT KOMPLET LOOP
========================================= */

.foto-loop {
    width: 100%;

    column-count: 3;
    column-gap: 0;

    background: #E3D7C9;
}


/* =========================================
   BILLEDER
========================================= */

.foto-item {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    break-inside: avoid;
    page-break-inside: avoid;

    line-height: 0;
}


/* =========================================
   SELVE BILLEDET
========================================= */

.foto-item img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    margin: 0;
    padding: 0;

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;
}


/* =========================================
   MOBIL
========================================= */

@media (max-width: 700px) {

    .foto-loop {
        column-count: 2;
    }
}


@media (max-width: 450px) {

    .foto-loop {
        column-count: 1;
    }
}

.back-btn{

    background:white;

    border:1px solid #4d3f38;

    padding:18px 20px;

    font-family:var(--font-heading);
    font-size:12px;
    font-weight:600;

    letter-spacing:1.5px;
    text-transform:uppercase;

    color:#4d3f38;

    padding:12px 22px;

    transition:.3s;

}

.back-btn:hover{

    background:white;

    color:#1e281e;

    transform:translateY(-5px);
}

.corner-button.show {

    opacity:1;

    transform:translateY(0);

}
.back-btn {

    background:white;

    border:1px solid #4d3f38;

    padding:18px 20px;

    font-family:Arial, Helvetica, sans-serif    ;
    font-size:12px;
    font-weight:600;

    letter-spacing:1.5px;
    text-transform:uppercase;

    color:#4d3f38;
    transition:.3s;
    position: fixed;

    top: 30px;
    left: 30px;

    z-index: 9999;

    display: inline-block;

    text-decoration: none;
}


.back-btn:hover {
    background: white;

    color: #1e281e;

    transform: translateY(-5px);
}

html,
body,
body * {
    cursor: none !important;
}

.cursor {
    width: 14px;
    height: 14px;

    background: #4d3f38;

    position: fixed;
    top: 0;
    left: 0;

    pointer-events: none;

    z-index: 2147483647 !important;

    transform: translate(-50%, -50%) rotate(45deg);

    transition:
        width .2s,
        height .2s,
        background-color .2s;
}

/* ========================================
   HEADER - FOTOS
======================================== */

.chic-page .navbar {
    background: white;
}

.chic-page .dropdown-menu {
    background: white;
}


.header {
    position: fixed;

    top: 25px;
    left: 50%;

    transform: translate(-50%, -150%);

    opacity: 0;
    visibility: hidden;

    z-index: 99999;

    transition:
        transform .9s ease-out,
        opacity .9s ease-out;
}


.header.show {
    transform: translate(-50%, 0);

    opacity: 1;
    visibility: visible;
}


.header.hide {
    transform: translate(-50%, -200%);
}


.navbar {
    width: fit-content;

    background: #4d3f38;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 18px 10px;
}


.logo img {
    width: 45px;
    display: block;
}


.nav-links {
    list-style: none;

    display: flex;
    gap: 45px;

    margin: 0;
    padding: 0;
}


.nav-links li {
    position: relative;
}


.nav-links a {
    color: #4d3f38;

    text-decoration: none;

    font-family: sans-serif;
    font-weight: 600;

    position: relative;

    padding-bottom: 5px;
}


.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    background: #4d3f38;
    transform: scaleX(0);
    transform-origin: left;

    transition: .35s;
}


.nav-links a:hover::after {
    transform: scaleX(1);
}


.dropdown-menu {
    position: absolute;

    top: 150%;
    left: 0;

    background: #4d3f38;

    min-width: 180px;

    list-style: none;

    padding: 12px 0;

    opacity: 0;
    visibility: hidden;

    transition: .3s;
}


.dropdown-menu li {
    padding: 10px 20px;
}


.dropdown-menu a {
    display: block;
    width: 100%;
}


.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}


.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
}
/* ========================================
   FOTOS – RESPONSIV
======================================== */

.foto-menu-toggle {
    display: none;
}

/* Følger den synlige skærmhøjde på telefoner */
.foto-gallery {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overscroll-behavior-y: contain;
}

/* MOBIL OG TABLET */
@media screen and (max-width: 900px) {

    /* HEADER */
    .header {
        top: 12px;
        left: 50%;
        width: calc(100% - 32px);
        max-width: 600px;
    }

    .header .navbar {
        position: relative;
        width: 100%;
        min-height: 64px;
        padding: 12px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: white;
    }

    .header .logo img {
        width: 38px;
        height: auto;
    }

    .foto-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 8px 12px;
        border: 1px solid #4d3f38;
        background: transparent;
        color: #4d3f38;
        font: 600 1rem Arial, sans-serif;
    }

    .header #foto-navigation {
        position: absolute;
        inset: 100% 0 auto;
        width: 100%;
        max-height: calc(100dvh - 100px);
        overflow-y: auto;
        overscroll-behavior: contain;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        margin: 0;
        padding: 12px 18px 20px;
        background: white;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .header #foto-navigation.open {
        display: flex;
    }

    .header #foto-navigation li {
        width: 100%;
    }

    .header #foto-navigation a {
        display: block;
        min-height: 44px;
        padding: 12px 0;
        color: #4d3f38;
        font-size: 1rem;
        text-align: left;
    }

    .header #foto-navigation .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        padding: 0 0 0 16px;
        background: white;
        box-shadow: none;
    }

    .header #foto-navigation .dropdown.active > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .header #foto-navigation .dropdown-menu li {
        padding: 0;
    }

    .header .navbar :is(a, button):focus-visible {
        outline: 2px solid #4d3f38;
        outline-offset: 4px;
    }

    /* TILBAGE-KNAP UNDER HEADEREN */
    .back-btn {
        top: 96px;
        left: 16px;
        padding: 12px 14px;
        font-size: 0.7rem;
        z-index: 999;
    }

    /* TO BILLEDKOLONNER PÅ TABLET */
    .foto-loop {
        column-count: 2;
        column-gap: 0;
    }
}

/* ÉN BILLEDKOLONNE PÅ SMALLE MOBILER */
@media screen and (max-width: 450px) {
    .foto-loop {
        column-count: 1;
    }
}

/* TOUCH-ENHEDER BRUGER IKKE DEN DEKORATIVE MARKØR */
@media (hover: none) and (pointer: coarse) {
    html,
    body,
    body * {
        cursor: auto !important;
    }

    .cursor {
        display: none !important;
    }
}