/* =========================================================
   RHEMA — ÁLBUM DE ACTIVIDADES
   ========================================================= */

.album-rhema {
  position: relative;
  width: min(1180px, 96vw);
  min-height: min(760px, 92vh);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  perspective: 1800px;
}

/* =========================================================
   PERGAMINO PRINCIPAL
   ========================================================= */

.pergamino-actividad {
  position: relative;
  width: min(800px, 70vw);
  min-height: min(640px, 82vh);
  max-height: 86vh;
  overflow: auto;

  padding: 25px 35px 22px;

  box-sizing: border-box;

  background:
    radial-gradient(
      ellipse at center,
      #fff6d8 0%,
      #f1dfb5 58%,
      #d3b87b 100%
    );

  border: 10px solid #9c7531;
  border-radius: 12px;

  box-shadow:
    0 0 0 3px #e5c46d,
    0 0 0 8px #6d421d,
    0 25px 60px rgba(0,0,0,.75),
    inset 0 0 45px rgba(101,65,25,.25);

  color: #4a2b17;

  transform-origin: left center;

  transition:
    transform .45s ease,
    opacity .45s ease;
}
/* Bordes envejecidos */

.pergamino-actividad::before,
.pergamino-actividad::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 12px;

  border: 2px solid rgba(116,78,27,.35);
  border-radius: 5px;
}

.pergamino-actividad::after {
  inset: 22px;
  border-color: rgba(116,78,27,.18);
}

/* =========================================================
   ANIMACIÓN PASAR PÁGINA
   ========================================================= */

.pergamino-actividad.pasar-pagina {
  animation: pasarPagina .7s ease;
}

.pergamino-actividad.pasar-pagina-atras {
  animation: pasarPaginaAtras .7s ease;
}

@keyframes pasarPagina {

  0% {
    transform:
      rotateY(0deg)
      translateX(0);
    opacity: 1;
  }

  45% {
    transform:
      rotateY(-75deg)
      translateX(-35px);
    opacity: .45;
  }

  100% {
    transform:
      rotateY(0deg)
      translateX(0);
    opacity: 1;
  }

}

@keyframes pasarPaginaAtras {

  0% {
    transform:
      rotateY(0deg)
      translateX(0);
    opacity: 1;
  }

  45% {
    transform:
      rotateY(75deg)
      translateX(35px);
    opacity: .45;
  }

  100% {
    transform:
      rotateY(0deg)
      translateX(0);
    opacity: 1;
  }

}

/* =========================================================
   CABECERA
   ========================================================= */

.album-cabecera {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 20px;

  padding-bottom: 12px;
  margin-bottom: 12px;

  border-bottom: 3px double #9c7531;
}

/* Logo */

.album-logo {
  width: 105px;
  height: 105px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.album-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Título */

.album-titulo {
  text-align: center;
}

.album-titulo h1 {
  margin: 5px 0;

  color: #721936;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(25px, 4vw, 42px);

  letter-spacing: 3px;

  text-shadow:
    1px 1px 0 #e4c77c;
}

.album-titulo p {
  margin: 8px 0 0;

  font-family: Georgia, serif;

  font-style: italic;

  font-size: 16px;

  color: #654321;
}

.album-decoracion {
  color: #b68b32;

  font-size: 20px;

  letter-spacing: 12px;
}

.album-linea {
  width: 75%;
  height: 2px;

  margin: 8px auto;

  background:
    linear-gradient(
      90deg,
      transparent,
      #9c7531,
      transparent
    );
}

/* =========================================================
   INFORMACIÓN DE ACTIVIDAD
   ========================================================= */
/* =========================================================
   INFORMACIÓN COMPACTA DE ACTIVIDAD
   ========================================================= */

.actividad-informacion {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 12px;
}

.actividad-informacion h2 {
  margin: 3px 0 5px;

  color: #721936;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(20px, 2.5vw, 28px);
}

.actividad-informacion p {
  max-width: 700px;

  margin: 6px auto;

  line-height: 1.35;

  font-family: Georgia, serif;

  font-size: 14px;
}

.actividad-fecha {
  color: #745323;

  font-weight: bold;

  margin: 3px 0 6px;

  font-size: 14px;
}

.actividad-adornos {
  color: #b68b32;

  font-size: 18px;
}
/* =========================================================
   GALERÍA
   ========================================================= */

.galeria-actividad {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(190px, 1fr)
    );

  gap: 25px;

  padding: 10px 5px 25px;
}

/* =========================================================
   FOTO
   ========================================================= */

.foto-actividad {
  text-align: center;

  padding: 10px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.65),
      rgba(225,200,145,.45)
    );

  border: 2px solid #b68b32;

  border-radius: 8px;

  box-shadow:
    0 7px 14px rgba(75,42,18,.25);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.foto-actividad:hover {
  transform: translateY(-5px) rotate(-.5deg);

  box-shadow:
    0 12px 22px rgba(75,42,18,.35);
}

/* Marco */

.marco-foto {
  position: relative;

  width: 100%;
  height: 280px;

  overflow: hidden;

  background: #e5d1a5;

  border: 4px solid #6e461f;

  box-sizing: border-box;

  box-shadow:
    inset 0 0 15px rgba(0,0,0,.25);

  display: flex;
  align-items: center;
  justify-content: center;
}

.marco-foto img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}

.marco-foto img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.foto-no-disponible-texto {
  position: absolute;

  inset: 0;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 7px;

  color: #745323;

  font-family: Georgia, serif;

  font-size: 24px;

  pointer-events: none;
}

.foto-no-disponible-texto span {
  font-size: 13px;
  font-weight: bold;
}

.foto-no-disponible img {
  display: none;
}

/* Título foto */

.foto-titulo {
  margin: 10px 0 8px;

  color: #5d381d;

  font-family: Georgia, serif;

  font-weight: bold;

  font-size: 15px;
}

/* =========================================================
   BOTÓN DESCARGAR
   ========================================================= */

.boton-descargar-foto {
  display: inline-block;

  padding: 8px 12px;

  background:
    linear-gradient(
      180deg,
      #8c2145,
      #5d0e26
    );

  color: #fff8e8;

  border: 2px solid #b68b32;

  border-radius: 20px;

  text-decoration: none;

  font-size: 12px;

  font-weight: bold;

  letter-spacing: .5px;

  box-shadow:
    0 3px 0 #3d0818;

  transition:
    transform .15s ease,
    filter .15s ease;
}

.boton-descargar-foto:hover {
  filter: brightness(1.15);

  transform: translateY(-2px);
}

/* =========================================================
   NAVEGACIÓN
   ========================================================= */

.album-navegacion {
  position: relative;
  z-index: 3;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-top: 10px;

  padding-top: 20px;

  border-top: 3px double #9c7531;
}

.album-navegacion button {
  padding: 11px 18px;

  background:
    linear-gradient(
      180deg,
      #8c2145,
      #5d0e26
    );

  color: white;

  border: 2px solid #b68b32;

  border-radius: 25px;

  cursor: pointer;

  font-weight: bold;

  box-shadow:
    0 4px 0 #3d0818;

  transition:
    transform .15s ease,
    filter .15s ease;
}

.album-navegacion button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.album-navegacion button:disabled {
  cursor: not-allowed;
}

.actividad-pagina {
  color: #5d381d;

  font-family: Georgia, serif;

  font-weight: bold;

  font-size: 16px;

  text-align: center;
}

/* =========================================================
   CERRAR
   ========================================================= */

.cerrar-album-rhema {
  position: relative;
  z-index: 3;

  display: block;

  margin: 20px auto 0;

  padding: 9px 25px;

  background: transparent;

  color: #721936;

  border: 2px solid #8c2145;

  border-radius: 25px;

  cursor: pointer;

  font-weight: bold;
}

.cerrar-album-rhema:hover {
  background: #721936;
  color: white;
}

/* =========================================================
   BRÚJULA
   ========================================================= */

.album-brujula {
  position: absolute;

  top: 8px;
  right: 5px;

  z-index: 20;

  width: 95px;
  height: 95px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 65px;

  filter:
    drop-shadow(0 5px 7px rgba(0,0,0,.65));

  transform: rotate(-8deg);
}

/* =========================================================
   CARPA
   ========================================================= */

.album-carpa {
  position: absolute;

  bottom: -2px;
  left: 5px;

  z-index: 20;

  font-size: 105px;

  filter:
    drop-shadow(0 8px 8px rgba(0,0,0,.65));

  transform:
    rotate(-4deg);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

  .pergamino-actividad {
    width: 94vw;

    min-height: auto;

    padding: 25px 20px 25px;

    max-height: 90vh;
  }

  .album-cabecera {
    flex-direction: column;

    gap: 10px;
  }

  .album-logo {
    width: 80px;
    height: 80px;
  }

  .galeria-actividad {
    grid-template-columns: 1fr 1fr;

    gap: 15px;
  }

  .album-brujula {
    top: 0;
    right: 0;

    font-size: 48px;
  }

  .album-carpa {
    bottom: 0;
    left: 0;

    font-size: 70px;
  }

}

@media (max-width: 560px) {

  .galeria-actividad {
    grid-template-columns: 1fr;
  }

  .album-navegacion {
    flex-direction: column;
  }

  .album-navegacion button {
    width: 100%;
  }

  .actividad-pagina {
    order: -1;
  }

}