/* ===== GALERIE FOTO & VIDEO EVENIMENTE - AmplifYOU v3.0 ===== */

/* ── Section wrapper ─────────────────────────────── */
.ag-gallery-section {
  padding: 70px 20px;
  background: #fff;
  text-align: center;
}

.ag-gallery-title {
  font-size: clamp(26px, 4vw, 40px);
  color: #F07D00;
  font-weight: 800;
  margin-bottom: 36px;
}

/* ── Grid ────────────────────────────────────────── */
.ag-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.ag-gallery-item.gallery-item--main {
  grid-column: span 2;
}

/* ── Item card ───────────────────────────────────── */
.ag-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #111;
}

.ag-gallery-item.gallery-item--main {
  aspect-ratio: 16 / 9;
}

.ag-gallery-item img,
.ag-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ag-gallery-item:hover img,
.ag-gallery-item:hover video {
  transform: scale(1.05);
}

/* ── Overlay ─────────────────────────────────────── */
.ag-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(240, 125, 0, 0);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: background 0.3s ease;
}

.ag-gallery-item:hover .ag-gallery-overlay {
  background: rgba(240, 125, 0, 0.55);
}

.ag-gallery-label {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ag-gallery-item:hover .ag-gallery-label {
  opacity: 1;
  transform: translateY(0);
}

/* ── Video play button ───────────────────────────── */
.ag-gallery-item.is-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  z-index: 2;
  transition: transform 0.25s ease, opacity 0.25s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.video-play-btn svg {
  width: 100%;
  height: 100%;
}

.ag-gallery-item:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 0.9;
}

/* ── Photo lightbox ──────────────────────────────── */
.amplify-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.amplify-lightbox.active {
  display: flex;
}

.amplify-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.amplify-lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  line-height: 1;
  z-index: 100000;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.amplify-lb-close:hover { opacity: 1; }

/* ── Video lightbox (YouTube/Vimeo + self-hosted) ── */
.amplify-video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.amplify-video-lightbox.active {
  display: flex;
}

.amplify-vlb-inner {
  position: relative;
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}

.amplify-vlb-inner iframe,
.amplify-vlb-inner video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.amplify-vlb-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  line-height: 1;
  z-index: 100000;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.amplify-vlb-close:hover { opacity: 1; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .ag-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ag-gallery-item.gallery-item--main {
    grid-column: span 2;
  }
  .amplify-vlb-inner {
    width: 95vw;
  }
}

@media (max-width: 480px) {
  .ag-gallery-grid {
    grid-template-columns: 1fr;
  }
  .ag-gallery-item.gallery-item--main {
    grid-column: span 1;
  }
}


/* ===== GALERIE INFLUENCERI ===== */
.ag-inf-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.ag-inf-item {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0f0;
}

.ag-inf-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
  transition: transform 0.35s ease;
}

.ag-inf-item:hover img {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .ag-inf-gallery {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    padding: 30px 16px;
  }
}

@media (max-width: 480px) {
  .ag-inf-gallery {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
  }
}

/* ── Titlu galerie influenceri ───────────────────── */
h2.ag-inf-title,
.ag-inf-title {
  text-align: center !important;
  font-size: clamp(22px, 3.5vw, 36px) !important;
  font-weight: 800 !important;
  color: #f36906 !important;
  margin: 0 auto 24px !important;
  padding: 0 20px !important;
  max-width: 1200px !important;
  display: block !important;
}
