@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

/* Galeri Sayfası Stilleri */

.gallery-page {
    padding: 40px 5%;
    min-height: 70vh;
    background: var(--bg-color);
    width: 100%;
}

.gallery-page .gallery-header,
.gallery-page .gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h1 {
    font-family: "Special Elite", system-ui;
    font-size: 3rem;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.gallery-header p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Gallery Grid - Masonry Style */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.95rem;
}

.no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-color);
    opacity: 0.7;
}

.no-images i {
    font-size: 5rem;
    margin-bottom: 25px;
    display: block;
    opacity: 0.5;
    color: #c8af8b;
}

.no-images p {
    font-size: 1.3rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    color: white;
    margin-top: 20px;
    font-size: 1.2rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery-item img {
        height: 150px;
    }
}

/* Dark Mode */
[data-theme="dark"] .gallery-page {
    background: var(--bg-color);
}

[data-theme="dark"] .gallery-item {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--border-color);
}

[data-theme="dark"] .gallery-item:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}