/* Project: Monopixel C V1.0.0
   Author: Gabriel Venier
   Website: gabrielvenier.com.ar/monopixel
   Description: Sitio autoadministrable para artistas
*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
blockquote,
dl,
dd {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    display: block;
}

img {
    vertical-align: middle;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

a {
    color: inherit;
    text-underline-offset: var(--gap-02);
    opacity: .5;
    transition: .3s;
}

a:hover {
    opacity: 1;
}

input,
button,
textarea,
select {
    font: inherit;
}

input:not([type="submit"]),
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    line-height: 1;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 1px dashed var(--cl--08);
    outline-offset: 1px;
}

.top_fade {
    position: fixed;
    top: -25px;
    left: 0;
    width: 100%;
    height: 10px;
    box-shadow: 0px 10px 20px hsl(0, 0%, 11%);
    z-index: 10000;
}

a {
    transition: .3s;
}

/* font */
@font-face {
    font-family: 'Inter';
    src: url('../font/site_font_inter.ttf') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --radius--s: .5em;
    --w-l: min(1300px, 85%);
    --w-m: min(800px, 95%);

    --gap-02: clamp(.19rem, .06vw + .34rem, .19rem);
    --gap-05: clamp(.41rem, .17vw + .52rem, .44rem);
    --gap-1: clamp(.9rem, .5vw + .8rem, 1rem);
    --gap-15: clamp(1.23rem, .78vw + .95rem, 1.39rem);
    --gap-2: clamp(1.97rem, 1.5vw + 1.23rem, 2.29rem);
    --gap-3: clamp(2.31rem, 1.86vw + 1.34rem, 2.70rem);

    --fs-h1: clamp(1.69rem, 1.2vw + 1.13rem, 1.94rem);
    --fs-h2: clamp(1.44rem, .96vw + 1.4rem, 1.64rem);
    --fs-h3: clamp(1.23rem, .78vw + 0.95rem, 1.39rem);
    --fs-h4: clamp(1.05rem, 0.62vw + 0.87rem, 1.18rem);
    --fs-h5: clamp(0.9rem, 0.5vw + 0.8rem, 1rem);
    --fs-h6: clamp(0.77rem, 0.4vw + 0.73rem, 0.85rem);
    --fs-p: clamp(0.9rem, 0.5vw + 0.8rem, 1rem);

    --lh-h1: 1.1;
    --lh-h2: 1.1;
    --lh-h3: 1.2;
    --lh-h4: 1.3;
    --lh-h5: 1.4;
    --lh-h6: 1.5;
    --lh-p: 1.6;

    --ls-h1: -0.01em;
    --ls-h2: -0.005em;
    --ls-h3: 0em;
    --ls-h4: 0.005em;
    --ls-h5: 0.01em;
    --ls-h6: 0.015em;
    --ls-p: 0.02em;

    --fw-headings: 400;

    --cl-texto-100: rgb(180, 180, 180);
    --cl-texto-050: rgba(180, 180, 180, .5);
    --cl-fondo-100: rgb(36, 36, 36);
    --cl-fondo-050: rgba(36, 36, 36, .5);
}


h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-h1);
    letter-spacing: var(--ls-h1);
    font-weight: var(--fw-headings);
}

h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    letter-spacing: var(--ls-h2);
    font-weight: var(--fw-headings);
}

h3 {
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    letter-spacing: var(--ls-h3);
    font-weight: var(--fw-headings);
}

h4 {
    font-size: var(--fs-h4);
    line-height: var(--lh-h4);
    letter-spacing: var(--ls-h4);
    font-weight: var(--fw-headings);
}

h5 {
    font-size: var(--fs-h5);
    line-height: var(--lh-h5);
    letter-spacing: var(--ls-h5);
    font-weight: var(--fw-headings);
}

h6 {
    font-size: var(--fs-h6);
    line-height: var(--lh-h6);
    letter-spacing: var(--ls-h6);
    font-weight: var(--fw-headings);
}

p {
    font-size: var(--fs-p);
    line-height: var(--lh-p);
    letter-spacing: var(--ls-p);
    font-weight: 400;
}

body {
    background: var(--cl-fondo-100);
    font-family: var(--font-base);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: var(--cl-texto-100);
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

.flex {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--gap-15);
    min-height: calc(100vh - 11rem);
    text-wrap: balance;
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
}

.gv_index {
    margin-inline: auto;
    width: var(--w-l);
}

.gv_index h1,
.gv_in h1 {
    margin-top: 33vh;
    font-size: calc(var(--fs-h1)*2);
    font-weight: 200;
    letter-spacing: .05em;
}

.gv_in {
    margin-top: var(--gap-2);
}

/* menu trabajos ----------------------------------------------------------------------------- */
.menu_trabajos {
    display: flex;
    gap: var(--gap-1);
    width: var(--w-l);
    align-items: flex-start;
    justify-content: flex-start;
    margin-inline: auto;
}

.menu_trabajos a {
    opacity: .5;
    transition: .3s;
}

.menu_trabajos a:hover {
    opacity: .8;
}

/* proyectos index --------------------------------------------------------------------------- */
.proyectos {
    margin-top: 3em;
    width: var(--w-l);
    display: grid;
    gap: var(--gap-15);
    margin-inline: auto;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    justify-items: start;
    align-items: start;
    align-content: start;
}

.proyectos .card {
    display: grid;
    gap: var(--gap-1);
    opacity: .5;
    transition: .3s;
    grid-template-columns: subgrid;
}

.proyectos .card:hover {
    opacity: .8;
}

.proyectos .card :first-child {
    margin-bottom: 0;
}

.proyectos .icon>svg {
    height: calc(var(--fs-h1)*2);
    opacity: .85;
}

/*  gal mods --------------------------------------------------------------------------------- */
body.galmod h1 {
    margin-top: 11vh;
    font-size: var(--fs-h3);
    font-weight: 200;
}

/* filtros menu ------------------------------------------------------------------------------ */
.filtros {
    width: var(--w-l);
    margin-inline: auto;
    margin-bottom: 2em;
}

.filtros button {
    background: transparent;
    color: var(--cl-texto-100);
    border: none;
    opacity: .5;
    transition: .3s;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: var(--gap-02);
}

.filtros button:hover {
    opacity: .8;
}

/* galerias ---------------------------------------------------------------------------------- */
[class*="wrapper_gal"] {
    width: 99%;
    margin-top: 3em;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: auto;
    /* Altura base del módulo */
    grid-auto-flow: dense;
    /* LA CLAVE: rellena huecos automáticamente */
    gap: var(--gap-02);
}

.item-galeria {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.item-galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--gap-02);
    /* Mantiene el encuadre artístico dentro del módulo */
}

.item-galeria p {
    font-size: var(--fs-h6);
    margin-top: 0;
    background: rgb(20, 20, 20);

    position: absolute;
    bottom: 1em;
    left: 1em;
    padding: 0 var(--gap-05);
    margin: 0;
    pointer-events: none;
}

/* Comportamiento de los sufijos */
.item-galeria.horizontal {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.item-galeria.vertical {
    grid-row: span 2;
    aspect-ratio: 1 / 2;
}

.item-galeria.grande {
    grid-column: span 2;
    grid-row: span 2;
}

/* Responsive total */
@media (max-width: 600px) {

    .item-galeria {
        aspect-ratio: 1/1;
    }

    .item-galeria.horizontal,
    .item-galeria.vertical,
    .item-galeria.grande {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* bottom_all ------------------------------------------------------------------------ */
.bottom_all {
    width: var(--w-l);
    margin-inline: auto;
    margin-top: 5em;
}

footer {
    width: var(--w--l);
    display: grid;
    gap: var(--gap-05);
    justify-items: center;
    color: var(--cl-texto-050);
    margin-block: 7em 3em;
    margin-inline: auto;
    text-align: center;
}

footer :last-child {
    display: flex;
    gap: var(--gap-02);
    align-items: center;
}

.pagina_error {
    display: grid;
    gap: var(--gap-1);
    padding: var(--gap-3);
    justify-items: start;
}