/*
Theme Name: Bertram Foto
Theme URI: https://bertramguldborg.dk
Author: Jakob
Description: Custom portfolio og bestillings-tema til fotograf Bertram Guldborg.
Version: 1.0.5
Text Domain: bertram-foto
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;500;600&family=Playfair+Display:ital@0;1&display=swap');

:root {
    --bg-color: #131313;
    --menu-bg: #5f5f5f;
    --menu-bg-hover: #4a4a4a;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

/* RETTER PLAYFAIR-TALLENE OP & FIXER BLÅ LINKS */
* {
    font-variant-numeric: lining-nums !important;
    font-feature-settings: "lnum" 1 !important;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Tvinger Playfair og fjerner fed (bold) fra alle overskrifter og titler */
h1, h2, h3, h4, h5, h6, 
.hero-title, .page-title, .category-card-title, 
.event-title, .meta-title, .lb-title, .bento-content h3 {
    font-family: var(--font-heading) !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   1. SIDEBAR & MENU (DESKTOP VISNING)
   ========================================================================== */
#mobile-header-bar { display: none !important; }

#left-sidebar { width: 80px; background-color: var(--menu-bg); transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: fixed; height: 100vh; left: 0; top: 0; display: flex; flex-direction: column; justify-content: center; padding-top: 0; z-index: 100; box-shadow: 2px 0 10px rgba(0,0,0,0.3); }
#left-sidebar:hover, #left-sidebar.is-expanded { width: 270px; }

#main-content { margin-left: 80px; flex-grow: 1; padding: 0; width: calc(100% - 80px); transition: margin-left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }

.sidebar-logo { position: absolute; top: 20px; left: 0; width: 100%; display: flex; justify-content: center; align-items: center; z-index: 10; }
.logo-collapsed { width: 44px; height: auto; display: block; }
.logo-expanded { width: 180px; height: auto; display: none; }
#left-sidebar:hover .logo-collapsed, #left-sidebar.is-expanded .logo-collapsed { display: none; }
#left-sidebar:hover .logo-expanded, #left-sidebar.is-expanded .logo-expanded { display: block; }

.menu-list { list-style: none; padding: 0; margin: 0; width: 100%; display: flex; flex-direction: column; gap: 30px; }
.menu-list > li { position: relative; width: 100%; }
.menu-list > li > a { display: flex; align-items: center; padding: 15px 20px; color: var(--text-color); text-decoration: none; transition: background-color 0.2s ease; white-space: nowrap; overflow: hidden; }
.menu-list > li > a:hover { background-color: var(--menu-bg-hover); }

.menu-list > li > a .menu-text { opacity: 0; transform: translateX(-10px); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); margin-left: 40px; font-family: var(--font-heading); font-size: 26px; font-weight: 400; letter-spacing: 0.5px; }
#left-sidebar:hover .menu-list > li > a .menu-text, #left-sidebar.is-expanded .menu-list > li > a .menu-text { opacity: 1; transform: translateX(0); }

.menu-list > li > a::before { content: ''; display: block; width: 40px; height: 40px; min-width: 40px; background-color: #E0E0E0; }

.icon-home > a::before { -webkit-mask: url("images/home.svg") no-repeat center / contain; mask: url("images/home.svg") no-repeat center / contain; }
.icon-images > a::before, .icon-menu > a::before { -webkit-mask: url("images/camera.svg") no-repeat center / contain; mask: url("images/camera.svg") no-repeat center / contain; }
.icon-cart > a::before { -webkit-mask: url("images/shopping-cart.svg") no-repeat center / contain; mask: url("images/shopping-cart.svg") no-repeat center / contain; }
.icon-mail > a::before { -webkit-mask: url("images/email.svg") no-repeat center / contain; mask: url("images/email.svg") no-repeat center / contain; }

.icon-cart > a { position: relative; }
.cart-badge { position: absolute; top: 10px; left: 48px; background-color: #ff3333; color: #ffffff; font-size: 11px; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.3); pointer-events: none; }

.sub-menu { list-style: none; padding: 0; margin: 0; background-color: var(--menu-bg-hover); max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.menu-item-has-children.is-open > .sub-menu { max-height: 1000px; transition: max-height 0.5s ease-in; }
.sub-menu li { margin-bottom: 0; }
.sub-menu li a { display: block; padding: 12px 15px 12px 102px; color: #cccccc; text-decoration: none; font-size: 14px; transition: color 0.2s; white-space: nowrap; }
.sub-menu li a:hover { color: var(--text-color); }

/* Desktop Cookie Ikon (Fastlåst i bunden) */
.sidebar-bottom-actions { position: absolute; bottom: 20px; left: 0; width: 100%; display: flex; justify-content: center; }
#desktop-cookie-trigger { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; padding: 10px; transition: color 0.3s; display: flex; align-items: center; justify-content: center; }
#desktop-cookie-trigger:hover { color: #ffffff; }
.cookie-svg { width: 24px; height: 24px; }
.mobile-cookie-btn { display: none; }

/* ==========================================================================
   2. FORSIDE (HERO & VISUEL MENU)
   ========================================================================== */
.hero-section-full { position: relative; width: 100%; min-height: 60vh; background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; align-items: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(19, 19, 19, 0.9) 0%, rgba(19, 19, 19, 0) 60%); z-index: 1; }
.hero-wrapper { position: relative; z-index: 2; width: 100%; margin-bottom: 0; padding-top: 80px; padding-bottom: 80px; }
.hero-content { max-width: 500px; }
.hero-title { font-size: 4.5rem; margin: 0 0 20px 0; line-height: 1.1; color: #ffffff; }

.hero-subtitle { font-size: 18px; color: #e0e0e0; margin: 0 0 40px 0; line-height: 1.6; font-weight: 300; }

.btn-cta { display: inline-block; padding: 16px 36px; background-color: var(--accent-color); color: var(--bg-color); text-decoration: none; font-weight: 500; font-size: 1.1rem; border-radius: 4px; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease; border: none; cursor: pointer; }
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.btn-cta:active { transform: translateY(0); }

.frontpage-wrapper { padding: 40px; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.visual-menu-section { padding-bottom: 60px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.category-card { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; text-decoration: none; box-shadow: 0 10px 20px rgba(0,0,0,0.3); color: var(--text-color) !important; }
.category-card-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.category-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(19, 19, 19, 0.9) 0%, rgba(19, 19, 19, 0) 50%); display: flex; align-items: flex-end; padding: 30px; transition: background 0.3s ease; }
.category-card-title { color: var(--text-color); font-size: 1.8rem; margin: 0; transform: translateY(10px); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.category-card-arrow { color: var(--text-color); font-size: 1.5rem; margin-left: 15px; opacity: 0; transform: translateX(-15px); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.category-card:hover .category-card-image { transform: scale(1.08); }
.category-card:hover .category-card-overlay { background: linear-gradient(to top, rgba(19, 19, 19, 0.95) 0%, rgba(19, 19, 19, 0.2) 60%); }
.category-card:hover .category-card-title { transform: translateY(0); }
.category-card:hover .category-card-arrow { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   3. GALLERI (ÆGTE MASONRY UDEN BESKÆRING)
   ========================================================================== */
.gallery-container { padding: 40px; max-width: 1600px; margin: 0 auto; box-sizing: border-box; }
.gallery-header { margin-bottom: 50px; text-align: center; }
.gallery-header h1 { margin: 0 0 10px 0; font-size: 2.8rem; }
.gallery-header h3 { margin: 0 0 10px 0; color: #aaaaaa; font-size: 1.2rem; }
.gallery-date { margin: 0; color: #777777; font-size: 0.9rem; letter-spacing: 1px; }

.gallery-grid { column-count: 3; column-gap: 20px; }
@media (max-width: 1200px) { .gallery-grid { column-count: 2; } }

.gallery-item { position: relative; overflow: hidden; border-radius: 4px; cursor: pointer; margin-bottom: 20px; break-inside: avoid; display: inline-block; width: 100%; height: auto; }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }

.item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(19, 19, 19, 0.9) 0%, rgba(19, 19, 19, 0) 50%); opacity: 0; transition: opacity 0.3s ease; display: flex; align-items: flex-end; justify-content: flex-start; padding: 10px; pointer-events: none; }
.gallery-item:hover .item-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }

.item-meta { display: flex; flex-direction: column; color: #ffffff; width: 100%; text-align: left; }
.meta-filename { font-size: 0.85rem; color: #ffffff; margin-top: 0; font-family: var(--font-main); }

.cart-toggle-btn { position: absolute; bottom: 20px; right: 20px; top: auto; background: rgba(19, 19, 19, 0.6); border: 2px solid transparent; color: #ffffff; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 10; backdrop-filter: blur(4px); }
.cart-toggle-btn:hover { background: rgba(19, 19, 19, 0.9); transform: scale(1.1); }
.cart-toggle-btn svg { width: 20px; height: 20px; fill: currentColor; }
.cart-toggle-btn.in-cart { background: #ffffff; color: #131313; transform: scale(1.05); }

/* LIGHTBOX DESIGN */
#bertram-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#bertram-lightbox:not(.lightbox-hidden) { opacity: 1; pointer-events: auto; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(19, 19, 19, 0.95); }
.lightbox-content { position: relative; max-width: 90vw; max-height: 85vh; z-index: 10000; display: flex; flex-direction: column; align-items: center; }
.lightbox-img-wrap { position: relative; display: inline-block; line-height: 0; }
.lightbox-img { max-width: 100%; max-height: 75vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }

.lightbox-meta { display: flex; justify-content: flex-start; align-items: center; padding-top: 10px; color: #ffffff; width: 100%; }
.lb-cart-btn { position: absolute; top: auto; bottom: 20px; right: 20px; margin: 0; }

.lb-text { display: flex; flex-direction: column; }
.lb-filename { color: #ffffff; font-size: 0.9rem; font-family: var(--font-main); }

/* Rettelse: Kombinerede transforms på hover for at undgå hoppe-effekt */
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: transparent; border: none; color: #ffffff; cursor: pointer; z-index: 10001; opacity: 0.5; transition: opacity 0.2s, transform 0.2s; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.lightbox-close:hover { opacity: 1; transform: scale(1.1); }
.lightbox-prev:hover { opacity: 1; transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { opacity: 1; transform: translateY(-50%) scale(1.1); }

.lightbox-close { top: 30px; right: 40px; font-size: 3rem; line-height: 1; padding: 15px; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); font-size: 2.5rem; padding: 20px; }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); font-size: 2.5rem; padding: 20px; }

/* ==========================================================================
   4. KONTAKT & BESTILLINGS FÆLLES BRØDTEKST
   ========================================================================== */
.page-title { font-size: 3rem; margin: 0 0 10px 0; }

.bestilling-intro, .page-subtitle { color: #ffffff; font-size: 16px; margin-bottom: 50px; font-weight: 300; line-height: 1.6; font-family: var(--font-main) !important; }

/* ==========================================================================
   5. BESTILLING (checkout)
   ========================================================================== */
.bestilling-container { padding: 40px; max-width: 1000px; margin: 0 auto; }
.bestilling-container h1 { font-family: var(--font-heading) !important; font-weight: 400 !important; font-size: 2.8rem; margin: 0 0 10px 0; text-transform: none; }
.bestilling-container h2, .bestilling-container h3, .bestilling-container h4, .bestilling-container h5, .bestilling-container h6, .bestilling-container .meta-title { font-family: var(--font-main) !important; font-weight: 600 !important; }

.empty-cart-box { margin: 60px 0; }
.empty-cart-box p { font-size: 16px; color: #ffffff; margin-bottom: 30px; line-height: 1.6; font-weight: 300; }

.cart-row { display: flex; align-items: center; background: rgba(255,255,255,0.03); border: 1px solid #333; border-radius: 4px; padding: 20px; margin-bottom: 20px; gap: 30px; }
.cart-img { width: 120px; flex-shrink: 0; }
.cart-img img { width: 100%; height: auto; border-radius: 4px; display: block; }
.cart-meta { display: flex; flex-direction: column; flex-grow: 1; }
.cart-meta strong { font-size: 1.2rem; margin-bottom: 5px; }
.cart-meta span { color: #aaaaaa; font-size: 0.9rem; margin-bottom: 5px; }
.cart-meta .meta-filename { font-family: var(--font-main); color: #777777; }

.cart-options { display: flex; flex-direction: column; gap: 15px; min-width: 200px; }
.custom-checkbox { display: block; position: relative; padding-left: 30px; cursor: pointer; font-size: 0.95rem; user-select: none; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 0; left: 0; height: 20px; width: 20px; background-color: #333; border-radius: 3px; transition: background-color 0.2s; }
.custom-checkbox:hover input ~ .checkmark { background-color: #444; }
.custom-checkbox input:checked ~ .checkmark { background-color: #ffffff; }
.checkmark:after { content: ""; position: absolute; display: none; }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.custom-checkbox .checkmark:after { left: 7px; top: 3px; width: 5px; height: 10px; border: solid #131313; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.btn-remove { background: none; border: none; color: #ff6b6b; text-align: left; padding: 0; font-size: 0.85rem; cursor: pointer; text-decoration: underline; margin-top: 5px; }

.order-details { background: rgba(255,255,255,0.02); border-top: 2px solid #333; padding: 40px; margin-top: 40px; border-radius: 8px; }
.order-details h3 { margin: 0 0 25px 0; font-size: 1.5rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 0; } 
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 8px; font-size: 0.9rem; color: #cccccc; }
.form-group input { background: transparent; border: 1px solid #5f5f5f; color: #ffffff; padding: 15px 20px; border-radius: 4px; font-size: 1rem; font-family: inherit; transition: border-color 0.3s; width: 100%; box-sizing: border-box; }
.form-group input:focus { outline: none; border-color: #ffffff; }
.form-submit-group { grid-column: span 2; margin-top: 10px; }
.submit-button-container { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }

/* ==========================================================================
   6. KONTAKT & SØGESIDE DESIGN
   ========================================================================== */
.kontakt-container { padding: 40px; max-width: 1200px; margin: 0 auto; }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 20px; }
.bento-item { background: rgba(255, 255, 255, 0.03); border: 1px solid #333; border-radius: 12px; padding: 30px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease; text-decoration: none; color: var(--text-color); }
.bento-interactive:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.08); border-color: #555; box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.bento-portrait { grid-column: span 2; grid-row: span 2; padding: 0; border: none; }
.bento-portrait img { width: 100%; height: 100%; object-fit: cover; }
.bento-email { grid-column: span 1; }
.bento-phone { grid-column: span 1; }
.bento-social { grid-column: span 1; }
.bento-whatsapp { grid-column: span 1; }
.bento-icon { margin-bottom: 15px; display: block; color: var(--text-color); }
.bento-content h3 { margin: 0 0 5px 0; font-size: 1.3rem; }
.bento-content p { margin: 0; color: #aaaaaa; font-size: 1rem; }
.bento-hover-arrow { position: absolute; bottom: 30px; right: 30px; font-size: 1.5rem; opacity: 0; transform: translateX(-10px) rotate(-45deg); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.bento-interactive:hover .bento-hover-arrow { opacity: 1; transform: translateX(0) rotate(-45deg); }

.sidebar-search { width: 100%; padding: 0 24px; margin-bottom: 40px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.search-form { display: flex; align-items: center; width: 100%; }
.search-icon-btn { background: none; border: none; padding: 0; min-width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search-icon-mask { display: block; width: 32px; height: 32px; background-color: #E0E0E0; -webkit-mask: url("images/magnify.svg") no-repeat center / contain; mask: url("images/magnify.svg") no-repeat center / contain; }
.search-input { background: transparent; border: none; color: var(--text-color); margin-left: 20px; opacity: 0; width: 0; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); font-family: inherit; font-size: 1rem; outline: none; padding-bottom: 5px; }
#left-sidebar:hover .search-input, #left-sidebar.is-expanded .search-input { opacity: 1; width: 140px; margin: 0 0px 0 42px; border-bottom: 1px solid #aaa; }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; background-color: #E0E0E0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center / contain; cursor: pointer; }

.search-header { margin-bottom: 40px; }
.search-header h1 { font-size: 2.2rem; margin: 0 0 10px 0; }
.gallery-item.search-layout { height: auto; display: inline-block; width: 100%; background: transparent; margin-bottom: 20px; break-inside: avoid; }
.gallery-item.search-layout .img-wrap { position: relative; flex-grow: 1; overflow: hidden; border-radius: 4px; }
.gallery-item.search-layout img { width: 100%; height: auto; display: block; }
.gallery-item.search-layout .cart-toggle-btn { top: auto; bottom: 15px; right: 15px; } 
.gallery-item.search-layout .search-meta { padding-top: 15px; display: flex; flex-direction: column; color: #ffffff; text-align: left; }
.gallery-item.search-layout .search-meta .meta-title { font-size: 1.1rem; }
.gallery-item.search-layout .search-meta .meta-subtitle { font-size: 0.9rem; color: #cccccc; margin-top: 2px; }
.gallery-item.search-layout .search-meta .meta-date { font-size: 0.85rem; color: #aaaaaa; margin-top: 0px; }

.event-card { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; text-decoration: none; box-shadow: 0 10px 20px rgba(0,0,0,0.3); color: var(--text-color) !important; }
.event-card-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.event-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(19, 19, 19, 0.95) 0%, rgba(19, 19, 19, 0) 60%); display: flex; align-items: flex-end; padding: 25px; transition: background 0.3s ease; }
.event-card:hover .event-card-image { transform: scale(1.08); }
.event-card:hover .event-card-overlay { background: linear-gradient(to top, rgba(19, 19, 19, 0.98) 0%, rgba(19, 19, 19, 0.4) 60%); }
.event-meta { display: flex; flex-direction: column; color: #ffffff; width: 100%; transform: translateY(10px); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.event-card:hover .event-meta { transform: translateY(0); }
.event-title { font-size: 1.5rem; margin: 0 0 5px 0; }
.event-subtitle { font-size: 0.95rem; color: #cccccc; }
.event-date { font-size: 0.85rem; color: #aaaaaa; margin-top: 2px; }

/* ==========================================================================
   7. COOKIE BANNER (EGEN LØSNING)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 110px;
    width: 380px;
    background-color: var(--bg-color);
    border: 1px solid #333;
    border-radius: 8px;
    z-index: 99999;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cookie-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.cookie-content { padding: 30px; }
.cookie-content h3 { margin: 0 0 15px 0; font-size: 1.5rem; font-family: var(--font-heading); font-weight: 400; }
.cookie-content p { font-size: 0.9rem; color: #ccc; line-height: 1.5; margin-bottom: 25px; }

.cookie-options { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.cookie-option { display: flex; align-items: center; position: relative; padding-left: 30px; cursor: pointer; font-size: 0.95rem; user-select: none; }
.cookie-option input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.cookie-checkmark { position: absolute; top: 0; left: 0; height: 20px; width: 20px; background-color: #333; border-radius: 3px; transition: background-color 0.2s; }
.cookie-option:hover input ~ .cookie-checkmark { background-color: #444; }
.cookie-option input:checked ~ .cookie-checkmark { background-color: #ffffff; }
.cookie-checkmark.disabled-mark { background-color: #5f5f5f; cursor: not-allowed; }
.cookie-checkmark:after { content: ""; position: absolute; display: none; }
.cookie-option input:checked ~ .cookie-checkmark:after { display: block; }
.cookie-option .cookie-checkmark:after { left: 7px; top: 3px; width: 5px; height: 10px; border: solid #131313; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.btn-cookie { padding: 10px 15px; border-radius: 4px; border: none; cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; flex-grow: 1; text-align: center; }
.btn-cookie-primary { background-color: var(--accent-color); color: var(--bg-color); }
.btn-cookie-primary:hover { background-color: #e0e0e0; }
.btn-cookie-secondary { background-color: transparent; border: 1px solid #5f5f5f; color: var(--text-color); }
.btn-cookie-secondary:hover { background-color: #333; }

/* ==========================================================================
   8. RESPONSIV MOBIL-OPTIMERING (AKTIVERES KUN UNDER 992PX)
   ========================================================================== */
@media (max-width: 992px) {
    #mobile-header-bar { display: flex !important; align-items: center; justify-content: space-between; position: fixed; top: 0; left: 0; width: 100%; height: 70px; background-color: var(--menu-bg); padding: 0 20px; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); box-sizing: border-box; }
    .mobile-site-title { text-decoration: none; display: flex; align-items: center; }
    .mobile-header-logo { height: 40px; width: auto; max-width: 180px; display: block; }
    
    .mobile-header-actions { display: flex; align-items: center; gap: 20px; }
    .mobile-cart-wrap { position: relative; width: 32px; height: 32px; }
    .mobile-cart-wrap a { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 20; display: block; }
    .mobile-cart-wrap::before { content: ''; display: block; width: 32px; height: 32px; background-color: #E0E0E0; -webkit-mask: url("images/shopping-cart.svg") no-repeat center / contain; mask: url("images/shopping-cart.svg") no-repeat center / contain; }
    
    .mobile-badge { top: -5px !important; bottom: auto !important; left: auto !important; right: -5px !important; z-index: 99 !important; }

    #mobile-menu-hamburger { background: none; border: none; cursor: pointer; padding: 5px; display: flex; flex-direction: column; gap: 6px; }
    #mobile-menu-hamburger .bar { display: block; width: 26px; height: 2px; background-color: #E0E0E0; transition: all 0.3s ease; }
    #mobile-menu-hamburger.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu-hamburger.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu-hamburger.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    #left-sidebar { width: 280px; height: 100vh; position: fixed; top: 0; left: auto; right: -280px; justify-content: flex-start; padding-top: 90px; transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); overflow-y: auto; box-shadow: -5px 0 15px rgba(0,0,0,0.5); }
    .sidebar-logo { display: none !important; }
    #left-sidebar.is-mobile-open { right: 0; left: auto; }
    #left-sidebar:hover { width: 280px; } 

    #main-content { margin-left: 0; width: 100%; padding-top: 60px; }

    .sidebar-search { padding: 0 20px; margin-bottom: 30px; display: flex !important; justify-content: center; }
    .search-input { opacity: 1 !important; width: 80% !important; margin: 0 50px 0 28px !important; border-bottom: 1px solid #aaa !important; display: block !important; text-align: center; }

    .menu-list { gap: 15px; justify-content: flex-start; }
    .menu-list > li > a { padding: 12px 20px; }
    .menu-list > li > a .menu-text { opacity: 1 !important; transform: none !important; margin-left: 20px; font-size: 20px; }
    
    .hero-section-full { min-height: 50vh; padding: 40px 0; background-position: 67% center !important; background-size: cover !important; }
    .frontpage-wrapper { padding: 24px !important; box-sizing: border-box; }
    .gallery-container { padding: 24px !important; box-sizing: border-box; }
    .category-grid { grid-template-columns: 1fr; gap: 24px !important; }

    .gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; column-count: auto; }
    .gallery-item { margin-bottom: 0; display: block; height: auto; }
    .gallery-item.format-portrait { aspect-ratio: 500 / 660; grid-column: span 1; }
    .gallery-item.format-landscape { grid-column: 1 / -1; aspect-ratio: 1170 / 660; }
    .gallery-item img { height: 100%; object-fit: cover; }
    .item-overlay { opacity: 1; background: linear-gradient(to top, rgba(19, 19, 19, 0.85) 0%, rgba(19, 19, 19, 0) 60%); }
    .cart-toggle-btn { background: rgba(19, 19, 19, 0.8); }

    /* Rettelse: Pilenes størrelse og polstring justeret for at forhindre overlap og fastholde centrering */
    .lightbox-close { top: 10px; right: 10px; font-size: 2rem; padding: 10px; }
    .lightbox-prev { left: 0px; font-size: 1.8rem; padding: 15px; }
    .lightbox-next { right: 0px; font-size: 1.8rem; padding: 15px; }
    
    .bestilling-container { padding: 20px; }
    .cart-row { flex-direction: column; align-items: flex-start; gap: 15px; padding: 15px; }
    .cart-img { width: 100%; }
    .cart-options { width: 100%; min-width: unset; }
    
    .order-details { padding: 20px; margin-top: 20px; }
    .form-grid { grid-template-columns: 1fr; gap: 15px; }
    .form-submit-group { grid-column: span 1; }
    .submit-button-container { justify-content: center; width: 100%; flex-direction: column; gap: 10px; }
    .submit-button-container .btn-cta { width: 100%; text-align: center; display: block; box-sizing: border-box; }
    #order-status-msg { margin-top: 10px; text-align: center; width: 100%; }

    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 15px; }
    .bento-item { min-height: 180px; grid-column: span 1 !important; grid-row: span 1 !important; }
    
    .cookie-banner { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 16px 16px 0 0; border-bottom: none; border-left: none; border-right: none; transform: translateY(100%); }
    .cookie-content { padding: 25px 20px; max-height: 80vh; overflow-y: auto; }
    .cookie-buttons { flex-direction: column; }
    .btn-cookie { width: 100%; padding: 15px; }
    
    .mobile-cookie-btn { display: flex; align-items: center; justify-content: center; position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background-color: var(--menu-bg); color: #E0E0E0; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 99998; cursor: pointer; }
}

/* ==========================================================================
   9. MOBIL JUSTERINGER - KUN FOR ENKELT BEGIVENHED (SINGLE)
   ========================================================================== */
@media (max-width: 768px) {
    body.single-begivenhed .gallery-header h1 { font-size: 26px !important; margin-top: 10px !important; }
    body.single-begivenhed .gallery-item .item-meta, body.single-begivenhed .gallery-item .meta-filename { display: none !important; }
    body.single-begivenhed .gallery-container { padding-left: 10px !important; padding-right: 10px !important; }
    body.single-begivenhed .gallery-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; grid-auto-flow: dense !important; gap: 8px !important; }
    body.single-begivenhed .gallery-grid .gallery-item { display: block !important; width: 100% !important; margin-bottom: 0 !important; }
    body.single-begivenhed .gallery-grid .gallery-item.format-landscape { grid-column: span 2 !important; aspect-ratio: auto !important; }
    body.single-begivenhed .gallery-grid .gallery-item.format-portrait { grid-column: span 1 !important; aspect-ratio: auto !important; }
    body.single-begivenhed .gallery-grid .gallery-item img { height: auto !important; width: 100% !important; display: block !important; }
    body.single-begivenhed .gallery-grid .gallery-item .cart-toggle-btn { bottom: 5px !important; right: 5px !important; top: auto !important; left: auto !important; transform: none !important; }
}