
/* BACKGROUND IMAGE FOR ENTIRE SITE */
body {
  background-image: url("../images/gallery-bg.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
} 

body.home {
  
    background:
        linear-gradient(
            rgba(255,255,255,0.28),
            rgba(255,255,255,0.28)
        ),
        url("../images/back-image-1.jpeg");

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

 optional soft overlay for readability 
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.65);
  z-index: -1;
}



/* GALLERY PAGE */
.gallery-page {
  background-image: url("../images/gallery-bg.jpeg"); /* <-- your image path */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed; /* optional */
   font-family: sans-serif;
  margin: 0;
  padding: 0;
  color: #060606;
  
} 



/* HEADER AREA */
header {
  background-color: #ddd2d2;
  color: #ffffff;   
  min-height: 100px;
display: flex;
align-items: center;
justify-content: center;
}

/* Smooth scrolling */

html {
  scroll-behavior: smooth;
}
/* NAVIGATION */
.main-nav {
background: #f9f1f1;
border-bottom: 1px solid #020202;
/*position: sticky; */
top: 0;
/*z-index: 1000; */
}

.nav-list {
list-style: none;
display: flex;
justify-content: center;
margin: 0;
padding: 0;
}

.nav-list li {
position: relative;
}

.nav-list a {
display: block;
padding: 10px 15px;
text-decoration: none;
color: #faf8f8;
font-weight: 600;
}

.nav-list a:hover {
background: #d4d4d4;
}

/* SUB NAVIGATION */
.sub-list {
  list-style: none;

  display: flex;
  flex-direction: column;    /* stack vertically */
  gap: 12px;

  margin: 0;
  padding: 0;
}

/* BUTTON CONTAINER */
.sub-list li {
  display: flex;
  justify-content: center;
}

/* BUTTON STYLE */
.sub-list a {
  display: inline-flex;

  padding: 12px 24px;

  text-decoration: none;
  color: #fafafa;
  font-weight: 600;

  background: #1870c9;
  border-radius: 8px;

  width: 320px;     /* auto size to text */
  min-width: 250px;          /* optional */

  justify-content: left;
  transition: 0.3s;
}

.sub-list a:hover {
  background: #756e6e;
}

/* DROPDOWN */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #6da0f26f;
  min-width: 200px;
  border: 1px solid #ccc;
  top: 100%;
  left: 0;
  z-index: 999;
}

.dropdown-menu li a {
  padding: 10px 15px;
  font-weight: normal;
}

.dropdown:hover .dropdown-menu {
  display: block;
}
/* CONTENT AREA */
.content { 
max-width: 900px;
margin: auto;
padding: 40px 20px;
/* text-align: center;
color: #f8f8fa;*/
}
/* Headers order list -- */
ol {
width: fit-content;
margin: 0 auto;
}
/* HEADERS */
h1 {
font-size: 28px;
  text-align: center;
  margin-bottom: 25px;
}
h2 {
 font-size: 20px; 
  text-align: center;

  margin-bottom: 20px;
}

h3 {
  font-size: 16px;
  text-align: center;
   font-weight: bold;
  margin-bottom: 10px;
}
h4 {
  font-size: 14px;
  text-align: center;
  margin-bottom: 10px;
}

.change-color {
  color: #892c2c;
  font-size: 16px;
}
.color-white {
  color: white;
}
.color-red {
  color: red;
}
.color-black {
  color: black;
}
.color-blue {
  color: blue;
}

/* TEXT AREA 
.page-text{
max-width: 90%;
margin: 10px;

} */
/* CENTERED TEXT */ 
.center-text {
  text-align: center;
  color: #f4f4f4;
}
/* PAGE HEADER */
.page-header {
text-align:right;
margin-bottom: 40px;
}
.subtitle {
color: #484848;
font-size: 1em;
}

.highlight {
  color: #892c2c;
}
.intro {
  max-width: 90%;
  text-align: center;
  font-size: 16px;
} 

.close {
position: absolute;
top: 20px;
right: 30px;
font-size: 30px;
color: #090909;
text-decoration: none;
}
/* TOP MENU */
.top-menu {
display: flex;
justify-content: center;
gap: 14px;
flex-wrap: wrap;
margin-bottom: 30px; 
}

/* a PARAMETERS */
a {
display: inline-block;
padding: 8px 12px;
margin: 5px;
background-color: #0761f2;
color: rgb(251, 250, 250);
text-decoration: none;
border-radius: 5px;
}

/* =========================
   GALLERY GRID
========================= */
.gallery {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery.active {
  display: grid;
  opacity: 1;
}



.gallery-img {
  width: 100%;
  height: 120px;
   aspect-ratio: 1 / 1;
  object-fit: cover;       /* ← controls thumbnail height */
     /* crops image to fit box evenly */
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  text-align: center;
  max-width: 90%;
  animation: fadeIn 0.4s ease;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
}

.lightbox-caption {
  color: #eee;
  margin-top: 10px;
  font-style: italic;
}

/* Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  user-select: none;
}

.lightbox-close {
  top: 20px;
  right: 30px;
}

.lightbox-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #065cb7;
  color: #fff;
  width: 30px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(12, 134, 227, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #555;
  transform: translateY(-4px);
}


/* FOOTER */
footer {
  background-color: #d7d6d6;
  color: #5c5b5b;
  text-align: center;
  padding: 1em 0;
  position: absolute; /* or static */
  bottom: 0;
  width: 100%;
}
footer p {
  margin: 0;
}


/* GALLERY MENU CARDS */

.gallery-list {
  max-width: 700px;
  margin: 30px auto;
}

.gallery-card {
  display: block;
  background: rgba(255, 255, 255, 0.45);
  padding: 15px 20px;
  margin: 18px 0;
  text-align: center;
  text-decoration: none;
  color: #222;
  border-radius: 10px;
}

.gallery-card strong {
  display: block;
  color: #165a9f;
  font-size: 22px;
  margin-bottom: 5px;
}

.gallery-card span {
  display: block;
  color: #222;
  font-size: 18px;
}

.gallery-card:hover {
  background: rgba(255, 255, 255, 0.70);
  transform: scale(1.02);
}
<!-- Backgallery --->
.back-gallery {
  text-align: center;
  margin: 10px 0 20px;
}

.back-gallery a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.back-gallery a:hover {
  text-decoration: underline;
}