/* Global */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #333;
}

header {
    text-align: center;
    padding: 2rem 1rem;
}

header h1 {
    margin-bottom: 0.5rem;
}

header p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    background: #eee;
}

/* Main Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: scale(1.03);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card h2 {
    margin: 1rem;
}

.card p {
    margin: 0 1rem 1rem;
}

/* Album Pages */
.back {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: #0077cc;
}

.album {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.album img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.85);
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #ccc;
}

/* Lightbox Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    transition: 0.2s;
    opacity: 0.8;
}

.arrow:hover {
    opacity: 1;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}
