@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body{
    margin: 0;
    background-color: #000;
    color: #eee;
    font-family: Poppins;
    font-size: 12px;
    padding: 0;
}
a{
    text-decoration: none;
}
header{
    width: 1140px;
    max-width: 80%;
    margin: auto;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}
header a{
    color: #eee;
    margin-right: 40px;
}
/* carousel */
.carousel {
    width: 80vw;
    height: 80vh; /* Reduzido de 100vh para 70vh */
    margin: 5vh auto; /* Margem vertical para afastar do topo e base */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    background-color: #000;
}

.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.carousel .list .item .content{
    position: absolute;
    top: 10%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 20%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}
.carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .topic{
    color: #f1683a;
}
.carousel .list .item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel .list .item .buttons button{
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}

/* thumbail */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnail .item{
    width: 120px;
    height: 180px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail .item .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .title{
    font-weight: 500;
}
.thumbnail .item .content .description{
    font-weight: 300;
}
/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}



/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}




body {
    margin: 0;
    padding: 0;
}

/* .image-gallery {
    display: flex;
    flex-wrap: wrap; 
}

.image-container {
    position: relative;
    flex: 0 0 33.33%; 
    margin: 0;
    box-sizing: border-box; 
}

.image-container img {
    width: 100%;
    height: 500px; 
    object-fit: cover; 
    display: block;
} */

/* ===== Masonry (Pinterest/Tetris) sem cortes ===== */
.image-gallery{
  /* várias colunas, sem espaçamento */
  column-count: 4;
  column-gap: 0;

  /* suportes / prefixos */
  -webkit-column-count: 4;
  -webkit-column-gap: 0;
  -moz-column-count: 4;
  -moz-column-gap: 0;

  margin: 0; padding: 0; /* zero “gaps” externos */
}

.image-gallery .image-container{
  /* impede que um item parta entre colunas */
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;

  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.image-gallery .image-container img{
  width: 100%;
  height: auto;           /* mantém proporção original */
  display: block;         /* remove o espaço inline abaixo da imagem */
  vertical-align: bottom; /* segurança extra contra “linhas fantasmas” */
}

/* (Opcional) overlay ao passar o rato */
.image-gallery .image-container .overlay{
  position:absolute; inset:0;
  background:rgba(0,0,0,.35);
  color:#fff; display:flex; align-items:center; justify-content:center;
  opacity:0; transition:.25s;
  pointer-events:none; /* não cria “gap” nem muda o fluxo */
}
.image-gallery .image-container:hover .overlay{ opacity:1; }

/* Responsivo: ajusta número de colunas */
@media (max-width: 1200px){
  .image-gallery,
  .image-gallery{-webkit-column-count:3; -moz-column-count:3; column-count:3;}
}
@media (max-width: 900px){
  .image-gallery,
  .image-gallery{-webkit-column-count:2; -moz-column-count:2; column-count:2;}
}
@media (max-width: 560px){
  .image-gallery,
  .image-gallery{-webkit-column-count:1; -moz-column-count:1; column-count:1;}
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Cor do overlay */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .overlay {
    opacity: 1; /* Mostrar overlay ao passar o rato */
}

.img_logo {
    max-width: 100px;
    max-height: 100px;

}


@media (max-width: 678px) {
  .carousel {
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    height: auto;
    min-height: 370px;
    border-radius: 12px;
    margin: 0 auto 18px auto;
    box-shadow: none;
    overflow: visible;
  }
  .carousel .list {
    position: relative;
    height: auto;
    min-height: 330px;
    width: 100vw;
    max-width: 100vw;
  }
  .carousel .list .item {
    position: static !important;
    width: 100vw;
    height: auto;
    min-height: 340px;
    background: #111;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    display: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 14px #0006;
    margin: 0;
  }
  .carousel .list .item.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .carousel .list .item img {
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    height: 46vw;
    max-height: 350px;
    min-height: 180px;
    object-fit: contain; /* ou cover, testa as duas */
    object-position: center;
    display: block;
    border-radius: 12px 12px 0 0;
    background: #222;
    box-shadow: none;
    animation: none !important;
    position: static !important;
    margin: 0 auto;
  }
  .carousel .list .item .content {
    position: static !important;
    width: 94vw;
    max-width: 94vw;
    padding: 14px 4vw 12px 4vw;
    background: #111;
    color: #fff;
    border-radius: 0 0 12px 12px;
    margin: 0 auto;
    text-align: center;
    font-size: 1em;
    box-sizing: border-box;
    left: 0;
    right: 0;
    top: 0;
    transform: none;
  }
  .carousel .list .item .title,
  .carousel .list .item .topic {
    font-size: 1.18em !important;
    line-height: 1.2em;
    margin-bottom: 4px;
  }
  .carousel .list .item .author {
    font-size: 0.98em;
    letter-spacing: 2px;
  }
  .carousel .list .item .des {
    font-size: 1em;
    padding: 6px 0 10px 0;
  }
  .carousel .list .item .buttons {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 38px;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
  }
  .carousel .list .item .buttons button,
  .carousel .list .item .buttons a {
    font-size: 1em;
    padding: 5px 0;
    width: 98%;
    border-radius: 8px;
  }

  /* Esconder thumbnails e o tempo em mobile */
  .thumbnail,
  .carousel .time {
    display: none !important;
  }
  /* Ajustar arrows */
  .arrows {
    width: 88px;
    left: 50%;
    right: unset;
    transform: translateX(-50%);
    top: unset;
    bottom: 12px;
    gap: 14px;
    z-index: 1;
    position: absolute;
    justify-content: center;
  }
  .arrows button {
    width: 34px;
    height: 34px;
    font-size: 1.25em;
    border-radius: 50%;
    background: #232323ee;
    color: #fff;
    border: none;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .arrows button:hover {
    background: #f1683a;
    color: #fff;
  }
  /* Desativa todas as animações de transição que possam cortar imagens */
  .carousel .list .item img,
  .carousel .list .item .content > * {
    animation: none !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .carousel .list .item {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(.66,.03,.29,1.01);
  }
  .carousel .list .item.active {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s cubic-bezier(.66,.03,.29,1.01);
  }
}












@media (max-width: 768px) {
  .image-gallery {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .image-container {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .image-container img {
    height: auto; /* Opcional: assim a altura adapta-se melhor em telemóveis */
    min-height: 200px; /* Ajusta conforme preferires */
  }
}


/* ===== Masonry (tetris) – sem cortes, sem margens ===== */
.masonry-gallery { margin: 0; }
.masonry{
  column-count: 3;            /* desktop: 3 colunas */
  column-gap: 0;              /* sem espaçamento entre colunas */
}

@media (max-width: 1200px){ .masonry{ column-count: 3; } }
@media (max-width: 992px) { .masonry{ column-count: 2; } }
@media (max-width: 576px) { .masonry{ column-count: 1; } }

.masonry a{
  break-inside: avoid;        /* impede quebras no meio do item */
  display: block;
  position: relative;
  margin: 0;                  /* sem margens verticais */
}

.masonry img{
  width: 100%;
  height: auto;               /* mantém proporção original */
  display: block;
  border: 0;
}

/* Hover “+” suave (opcional) */
.masonry a::after{
  content: "+";
  position: absolute; inset: 0;
  color: #fff; font-weight: 700; font-size: 38px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.25);
  opacity: 0; transition: .2s ease;
}
.masonry a:hover::after{ opacity: 1; }

/* Se quiseres um tom castanho do tema em vez de preto, troca o background acima */


/* ===== Lightbox (overlay) ===== */
.lb{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
  z-index: 9999;
}
.lb.open{ opacity: 1; pointer-events: auto; }

.lb-figure{ margin:0; max-width: 92vw; max-height: 92vh; }
.lb-figure img{ display:block; max-width:100%; max-height: calc(92vh - 48px); border-radius: 6px; }
.lb-figure figcaption{
  color:#fff; text-align:center; margin-top:10px;
  font: 500 16px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  opacity:.9;
}

.lb-close,.lb-prev,.lb-next{
  position: fixed; top:50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); border:0; color:#fff; width:44px; height:44px;
  border-radius:999px; font-size:26px; display:grid; place-items:center;
  cursor:pointer; transition: background .2s ease;
}
.lb-close{ top:18px; right:18px; transform:none; font-size:28px; }
.lb-prev{ left:18px; }
.lb-next{ right:18px; }
.lb-close:hover,.lb-prev:hover,.lb-next:hover{ background: rgba(255,255,255,.15); }

@media (max-width: 768px){
  .lb-figure figcaption{ font-size:14px; }
}







  












  





