body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8; color: #1e293b;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
@media (max-width: 850px) { 
    .container { margin-top: 140px; }
    h1 { font-size: 2.5rem; }
    .tagline { font-size: 1rem; margin-bottom: 30px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: 200px; }
    .nav-arrow { padding: 10px; font-size: 30px; }
    .close-lightbox { right: 20px; top: 10px; font-size: 35px; }
}

.container {
    max-width: 1200px;
    margin: 120px auto 80px;
    padding: 0 20px;
}
h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(to right, #2563eb, #14b8a6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tagline {
    text-align: center; font-size: 1.2rem; color: #475569; font-weight: 500; margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 220px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item.large { grid-row: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); z-index: 2; }
.gallery-item:hover img { transform: scale(1.08); }

.overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay { opacity: 1; }
.overlay h3 { margin: 0 0 5px 0; font-size: 1.3rem; }

.view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none; /* Ensures the click still passes through to the image */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.gallery-item:hover .view-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Lightbox Styles */
.lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.lightbox-content { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease forwards; }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-lightbox { position: absolute; top: 20px; right: 40px; color: #ffffff; font-size: 45px; cursor: pointer; transition: color 0.3s; }
.close-lightbox:hover { color: #2563eb; }

.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 50px; font-weight: bold; cursor: pointer; user-select: none; transition: color 0.3s; padding: 20px; }
.nav-arrow:hover { color: #2563eb; }
.left-arrow { left: 20px; }
.right-arrow { right: 20px; }