/* ===== MY WORK - GALLERIA ===== */

.work-layout {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--spacing-l);
}

.work-header {
    margin-bottom: var(--spacing-xl);
}

.work-title {
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 0.9;
    color: #818479;
    font-family: "Lexend Giga", sans-serif;
    margin: 0;
    letter-spacing: 2px;
}

.gallery-grid {
    columns: 2;
    gap: var(--spacing-l);
}

.gallery-item {
    break-inside: avoid;
    display: block;
    margin-bottom: var(--spacing-l);
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 0;
}

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

.gallery-item::after {
    content: attr(data-title);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.5);
    color: #818479;
    font-family: "Lexend Giga", sans-serif;
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: 2px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item p {
    margin: 10px 0 0 0;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-family: "Abhaya Libre", serif;
    color: var(--text);
    letter-spacing: 0.5px;
}

.work-footer {
    margin-top: var(--spacing-xl);
    text-align: left; /* ← vasen */
}

.work-footer .back-link {
    color: var(--heading);
    text-decoration: none;
    font-family: "Abhaya Libre", serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    letter-spacing: 1px;
}

.work-footer .back-link:hover {
    opacity: 0.6;
}

@media (max-width: 1280px) {
    .work-title {
        font-size: clamp(2.5rem, 6vw, 6rem);
    }
}

@media (max-width: 768px) {
    .work-layout {
        padding: var(--spacing-s);
    }

    .gallery-grid {
        columns: 1;
        gap: var(--spacing-m);
    }

    .work-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: var(--spacing-m);
    }

    .work-footer {
        text-align: left;
    }
}
