/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* Header styles */
header {
    text-align: center;
    background-color: #000;
    margin-bottom: 0.5rem;
    font-family: 'Alumni Sans Pinstripe', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2em;
}

.clickable-header {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.clickable-header:hover {
    opacity: 0.8;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    color: #ccc;
    font-style: italic;
}

/* Main content */
main {
    width: 100vw;
    margin: 0;
    padding: 0;
}

/* Gallery styles */
.gallery {
    margin: 0;
    padding: 0;
}

.gallery-item {
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    overflow: hidden;
    background-color: #000;
}

.gallery-item:hover {
    border: 1px solid rgba(250, 122, 122, 0.5);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-item-description {
    display: none; /* Hide descriptions on main gallery */
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 2rem;
    width: 90%;
    max-width: 1000px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

.lightbox-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.nav-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Photographer Modal styles */
.photographer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.photographer-modal-content {
    position: relative;
    margin: auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
}

.photographer-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.photographer-close:hover {
    color: #ff6b6b;
}

.photographer-info {
    color: #fff;
    padding: 1rem 0;

}

.photographer-info h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #fff;
}

.photographer-info h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #ccc;
    margin-bottom: 2rem;
    font-style: italic;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h4 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.info-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 0.8rem;
}

.info-section p:last-child {
    margin-bottom: 0;
}

.info-section strong {
    color: #fff;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .lightbox-content {
        width: 95%;
        padding: 1rem;
    }
    
    .lightbox-content img {
        max-height: 60vh;
    }
    
    .close {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.5rem;
    }
    
    .nav-btn {
        font-size: 1.5rem;
        padding: 0.8rem 1.2rem;
    }
    
    .lightbox-description {
        font-size: 1rem;
        margin-top: 0.5rem;
        padding: 0.8rem;
    }
    
    .photographer-modal-content {
        width: 95%;
        padding: 1rem;
        max-height: 85vh;
    }
    
    .photographer-info h2 {
        font-size: 2rem;
    }
    
    .photographer-info h3 {
        font-size: 1rem;
    }
    
    .info-section h4 {
        font-size: 1.1rem;
    }
    
    .info-section p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        padding: 0.5rem;
    }
    
    .lightbox-content img {
        max-height: 50vh;
    }
}

/* Loading animation */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #666;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Masonry grid adjustments */
.gallery-item {
    width: 33.333%;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .gallery-item {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 100%;
    }
}
