*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: #0c0f0a;
    background: #fff;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

.site {
    width: 100%;
    padding: 1rem;
}

.site-header,
.site-main,
.site-footer {
    width: 100%;
}

.site-header {
    padding: 1.5rem 1rem;
    text-align: center;
}

.brand {
    margin-bottom: 1rem;
}

.brand__logo {
    max-width: 256px;
    margin: 0 auto;
}

.brand__subtitle {
    margin: 0;
    color: #0c0f0a;
}

.menu-toggle {
    display: none;
    margin: 0 auto 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #111;
    background: transparent;
    cursor: pointer;
}

.site-nav__list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__item--active a {
    font-weight: bold;
}

.hero {
    width: 100%;
}

.hero__media {
    margin: 0 auto;
    max-width: 640px;
}

.hero__image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.site-footer {
    padding: 2rem 1rem;
    text-align: center;
}

.copyright {
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

/* ------------------------------------------------------------
   Notes thumbnails grid
------------------------------------------------------------ */
.notes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px !important;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.note-thumb img {
    width: 100%;
    height: auto;
}

.detail-container {
    text-align: center;
}

.detail-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    border-radius: 6px;
}

.detail-caption {
    text-align: center;
    font-size: 1.1rem;
    color: #444;
    margin: 0;
}

.detail-nav {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.detail-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.detail-nav a:hover {
    color: #000;
}

.detail-nav .disabled {
    color: #aaa;
}

.detail-image-nav {
    position: relative;
    display: inline-block; /* keeps overlay sized to the image */
    max-width: 100%;
}

.detail-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.img-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 2;
    background: transparent;
    cursor: pointer;
}

/* Left half: "siguiente" (next_link) */
.img-nav-left {
    left: 0;
}

/* Right half: "anterior" (prev_link) */
.img-nav-right {
    right: 0;
}

.img-nav.disabled {
    cursor: default;
    pointer-events: none;
}

/* ------------------------------------------------------------
   Responsive adjustments
------------------------------------------------------------ */
@media (detail-containeridth: 900px),
@media (max-width: 600px) {
    .notes-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        display: none;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0.25rem;
    }
}
