/* FRONTEND_UPDATE_START: [Tüm Galeri Filtreleri ve Kaydırma Ok stillerinin geri yüklenmesi] */
/* 
 * Cerrahpaşa Tıp Fakültesi — Aday Öğrenci Websitesi
 * Component: Infinite Image Ticker & Lightbox Media Viewer
 */

/* ----------------------------------------------------
   15. SECTION 11 — GALERİ (GALLERY)
   ---------------------------------------------------- */
.galeri {
  overflow: hidden;
  padding-bottom: 60px;
}

/* Gallery Category Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 35px;
}

.gallery-filter-btn {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.gallery-filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.gallery-filter-btn.active {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(139, 26, 43, 0.25);
}

.gallery-slider-container {
  position: relative;
  width: 100%;
}

/* Scroll Snap Track */
.gallery-ticker-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  margin-bottom: 40px;
  padding: 10px 0;
}

.gallery-ticker-wrap::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.gallery-ticker {
  display: flex;
  width: max-content;
  padding-left: max(24px, calc((100vw - var(--container-width)) / 2));
  padding-right: max(24px, calc((100vw - var(--container-width)) / 2));
}

.gallery-img-wrap {
  width: 320px;
  height: 220px;
  margin: 0 10px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  scroll-snap-align: center;
  flex-shrink: 0;
}

/* Slider Arrow Buttons */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(139, 26, 43, 0.85); /* CTF Bordo with transparency */
  border: 2px solid var(--color-gold);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-arrow:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.gallery-arrow svg {
  width: 24px;
  height: 24px;
}

.gallery-arrow.arrow-left {
  left: -25px;
}

.gallery-arrow.arrow-right {
  right: -25px;
}

@media (max-width: 1300px) {
  .gallery-arrow.arrow-left {
    left: 10px;
  }
  .gallery-arrow.arrow-right {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .gallery-arrow {
    width: 40px;
    height: 40px;
  }
  .gallery-arrow.arrow-left { left: 10px; }
  .gallery-arrow.arrow-right { right: 10px; }
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 1;
}

.gallery-img-wrap:hover img {
  transform: scale(1.1);
}

.gallery-img-wrap:hover::after {
  opacity: 0.3;
}

@keyframes gallery-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Alternate Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gallery-grid .gallery-img-wrap {
  width: 100%;
  height: 240px;
  margin: 0;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 3, 5, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 24px;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content.glassmorphism {
  position: relative;
  max-width: 960px;
  width: 100%;
  background: rgba(26, 5, 8, 0.75);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.open .lightbox-content.glassmorphism {
  transform: scale(1);
}

.lightbox-body {
  display: flex;
  flex-direction: row;
}

.lightbox-media {
  flex: 1.3;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  position: relative;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-details {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-badge-wrap {
  margin-bottom: 16px;
}

.lightbox-tag {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: var(--color-primary-light);
  color: var(--color-white);
  padding: 4px 14px;
  border-radius: 30px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(181, 39, 60, 0.2);
}

.lightbox-location {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 18px;
  line-height: 1.3;
}

.lightbox-description {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-cream);
  margin: 0;
  opacity: 0.9;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 2010;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-close svg {
  stroke: var(--color-white);
  fill: none;
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

/* Lightbox Mobile Responsiveness */
@media (max-width: 768px) {
  .lightbox {
    padding: 16px;
  }
  .lightbox-content.glassmorphism {
    max-height: 85vh;
    overflow-y: auto;
  }
  .lightbox-body {
    flex-direction: column;
  }
  .lightbox-media {
    min-height: 250px;
    height: 250px;
  }
  .lightbox-details {
    padding: 24px;
  }
  .lightbox-location {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }
  .lightbox-description {
    font-size: 0.88rem;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
    background: rgba(15, 3, 5, 0.6);
  }
}

/* FRONTEND_UPDATE_END */
