/* Gallery */


.btn-grad { 
  background-image: linear-gradient(115deg, rgb(249, 206, 52), rgb(238, 42, 123), rgb(98, 40, 215));
}   

.gallery-preview{
  display: flex; 
  gap: 5px; 
  flex-wrap: wrap; 
  justify-content: space-between;
}
.gallery-preview img {
  --iHeight: 190px;
  height: var(--iHeight);
  width: calc(var(--iHeight) / 4 * 3);

  border-radius: 10px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Ultra-klein: SE oder Zoombrowser */
@media (max-width: 359px) {
  .gallery-preview img {
    --iHeight: 190px;
  }
}

/* iPhone SE */
@media (min-width: 375px) and (max-width: 666.98px) {
  .gallery-preview img {
    --iHeight: 100px;
  }
}

/* iPhone 6 bis 14 */
@media (min-width: 393px) and (max-width: 851.98px) {
  .gallery-preview img {
    --iHeight: 104px;
  }
}

/* iPhone Pro */
@media (min-width: 402px) and (max-width: 973.98px) {
  .gallery-preview img {
    --iHeight: 108px;
  }
}

/* iPhone Plus */
@media (min-width: 430px) and (max-width: 931.98px) {
  .gallery-preview img {
    --iHeight: 116px;
  }
}

/* iPhone Pro Max */
@media (min-width: 440px) and (max-width: 955.98px) {
  .gallery-preview img {
    --iHeight: 120px;
  }
}

/* Kleinere Tablets oder größere Smartphones */
@media (min-width: 480px) and (max-width: 575.98px) {
  .gallery-preview img {
    --iHeight: 160px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-preview img {
    --iHeight: 150px;
  }  
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-preview img {
    --iHeight: 194px;
  }  
}

@media (min-width: 992px) and (max-width: 1199.98px) {  
  .gallery-preview img {
    --iHeight: 274px;
  }   
}

@media (min-width: 1200px) and (max-width: 1399.98px) {  
  .gallery-preview img {
    --iHeight: 164px;
  }   
}

@media (min-width: 1400px) {   
  .gallery-preview img {
    --iHeight: 190px;
  }
 }

 /* Beispiel 
   <div class="grid-gallery-container">
     <div class="grid-gallery-content">
       <div class="grid-gallery-content-description">
           <h2>Titel</h2>
           <p>Lorem ipsum</p>
      </div>
      <div class="grid-gallery-content-body">
        <img src="" alt="" />
      </div>
     </div>
  </div>
 */
.grid-gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  grid-gap: 1rem;
}

.grid-gallery-content {
  background-color: gainsboro;
  border-radius: 10px;
  padding: 24px;
  transition: transform 500ms;
}

.grid-gallery-content:hover {
  transition: transform 500ms;
}

.grid-gallery-content img {
  width: 100%;
  border-radius: 10px;
}

.masonary-container {
  column-count: 4;
  column-gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.masonary-content {
  display: inline-block;
  background-color: gainsboro;
  border-radius: 10px;
  padding: 24px;
  margin: 0 0 24px;
  width: 100%;
}

.masonary-content img {
  width: 100%;
  border-radius: 10px;
}

.masonary-content p {
  width: 100%;
}
