/* Reset + general */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: sans-serif;
  position: relative;

}
#background-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  /* Option A: solid dark gray */
  background-color: rgb(35,35,35);
  /* Option B: semi-transparent overlay */
  /* background-color: rgba(35,35,35, 0.8); */
}

header, .gallery-grid, footer, .pagination {
  position: relative;
  z-index: 1;}


header, .gallery-grid, footer {
  position: relative;
  z-index: 1;
}

header {
  background-color: black;
  color: white;
}



/* NAVIGATION */
nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  list-style: none;
  margin: 0;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.links img {
  height: 40px;
  width: auto;
  display: block;
  cursor: pointer;
}




.gallery_title {
  display: flex;
  justify-content: center;
  margin: 20px auto;
}
.gallery_title img {
  width: 300px;
  filter: drop-shadow(0 10000px #ab1717);
  transform: translateY(-10000px);
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 10px;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  background: #000000;
  aspect-ratio: 1/1;
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform .4s, box-shadow .4s;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
  opacity: 1;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 5px 0;
  flex-wrap: wrap;
}
.pagination button {
  background: #741515;
  color: white;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 4px;
  min-width: 36px;
}
.pagination button:hover:not(:disabled) {
  background: #252525;
}
.pagination button:disabled {
  opacity: .3;
  cursor: default;
}
.pagination button.active {
  background: #000000;
}

/* Footer */
footer {
  background: black;
  color: white;
  padding: 10px 30px;
  text-align: center;
}

/* Responsive tweaks */
@media (max-width:600px) {
  .gallery-grid { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap:8px;}
  .gallery_title img { width:200px; }
  .logo img { height:40px; }
  .links img { height:30px; }
}


 /* The Modal (background overlay) */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

/* This hides the modal initially */
.modal {
  display: none;            /* <- hides it */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}


.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

#caption {
  display: none;
  margin-top: 10px;
  color: #fff;
  text-align: center;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}
.close:hover {
  color: #bbb;
}
