
#gallery{
  width: 100%;
  margin: 4rem 0 0;
  background: radial-gradient(circle at center, var(--background-effect-color) 0%, var(--primary-bg) 100%);
  color: var(--black-font-p);
 
}
.gallery {
  display: grid;
  background-color: white;
  max-width: 1280px;
  margin: 0 auto 0;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 1rem;
  border-radius: 0 0 5px 5px
 
}
.gallery-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* h3 och p upptill */
  text-align: left;
  border: 1px solid rgb(163, 163, 163);
  border-radius: 5px;
  padding: 1rem;
  height: 100%;  
}

 

.gallery-item button {
  margin-top: auto;  
  align-self: center;  
  padding: 0.5rem 1rem;
  border: none;
  background-color: var(--primary-bg);
  color: white;
  border-radius: 5px;
  cursor: pointer;
 
transition:   background-color 0.5s ease,
opacity 0.5s ease,
transform 0.3s ease; 
}
.gallery-item button:hover {
  opacity: .7;
}

 
 .gallery-item img,
.gallery-item video {
  width: 100%;
  height: 300px; 
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  display: block;
}
@media (max-width: 600px) {
  .gallery-item img,
  .gallery-item video {
    height: 200px;
  }
}
 
.gallery-item img:hover {
  opacity: 0.8;
}
 
h1 {
  max-width: 1280px;
  font-size: 2rem;
  text-align: center;
  font-weight: 600;
  margin: 3rem auto 0;
  padding: 3rem 0 1rem;
  background-color: var(--light-bg);
  border-radius: 5px 5px 0 0;
}
 

#gallery h2 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: white;
  padding: 2rem;
  margin: 0 auto;
  max-width: 1280px;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
}

 
#gallery h2 a {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

 
#gallery h2 a[href*="installation"] {
  background-color: var(--g1);
}

#gallery h2 a[href*="hurdetinteskava"] {
  background-color: var(--b1);
}

#gallery h2 a[href*="problem"] {
  background-color: var(--o1);
}
#gallery h2 a[href*="https://www.stockholmvattenochavfall.se/foretag/livsmedelsverksamhet/tjanster-for-butiker-och-restauranger/fettavskiljare/"] {
  background-color: var(--o1);
}

 
#gallery h2 a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0, 0, 0.2, 0.25);
   filter: brightness(90%);
}



#gallery h3{
  max-width: 1280px;
  font-size: 1.3rem;
    background-color: white;
     text-align: center;
     padding: 2rem 2rem 1rem;
     margin-top: 0;
}
#info{
  max-width: 1280px;
 
 /*    background-color: white; */
     text-align: center;
     padding: 2rem 2rem 1rem;
     margin-top: 0;
}
#info h5{
  width: 100%;
  color: red;
}
#info h5 a{
 
  color: white;
  font-size: 1.3rem;
 /*    background-color: white; */
    
}
 

@media (max-width: 540px){

#gallery h1{
  padding:2rem 1rem 1rem;
/*   margin: 2rem 1rem; */
  font-size: 1.8rem;

}
#gallery h2 a {
  width: 13rem;

}

}
@media (max-width: 800px){

  #gallery{
    margin: 2rem 0 0 ;
    border-radius: 0;
  }
  

}
  
 .section-divider {
  border: none;
 
  margin: 60px 0 40px;
}
 
.caption {
  flex-grow: 1;  
  margin: 1em 0 1em 0;
  font-size: 1em;
  color: #333;
  line-height: 1.3em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
 
.caption p {
  color: var(--black-font-p);
  text-align: left;
  padding: 0.5 0;
  line-height: 1.3em;
  font-style: italic;
 
  background-color:transparent;
  margin-bottom: 0.8rem;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.close-btn {
  color: rgb(42, 185, 17);
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  top: 20px;
  right: 30px;
  cursor: pointer;
  user-select: none;
}

.close-btn:hover {
  color: #ccc;
}


/* .info-link {
  width: 100%;
  display: flex;
  justify-content: center;
 
} */
/* .info-link {
  width: 100%;
  display: flex;
  justify-content: center;
 
} */
/* .info-link .button {
  background-color: #2b2b2b;
  letter-spacing: 0.5px;
}
.info-link a.button {
  display: block;
  margin: 0 auto;
  background: #1f1f1f;
  color: #fff;
  padding: 1.2rem 2rem;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 6px;
 
  line-height: 1.4;
  transition: background 0.2s ease, transform 0.2s ease;
}

.info-link a span {
  font-size: 0.9rem;
  opacity: 0.8;
} */

/* .info-link a:hover {
  background: #000;
  transform: translateY(-2px);
}
 */

/* 
.info-link .button {
  display: inline-block;
  text-align: center;
  background-color: #2d8532;
  color: #fff;
  margin: 0 auto;
}
 */