/* Props page styling */

.navbar-nav li a,
.navbar-text,
.color-picker-wrapper,
#reset-bg-btn,
#logout-button {
  background-color: black;
  color: white;
  box-shadow: 2px 2px 5px 2px rgb(212, 224, 247);
}

.navbar-nav li a:hover,
.navbar-text:hover,
#reset-bg-btn:hover,
.color-picker-wrapper:hover,
#logout-button:hover,
.desc .btn:hover {
  background-color: white;
  color: black !important;
  box-shadow: 2px 2px 5px 2px #e0d1d1;

}

.desc .btn {
  background-color: black;
  color: white;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: bold;
}

.heading-props-container {
  width:50%;
  margin:auto;
  text-align: center;
  font-weight:bold;
  background-color:rgba(255,255,255,0.7);
  color: #000000;
  border-radius:20px;
  padding:10px;
  border:2px solid black;
  margin-bottom:30px;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: background-color .2s ease, color .2s ease, transform 0.2s ease;
}

.heading-props-container:hover {
  background-color:rgba(0,0,0,0.7);
  color: #ffffff;
  transform: scale(1.15);
}

div.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Automatically forces a 20px space between all items */
  padding: 10px; /* Optional: adds nice breathing room around the whole gallery */
}

div.gallery-item {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(25% - 20px); /* Grow, shrink, and base width (4 columns on desktop) */
  box-sizing: border-box; /* CRITICAL: Includes border in the 25% width calculation */
  border: 2px solid black;
  outline: 2px solid grey;
  background-color:rgba(255,255,255,0.7);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

div.gallery-item:hover {
  border: 1px solid #777;
}

div.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit:cover;
}

div.gallery-item div.desc {
  padding: 5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Makes the description box fill all remaining space */
}

.gallery-item .set-bg-btn {
  margin-top: auto; /* Pushes the button to the absolute bottom of the container */
  align-self: center;
  white-space: nowrap;
  width: max-content;
}

/* original responsive code */

@media only screen and (max-width: 768px) {
  div.gallery-item {
    width: calc(50% - 20px);
  }
}

@media only screen and (max-width: 480px) {
  div.gallery-item {
    width: calc(100% - 20px);
  }
}

/* Working on it Responsive code */
@media only screen and (max-width: 1024px) {
  div.gallery-item {
    flex: 0 0 calc(33.333% - 20px); /* Locks strictly to 3 columns max per row */
  }
}

@media only screen and (max-width: 768px) {
  div.gallery-item {
    flex: 0 0 calc(50% - 20px); /* Drops to 2 columns on smaller tablets/horizontal mobile */
  }
}

@media only screen and (max-width: 480px) {
  div.gallery-item {
    flex: 0 0 100%; /* Drops to 1 column full width on mobile devices */
  }
}