/* Justified Masonry Gallery - Beautiful Layout */

/* Reset gallery container */
html body .mel-gallery-section .mel-gallery {
  display: block !important;
  width: 100% !important;
  line-height: 0 !important;
  text-align: left !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 20px !important;
}

/* Gallery items - styled by JavaScript */
html body .mel-gallery-section .mel-gallery .mel-item {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  background: white !important;
  cursor: pointer !important;
}

html body .mel-gallery-section .mel-gallery .mel-item:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

/* Media inside items */
html body .mel-gallery-section .mel-gallery .mel-item img,
html body .mel-gallery-section .mel-gallery .mel-item canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Video overlays */
html body .mel-gallery-section .mel-gallery .mel-item .mel-video-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,0.3) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

html body .mel-gallery-section .mel-gallery .mel-item:hover .mel-video-overlay {
  opacity: 1 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  html body .mel-gallery-section .mel-gallery {
    padding: 15px !important;
  }
}
