/* Fotogallerij Web Styles */
.fotogallerij-overview,
.fotogallerij-category-view {
    width: 100%;
    margin: 20px 0;
}


.fotogallerij-category,
.fotogallerij-main-categories,
.fotogallerij-subcategories,
.fotogallerij-items,
.fotogallerij-uncategorized {
    margin-bottom: 40px;
}

.category-title,
.fotogallerij-main-categories h3,
.fotogallerij-subcategories h3,
.fotogallerij-items h3,
.fotogallerij-uncategorized h3 {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.category-title.level-0 {
    font-size: 28px;
    margin-top: 30px;
}

.category-title.level-1 {
    font-size: 22px;
    margin-top: 25px;
    margin-left: 20px;
    color: #555;
}

.fotogallerij-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.fotogallerij-grid.category-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.fotogallerij-item,
.fotogallerij-category-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fotogallerij-category-item.main-category {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    /* border: 2px solid #e74c3c; */
}

.fotogallerij-category-item.main-category:hover {
    border-color: #c0392b;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.fotogallerij-item:hover,
.fotogallerij-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.fotogallerij-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.fotogallerij-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.fotogallerij-category-item .fotogallerij-image {
    height: 250px;
}

.fotogallerij-category-item.main-category .fotogallerij-image {
    height: 280px;
}

.fotogallerij-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fotogallerij-item:hover .fotogallerij-image::after {
    opacity: 1;
}

.fotogallerij-info {
    padding: 15px;
}

.fotogallerij-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.fotogallerij-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Gegevens grid styling */
.fotogallerij-gegevens {
    margin: 8px 0;
    display: flex;
    gap: 4px;
    flex-direction: column;
}


.gegeven-item {
    display:grid;
    font-size: 12px;
    color: #555;
    padding: 2px 4px;
    /* background-color: #f8f9fa; */
    border-radius: 3px;
    --columns: 1;
    border-bottom: 1px solid rgb(0 0 0 / 4%);
}

.gegeven-item{
    grid-template-columns: repeat(var(--columns),1fr);
}

.gegeven-item .gegeven-label {
    font-weight: 500;
    color: #333;
}

.gegeven-item .gegeven-value {
    font-weight: normal;
    color: #666;
}

.fotogallerij-detail .gegeven-item{
    font-size:14px;
}

/* Detail view styles */
.fotogallerij-detail {
    width: 100%;
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #c0392b;
    color: white;
    text-decoration: none;
}

.fotogallerij-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.fotogallerij-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fotogallerij-full-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.fotogallerij-image-item:hover .fotogallerij-full-image {
    transform: scale(1.05);
}

.fotogallerij-images-row{
    display:flex;
    height:100px;
    gap: 5px;
    overflow-x:auto;
    margin-top: 5px;
}
.fotogallerij-images-row .fotogallerij-image-item-small {
    height: 100%;
    width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 5px;
}
.fotogallerij-images-row .fotogallerij-image-item-small img{
    height: auto;
    width: auto;
    min-width: 100%;
    min-height: 100%;
}


@media (max-width: 1024px) {
    .sticky-md-top{
        top:1rem !important;
    }
}
/* Responsive design */
@media (max-width: 768px) {
    .fotogallerij-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .fotogallerij-grid.category-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .category-title,
    .fotogallerij-main-categories h3,
    .fotogallerij-subcategories h3,
    .fotogallerij-items h3,
    .fotogallerij-uncategorized h3 {
        font-size: 20px;
    }
    
    .category-title.level-0 {
        font-size: 24px;
    }
    
    .category-title.level-1 {
        font-size: 18px;
        margin-left: 10px;
    }
    
    .fotogallerij-image {
        height: 150px;
    }
    
    .fotogallerij-category-item .fotogallerij-image {
        height: 180px;
    }
    
    .fotogallerij-category-item.main-category .fotogallerij-image {
        height: 200px;
    }
    
    .fotogallerij-info {
        padding: 12px;
    }
    
    .fotogallerij-info h4 {
        font-size: 16px;
    }
    
    .fotogallerij-info p {
        font-size: 13px;
    }
    
    .fotogallerij-images {
        grid-template-columns: 1fr;
    }
    
    /* Responsive gegevens grid */
    .fotogallerij-gegevens.gegevens-grid-3,
    .fotogallerij-gegevens.gegevens-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .gegeven-item {
        font-size: 11px;
        padding: 1px 3px;
    }
}

@media (max-width: 480px) {
    .fotogallerij-grid,
    .fotogallerij-grid.category-grid {
        grid-template-columns: 1fr;
    }
    
    .fotogallerij-image {
        height: 180px;
    }
    
    .fotogallerij-category-item .fotogallerij-image,
    .fotogallerij-category-item.main-category .fotogallerij-image {
        height: 200px;
    }
    
    /* Mobile gegevens grid - stack everything */
    .fotogallerij-gegevens.gegevens-grid-2,
    .fotogallerij-gegevens.gegevens-grid-3,
    .fotogallerij-gegevens.gegevens-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .gegeven-item {
        font-size: 10px;
        padding: 1px 2px;
    }
}

/* Loading states */
.fotogallerij-item.loading {
    opacity: 0.7;
}

.fotogallerij-item.loading .fotogallerij-image {
    background-color: #f5f5f5;
    background-image: linear-gradient(90deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Empty state */
.fotogallerij-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.fotogallerij-empty h3 {
    margin-bottom: 10px;
    color: #999;
}

.fotogallerij-empty p {
    font-size: 16px;
    line-height: 1.5;
}
body .pageContent{
    z-index:0;
}