:root{
  --bg:#1e2d24;
  --card: rgba(255,255,255,0.12);
  --card-2: rgba(255,255,255,0.15);
  --stroke: rgba(255,255,255,0.15);
  --text: rgba(255,255,255,0.95);
  --muted: rgba(255,255,255,0.75);
  --muted-2: rgba(255,255,255,0.60);
  --accent: #c9d1d9;
  --accent-2: #9bb3a3;
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --radius: 18px;
  --maxw: 1160px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior: smooth; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: var(--bg);
}

a{ color:inherit; text-decoration:none; }
button, input, textarea, select{ font:inherit; }

/* Background hero */
.hero{
  min-height:100vh;
  background-image: url("../assets/hero7.jpg");
  background-size: cover;
  background-position:center;
  position:relative;
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute; inset:0;
  background: transparent;
  pointer-events:none;
}

/* Mobil: lille billede i stedet for baggrund (kun mobil) */
.hero-mobile-img{
  display: none;
}

/* Layout */
.container{
  width:min(var(--maxw), calc(100% - 40px));
  margin:0 auto;
  position:relative;
  z-index:1;
}

/* Top nav */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(16px);
  background: #708076;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width: 260px;
}

.brand-logo{
  height:56px;
  width:auto;
  display:block;
  flex-shrink:0;
  border-radius: 8px;
}

.brand-name{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.25;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

.navlinks{
  display:flex;
  align-items:center;
  gap:18px;
}

.navlinks a{
  padding:10px 12px;
  border-radius: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.navlinks a:hover{
  background: rgba(255,255,255,0.08);
  color: var(--text);
  transform: translateY(-1px);
}
.navlinks a.active{
  background: rgba(155,179,163,0.20);
  color: var(--text);
}

.nav-cta{
  display:flex;
  align-items:center;
  gap:10px;
}
.pill{
  padding:10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.pill-label{
  opacity:0.85;
  font-weight:700;
  letter-spacing: 0.8px;
}
.pill-num{
  margin-left: 2px;
}

/* Mobile nav */
.burger{
  display:none;
  background: transparent;
  border:1px solid rgba(255,255,255,0.18);
  color:var(--text);
  border-radius: 12px;
  padding:10px 12px;
}
.mobile-panel{
  display:none;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 10px 0 16px 0;
}
.mobile-panel a{
  display:block;
  padding:12px 10px;
  border-radius: 12px;
  color: var(--muted);
}
.mobile-panel a:hover{
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

/* Main content */
.main{
  padding: 44px 0 26px 0;
}

.main .container{
  margin-left: auto;
  margin-right: auto;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  min-height: calc(100vh - 170px);
  max-width: 480px;
  margin: 0 auto;
}

.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card-inner{
  padding: 20px;
}

.h1{
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.05;
  margin:0 0 10px 0;
  letter-spacing:-0.6px;
}
.lead{
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 54ch;
}

.bullets{
  list-style:none;
  padding:0; margin: 18px 0 0 0;
  display:grid;
  gap: 10px;
}
.bullets li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color: var(--muted);
}
.check{
  width:20px; height:20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(155,179,163,0.18);
  display:grid;
  place-items:center;
  flex: 0 0 20px;
  margin-top:2px;
}
.check svg{ width:14px; height:14px; opacity:0.95; }

/* Form */
.form-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.form-header h2{
  margin:0;
  font-size: 22px;
  letter-spacing:-0.2px;
  color: rgba(255,255,255,0.98);
}
.form-header p{
  margin:6px 0 0 0;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
}
.form-logo{
  width:56px;
  height:auto;
  border-radius: 8px;
  flex-shrink:0;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
label{
  font-size: 12px;
  letter-spacing:0.3px;
  color: #fff;
  font-weight: 600;
}
input, textarea{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.98);
  padding: 12px 12px;
  outline: none;
  transition: border .15s ease, background .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus{
  border-color: rgba(155,179,163,0.55);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 3px rgba(155,179,163,0.20);
}
textarea{
  min-height: 110px;
  resize: vertical;
}
.full{ grid-column: 1 / -1; }

.actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 14px;
}
.btn{
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(155,179,163,0.22);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor:pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(155,179,163,0.30);
  border-color: rgba(155,179,163,0.45);
  box-shadow: 0 4px 12px rgba(155,179,163,0.30);
}
.note{
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  line-height: 1.35;
  text-align:right;
}
input::placeholder,
textarea::placeholder{
  color: rgba(255,255,255,0.7);
}
.status{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color: var(--muted);
  font-size: 13px;
  display:none;
}

/* Content pages */
.page{
  padding: 34px 0 26px 0;
}
.page h1{
  margin:0 0 10px 0;
  letter-spacing:-0.4px;
}
.page p{
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}

/* Shop page specific styling */
.shop-content h1,
.shop-content .shop-h1{
  color: #fff;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
}

.shop-content .shop-text{
  font-size: 20px;
  line-height: 1.8;
  color: #fff;
  font-weight: 600;
  margin-bottom: 16px;
}

.shop-content .shop-email{
  font-size: 22px;
  font-weight: 700;
  margin-top: 20px;
  color: #fff;
}

.shop-content .shop-email a{
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.shop-content .shop-email a:hover{
  opacity: 0.85;
}

/* Partners page specific styling */
.partners-content h1{
  color: #fff;
  font-weight: 800;
  margin-bottom: 24px;
}

.partner-section{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.partner-image-container{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.1);
  aspect-ratio: 4/3;
}

.partner-image{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.partner-placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,0.05);
}

.partner-info h2{
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 12px 0;
}

.partner-info p{
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.partner-links{
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-website-link,
.partner-pdf-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(20, 25, 35, 0.95);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.partner-website-link:hover,
.partner-pdf-link:hover{
  background: rgba(20, 25, 35, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.partner-website-link svg,
.partner-pdf-link svg{
  width: 20px;
  height: 20px;
}

@media (max-width: 980px){
  .partner-section{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .om-os-section-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Om os page */
.om-os-content h1{
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.om-os-lead{
  font-size: 18px;
  color: #fff;
  margin-bottom: 32px;
  line-height: 1.6;
}

.om-os-section{
  margin-bottom: 48px;
}

.om-os-section-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.om-os-text-block h2{
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 16px 0;
}

.om-os-text-block p{
  color: #fff;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: none;
}

.om-os-instagram{
  margin-top: 20px;
  margin-bottom: 8px !important;
  font-size: 15px;
}

.om-os-instagram-link{
  margin-bottom: 0 !important;
}

.om-os-instagram-link a{
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.om-os-instagram-link a:hover{
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.om-os-image-block{
  margin-top: 0;
}

.om-os-image-container{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  max-width: 480px;
}

.om-os-image{
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  vertical-align: top;
}

.om-os-image-placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: rgba(20, 25, 35, 0.6);
  font-size: 14px;
  text-align: center;
  background: rgba(0,0,0,0.04);
}

.om-os-image-placeholder small{
  font-size: 12px;
  opacity: 0.8;
}

/* Før/Efter Sektion */
.before-after-section{
  padding: 80px 0 60px 0;
  background: #708076;
  position: relative;
}

.before-after-header{
  text-align: center;
  margin-bottom: 50px;
}

.before-after-header .section-title{
  color: #1a2e1a;
}

.before-after-header .section-subtitle{
  color: rgba(26, 46, 26, 0.8);
}

.section-title{
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.1;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
  color: var(--text);
}

.section-subtitle{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.before-after-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.before-after-item{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(26, 46, 26, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.before-after-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.image-container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(0,0,0,0.3);
}

.image-wrapper{
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(0,0,0,0.20);
}

.image-wrapper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.before-after-item:hover .image-wrapper img{
  transform: scale(1.05);
}

/* Vores løsninger / Services sektion */
.services-section{
  padding: 0;
  position: relative;
}

.services-header{
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.services-header .section-title{
  color: #1a1f2e;
}

.services-header .section-subtitle{
  color: rgba(26, 31, 46, 0.75);
}

.service-item{
  padding: 48px 0;
}

.service-item-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Gradvist mørkere beige nuancer for hver løsning */
.service-item-1{ background: #f5f0ea; }
.service-item-2{ background: #ebe5dd; }
.service-item-3{ background: #e0d9cf; }
.service-item-4{ background: #d4cdc4; }
.service-item-5{ background: #c8bfb5; padding-bottom: 80px; }

.service-item-reverse .service-image{
  order: 2;
}

.service-item-reverse .service-content{
  order: 1;
}

.service-image{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(0,0,0,0.2);
}

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

.service-placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 14px;
  background: rgba(0,0,0,0.15);
}

.service-content h3{
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #1a1f2e;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.service-content p{
  font-size: 17px;
  line-height: 1.75;
  color: rgba(26, 31, 46, 0.85);
  margin: 0;
}

.image-wrapper .placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 14px;
  background: rgba(0,0,0,0.15);
}

.image-label{
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.image-wrapper.before .image-label{
  background: rgba(200, 50, 50, 0.85);
}

.image-wrapper.after .image-label{
  background: rgba(155, 179, 163, 0.85);
}

.project-info{
  padding: 20px 24px;
}

.before-after-item .project-info h3{
  margin: 0 0 8px 0;
  font-size: 18px;
  letter-spacing: -0.2px;
  color: #1a2e1a;
}

.before-after-item .project-info p{
  margin: 0;
  color: rgba(26, 46, 26, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

/* Footer */
.footerbar{
  border-top: 1px solid rgba(255,255,255,0.15);
  background: #708076;
  backdrop-filter: blur(16px);
}
.footer{
  padding: 14px 0;
  display:flex;
  flex-wrap:wrap;
  gap: 10px 18px;
  align-items:center;
  justify-content:space-between;
  color: var(--muted);
  font-size: 13px;
}
.footer strong{ color: rgba(255,255,255,0.95); font-weight: 800; }
.footer a{ color: rgba(255,255,255,0.80); }
.footer a:hover{ color: rgba(255,255,255,0.95); text-decoration: underline; }

/* Responsive */
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; min-height: auto; max-width: 100%; }
  .main .container{ margin-left: 20px; margin-right: 20px; }
  .navlinks{ display:none; }
  .burger{ display:inline-flex; }
  .mobile-panel.show{ display:block; }
  .form-grid{ grid-template-columns: 1fr; }
  .brand{ min-width:auto; gap: 10px; }
  .brand-logo{ height: 46px; }
  .brand-name{ font-size: 15px; }
  .nav{ padding: 12px 0; gap: 12px; }
  .actions{ flex-direction: column; align-items: stretch; }
  .note{ text-align:left; }
  .before-after-section{ padding: 60px 0 0 0; }
  .before-after-grid{ grid-template-columns: 1fr; gap: 24px; }
  .before-after-header{ margin-bottom: 36px; }
  /* Hero mobil: lille billede først, derefter tilbudsform (IKKE baggrund) */
  .hero{
    min-height: auto;
    background-image: none;
    background: var(--bg);
    display: flex;
    flex-direction: column;
  }
  .hero-mobile-img{
    display: block;
    width: 100%;
    line-height: 0;
  }
  .hero-mobile-img img{
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
  }
  .main{ padding-top: 18px; }
  .main .grid{ padding-top: 0; gap: 18px; }
  .main .grid .card{ max-width: 480px; margin: 0 auto; width: 100%; }
  .main .grid .card:first-child{ order: 2; }
  .main .grid .card:last-child{ order: 1; }
  /* Pill/TLF fuldt synligt */
  .pill{ padding: 8px 12px; font-size: 15px; }
  .pill-label{ font-size: 0.85em; }
  .om-os-section-grid{ grid-template-columns: 1fr; gap: 24px; }
  .om-os-content{ padding: 20px 16px; }
  .page .container{ width: calc(100% - 40px); margin-left: 20px; margin-right: 20px; }
  .om-os-lead{ font-size: 16px; margin-bottom: 24px; }
  .om-os-text-block p{ font-size: 15px; line-height: 1.7; }
  .om-os-text-block h2{ font-size: 20px; margin-bottom: 12px; }
  .om-os-image-container{ max-width: 100%; margin: 0 auto; }
}

@media (max-width: 640px){
  .main .container{ margin-left: 14px; margin-right: 14px; }
  .main .grid{ gap: 14px; }
  .hero-mobile-img img{ aspect-ratio: 16/9; }
  .card-inner{ padding: 16px; }
  .h1{ font-size: 24px; }
  .lead{ font-size: 14px; }
  .form-header h2{ font-size: 18px; }
  .form-header p{ font-size: 12px; }
  .pill{ padding: 6px 10px; font-size: 13px; letter-spacing: 0.2px; }
  .pill-label{ font-size: 0.9em; }
  .brand-name{ font-size: 13px; }
  .brand-logo{ height: 40px; }
  .before-after-section{ padding: 40px 0 0 0; }
  .image-container{ grid-template-columns: 1fr; }
  .services-section{ padding: 0 0 60px 0; }
  .service-item{
    padding: 40px 0;
    margin-bottom: 0;
  }
  .service-item-inner{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-item-reverse .service-image,
  .service-item-reverse .service-content{
    order: unset;
  }
  .image-wrapper{ aspect-ratio: 16/9; }
  /* Om os mobil */
  .page{ padding: 20px 0 24px 0; }
  .page .container{ width: calc(100% - 28px); margin-left: 14px; margin-right: 14px; }
  .om-os-content{ padding: 16px 12px; }
  .om-os-lead{ font-size: 15px; margin-bottom: 20px; }
  .om-os-text-block p{ font-size: 14px; line-height: 1.65; margin-bottom: 12px; }
  .om-os-text-block h2{ font-size: 18px; margin-bottom: 10px; }
  .om-os-image{ object-fit: cover; max-height: 240px; }
  /* Corner popup mobil */
  .corner-popup{ width: 200px; bottom: 16px; left: 16px; }
}

/* Lightbox/Modal */
.image-wrapper{
  cursor: pointer;
}

.lightbox-overlay{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active{
  display: flex;
  opacity: 1;
}

.lightbox-content{
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.lightbox-pair{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.lightbox-single{
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
}

.lightbox-single img{
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* Gør løsningsbilleder og Om os-billeder klikbare */
.service-image,
.om-os-image-container{
  cursor: pointer;
}

.lightbox-image-wrapper{
  position: relative;
  max-width: calc(50% - 6px);
  min-width: 400px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrapper img{
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.3);
}

.lightbox-label{
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.lightbox-label.before-label{
  background: rgba(200, 50, 50, 0.85);
}

.lightbox-label.after-label{
  background: rgba(155, 179, 163, 0.85);
}

.lightbox-close{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1001;
}

.lightbox-close:hover{
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

@media (max-width: 980px){
  .lightbox-content{
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
  }
  .lightbox-pair{
    flex-direction: column;
  }
  .lightbox-image-wrapper{
    max-width: 100%;
    min-width: auto;
  }
  .lightbox-image-wrapper img{
    max-height: 45vh;
    max-width: 90vw;
  }
  .lightbox-single img{
    max-height: 85vh;
  }
}

/* Corner popup */
.corner-popup{
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  width: 260px;
  background: rgba(55,80,65,0.92);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.corner-popup.minimized .corner-popup-content{ display: none; }
.corner-popup.minimized .corner-popup-close{ display: none; }
.corner-popup.minimized .corner-popup-mini{ display: flex; }
.corner-popup:not(.minimized) .corner-popup-mini{ display: none; }

.corner-popup-close{
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.corner-popup-close:hover{
  background: rgba(255,255,255,0.25);
}

.corner-popup-content{
  padding: 12px 12px 32px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.corner-popup-img-wrap{
  display: block;
  line-height: 0;
  width: 100%;
}
.corner-popup-img{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.corner-popup-text{
  text-align: center;
  min-width: 0;
}
.corner-popup-text strong{
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 6px;
}
.corner-popup-link{
  display: inline-block;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s;
}
.corner-popup-link:hover{
  color: #fff;
  text-decoration: underline;
}

.corner-popup-mini{
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.corner-popup-mini:hover{
  background: rgba(255,255,255,0.06);
}
.corner-popup-mini img{
  width: 32px;
  height: auto;
  border-radius: 6px;
}
.corner-popup-mini span{
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
