/* ================================
   GALLERY GRID (FANCYBOX)
================================ */
.gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 10px 0;
}

.gallery a {
    display: block;
    width: 140px;
}

.gallery a img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery a img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 16px;
    }
    .gallery a {
        width: 120px;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gallery a {
        width: 100%;
        max-width: 180px;
    }
    .gallery a img {
        border-radius: 12px;
    }
}

/* Fancybox thumbs for landscape */
.fancybox__thumbs img {
    aspect-ratio: 4 / 3 !important;
    object-fit: cover;
    border-radius: 8px;
}


/* ===========================================
   FANCYBOX — Instagram/iOS Styling
=========================================== */

/* BACKGROUND BLUR */
/* Fancybox transparent dark blur - NO BLACK OVERLAY */
.fancybox__container {
    z-index: 2147483647 !important;

    /* fără fundal negru */
    background: transparent !important;

    /* blur foarte fin + întunecare foarte subtilă 
    backdrop-filter: blur(4px) brightness(0.75) contrast(0.95);
    -webkit-backdrop-filter: blur(4px) brightness(0.75) contrast(0.95);*/
}

/* THUMBNAILS */
.fancybox__thumbs .carousel__slide {
    opacity: 0.45;
    transition: opacity .25s ease, transform .25s ease;
}

.fancybox__thumbs .carousel__slide.is-selected {
    opacity: 1;
    transform: scale(1.1);
}

.fancybox__thumbs img {
    border-radius: 1px;
}

/* REMOVE CAPTION */
.fancybox__caption {
    display: none !important;
}

/* SMOOTH ZOOM */
.fancybox__image {
    transition: transform .35s ease-out !important;
}

html.fancybox-enabled,
body.fancybox-enabled {
    overflow: hidden !important;
    touch-action: none !important;
}

.video-container {
  display: flex;
  justify-content: center;
}

.video-container lite-youtube {
  width: 100%;
  max-width: 360px; /* controlează cât de lat vrei video-ul */
  aspect-ratio: 9 / 16; /* format vertical */
  border-radius: 12px;
  margin-bottom: 15px;
}

/*SHARE BUTONS*/
.share-buttons {
  margin-top: 25px;
  text-align: center;
}

.share-buttons p {
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}

.share-btn {
  display: inline-block;
  margin: 6px;
  padding: 10px 18px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}
.share-info p {
  font-size: 16px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.share-info strong {
  color: #005baa;
  font-style: normal;
  font-weight: 500;
}

.share-btn.facebook {
  background: #0D5BD7; /* Darker blue for better contrast */
  color: #FAFAFA; /* aproape identic cu alb */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.share-btn.whatsapp {
  background: #128C4A; /* Slightly darker green */
  color: #FAFAFA; /* aproape identic cu alb */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.share-btn.telegram {
  background: #006EA8; /* Darker cyan-blue */
  color: #FAFAFA; /* aproape identic cu alb */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.share-btn.viber {
  background: #5B4BE3; /* Darker purple */
  color: #FAFAFA; /* aproape identic cu alb */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.share-btn.instagram {
  background: linear-gradient(45deg, #E1306C, #C13584, #833AB4, #5851DB);
  color: #FAFAFA; /* aproape identic cu alb */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.share-btn.tiktok {
  background: #000000;
  color: #FAFAFA; /* aproape identic cu alb */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.share-btn.copy {
  background: #333333;
  color: #FAFAFA; /* aproape identic cu alb */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}


.share-btn:hover {
  opacity: 0.85;
  transform: scale(1.05);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
