/* Custom Gallery Styles */

/* 1. Galeri Izgara (Grid) Konteyneri */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Her satırda 4 kare fotoğraf */
    gap: 15px;
    padding: 24px;
}

/* 2. Kare Resim & Hover Efekti */
.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; /* Kare oranını koru */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmin kare alana sığmasını sağla */
    transition: transform 0.3s ease;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1));
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 15px;
    text-align: center;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay .icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.overlay .photo-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0;
}

.overlay .photo-date {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    color: #a1a1aa;
}

/* 4. Swiper Navigation/Pagination to match site theme */
.swiper-pagination-bullet {
    background: #a1a1aa;
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background: #fbbf24; /* Ana sitedeki vurgu rengi */
    transform: scale(1.2);
}

/* Galeri sayfasında arka planı kesinlikle siyah yap */
.main-content {
    background: #111113 !important;
}

/* Responsive Galeri Grid */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
} 