/* lightobx.css */

html {
  background-color: #2d2d2d;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  color: white;
}

body {
  height: 100vh;
  width: 100vw;
  margin: 0; 
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  height: 90vh; /* for a single page page, with no need for pagnation - set the height to 90vh to relaim the paces for the pagination controls */
  gap: .5rem 1rem;
}

.image-wrapper {
position: relative;
width: calc(22% - 1rem); /* Adjust the width as necessary */
box-sizing: border-box;
/* overflow: hidden; */
outline: 1px solid transparent;
background-color: transparent;
display: flex;
flex-direction: column; /* Organize children in a column layout */
/* justify-content: center; */
align-items: center; /* Center children horizontally */
transition: background-color 0.3s;
}

.image-container {
  background: #2d2d2d;
}

.image-container img {
  width: 100%;
  border-radius: 4px!important;
  box-shadow: transparent 0 0 4px 4px!important;
  border: 1px solid black;

}

.image-container img:hover {
  box-shadow: #B9DCD2 0 0 4px 4px!important;
}

.caption-container {
width: 96%; /* Take full width of the parent to align text center */
text-align: center;
background-color: transparent;
color: white;
font-size: .75em;
box-sizing: border-box;
display: flex;
justify-content: left;
align-items: center;
margin: .5rem auto .75rem auto;
}
.pagination {
  position: absolute;
  top: 1%;
  left: 1%;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  align-items: center;
  margin: 0;
  gap: .5rem 0;
}

@media screen and (max-width: 900px) {
  .pagination {
    justify-content: center;
  }

#colorOptions {
  position: absolute;
  left: 1rem;
  top: 10%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: #336699;
  padding: 1rem;
  border-radius: 10px;
  width: fit-content;
}

.colorBox {
  width: 15px;  
  height: 15px; 
  border-radius: 5px; 
  }

  #gallery {
    justify-content: center;
  }
}

.page-link {
  margin: 0 5px;
  padding: 5px;
  color: white;
  background-color: #2d2c2c;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration-color: transparent ;
}

a.page-link:link,
a.page-link:visited,
a.page-link:hover,
a.page-link:active {
  text-decoration-color: transparent ;
}

button.page-link:hover {
  background-color: #B9DCD2 ;
  color: black ;
}

button.page-link.active {
  background-color: #336699;
  text-decoration-color: transparent ;
  color: white;
}

.spacer {
  width: 30px;
  height: 30px;
}

#prevPage,
#nextPage {
  background-color: #336699;
  color: white;
  font-size: 2rem;
  border: 0;
  border-radius: 4px;
}

#prevPage:active,
#nextPage:active {
  background-color: #C0392B ;
  color: #ffa500 ;
}

#prevPage:hover,
#nextPage:hover {
  background-color: #B9DCD2;
  color: black;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
 /* background-color: rgba(0,0,0,0.9); Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 1500px;
max-height: 90vh;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
overflow-y:hidden; /* Enable scroll if needed */
}

  .close {
    color: #E74C3C;
    background: #ffa500;
    position: absolute;
    top: 50px;
    right: 57px;
    transform: translate(50%, -50%);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    height: 50px;
    width: 50px;
    line-height: 50px; /* Center the text vertically */
    text-align: center;
    border-radius: 10px;
  }
 
  
  .close:hover,
  .close:focus {
    color: #ffa500;
    background:#E74C3C;
    text-decoration: none;
    cursor: pointer;
    border-radius: 10px;
  }

  #colorOptions {
    position: absolute;
    right: 26px;
    top: 25%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #336699;
    padding: 1rem;
    border-radius: 10px;

  }
  
  .colorBox {
    width: 30px;  /* Adjust size as needed */
    height: 30px; /* Adjust size as needed */
    border-radius: 5px; /* Optional for rounded corners */
    }
  
  html {
    --box-bg1: black;
    --box-bg2: white;
    --box-bg3: #7F8C8D;
    --box-bg4: red;
    
  }

  #Box_1 { background-color: var(--box-bg1); }
  #Box_2 { background-color: var(--box-bg2); }
  #Box_3 { background-color: var(--box-bg3); }
  #Box_4 { background-color: var(--box-bg4); }
  