#mggallery-list {
  opacity: 0;
  transition: opacity 0.3s;
}
#mggallery-list.ready {
  opacity: 1;
}

#mggallery-list .mablum {
  position: relative;
  border-radius: 0;
  background: rgba(250,247,244,1);
  transition: transform .35s ease, box-shadow .35s ease;
  will-change: transform;
}

#mggallery-list .mablum img{border-top-left-radius: 0; border-top-right-radius: 0}
#mggallery-list .mablum:hover { transform: translateY(-4px); box-shadow: 0 10px 28px -8px rgba(0,0,0,.35);}

#mggallery-list .caption{padding:12px; font-size:0.8em; color:#444; line-height: 1.2}
#mggallery-list .caption h3{margin:2px 0 6px; font-size:1em;}
#mggallery-list .caption h3 a{font-size:1em; color:#342929; text-decoration: none}

#mggallery-list .mablum a.mablum-thumbnail{position: relative; display: block;}

#mggallery-list .mablum a.mablum-thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18); 
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
#mggallery-list .mablum a.mablum-thumbnail:hover::before,
#mggallery-list .mablum a.mablum-thumbnail:focus-visible::before { opacity: 1}

#mggallery-list .mablum a.mablum-thumbnail::after {
  content: '\eba0';
  font-family: 'icomoon' !important;
  font-size: 2em;
  color: #fff;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity .32s cubic-bezier(.4,.2,.2,1),
    transform .32s cubic-bezier(.4,.2,.2,1);
  pointer-events: none;
  will-change: opacity, transform;
  z-index: 2;
}
#mggallery-list .mablum a.mablum-thumbnail:hover::after,
#mggallery-list .mablum a.mablum-thumbnail:focus-visible::after { opacity: 1; transform: scale(1)}

#gallery-search {
  display: flex;
  margin-left: auto;       
  margin-bottom:12px;
  width: 30%;
}

#gallery-search input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin: 0;
}

#button-gallery-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-top-left-radius: 0!important;
  border-bottom-left-radius: 0!important;
  text-decoration: none;
}

#button-gallery-search::before {
  content: "\e90f";
  font-family: icomoon !important;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 1200px) {
  #gallery-search { width: 50%; }
}

@media (max-width: 760px) {
  #gallery-search { width: 100%; margin-top:12px }
}


/* Pagina de album */

.gallery-two-col {
  display: flex;
  align-items: flex-start;
  gap: 34px;
  min-height: 60vh;
  width: 100%;
  box-sizing: border-box;
}

/* Coloana descrierii */
.gallery-two-col > .description {
  flex: 0 0 30%;
  max-width: 30%;
  box-sizing: border-box;
  position: sticky; 
  top: 32px;
}
/* Unificare heading-uri în descriere */
.gallery-two-col > .description h2,
.gallery-two-col > .description h3,
.gallery-two-col > .description h4,
.gallery-two-col > .description h5,
.gallery-two-col > .description h6 {
  font-size: 15px; 
  font-weight: 600;
  margin: 0 0 16px;
  font-family: inherit;
}

.gallery-two-col > .description h1 {
  font-size: 24px;
}

.gallery-two-col > .description .share{max-width:200px}
.gallery-two-col > .description .share h3{font-size:15px; font-weight: bold}


.gallery-two-col > .description p,
.gallery-two-col > .description .description--top,
.gallery-two-col > .description .description--bottom {
  margin: 0 0 16px;
}

.gallery-two-col > .description .products{}

.gallery-two-col > #mggallery-page {
  flex: 0 0 70%;
  max-width: 70%;
  box-sizing: border-box;
  column-count: 2;
  column-gap: 12px;
  margin-top: 0;
  padding-top: 0;
}

#mggallery-page > a.mablum-thumbnail {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  position: relative;
  text-decoration: none;
  cursor: zoom-in;
}

#mggallery-page > a.mablum-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  background: #f4f4f4;
  transition: transform .35s ease, box-shadow .35s ease;
  will-change: transform;
}

#mggallery-page > a.mablum-thumbnail:hover img {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.35);
}


#mggallery-page a.mablum-thumbnail.video::before {
  content: "\ea41";
  font-family: 'icomoon' !important;
  font-size: 3em;
  color: #fff;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /*transform: scale(0.6);
  transition:
    opacity .32s cubic-bezier(.4,.2,.2,1),
    transform .32s cubic-bezier(.4,.2,.2,1);
  pointer-events: none;
  will-change: opacity, transform;*/
  z-index: 2;
}

#mggallery-page a.mablum-thumbnail.video::after {
  content: "Play Video";
  font-size: 1em;
  color: #fff;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin:0 0 20px 20px;
  z-index: 2;
}

/* Portrait for all lightGallery video modals 
.lg-outer .lg-video-cont {
  aspect-ratio: 9/16 !important;
  max-width: 360px;
  margin: 0 auto;
}

.lg-outer .lg-video-cont iframe,
.lg-outer .lg-video-cont video {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 9/16 !important;
  object-fit: contain;
  background: #000;
}
*/

@media (max-width: 1100px) {
  .gallery-two-col > #mggallery-page {
    column-gap: 20px;
  }
}

@media (max-width: 900px) {
  .gallery-two-col {
    flex-direction: column;
  }
  .gallery-two-col > .description,
  .gallery-two-col > #mggallery-page {
    max-width: 100%;
    flex: 100%;
    position: static!important
  }
  .gallery-two-col > #mggallery-page {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-two-col > #mggallery-page {
    column-count: 1;
  }
}

/* LightGallery poate adăuga propriile clase; normalizează */
#mggallery-page .lg-thumb-outer,
#mggallery-page .lg-sub-html {
  font-family: inherit;
}

/* Reset mic pentru imagini fără spații albe nedorite */
#mggallery-page img {
  vertical-align: middle;
}





.grid-row-bottom-mp{padding-top:90px; padding-bottom: 90px}
.grid-row-bottom-mp .row-bg{background: #342929}
.module-title-1162{max-width:800px}


/* === GALLERY BASE === */
#mggallery-product.gallery-grid.swiper {
  position: relative;
  width: 100%;
  overflow: visible; /* important ca să nu taie slide-urile coborâte */
  --slide-w: clamp(180px, calc((100% - var(--gap)) / 1.5), 300px);
  --gap: 20px;
  --offset-even-desktop: 48px;
  --offset-even-mid: 32px;
}

/* Swiper wrapper – folosim gap în loc de spaceBetween */
#mggallery-product.gallery-grid.swiper .swiper-wrapper {
  display: flex !important;
  align-items: flex-start;
  gap: var(--gap);
  box-sizing: border-box;
  /* dacă tema forțează overflow hidden, îl anulăm */
  overflow: visible !important;
}

#mggallery-product .swiper-container{overflow: visible!important;}

/* Slide fix 300px */
#mggallery-product.gallery-grid.swiper .swiper-slide.auto-grid-items {
  position: relative;
  width: var(--slide-w) !important;
  flex: 0 0 var(--slide-w) !important;
  margin-top: 0;
  box-sizing: border-box;
  /* fără transform -> nu mai e nevoie să mărim containerul forțat */
}


/* Stagger: doar slide-urile pare */
#mggallery-product.gallery-grid.swiper .swiper-slide.auto-grid-items:nth-child(2n) {
  margin-top: var(--offset-even-desktop);
}



#mggallery-product.gallery-grid a.gallery-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18); 
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
#mggallery-product.gallery-grid a.gallery-image:hover::before,
#mggallery-product.gallery-grid a.gallery-image:focus-visible::before { opacity: 1}

#mggallery-product.gallery-grid a.gallery-image::after {
  content: '\eba0';
  font-family: 'icomoon' !important;
  font-size: 2em;
  color: #fff;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity .32s cubic-bezier(.4,.2,.2,1),
    transform .32s cubic-bezier(.4,.2,.2,1);
  pointer-events: none;
  will-change: opacity, transform;
  z-index: 2;
}
#mggallery-product.gallery-grid a.gallery-image:hover::after,
#mggallery-product.gallery-grid a.gallery-image:focus-visible::after { opacity: 1; transform: scale(1)}

#gallery-search {
  display: flex;
  margin-left: auto;       
  margin-bottom:12px;
  width: 30%;
}


/* Sub 1200px offset 32px */
@media (max-width: 1200px) {
  #mggallery-product.gallery-grid.swiper 
  .swiper-slide.auto-grid-items:nth-child(2n) {
    margin-top: var(--offset-even-mid);
  }
}

@media (max-width: 900px) {
 .grid-row-bottom-mp{padding-top:60px; padding-bottom: 60px}
}



/* Imagini brute (fără radius / shadow) */
#mggallery-product.gallery-grid.swiper .swiper-slide.auto-grid-items a.gallery-image {
  display: block;
  text-decoration: none;
}
#mggallery-product.gallery-grid.swiper .swiper-slide.auto-grid-items img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  background: #f5f5f5; /* scoate dacă nu vrei fundal placeholder */
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

/* Butoane (dacă le folosești) */
#mggallery-product.gallery-grid.swiper .swiper-buttons {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  display: flex;
  gap: 8px;
}
#mggallery-product.gallery-grid.swiper .swiper-button-prev,
#mggallery-product.gallery-grid.swiper .swiper-button-next {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  background: #111;
  color: #fff;
  font: 600 13px/1 system-ui,sans-serif;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}
#mggallery-product.gallery-grid.swiper .swiper-button-prev:after,
#mggallery-product.gallery-grid.swiper .swiper-button-next:after {
  content: '';
}

/* RTL opțional */
html[dir="rtl"] #mggallery-product.gallery-grid.swiper .swiper-buttons {
  right: auto;
  left: 8px;
}

/* Dacă un părinte mai sus are overflow hidden și taie tot, îl poți suprascrie */
.mg-stagger-allow-overflow,
.mg-stagger-allow-overflow * {
  overflow: visible !important;
}