* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #121212;
    color: #ddd;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #1f1f1f;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #333;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 900;
    text-shadow: 1px 1px 5px #000;
    letter-spacing: 2px;
    font-family: 'Impact', sans-serif;
}

.gallery {
    flex-grow: 1;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 10px;
}

.row {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 40px;
}

.photo-card {
    max-width: 250px;
    text-align: center;
    background: #222;
    border-radius: 8px;
    box-shadow: 0 0 10px rgb(255, 255, 255);
    transition: transform 0.2s ease;
}

.photo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ffffff;
}

.photo-card img {
    width: 100%;
    height: 400px;
    border-radius: 8px 8px 0 0;
    display: block;
    object-fit: cover;
}

.caption {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 10px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-top: 1px solid #444;
    cursor: pointer;
}

.caption:hover {
    color: #f1faee;
    background: #3e3e3e
}

footer {
    background: #1f1f1f;
    padding: 15px 0;
    text-align: center;
    color: #777;
    border-top: 2px solid #333;
    font-size: 0.9rem;
    margin-top: auto;
}

main.detail {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: #222;
    border-radius: 10px;
    box-shadow: 0 0 15px rgb(255, 255, 255);
    color: #eee;
    text-align: center;
}

main.detail img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px #ffffff;
}

main.detail h2 {
    margin-top: 0;
    color: #ffffff;
    font-family: 'Impact', sans-serif;
    font-size: 2rem;
}

main.detail p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.back-link {
    color: #f1faee;
    background: rgb(0, 0, 0);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.back-link:hover {
    background: #3e3e3e;
}