@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand+SC&display=swap');

@font-face {
    font-family: 'Brittoone Regular';
    src: url('../../Fonts/Brittoone-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Brittoone Regular', sans-serif;
    background-color: #1b1014; /* fundo escuro */
    color: #ffd7e0; /* texto claro rosado */
    padding-top: 20px;
    min-height: 100vh;
}

/* Botão Voltar */
.back-to-main {
    display: block;
    width: fit-content;
    margin: 0 auto 30px auto;
    padding: 12px 25px;
    background-color: #ff5f91; /* rosa forte */
    color: #1b1014;
    text-decoration: none;
    border: 4px solid #ffd7e0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.back-to-main:hover {
    background-color: #ffd7e0;
    color: #1b1014;
    border-color: #ff8fb8;
    transform: scale(1.05);
}

/* Layout geral */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch; /* <- força as colunas a ficarem da mesma altura */
    gap: 25px;
    padding: 0 20px;
    max-width: 1700px;
    margin: 0 auto;
}

/* Painéis laterais */
.side-panel {
    width: 280px;
    flex-shrink: 0;
    padding: 25px;
    background-color: #2a1820;
    border: 4px solid #ff8fb8;
    border-radius: 10px;
    box-shadow: 4px 4px 0px #000;
    color: #ffd7e0;
    height: auto; /* altura ajustável */
    max-height: none; /* remove limite */
    overflow: visible; /* sem rolagem interna */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.side-panel h2 {
    color: #ff5f91;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8em;
    border-bottom: 3px dashed #ff8fb8;
    padding-bottom: 10px;
}

.side-panel p, .side-panel li {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.1em;
}

.side-panel ul {
    list-style-type: none;
    padding-left: 0;
}

.side-panel li::before {
    content: "🩸 ";
    color: #ff8fb8;
    margin-right: 5px;
}

.side-panel a {
    color: #ff8fb8;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.side-panel a:hover {
    color: #ff5f91;
    text-decoration: underline;
}

/* Conteúdo principal */
.container {
    flex: 1 1 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

h1 {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    font-size: 3em;
    color: #ff8fb8;
}

/* Galeria */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    flex-grow: 1; /* faz a galeria crescer pra nivelar altura */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    border: 4px solid #ff5f91;
    background-color: #2a1820;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 3px 3px 0px #000;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: #ffd7e0;
    box-shadow: 2px 2px 0px #000;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-img.loaded {
    opacity: 1;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #ff8fb8;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 16, 20, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: "Sniglet", system-ui;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    padding: 10px;
}

.lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease;
    cursor: grab;
}

.lightbox-img:active {
    cursor: grabbing;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ff8fb8;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-nav {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.lightbox-prev, .lightbox-next {
    background: #ff5f91;
    color: #1b1014;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-family: "Sniglet", system-ui;
    font-size: 16px;
    transition: background 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: #ffd7e0;
}

.lightbox-date {
    bottom: -40px;
    left: 0;
    color: #ffd7e0;
    font-size: 14px;
}

/* Responsivo */
@media (max-width: 1200px) {
    .page-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .side-panel {
        width: 90%;
        max-width: 600px;
        margin-bottom: 25px;
        order: 1;
    }

    .container {
        order: 2;
        width: 100%;
    }
}
.tattosmaneiras{
    width: 400px;
    padding-bottom: 20px;
}

.titulo-icone {
    padding-top: 10px;
    width: 60px;
    display: block;
    margin: 0 auto 0px;
    transition: transform 0.2s ease;
}

.titulo-icone:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .back-to-main {
        font-size: 16px;
        padding: 10px 20px;
    }
    h1 {
        font-size: 2.5em;
    }
    .side-panel {
        width: 95%;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
