
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --primary: #03DAC6;
    --text-color: #e0e0e0;
    --text-muted: #aaa;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 30px; /* Space for the credit link */
}

.made-with {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 2000;
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    border-bottom: 1px solid #333;
}

.made-with a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.made-with a:hover {
    text-decoration: underline;
}

header {
    background-color: var(--card-bg);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
}

h1 { margin: 0; color: var(--primary); font-size: 24px; }

.btn {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn:hover {
    background-color: var(--primary);
    color: #121212;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
}

.photo-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #333;
}

.photo-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: 10px;
    font-size: 13px;
    color: var(--text-muted);
    background-color: rgba(0,0,0,0.3);
    border-top: 1px solid #333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.modal-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-content {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 60px;
    cursor: pointer;
    padding: 20px;
    z-index: 1001;
}

.prev { left: 20px; }
.next { right: 20px; }

#caption {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    z-index: 1001;
}

/* Transitions */
.transition-fade { opacity: 0; }
.transition-morph { opacity: 0; transform: scale(1.5) rotate(5deg); filter: blur(10px); }
.transition-slide-next { transform: translateX(100%); opacity: 0; }
.transition-slide-prev { transform: translateX(-100%); opacity: 0; }
.transition-rotate { transform: rotateY(90deg); opacity: 0; }
