/* ==========================================
        GALLERY PAGE
        SABRE DE PLEIADES
========================================== */

/* ==========================
        GLOBAL
========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;

  background: #050b1c;

  color: white;

  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Cinzel", serif;
}

p {
  color: #d9d9d9;

  line-height: 1.9;
}

/* ==========================
        HERO SECTION
========================== */

.gallery-hero {
  min-height: 75vh;

  display: flex;

  align-items: center;

  text-align: center;

  justify-content: center;

  padding: 120px 8% 80px;

  position: relative;

  overflow: hidden;
}

.gallery-hero::before {
  content: "";

  position: absolute;

  inset: 0;

  background: radial-gradient(circle at top, #4b2a7d, #111b4b 45%, #050b1c 90%);

  z-index: -2;
}

.gallery-hero::after {
  content: "";

  position: absolute;

  inset: 0;

  background-image:
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(#ffd76a 1px, transparent 1px);

  background-size:
    90px 90px,
    150px 150px;

  opacity: 0.2;

  animation: starsMove 80s linear infinite;

  z-index: -1;
}

@keyframes starsMove {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-300px);
  }
}

.gallery-hero h5 {
  color: #ffd76a;

  text-transform: uppercase;

  letter-spacing: 4px;

  margin-bottom: 20px;
}

.gallery-hero h1 {
  font-size: 60px;

  margin-bottom: 25px;
}

.gallery-hero p {
  max-width: 750px;

  margin: auto;

  font-size: 18px;
}

/* ==========================
        GALLERY SECTIONS
========================== */

.gallery-section {
  padding: 100px 8%;
}

.gallery-section.dark {
  background: #091126;
}

.gallery-section h2 {
  text-align: center;

  color: #ffd76a;

  font-size: 42px;

  margin-bottom: 50px;
}

.gallery-description {
  text-align: center;

  max-width: 800px;

  margin: 0 auto 50px;
}

/* ==========================
        GALLERY GRID
========================== */

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

/* ==========================
        IMAGE CARDS
========================== */

.gallery-item {
  position: relative;

  overflow: hidden;

  border-radius: 20px;

  height: 350px;

  background: #111;

  border: 1px solid rgba(255, 255, 255, 0.1);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.gallery-item img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 0.6s;
}

.gallery-item:hover img {
  transform: scale(1.12);
}

/* ==========================
        IMAGE OVERLAY
========================== */

.overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    to top,

    rgba(0, 0, 0, 0.8),
    transparent
  );

  display: flex;

  align-items: end;

  padding: 30px;

  opacity: 0;

  transition: 0.4s;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  color: #ffd76a;

  font-size: 25px;
}

/* ==========================
        FOOTER
========================== */

footer {
  background: #030711;

  padding: 40px;

  text-align: center;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  color: #999;
}

/* ==========================
        RESPONSIVE
========================== */

@media (max-width: 992px) {
  .gallery-hero h1 {
    font-size: 45px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-hero h1 {
    font-size: 32px;
  }

  .gallery-section h2 {
    font-size: 30px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 300px;
  }
}
.gallery-item img {
    cursor: pointer;
    transition: 0.3s ease;
}


/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}


/* Enlarged Image */
.modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoom 0.3s ease;
}


@keyframes zoom {
    from {
        transform: scale(0.5);
    }
    to {
        transform: scale(1);
    }
}


/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 45px;
    cursor: pointer;
}



























