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

body {
    background: #eee;
    font-family: 'Raleway', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Typography */
h1 {
    font-family: 'Gruppo', Helvetica, Arial, sans-serif;
    font-size: 44pt;
    margin-left: 40px;
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 1;
}

h2 {
    font-family: 'Barlow', Helvetica, Arial, sans-serif;
    font-size: 20pt;
    margin-left: 40px;
    margin-top: 0;
    padding-top: 0;
}

p {
    background: #eee;
    font-family: 'Raleway', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin-left: 40px;
    margin-right: auto;
    max-width: 900px;
}

/* Layout */
main {
    padding-bottom: 4rem;
}

/* Gallery */
.gallery {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    margin-bottom: 0.5rem;
}

/* Navigation */
.back-link {
    display: inline-block;
    margin-top: 1rem;
    margin-right: 40px;
    color: #333;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    transition: color 0.3s ease;
    float: right;
}

.back-link:hover {
    color: #666;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: #bbb;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    max-width: 80%;
}

/* Footer */
footer {
    color: #2c3e50;
    text-align: left;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 40px;
    background-color: #eee;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
} 
