body {
    margin: 0px 0px 0px 0px;
    padding: 0px;
	background-color: #292929;
} 

.gallery-container {
	margin-top: 10px;
    padding: 10px;
	overflow: auto;
}

.gallery-container a img {
	margin: 10px 0px 0px 20px;
	float: left;
	
    /* Image styling for the "picture frame" effect */
    display: block;          /* Helps with spacing issues */
    margin-bottom: 10px;     /* Space between images vertically */

    /* The "Picture Frame" effect */
    border: 10px solid #303030; /* Black border (adjust thickness as needed) */
    padding: 5px;            /* Inner padding to give a "mount" effect inside the frame */
    background-color: #fff;  /* White "mount" color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: subtle shadow for depth */
}

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: #4a4a4a; margin: 10% auto; padding: 20px; border: 1px solid #888; width: 400px; border-radius: 8px; font-family: sans-serif; }
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; text-transform: capitalize; }
input { width: 100%; padding: 8px; box-sizing: border-box; }
button { padding: 10px 15px; cursor: pointer; background: #007bff; color: white; border: none; border-radius: 4px; }
button#deleteBtn:hover { background: #c82333; }
textarea {
    width: 100%;
    height: 80px;
    padding: 8px;
    box-sizing: border-box;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="date"] {
    font-family: inherit;
}

small {
    color: #888;
    font-weight: normal;
    font-size: 0.8em;
}

#progress-container { width: 100%; max-width: 400px; display: none; margin-top: 20px; }
progress { width: 100%; height: 25px; }
#status { margin-top: 10px; font-weight: bold; }
.form_container {
	width: 250px;
	border: 1px solid #FFF;
	padding: 5px;
	margin: 3px auto;
}

#gallery-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* Spacing between photos */
  justify-content: center; /* Center horizontally */
}

.gallery-item {
  position: relative !important;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-item a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.delete-btn {
  /* Position it */
  position: absolute !important;
  bottom: 10px !important;
  right: 10px !important;
  z-index: 999 !important; /* Force to front */
  
  /* Make it visible */
  display: flex !important;
  width: 32px;
  height: 32px;
  background-color: white !important;
  color: red !important;
  
  /* Style it */
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: Arial, sans-serif;
  
  /* Hover effect logic */
  opacity: 0; 
  transition: opacity 0.2s ease;
}

/* Show on hover */
.gallery-item:hover .delete-btn {
  opacity: 1 !important;
}

.delete-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

/* Visual feedback for deleting */
.gallery-item.deleting {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(1);
}