/* ===== EFEITOS DE ANIMAÇÃO =====*/
.fadeIn {
  animation-name: fadeIn;
  animation-duration: 1s;
}

.animated {
  animation-duration: 1s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== FIGURA SLOTS - GALERIA DE IMAGENS =====*/
section.figure-slots {
  display: flex;
  width: 42.5%;   /* metade do restante (75% / 2) */
  height: 100%;
  align-items: stretch;
  justify-content: stretch;
  margin: 0;
  padding: 0;
}

section.figure-slots figure {
  flex: 1;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: #eee;
  overflow: hidden;
  justify-content: center;
  filter: grayscale(35%);
  transition: filter 0.3s ease;
  position: relative;
  transform-origin: center;

}


section.figure-slots figure:hover {
  filter: grayscale(0);
}

section.figure-slots figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

/* ===== LAYOUT DIREITA (LR - LEFT ROTATE) =====*/
section.figure-slots.lr figure {
  transform: skewX(-25deg);
  box-shadow:
    3px 0 8px rgba(0, 0, 0, 0.4),
    inset -2px 0 0 rgba(255,255,255,0.6);
}

section.figure-slots.lr figure img {
   transform: skewX(25deg) scaleX(1.28);
}

section.figure-slots.lr figure img:hover {
  transform: skewX(25deg) scaleX(1.35);
}

section.figure-slots.lr figure::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 2px;
  height: 100%;
  pointer-events: none;
  background: rgba(255,255,255,0.4);
  box-shadow:
    0 0 4px rgba(255,255,255,0.6),
    0 0 8px rgba(255,255,255,0.3);
}

section.figure-slots.lr figure:first-child {
  z-index: 3;
}

section.figure-slots.lr figure:nth-child(2) {
  z-index: 2;
}

section.figure-slots.lr figure:nth-child(3) {
  z-index: 1;
}

section.figure-slots.lr figure:nth-child(4) {
  z-index: 0;
}

/* ===== LAYOUT ESQUERDA (RL - RIGHT ROTATE) =====*/
section.figure-slots.rl figure {
  transform: skewX(25deg);
  box-shadow:
    -3px 0 8px rgba(0, 0, 0, 0.4),
    inset 2px 0 0 rgba(255,255,255,0.6);
}

section.figure-slots.rl figure img {
  transform: skewX(-25deg) scaleX(1.28);
}

section.figure-slots.rl figure img:hover {
  transform: skewX(-25deg) scaleX(1.35);
}

section.figure-slots.rl figure::after {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 2px;
  height: 100%;
  pointer-events: none;
  background: rgba(255,255,255,0.4);
  box-shadow:
    0 0 4px rgba(255,255,255,0.6),
    0 0 8px rgba(255,255,255,0.3);
}

section.figure-slots.rl figure:first-child {
  z-index: 3;
}

section.figure-slots.rl figure:nth-child(2) {
  z-index: 2;
}

section.figure-slots.rl figure:nth-child(3) {
  z-index: 1;
}

section.figure-slots.rl figure:nth-child(4) {
  z-index: 0;
}



/* ==== GALERIA FOTOS POSTS ======*/

.galeria-img,
.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    transition: transform .3s ease;
}

.galeria-img:hover,
.card-img-top:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


/* LIGHTBOX */

.lightbox {
    display: none; /* MUITO IMPORTANTE */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);

    justify-content: center;
    align-items: center;
}

.lightbox-conteudo {
    text-align: center;
    max-width: 90%;
}

.lightbox img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
}

.fechar {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* CONTROLES NA PARTE INFERIOR */

.controles {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.seta {
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 18px;
    border: 1px solid white;
    border-radius: 30px;
    transition: all .3s ease;
}

.seta:hover {
    background: white;
    color: black;
}

