
/* =====================================================
   ARTWORK — RESET
===================================================== */

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

html {
    background: #F9F8F5;
}

body {
    background: #F9F8F5;
    color: #000;
    font-family: Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

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


/* =====================================================
   PÁGINA
===================================================== */

.artwork-page {
    width: 100%;
    min-height: 100vh;
    padding: 28px 2.5vw 25px;
    background: #F9F8F5;
}


/* =====================================================
   ARTWORK — TÍTULO Y PRESENTACIÓN
===================================================== */

.artwork-heading {
    width: 100%;

    margin-top: 105px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 50px;
}

/* TÍTULO — OBVIOUSLY */

.artwork-heading h1 {
    font-family: "obviously", sans-serif !important;

    font-size: clamp(90px, 13.5vw, 210px);
    font-weight: 900;

    line-height: 0.82;
    letter-spacing: -0.075em;

    color: #000;
    white-space: nowrap;
}

/* INTRODUCCIÓN — HELVETICA */

.artwork-intro {
    width: 290px;
    flex-shrink: 0;

    margin-bottom: 8px;
}

.artwork-intro span {
    display: block;

    margin-bottom: 15px;

    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;

    letter-spacing: 0.04em;
    color: #999;
}

.artwork-intro p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;

    line-height: 1.35;
    letter-spacing: -0.025em;

    color: #000;
}


/* =====================================================
   NAVEGACIÓN ARTWORK
===================================================== */

.artwork-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* LOGO */

.artwork-logo {
    display: block;

    font-family: "obviously", sans-serif !important;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.02em;
    transform: translateY(-4px);
}

/* MENÚ — MONTSERRAT */

.artwork-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.artwork-menu a {
    font-family: "montserrat", sans-serif !important;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0;

    color: #000;
    opacity: 1;

    transition: opacity 0.3s ease;
}

.artwork-menu a:hover {
    opacity: 0.5;
}

/* ARTWORK ACTIVO: MISMO NEGRO */

.artwork-menu .active {
    color: #000;
    opacity: 1;
}

/* GRAPHIC DESIGNER — HELVETICA */

.artwork-role {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;

    color: #666;
    margin-left: auto;
}


/* =====================================================
   GALERÍA — SCROLL HORIZONTAL
===================================================== */

.artwork-gallery {
    width: 100%;

    display: flex;
    flex-wrap: nowrap;
    gap: 8px;

    margin-top: 180px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* TAMAÑO ORIGINAL DE LAS IMÁGENES */

.artwork-item {
    flex: 0 0 calc((100% - 32px) / 5);
    min-width: 0;

    display: block;
    position: relative;
}

/* IMÁGENES */

.artwork-image {
    width: 100%;
    aspect-ratio: 0.85 / 1;
    overflow: hidden;
    background: #EAE7E1;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    transition: transform 0.6s ease;
}

/* AMPLIACIÓN AL PASAR EL RATÓN */

.artwork-item:hover {
    z-index: 5;
}

.artwork-item:hover .artwork-image img {
    transform: scale(1.10);
}


/* =====================================================
   INFORMACIÓN DE CADA IMAGEN
===================================================== */

.artwork-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 10px;

    font-family: "montserrat", sans-serif !important;
    font-size: 13px;
    font-weight: 400;
}

.artwork-caption span:last-child {
    color: #777;
}


/* =====================================================
   IMÁGENES
===================================================== */

.artwork-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: zoom-in;

    transition: transform 0.6s ease;
}


/* =====================================================
   HOVER
===================================================== */

.artwork-item:hover {
    z-index: 5;
}

.artwork-item:hover .artwork-image img {
    transform: scale(1.10);
}


/* =====================================================
   FOOTER ARTWORK
===================================================== */

.artwork-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;

    margin-top: 100px;

    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
}

.artwork-footer span:nth-child(1) {
    text-align: left;
}

.artwork-footer span:nth-child(2) {
    text-align: center;
}

.artwork-footer span:nth-child(3) {
    text-align: right;
}


/* =====================================================
   VISOR DE IMÁGENES — LIGHTBOX
===================================================== */

.artwork-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 5vh 5vw;

    background: rgba(0, 0, 0, 0.92);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.artwork-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.artwork-lightbox img {
    display: block;

    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

/* BOTÓN CERRAR */

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;

    border: none;
    background: none;

    color: #fff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 42px;
    font-weight: 300;

    cursor: pointer;
    line-height: 1;
}

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

@media (max-width: 700px) {
    .artwork-lightbox {
        padding: 20px;
    }

    .artwork-lightbox img {
        max-width: 100%;
        max-height: 85vh;
    }

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


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 700px) {

    .artwork-page {
        padding: 22px 20px;
    }

    .artwork-header {
        flex-wrap: wrap;
        gap: 18px;
    }

    .artwork-logo {
        font-size: 19px;
    }

    .artwork-menu {
        gap: 14px;
    }

    .artwork-menu a {
        font-size: 12px;
    }

    .artwork-role {
        display: none;
    }

   .artwork-gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    margin-top: 140px;
}

.artwork-item {
    flex: 0 0 65%;
}

    .artwork-caption {
        font-size: 11px;
    }

    .artwork-footer {
        margin-top: 75px;
        font-size: 11px;
    }

}
