:root {
    --primary-color: #fec000;
    --text-color: #000000;
    --background-light: #f8f9fa;
    --border-radius: 5px;
    --accent-color: #ff6b00;
    --secondary-color: #e9ecef;
    --shadow-color: rgba(0,0,0,0.1);
}

.photo-display-container {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 80%;
    margin: 0 auto;
    box-sizing: border-box;
}

h1 {
    font-family: 'Anton', sans-serif;
    font-weight: lighter;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 2em;
    margin-bottom: 20px;
    padding-top: 15px;
    text-align: center;
}

.titel {
    font-family: 'Anton', sans-serif;
    font-weight: lighter;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 0px;
    padding-top: 0px;
    font-size: 2em;
    text-align: center;
}

.onderTitel {
    font-family: 'Anton', sans-serif;
    font-weight: lighter;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.5em;
    text-align: center;
    padding-bottom: 0px;
    margin-top: -40px;
}

.zoekHier {
    text-align: center;
    font-size: 1.2em;
    margin: 0 auto;
    max-width: 70%;
}

.link {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Image Gallery */
.image-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    gap: 20px;
    margin: 0 auto;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.image-item {
    max-height: 300px;
    max-width: 250px;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.image-item.loading {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite linear;
}

.image-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-item:not(.loading) .thumbnail {
    opacity: 1;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin: 30px 0 10px;
}

.load-more-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 14px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.03em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.load-more-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.no-images-found {
    text-align: center;
    margin: 50px 0;
    font-size: 1.2em;
    color: #666;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.download-btn {
    position: absolute;
    bottom: 10%;
    right: 50%;
    transform: translateX(50%);
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: var(--accent-color);
    transform: translateX(50%) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.download-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

#loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid var(--background-light);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.fotograaf {
    text-align: center;
    font-style: italic;
    font-size: 1.3em;
    max-width: 60%;
    margin: 0 auto;
}

.linkFotograaf {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.linkFotograaf:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.fouten {
    text-align: center;
    margin-bottom: 60px;
    font-size: 0.9em;
    color: #666;
	max-width: 90%;
	margin: 0 auto;
}

/* Media Queries */
@media (max-width: 1024px) {
    .photo-display-container {
        max-width: 90%;
    }
    
    .image-results {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .photo-display-container {
        width: 95%;
        padding: 20px 0;
    }
    
    h1 {
        font-size: 1.4em;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .photo-display-container {
        padding: 15px;
    }
    
    h1 {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    
    .onderTitel {
        font-size: 2em;
        padding-top: 2px;
    }

    .search-result-title {
        font-size: 1.5rem;
    }

    .image-results {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .zoekHier {
        font-size: 1em;
    }
    
    .prev-btn, .next-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .download-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .fotograaf {
        font-size: 1em;
		max-width: 80%;
    }
}