/* ========================================
   VIMEO GALLERY WITH FANCYBOX
   ======================================== */

/* ========================================
   VIDEO CARD STYLES
   ======================================== */

/* video kartı için play overlay */
.tp-portfolio-inner-thumb a {
  position: relative;
  display: block;
  overflow: hidden;
}

.tp-portfolio-inner-thumb a .vimeo-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: #DBB800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
}

.tp-portfolio-inner-thumb a:hover .vimeo-play-overlay {
  opacity: 1;
}

.tp-portfolio-inner-thumb a .vimeo-play-overlay i {
  color: #fff;
  font-size: 28px;
  margin-left: 4px; /* Play icon için hafif sağa kaydırma */
}

.tp-portfolio-inner-thumb a:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* ========================================
   FANCYBOX MODAL STYLES
   ======================================== */

/* Fancybox content container */
.fancybox__content {
  width: 1200px !important;
  height: 675px !important;
  max-width: 1200px !important;
  max-height: 675px !important;
  padding: 0 !important;
  background: #000 !important;
  border-radius: 8px;
  overflow: hidden;
}

/* Fancybox iframe */
.fancybox__content iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block;
}

/* CDN video (HTML5 video) modal - Yazıcı Group videolar sayfası */
.fancybox__content .cdn-video-modal-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.fancybox__content .cdn-video-player,
.fancybox__content video.cdn-video-player {
  width: 100% !important;
  height: 100% !important;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Fancybox backdrop */
.fancybox__backdrop {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(4px);
}

/* Fancybox toolbar */
.fancybox__toolbar {
  background: rgba(0, 0, 0, 0.3) !important;
  padding: 10px 20px;
}

/* Fancybox close button */
.fancybox__button--close {
  color: #fff !important;
  background: #DBB800 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.fancybox__button--close:hover {
  background: #c4a300 !important;
  transform: scale(1.1);
}

/* Fancybox infobar */
.fancybox__infobar {
  color: #fff !important;
  font-family: 'Cal Sans', sans-serif;
  font-size: 14px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .fancybox__content {
    width: 90vw !important;
    height: 50.625vw !important; /* 16:9 aspect ratio */
    max-width: 90vw !important;
    max-height: 50.625vw !important;
  }
  
  .tp-portfolio-inner-thumb a .vimeo-play-overlay {
    width: 70px;
    height: 70px;
  }
  
  .tp-portfolio-inner-thumb a .vimeo-play-overlay i {
    font-size: 24px;
  }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
  .fancybox__content {
    width: 95vw !important;
    height: 53.4375vw !important; /* 16:9 aspect ratio */
    max-width: 95vw !important;
    max-height: 53.4375vw !important;
  }
  
  .tp-portfolio-inner-thumb a .vimeo-play-overlay {
    width: 60px;
    height: 60px;
  }
  
  .tp-portfolio-inner-thumb a .vimeo-play-overlay i {
    font-size: 20px;
  }
  
  .fancybox__button--close {
    width: 35px !important;
    height: 35px !important;
  }
}

/* Small Mobile (max-width: 575px) */
@media (max-width: 575px) {
  .fancybox__content {
    width: 100vw !important;
    height: 56.25vw !important; /* 16:9 aspect ratio */
    max-width: 100vw !important;
    max-height: 56.25vw !important;
    border-radius: 0;
  }
  
  .tp-portfolio-inner-thumb a .vimeo-play-overlay {
    width: 50px;
    height: 50px;
  }
  
  .tp-portfolio-inner-thumb a .vimeo-play-overlay i {
    font-size: 18px;
  }
  
  .fancybox__button--close {
    width: 30px !important;
    height: 30px !important;
    top: 10px !important;
    right: 10px !important;
  }
  
  .fancybox__infobar {
    font-size: 12px;
  }
}

/* ========================================
   LOADING STATE
   ======================================== */

.fancybox__content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(200, 11, 15, 0.3);
  border-top-color: #DBB800;
  border-radius: 50%;
  animation: vimeo-gallery-spin 1s linear infinite;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fancybox__content.loading::before {
  opacity: 1;
}

@keyframes vimeo-gallery-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.fancybox__button:focus {
  outline: 2px solid #DBB800;
  outline-offset: 2px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Fancybox açılma animasyonu */
.fancybox__container {
  animation: vimeo-gallery-fadeIn 0.3s ease;
}

@keyframes vimeo-gallery-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Video kartı hover efekti */
.tp-portfolio-inner-item:hover .tp-portfolio-inner-thumb a .vimeo-play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
}

