:root {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --accent-color: #ffffff;
    --overlay-color: rgba(0, 0, 0, 0.4);
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 300;
    letter-spacing: 0.05em;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden { display: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

body.landing-page {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}


.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--overlay-color);
    z-index: 0;
}

.center-content {
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.enter-button {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    background-color: rgba(0,0,0,0.3);
    cursor: pointer;
}

.enter-button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.photography-page { overflow-y: auto; }

.header {
    padding: 40px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(5px);
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.back-arrow {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.back-arrow:hover { opacity: 1; }
.back-arrow svg { width: 24px; height: 24px; fill: currentColor; }

.album-grid, .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.album-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #2a2a2a;
    transition: box-shadow 0.3s ease; 
}

.album-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 2;
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.album-card:hover .album-cover {
    transform: scale(1.05);
}

.album-info {
    position: absolute;
    bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    text-align: center;
    opacity: 1;
    transition: opacity var(--transition-speed);
}

.album-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.photo-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #2a2a2a;
    cursor: pointer;
}
.photo-item a { display: block; width: 100%; height: 100%; }
.photo-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.photo-item:hover img { transform: scale(1.05); }

.js-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    touch-action: none; 
}

.js-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-track {
    position: relative;
    width: 80vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    transform-style: preserve-3d;
}

.lightbox-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}
.lightbox-wrapper.fading-out {
    opacity: 0;
}

.lightbox-card {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
    background-color: #000;
}

.lightbox-close {
    position: absolute;
    top: 30px; right: 30px;
    background: none; border: none;
    color: white; cursor: pointer;
    z-index: 10001;
    padding: 10px;
    font-size: 40px; line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}
.lightbox-close:hover {
    opacity: 1; transform: scale(1.1);
}

@media (max-width: 768px) {
    .site-title { font-size: 1.8rem; }
    .enter-button { padding: 12px 30px; font-size: 0.9rem; }
    .album-grid { grid-template-columns: 1fr; gap: 20px; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .header { padding: 20px 10px; min-height: 80px; }
    .back-arrow { left: 15px; }
    
    .lightbox-track { width: 100vw; height: 80vh; }
    .lightbox-card { max-width: 95%; }
    .lightbox-close { top: 20px; right: 20px; }
}
