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

body {
    background: #fff;
    font-family: Consolas, 'Courier New', monospace;
    line-height: 1.5;
    padding: 40px 60px;
}

.back-link {
    margin-bottom: 60px;
}

.back-link a {
    font-size: 14px;
    color: #000;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

.project-section {
    margin-bottom: 120px;
}

.project-section h2 {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 40px;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    display: block;
    cursor: pointer;
    border: 1px solid #ddd;
}

.project-description {
    padding-left: 40px;
    display: flex;
    align-items: center;
    position: relative;
}

.project-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: #ddd;
}

.project-description p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* Cueros special layout */
.cueros-special {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 120px;
}

/* Ceramica specific styles */
.ceramica-legend {
    text-align: center;
    margin-bottom: 40px;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.ceramica-bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 80px;
    padding: 0 60px;
}

.ceramica-bottom-grid img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    border: 1px solid #ddd;
}

.cueros-special .cueros-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 20px;
    align-items: center;
}

.cueros-main-image {
    width: 100%;
}

.cueros-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    display: block;
    cursor: pointer;
    border: 1px solid #ddd;
}

.cueros-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.cueros-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    display: block;
    cursor: pointer;
    border: 1px solid #ddd;
}

/* Personal layout */
.personal-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    margin-bottom: 30px;
}

.personal-featured {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.personal-featured img {
    max-width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    border: 1px solid #ddd;
}

.personal-featured-double {
    display: flex;
    gap: 10px;
    max-width: 85%;
    margin: 0 auto 30px;
}

.personal-featured-double img {
    max-width: 100%;
    flex: 1;
}

.personal-video {
    width: 100%;
    max-width: 70%;
    margin: 0 auto 30px;
}

.personal-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 1px solid #ddd;
}

.personal-grid {
    column-count: 4;
    column-gap: 10px;
}

.personal-grid img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    break-inside: avoid;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: block;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: opacity 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .project-section h2 {
        font-size: 24px;
    }

    .cueros-special {
        padding: 0 20px;
    }

    .cueros-special .cueros-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cueros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ceramica-legend {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .ceramica-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 40px;
        padding: 0 20px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
