/* Gallery Page Styles */

body {
    background-color: #1a1a1a;
    color: #fff;
    padding-top: 50px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Navigation styling to match other pages */
.navbar-inverse {
    background-color: #1a1a1a;
    border-color: #000;
}

.navbar-inverse .navbar-brand {
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 18px;
}

.navbar-inverse .navbar-nav > li > a {
    color: #888;
    font-weight: 300;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #fff;
    background-color: transparent;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    color: #fff;
    background-color: #000;
}

/* Main content area */
.gallery-main {
    padding: 30px 0;
    min-height: calc(100vh - 50px);
}

/* Breadcrumb */
.gallery-breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}

.gallery-breadcrumb a {
    color: #6db3f2;
    text-decoration: none;
}

.gallery-breadcrumb a:hover {
    color: #8bc4f7;
    text-decoration: underline;
}

.gallery-breadcrumb .separator {
    margin: 0 8px;
    color: #555;
}

.gallery-breadcrumb .current {
    color: #fff;
}

/* Single image view */
.gallery-single {
    max-width: 1000px;
    margin: 0 auto;
}

.image-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px 0;
    margin-bottom: 20px;
}

.image-nav a {
    color: #6db3f2;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #444;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.image-nav a:hover {
    background-color: #333;
    border-color: #666;
}

.nav-counter {
    color: #888;
    font-size: 14px;
}

.image-container {
    text-align: center;
    background-color: #000;
    border-radius: 4px;
    padding: 10px;
}

.main-image {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 2px;
}

.image-caption {
    text-align: center;
    padding: 20px;
    color: #aaa;
    font-size: 16px;
    line-height: 1.6;
}

/* Folder listing */
.gallery-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-folder {
    background-color: #252525;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-folder:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.gallery-folder a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.folder-thumb {
    height: 180px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.folder-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-folder:hover .folder-thumb img {
    transform: scale(1.05);
}

.folder-info {
    padding: 15px;
}

.folder-info h3 {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 8px 0;
    color: #fff;
}

.folder-date {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.folder-count {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Image grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    background-color: #252525;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .item-caption {
    opacity: 1;
}

/* Empty state */
.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.gallery-empty p {
    font-size: 18px;
}

/* Pagination */
.gallery-pagination {
    margin-top: 30px;
    padding: 20px 0;
    text-align: center;
}

.gallery-pagination a {
    color: #6db3f2;
    text-decoration: none;
    padding: 8px 12px;
}

.gallery-pagination a:hover {
    color: #8bc4f7;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-folders {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
    
    .image-nav {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .image-nav a {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .folder-thumb {
        height: 140px;
    }
}
