/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIÁVEIS */
:root {
    --red: #d2232a;
    --yellow: #ffd400;
    --dark: #222;
    --gray: #f5f5f5;
    --radius: 12px;
    --container: 1100px;
}

/* BASE */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--dark);
    background: var(--gray);
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: var(--container);
    margin: auto;
    padding: 40px 20px;
}

/* HEADER */
header {
    background: linear-gradient(90deg, var(--red), var(--yellow));
    color: #fff;
    padding: 15px 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* LOGO */
.logo {
    width: 55px;
    border-radius: 10px;
}

/* NAV */
nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    opacity: 0.8;
}


/* =========================
   GALERIA GRID
========================= */
.galeria {
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
}

.galeria h1 {
    text-align: center;
    color: #d2232a;
    margin-bottom: 30px;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.grid-galeria img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.grid-galeria img:hover {
    transform: scale(1.05);
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.lightbox.active {
    display: flex;
}

/* BOTÃO FECHAR */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* BOTÕES NAVEGAÇÃO */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 10px;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* FOOTER */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
}