



@font-face {
    font-family: cheese;
    src: url("https://file.garden/ai_j0FB-2xOPAAOo/assets/free-cheese.italic.otf");
}

@font-face {
    font-family: InstrumItalic;
    src: url("https://file.garden/ai_j0FB-2xOPAAOo/assets/InstrumentSerif-Italic.ttf");
}

@font-face {
    font-family: Cordata;
    src: url("https://file.garden/ai_j0FB-2xOPAAOo/assets/SHPinscher-Regular.otf");
}

body{
    margin:0;
    padding:40px;
    background-image:url(/assets/fondomuseo.png);
    background-size:cover;
    background-attachment:fixed;
}


.arrow {
    position: fixed;
    scale: 8%;
    align-items: left;
    left: -720px;
    top: -310px;
    transition: transform 0.2s ease;
}

.arrow :hover {
    transition: transform 0.2s ease;
    transform: scale(1.2);
    filter: drop-shadow(0 5px 25px rgba(0, 0, 0, 0.7));
}

header{
    text-align:center;
    margin-bottom:60px;
}

h1{
    font-family:cheese;
    font-size:4rem;
    margin:0;
    color: #fff018;
}

h3{
    font-family:InstrumItalic;
    font-weight:normal;
}

.gallery{

    max-width:1400px;
    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));

    gap:25px;

}

.gallery{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:40px;
}

.frame {
    display: inline-flex;      /* en lugar de inline-block */
    align-items: center;
    justify-content: center;

    padding: 12px;

    background: #c9a03a;
    border: 8px ridge #e0bf66;
    box-shadow: 0 10px 20px rgba(0,0,0,.3);

    width: fit-content;
    height: fit-content;
}

.art{
    max-width:350px;
    max-height:450px;
}

.frame:hover{
    transform:translateY(-6px) scale(1.02);
}

.art{
    display:block;
    width:auto;
    height:auto;

    border:none;
    box-shadow:none;
}

.art:hover{

    transform:translateY(-5px);

}

/* ---------- LIGHTBOX ---------- */

#viewer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
    z-index: 999;
}

/* open state */
#viewer.show {
    opacity: 1;
    pointer-events: auto;
}

/* layout wrapper */
.viewer-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 90vw;
}

/* image centered */
#viewer-img {
    max-width: 70vw;
    max-height: 85vh;
    box-shadow: 0 20px 60px black;
    animation: zoom 0.2s;
}

/* right panel */
.info {
    width: 260px;
    color: white;
    font-family: Cordata;
}

.info h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.info p {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.9;
}

@keyframes zoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}




#viewer{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.88);

    display:flex;

    justify-content:center;
    align-items:center;

    opacity:0;
    pointer-events:none;

    transition:.25s;

    z-index:999;

}

#viewer.show{

    opacity:1;
    pointer-events:auto;

}

#viewer img{

    max-width:92vw;
    max-height:92vh;

    box-shadow:0 20px 60px black;

    animation:zoom .2s;

}

@keyframes zoom{

    from{
        transform:scale(.85);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }

}

#prev,
#next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:none;
    border:none;
    color:white;
    font-size:4rem;
    cursor:pointer;
    padding:20px;
    user-select:none;
    transition:.2s;
}

#prev{
    left:25px;
}

#next{
    right:25px;
}

#prev:hover,
#next:hover{
    transform:translateY(-50%) scale(1.15);
}



.artist {
    position: fixed;
    bottom: 0px;
    right: 70px;
    width: 200px;
    height: 200px; /* adjust */
    background-image: url("/assets/artista.png");
    background-size: contain;
    background-repeat: no-repeat;
    transition: 0.2s;
    z-index: 20;
}

.artist:hover {
    transform: rotate(3deg);
    background-image: url(/assets/wipletterboxd2.png);
}
