/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Farger */
:root {
    --light-blue: #eaf4fb;
    --primary-blue: #7fb6d8;
    --dark-blue: #2f5d7c;
    --white: #ffffff;
}

/* Body - warm cream/khaki */
body {
    background-color: #f5f0e6;
    min-height: 100vh;
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.93);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    z-index: 200;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1;
}

/* Horizontal nav links (desktop) */
.nav-links-horizontal {
    display: flex;
    list-style: none;
    gap: 36px;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links-horizontal a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-links-horizontal a:hover { opacity: 0.7; }

/* legacy nav-links (hidden) */
.nav-links { display: none; }
.nav-links a { display: none; }

.nav-menu a:hover { color: var(--primary-blue); }

/* Layout */
.page-wrapper {
    display: block;
    min-height: calc(100vh - 60px);
}



/* Hovedinnhold */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

/* Hero – full bleed (indexreal.html only) */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2rem, 7vw, 6rem);
    font-weight: 300;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    letter-spacing: 0.12em;
    z-index: 2;
    white-space: nowrap;
}

.hero img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

/* Page header – subpages (no full-bleed image) */
.page-header {
    padding: 100px 20px 30px;
    text-align: center;
}

.page-header h1 {
    margin: 0 0 8px;
}

.page-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 300;
    color: #6b6358;
    letter-spacing: 0.06em;
    margin: 0;
}

/* Responsivt */
@media (max-width: 600px) {
    .hero img {
        object-position: 30% center;
    }

    .hero h1 {
        font-size: 1.8rem;
        white-space: normal;
        text-align: center;
        width: 90%;
    }

    #bildekarusell {
        height: 260px;
        padding: 0 8px;
    }

    h1 { font-size: 2rem; }
}

/* Program card styling (paper background) */
.program-card {
    max-width: 660px;
    width: 100%;
    height: auto;
    min-height: 500px;
    margin: 0 auto 60px;
    text-align: left;
    padding: 52px 72px 64px;
    background-image: url('images/paper.png');
    background-size: 150% 150%;
    background-repeat: no-repeat;
    background-position: center center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: #3a3028;
    background-color: transparent;
}

.program-card .program-welcome {
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #5a4e42;
    margin-bottom: 4px;
}

.program-card .program-event {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c2420;
    margin: 16px 0 4px;
    letter-spacing: 0.03em;
}

.program-card ul { list-style: none; padding-left: 0; margin: 0; }
.program-card ul.activities { padding-left: 4px; }
.program-card li { padding: 3px 0; line-height: 1.7; }
.program-card li.activity::before { content: "—  "; color: #8a7a6a; }
.program-card li.spacer { padding: 8px 0; }

@media (max-width: 600px) {
    .program-card { padding: 36px 32px 48px; font-size: 1rem; }
}


/* Contact page styles */
.contact-container {
    padding: 80px 20px 60px;
    display: flex;
    justify-content: center;
}

/* Tighter contact spacing for quicker access */
.contact-container.tight { padding: 80px 20px 30px; }
.contact-card h1 { margin-top: 0; }

.contact-card {
    background: rgba(250, 246, 237, 0.95);
    padding: 36px;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid rgba(180,165,140,0.3);
    max-width: 720px;
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.contact-grid .full {
    grid-column: 1 / -1;
}

.contact-card label {
    display: block;
    margin-bottom: 6px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5a4e42;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d4c9b5;
    border-radius: 3px;
    font-size: 1rem;
    background: #fdfaf4;
    color: #2c2420;
    font-family: 'Cormorant Garamond', serif;
}

.contact-card input:focus,
.contact-card textarea:focus {
    outline: none;
    border-color: #8a7a6a;
}

.contact-card textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-card button {
    background: #2c2420;
    color: #fdfaf4;
    border: none;
    padding: 12px 32px;
    border-radius: 3px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}
.contact-card button:hover {
    background: #4a3e34;
}

/* Reasonable global heading size */
h1 {
    font-family: 'Cormorant Garamond', serif;
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.05em;
    margin: 30px 0 10px;
}
h3 {
    font-family: 'Cormorant Garamond', serif;
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.05em;
    margin: 30px 0 10px;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 20px; }
}

/* Dropdown navigation (slide down) */
.nav-left { display: flex; align-items: center; }
.nav-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: #ffffff;
    z-index: 120;
}
.nav-menu {
    position: absolute;
    top: 60px;
    right: 40px;
    width: 240px;
    background: rgba(18, 18, 18, 0.97);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    z-index: 110;
    transform-origin: top right;
    transform: translateY(-6px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 300ms cubic-bezier(.2,.9,.25,1), opacity 220ms ease;
}

.nav-menu ul li a {
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
}

/* Smooth transition & chevron */
:root { --nav-time: 260ms; }
.nav-toggle .chev { display: inline-block; margin-left: 8px; transition: transform var(--nav-time) ease; }
.nav-toggle.open .chev { transform: rotate(180deg); }
.nav-menu.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.nav-menu ul { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin: 0; }
.nav-menu a { text-decoration: none; color: #ffffff; font-weight: 400; padding: 8px 10px; border-radius: 6px; display: block; letter-spacing: 0.1em; }
.nav-menu a:hover { background: rgba(255,255,255,0.08); opacity: 0.75; }

/* Desktop and mobile placement */
@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .nav-links-horizontal { display: flex; }
    .nav-menu { width: 280px; right: 40px; top: 70px; }
    .nav-menu ul { flex-direction: column; }
    .nav-menu a { font-size: 1rem; }
}

@media (max-width: 900px) {
    .navbar { padding: 12px 20px; }
    .nav-toggle { z-index: 40; }
    .nav-links-horizontal { display: none; }
    .nav-menu { right: 12px; left: 12px; width: auto; top: 58px; transform-origin: top right; transform: translateY(-6px) scale(0.96); }
    .nav-menu.open { transform: translateY(0) scale(1); opacity:1; pointer-events:auto; }
    .nav-menu ul { padding: 10px 12px; }
}

/* Opphold (stay) page grid + slideshow */
.opphold-container { padding: 90px 40px 40px; max-width: 1200px; margin: 0 auto; }
.opphold-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.place-card { background: rgba(250,246,237,0.95); border-radius: 3px; padding: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); border: 1px solid rgba(180,165,140,0.3); display:flex; flex-direction:column; }
.place-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.1rem; letter-spacing: 0.04em; color: #2c2420; margin-bottom: 8px; }
.place-link { margin-top: 10px; color: #5a4e42; text-decoration: none; font-family: 'Cormorant Garamond', serif; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid #c4b49a; padding-bottom: 1px; align-self: flex-start; }
.place-link:hover { color: #2c2420; border-color: #2c2420; }
.slideshow { position: relative; width:100%; height:180px; overflow:hidden; border-radius:8px; background:#f2f6f9; display:flex; align-items:center; justify-content:center; }
.slide { display:none; width:100%; height:100%; align-items:center; justify-content:center; }
.slide.active { display:flex; }
.photo-box { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.photo-box img { max-width:100%; max-height:100%; object-fit:cover; border-radius:6px; }
.slide-controls { display:flex; gap:8px; justify-content:center; margin-top:10px; }
.slide-controls button { background: #2c2420; color: #fdfaf4; border:none; padding:6px 12px; border-radius:3px; cursor:pointer; font-family:'Cormorant Garamond',serif; font-size:1.1rem; }
.slide-controls button:hover { background: #4a3e34; }

@media (max-width: 900px) {
    .opphold-grid { grid-template-columns: 1fr; }
}

/* Bilder på index.html */

#bildekarusell {
    display: flex;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 40px auto;
    position: relative;
    padding: 0 16px;
    box-sizing: border-box;
}
#bildekarusell > div{
    flex: 1;
    background-color: seagreen;
    border: 4px solid white;
    opacity: 0.6;
    background-position: center center;
    background-size: cover;
    transition: 2.0s;
}

#erling2{background-image: url(images/erling2.jpg);}
#erling3{background-image: url(images/erling3.jpg); background-position: center center;}
#erling4{background-image: url(images/erling4.jpg);}
#erling6{background-image: url(images/erling6.jpg);}
#erling7{background-image: url(images/erling7.jpg); background-position: center center;}

.subtekster {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}

#subtekster {
    text-align: center;
    padding: 0 16px;
}

#høie1{background-image: url(images/høie1.jpg);}
#høie2{background-image: url(images/høie2.jpg);}
#høie3{background-image: url(images/høie3.jpg);}
#høie4{background-image: url(images/høie4.jpg);}
#høie5{background-image: url(images/høie5.jpg);}
#høie6{background-image: url(images/høie6.jpg);}
#høie7{background-image: url(images/høie7.jpeg);}
#høie8{background-image: url(images/høie8.jpeg);}
#høie9{background-image: url(images/høie9.jpeg);}


/* Style for Uploading photos container */
  #photoSection {
    max-width: 1000px;
    width: 100%;
    margin: 20px auto 60px;
    padding: 32px;
    background: rgba(250, 246, 237, 0.95);
    border-radius: 3px;
    border: 1px solid rgba(180,165,140,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    font-family: 'Cormorant Garamond', serif;
    color: #2c2420;
  }

  #photoSection h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    color: #3a3028;
    margin-bottom: 18px;
    text-align: center;
  }

  /* Upload container */
  .upload-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
    flex-wrap: wrap;
  }

  .upload-container input[type="file"] {
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #d4c9b5;
    background: #fdfaf4;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    color: #3a3028;
  }

  .upload-container button {
    background: #2c2420;
    color: #fdfaf4;
    border: none;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
  }

  .upload-container button:hover {
    background: #4a3e34;
  }

  /* Gallery grid */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    justify-items: center;
  }

  .gallery-grid img {
    width: 100%;
    max-width: 200px;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
  }

  .gallery-grid img:hover {
    transform: scale(1.05);
  }

  @media (max-width: 600px) {
    #photoSection {
      padding: 20px;
      margin: 20px auto;
    }
  }

  /* Lightbox style */

.lightbox {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  flex-direction: row;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 6px;
  object-fit: contain;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 210;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  background: rgba(255,255,255,0.5);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 210;
  padding: 8px 12px;
}

.lb-arrow.left { left: 20px; }
.lb-arrow.right { right: 20px; }



.lb-delete {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 100px;        /* size of your icon */
  height: 100px;
  background: url('images/deletebutton.png') no-repeat center center; /* your professional icon */
  background-size: cover;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;          /* remove extra padding */
}

.lb-delete:hover {
  background-color: rgba(0, 123, 255, 0.2); /* subtle red highlight */
  transform: scale(1.1);
  transition: transform 0.2s, background-color 0.2s;
}

.lb-download {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-55%);
  width: 100px;        /* size of your icon */
  height: 100px;
  background: url('images/downloadbutton.png') no-repeat center center; /* your professional icon */
  background-size: cover;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;  
}

.lb-download:hover {
  background-color: rgba(0, 123, 255, 0.2); /* subtle red highlight */
  transform: translateX(-55%) scale(1.1);
  transition: transform 0.2s, background-color 0.2s;
}

.lb-image-wrapper {
  position: relative;
  display: inline-block;
}

#bildekarusell > div {
    position: absolute;
    top:0; left:0;
    width: 100%; height: 100%;
    opacity:0; transition: opacity 0.5s ease;
}

#bildekarusell > div.active { opacity:1; z-index:1; }

