.image-popup {
    /*display: none;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999; */
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.image-popup .con {
    display: flex;
    flex-flow: column;
    padding: 15px;
    border-radius: 5px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    text-align: left;
    color: rgb(0, 0, 0);
    background-color: #ddded5;
}
.image-popup .popup-img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}
.image-popup .con h3 {
    margin: 0;
    font-size: 18px;
}
.image-popup .con .edit, .image-popup .con .trash {
    display: inline-flex;
    justify-content: center;
    align-self: flex-end;
    width: 40px;
    text-decoration: none;
    color: #FFFFFF;
    padding: 10px 12px;
    border-radius: 5px;
    margin-top: 10px;
}
.image-popup .con .trash {
    background-color: #b73737;
}
.image-popup .con .trash:hover {
    background-color: #a33131;
}
.image-popup .con .edit {
    background-color: #37afb7;
}
.image-popup .con .edit:hover {
    background-color: #319ca3;
}
.home .upload-image {
    display: inline-block;
    text-decoration: none;
    background-color: #38b673;
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px;
    color: #FFFFFF;
    padding: 10px 15px;
    margin: 15px 0;
}
.home .upload-image:hover {
    background-color: #32a367;
}
.home .images {
    display: flex;
    flex-flow: wrap;
}

.home .images a {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    width: 300px;
    height: 200px;
    margin: 0 20px 20px 0;
    border: 2px solid #949090;
}
.home .images a:hover span {
    opacity: 1;
    transition: opacity 1s;
}
.home .images span {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    color: #fff;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    transition: opacity 1s;
}
.upload form {
    padding: 15px 0;
    display: flex;
    flex-flow: column;
    width: 400px;
}
.upload form label {
    display: inline-flex;
    width: 100%;
    padding: 10px 0;
    margin-right: 25px;
}
.upload form input, .upload form textarea {
    padding: 10px;
    width: 100%;
    margin-right: 25px;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
}
.upload form textarea {
    height: 200px;
}
.upload form input[type="submit"] {
    display: block;
    background-color: #38b673;
    border: 0;
    font-weight: bold;
    font-size: 14px;
    color: #FFFFFF;
    cursor: pointer;
    width: 200px;
    margin-top: 15px;
    border-radius: 5px;
}
.upload form input[type="submit"]:hover {
    background-color: #32a367;
}
.delete .yesno {
    display: flex;
}
.delete .yesno a {
    display: inline-block;
    text-decoration: none;
    background-color: #38b673;
    font-weight: bold;
    color: #FFFFFF;
    padding: 10px 15px;
    margin: 15px 10px 15px 0;
    border-radius: 5px;
}
.delete .yesno a:hover {
    background-color: #32a367;
}

.image-gallery {
    width: 100%;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f8f8f890;
    margin-top: 10px;
}

.pagination {
    display: inline-block;
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f8f8f890;
}

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
}

.pagination a.active {
    background-color: #101110;
    color: white;
    border: 1px solid #020202;
}

.pagination a:hover:not(.active) {
    background-color: #998f8f;
}

/* Event Navigation for Event Gallery */
.event-navigation {
    width: 100%;
    overflow: visible;
}
.event-navigation a {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px 5px;
    background-color: #ece5a7;
    color: black;
    text-decoration: none;
    border: 1px solid #948c8c;
    border-radius: 5px;
    font-size: 1rem;
    font-weight:normal;
}
.event-navigation a.active {
    background-color: #f1f1f1;
    color: black;
}
.event-navigation a:hover:not(.active) {
    background-color: #f1f1f1;
    color: black;
}

.closebtn_img {
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
    padding: 12px 20px;
    border-radius: 10px;
    background-color: #faef8d7e;
    border: 1px solid #948c8c;
    text-align: center;
    color: black;
    font-style: bold;
}

.closebtn_img:hover {
    background-color: #f1f1f1;
    color: black;
}
/* The dropdown container */
.dropdown {
  position: relative; /* Needed for absolute positioning of dropdown-content */
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto auto auto;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* Dropdown button */
.dropbtn {
  background: #5d6b45;
  color: #fff;
  padding: 10px 10px;
  font-size: 1.1em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  box-shadow: 0 2px 8px rgba(41,128,185,0.08);
  transition: background 0.2s;
}
.dropbtn i {
  float: right;
  margin-left: 8px;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none; /* Hidden by default */
  position: absolute;
  left: 0;
  right: 0;
  background: #a4a385;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(41,128,185,0.08);
  border-radius: 0 0 8px 8px;
  z-index: 1000; /* Make sure it's above other content */
  padding: 10px 10px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Show dropdown on button click */
.dropdown.open .dropdown-content {
  display: block;
}

/* Event Links */
.event-link {
  display: block;
  padding: 8px 18px;
  color: #222;
  text-decoration: none;
  border-radius: 4px;
  margin: 2px 0;
  transition: background 0.2s, color 0.2s;
}
.event-link:hover,
.event-link.active {
  background: #eaf6ff;
  color: #2980b9;
}

/* Responsive: Stack dropdown on mobile */
@media (max-width: 600px) {
  .dropdown {
    max-width: 100%;
  }
  .dropbtn {
    font-size: 1em;
    padding: 10px 10px;
    border-radius: 6px;
  }
  .dropdown-content {
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 8px 8px;
    padding: 10px 10px;
  }
  .month-column {
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding: 10px 10px;
  }

}
/* New responsive styles for the gallery selector */
.year-header {
     text-align: center;
     font-size: 2em;
     margin-bottom: 10px;
     margin-top: 20px;
     color: #fffdfd;}

   .table-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
     gap: 5px;
     align-items: stretch;
     padding: 10px 10px 10px 10px;
   }

   .month-column {
     background: #6f6f5a;
     padding: 10px 10px;
     margin: 5px;
     min-height: 100px;
     display: flex;
     flex-direction: column;
     height: 100%; /* Fill the grid cell */
   }

   .month-title {
     font-weight: bold;
     margin-bottom: 8px;
     color:rgb(237, 234, 229)
   }

   .month-values {
     display: flex;
     flex-direction: column;
     gap: 5px;
   }

   .value {
     background: #d2e3fc;
     padding: 4px;
     border-radius: 4px;
     text-align: center;
   }
