/* === IMPORT POPPINS FONT === */
@font-face {
    font-family: 'Poppins';
    src: url('Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
  }
  
  @font-face {
    font-family: 'Poppins';
    src: url('Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
  }
  
  /* === GLOBAL (kun basis – påvirker ikke header/footer) === */
  body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
  }
  
  /* ================================================= */
  /* ================= FACEBOOK INTRO ================= */
  /* ================================================= */
  
  .fb-section {
    background-color: #66A53D;
    padding: 30px 20px;
    text-align: center;
    padding-top: 150px; /* top-padding giver plads under header */
  }
  
  .fb-section .fb-text {
    color: white;
    font-size: 17px;
    margin: 12px auto;
    max-width: 1200px;
    line-height: 1.6;
  }
  
  .fb-btn {
    display: block;
    margin-top: 5px;
    padding: 8px 16px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 6px;
    transition: 0.3s ease;
    font-weight: 500;
    width: fit-content;
    margin:20px auto 0 auto;
  }
  
  .fb-btn:hover {
    background-color: white;
    color: #96C378;
    transform: scale(1.05);
  }
  
  /* ================================================= */
  /* ================= GALLERY HEADER ================= */
  /* ================================================= */
  
  .gallery-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
  }
  
  .gallery-header h1 {
    font-size: 40px;
    margin-top: 40px;
  }
  
  .gallery-header p {
    color: #444;
    margin-bottom: 40px;
    font-size: 18px;
  }
  
  /* ================================================= */
  /* ================= GALLERY GRID =================== */
  /* ================================================= */
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 60px;
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    padding-bottom: 80px;
  }
  
  .gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    height: 350px;
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    transform: scale(1.05);
  }
  
  .gallery-item:hover img {
    transform: scale(1.1);
  }
  
  .gallery-item span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    pointer-events: none;
  }
  
  /* ================================================= */
  /* ================= MODAL SLIDESHOW ================ */
  /* ================================================= */
  
  #modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 2000; /* over header */
  }
  
  #modal img {
    width: 75%;
    max-width: 700px;
    border-radius: 10px;
  }
  
  .modal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
  }
  
  #prev { left: 5%; }
  #next { right: 5%; }
  
  #close {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 45px;
    color: white;
    cursor: pointer;
  }
  /* =========================
   MOBILE RESPONSIVE
   ========================= */
/* =========================
   MOBILE TWEAKS – FINAL
   ========================= */
   @media (max-width: 768px) {

    /* --- Facebook section --- */
    .fb-section {
      padding: 26px 18px 26px; /* top-padding giver plads under header */
      padding-top: 130px;
    }
  
    .fb-section .fb-text {
      display: block;
      font-size: 15.5px;
      line-height: 1.6;
      max-width: 520px;
      margin: 10px auto;
    }
  
    .fb-btn {
      display: block;
      width: fit-content;
      margin: 18px auto 0 auto;
      padding: 10px 18px;
      font-size: 15px;
    }
    .fb-section .fb-text{
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        max-width: 100%;
      }
      
      .fb-section{
        overflow-x: hidden;
      }
  
    /* --- Gallery header --- */
    .gallery-header {
      padding: 0 18px;
      margin-bottom: 22px;
    }
  
    .gallery-header h1 {
      font-size: 26px;
      margin-top: 28px;
    }
  
    .gallery-header p {
      font-size: 16px;
      margin-bottom: 20px;
    }
  
    /* --- Gallery grid: 2 columns --- */
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      padding: 18px;
      padding-bottom: 50px;
    }
  
    .gallery-item {
      height: 190px; /* lidt mindre, så siden føles lettere */
    }
  
    .gallery-item span {
      font-size: 14px;
      padding: 0 10px;
      text-align: center;
    }
  }
  
  /* Ekstra små mobiler */
  @media (max-width: 380px) {
    .gallery-item {
      height: 170px;
    }
  
    .gallery-grid {
      gap: 14px;
      padding: 14px;
    }
  }


/* ────────────────────────────────────────────────
   FOOTER – MOBIL – IKON + TEKST ALIGNMENT
   ──────────────────────────────────────────────── */
@media (max-width: 768px) {

  .footer-right {
    width: 100%;
  }

  .footer-contact {
    list-style: none;
    padding: 0;
    margin: 24px auto 32px auto;
    
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 500px;               /* ← juster her hvis for bred/smalt */
  }

  .footer-contact li {
    display: flex;
    align-items: center;
    gap: 14px;                      /* afstand ikon → tekst */
    justify-content: flex-start;    /* vigtig – starter til venstre */
    width: 100%;
  }

  .footer-icon {
    width: 34px;                    /* lidt større for bedre balance */
    height: 34px;
    flex-shrink: 0;
    object-fit: contain;
  }

  /* Sørg for at tekst starter på samme linje */
  .footer-contact li > *:last-child {   /* rammer span eller a */
    flex: 1;
    text-align: left;
    color: white;
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .footer-contact a {
    color: white;
    text-decoration: none;
  }

  .footer-contact a:hover {
    text-decoration: underline;
  }

  /* Fix Facebook – ikon er inde i <a> */
  .footer-contact li a[href*="facebook"] {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .footer-contact li a[href*="facebook"] img {
    margin: 0;
  }
}

  