



.page-container {
    padding: 0 2rem;
}

.site-header, .album-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}
.site-header {
    justify-content: space-between;
}
.album-header {
    flex-direction: column;
    padding: 2rem 0;
    border-bottom: none;
}
.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.15rem;
    margin: 0;
}
.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-left: 2rem;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.back-link {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}
.back-link:hover {
    color: var(--accent-color);
}
.album-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.album-card {
    position: relative;
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    background-color: #fff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}
.album-card:hover {
    transform: scale(0.98);
}
.album-image-container {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}
.album-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.album-card:hover .album-image-container img {
    transform: scale(1.05);
}
.album-title-static {
    position: absolute;
    top: 20px;
    left: 20px;
    margin: 0;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.5rem;
    z-index: 2;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    padding: 1rem;
    background-image: linear-gradient(to top, var(--accent-color), transparent);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.album-card:hover .overlay {
    opacity: 1;
}
.album-title-hover {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: #fff;
    margin: 0;
    padding-bottom: 20px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
}
.image-grid-item {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    border-radius: 8px;
}
.image-grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.image-grid-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close-btn:hover {
    color: var(--accent-color);
}
.overlay-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
    position: relative;
}
.full-image {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    display: block;
}
.overlay-nav-btn {
    background: rgba(0, 0, 0, 0.5); 
    border: none;
    cursor: pointer;
    padding: 0;
    width: 60px;
    height: 60px;
    margin: 0 1rem;
    display: block; 
    border-radius: 50%; 
    position: relative;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.overlay-nav-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}
.overlay-nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: #fff;
    border-width: 0 4px 4px 0;
    display: block;
    transform: translate(-50%, -50%) rotate(-45deg);
}
.prev-arrow::before {
    transform: translate(-50%, -50%) rotate(135deg); 
}
.overlay-nav-btn:hover::before {
    border-color: var(--primary-color); 
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        padding: 2rem;
    }
    .nav-link {
        margin: 1rem 0.5rem;
    }
    .album-grid, .images-grid {
        gap: 1.5rem;
        padding: 1rem;
    }
    .images-grid {
        grid-template-columns: 1fr;
    }
    .overlay-nav-btn {
        width: 40px;
        height: 40px;
    }
    .overlay-nav-btn::before {
        border-width: 0 3px 3px 0;
        width: 15px;
        height: 15px;
    }
    .close-btn {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}