/* Galeri Page Styles */

/* Hero Section */
.galeri-hero {
    background: transparent;
    background-image: url('../images/page-hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: calc(var(--space-3xl) + 80px) 0 var(--space-2xl);
    min-height: 120px;
    overflow: hidden;
}

.galeri-hero .container {
    text-align: left;
    padding-left: 5%;
}

.galeri-hero .hero-decorations {
    display: none;
}

.galeri-hero h1 {
    font-family: 'Quicksand', sans-serif;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 60%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Gallery Section */
.gallery-section {
    background: var(--color-white);
    padding: var(--space-3xl) 0;
}

/* Masonry Grid */
.masonry-grid {
    display: flex;
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
}

.masonry-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.gallery-item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: auto;
    line-height: 0;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Different heights for masonry effect */
.masonry-column:nth-child(1) .gallery-item:nth-child(1) img { height: 200px; }
.masonry-column:nth-child(1) .gallery-item:nth-child(2) img { height: 180px; }
.masonry-column:nth-child(1) .gallery-item:nth-child(3) img { height: 220px; }

.masonry-column:nth-child(2) .gallery-item:nth-child(1) img { height: 280px; }
.masonry-column:nth-child(2) .gallery-item:nth-child(2) img { height: 300px; }

.masonry-column:nth-child(3) .gallery-item:nth-child(1) img { height: 180px; }
.masonry-column:nth-child(3) .gallery-item:nth-child(2) img { height: 200px; }
.masonry-column:nth-child(3) .gallery-item:nth-child(3) img { height: 220px; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-3xl);
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 2px solid var(--color-tosca);
    border-radius: var(--radius-full);
    color: var(--color-tosca);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: var(--color-tosca);
    color: var(--color-white);
}

.page-btn svg {
    width: 16px;
    height: 16px;
}

.page-numbers {
    display: flex;
    gap: var(--space-sm);
}

.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-gray);
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-num:hover,
.page-num.active {
    background: var(--color-tosca);
    color: var(--color-white);
}

/* Responsive */
@media (max-width: 768px) {
    .galeri-hero {
        padding: 100px 0 50px;
    }
    
    .galeri-hero h1 {
        font-size: var(--text-3xl);
    }
    
    .masonry-grid {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .masonry-column {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .gallery-item {
        flex: 1 1 calc(50% - var(--space-md));
        min-width: 140px;
    }
    
    .masonry-column .gallery-item img {
        height: 150px !important;
    }
    
    .pagination {
        gap: var(--space-sm);
    }
    
    .page-btn {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-xs);
    }
    
    .page-num {
        width: 35px;
        height: 35px;
        font-size: var(--text-xs);
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 1 1 100%;
    }
    
    .masonry-column .gallery-item img {
        height: 200px !important;
    }
    
    .page-numbers {
        gap: var(--space-xs);
    }
}

/* Pagination improvements */
.page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.page-dots {
    padding: 0.5rem;
    color: var(--color-tosca);
}

.gallery-count {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.5rem;
}
