/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e1e4e8;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    line-height: 1.4;
    background-color: var(--bg-color);
    overflow-x: hidden;
    font-size: 1.2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    margin-top: 25px;
    clear: both;
}

p {clear: both;}

figure.flt {
    display: block;
    max-width: 20%;
    height: auto;
    float: left;
    margin: 15px;
}

figcaption {
    font-style: italic;
    font-size:0.6em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a.light {
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8em;
    color: var(--light-text);
    transition: var(--transition);
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.header-small {
    padding: 40px 20px;
    margin-bottom: 40px;
}

.site-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -1px;
}

.site-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
}

.back-link {
    display: inline-block;
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: var(--transition);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.album-name {
    font-size: 2.5rem;
}

.logo-img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 1.3rem;
    opacity: 0.9;
    float: left;
}

/* ==========================================
   ALBUMS SECTION
   ========================================== */
.albums-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.album-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    background: var(--light-bg);
    aspect-ratio: 4/3;
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    color: white;
}

.album-card-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.album-count {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ==========================================
   GALLERY (MASONRY)
   ========================================== */
.gallery {
    margin-bottom: 60px;
}

.gallery-item {
    width: calc(33.333% - 20px);
    margin-bottom: 20px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    opacity: 0.95;
}

/* ==========================================
   LOADING STATE
   ========================================== */
.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--light-text);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--light-bg);
    padding: 30px 20px;
    text-align: center;
    color: var(--light-text);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
}

/* ==========================================
   PHOTOSWIPE CUSTOMIZATION
   ========================================== */
.pswp__bg {
    background: rgba(0, 0, 0, 0.95);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .gallery-item {
        width: calc(50% - 15px);
    }

    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    h2 {font-size: 1.8rem;}
    h3 {font-size: 1.7rem;}
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }

    .site-subtitle {
        font-size: 1.1rem;
    }

    .album-name {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .albums-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item {
        width: 100%;
    }

    .header {
        padding: 60px 20px;
    }

    h2 {font-size: 1.8rem;}
    h3 {font-size: 1.5rem;}
    p {font-size:1rem;}
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
    }

    .site-subtitle {
        font-size: 1rem;
    }

    .album-card-title {
        font-size: 1.5rem;
    }

    .header {
        padding: 40px 20px;
        margin-bottom: 40px;
    }

    h3 {font-size: 1.4rem;}
    figure {max-width: 30%;}
    p {font-size:1.3rem;}
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.album-card,
.gallery-item {
    animation: fadeIn 0.5s ease-out;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}
