/* ==========================================================
   LAYOUT.CSS
   Estructura principal del sitio
========================================================== */

/* ==========================================================
   CABECERA
========================================================== */

.header {

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    height: var(--header-height);

    padding: 0 20px;

    background: var(--bg);

    border-bottom: 1px solid var(--border);

}

.header h1 {

    margin: 0;

}

.header span {

    margin-top: 4px;

    color: var(--muted);

    font-size: 1.1rem;

    letter-spacing: .08em;

}


/* ==========================================================
   BOTÓN MENÚ
========================================================== */

.menu-toggle {

    display: none;

    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 1.8rem;

    line-height: 1;

}


/* ==========================================================
   GRID PRINCIPAL
========================================================== */

.layout {

    display: grid;

    grid-template-columns: var(--sidebar-width) 1fr;

    height: calc(100dvh - var(--header-height));

    overflow: hidden;

}


/* ==========================================================
   SIDEBAR
========================================================== */

.sidebar {

    background: var(--bg);

    border-right: 1px solid var(--border);

    padding: 25px 20px;

    overflow-y: auto;

}


.collection-title {

    font-size: 1.2rem;

    font-weight: 600;

    margin-bottom: 25px;

}



.sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}




.sidebar li {

    margin: 0;

}

.sidebar a {

    display: block;

    padding: 3px 0;

}

.sidebar a:hover {

    transform: translateX(4px);

}

.sidebar li.active a {

    font-weight: 600;

}


/* ==========================================================
   CONTENIDO
========================================================== */

.content {

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    padding: 20px;

    min-width: 0;

    min-height: 0;

}


/* ==========================================================
   GALERÍA
========================================================== */

.gallery-container {

    flex: 1;

    display: flex;

    min-height: 0;

}


/* ==========================================================
   ABOUT
========================================================== */

.about {

    max-width: 900px;

    margin: 0 auto;

}


/* ==========================================================
   OVERLAY MENÚ
========================================================== */

.menu-overlay {

    display: none;

}


/* ==========================================================
   ESCRITORIOS MUY GRANDES
========================================================== */

@media (min-width:1600px) {

    .layout {

        grid-template-columns: 260px 1fr;

    }

    .content {

        padding: 40px;

    }

}