/* FORCE REMOVE ALL GALLERY BORDERS - ULTIMATE PRIORITY */

/* Target all possible gallery elements */
#gallery-1,
#gallery-1 *,
.gallery-grid,
.gallery-grid *,
section.section-gallery #gallery-1,
section.section-gallery #gallery-1 *,
section#gallery #gallery-1,
section#gallery #gallery-1 * {
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  outline: 0 !important;
  outline-width: 0 !important;
  outline-style: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

/* Specific targeting for figure elements */
#gallery-1 figure,
#gallery-1 figure.gallery-item,
figure.gallery-item,
.gallery-item {
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 12px !important;
}

/* Specific targeting for div.gallery-icon */
#gallery-1 div.gallery-icon,
#gallery-1 .gallery-icon,
div.gallery-icon,
.gallery-icon {
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Specific targeting for images */
#gallery-1 img,
#gallery-1 figure img,
#gallery-1 .gallery-icon img,
.gallery-item img,
.gallery-icon img {
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}

/* Override any WordPress default styles */
.gallery .gallery-item,
.gallery-item,
.gallery-icon,
.gallery-icon img {
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
}

/* Mobile specific */
@media (max-width: 768px) {
  #gallery-1 .gallery-item,
  #gallery-1 figure,
  #gallery-1 .gallery-icon,
  #gallery-1 img {
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    outline: 0 !important;
    box-shadow: none !important;
  }
}
