.premium-gallery {
 display: flex !important;
  justify-content: space-between !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;  
  margin: 0 !important;    
}

.premium-item {
  flex: 1 !important;
  overflow: hidden !important;
  position: relative !important;
}

.premium-img {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 300px !important;
}

.premium-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s ease !important;
}

.premium-img:hover img {
  transform: scale(1.3) !important; 
}

.premium-caption {
  position: absolute !important;
  bottom: 0 !important;              /* na samym dole */
  width: 100% !important;            /* pełna szerokość */
  background: rgba(60, 40, 40, 0.8) !important;
  color: #fff !important;
  text-align: center !important;    
  box-sizing: border-box !important; /* padding nie psuje szerokości */
}

/* Desktop - obok siebie */
@media (min-width: 769px) {
  .wp-block-group.footer {
    display: flex !important;
    gap: 2rem !important;
    justify-content: center !important;
  }
}

/* Mobile - jeden pod drugim, każdy wyśrodkowany */
@media (max-width: 768px) {
  .wp-block-group.footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }
}

.wp-block-image.size-large.mail_icon.wp-duotone-primary-foreground {
  margin-top: auto !important;
}

/* Mobilka: jedno pod drugim */
@media (max-width: 768px) {
    .premium-gallery {
        flex-direction: column;
    }

    .premium-item {
        flex: 1 1 100%;
    }
}