
       body {
  font-family: Arial, sans-serif;
}

.container {
  display: flex;
}

//.form-container {
//  max-width: 500px;
//  margin: 40px auto;
//  padding: 25px;
//  background: #ffffff;
//  border-radius: 12px;
//  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  
//}

 /* Make all placeholders gray */
  input::placeholder {
    color: #888;
    opacity: 1; /* some browsers default to 0.5 */
  }

  /* Optional: for textarea placeholders too */
  textarea::placeholder {
    color: #888;
    opacity: 1;
  }

/* Modern focus effect */
.w3-input:focus, .w3-select:focus, textarea:focus {
  border-color: #4CAF50 !important;
  box-shadow: 0 0 0 3px rgba(76,175,80,0.2);
  transition: 0.3s;
  outline: none;
}

tr.active {
  background-color: #cce5ff;
}

tr, .selectable-card {
  cursor: pointer;
}

tr:hover {
  background-color: #f1f1f1;
}

.selectable-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.active-item {
  background-color: #cce5ff !important;
  border-left: 5px solid #2196F3;
}

.active-item::after {
  content: "Selected";
  float: right;
  font-size: 12px;
  color: #2196F3;
}

  /* Only the row that has this class will get a red border */
  //tr.highlight-delete td {
  //  border: 2px solid red !important;
  //}

 // tr.highlight-delete {
 // outline: 2px solid red;
//}

.highlight-delete {
  background: yellow !important;
}

.w3-card.highlight-delete {
  border: 2px solid red !important;
}

h2 {
  text-align: center;
  margin-bottom: 1.25rem;
}

* {
 box-sizing: border-box;
 font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.left {
  //background-color: #2196F3;
  padding: 20px;
  float: left;
  width: 15%; /* The width is 20%, by default */
}

.main {
  //background-color: #f1f1f1;
  padding: 20px;
  float: left;
  width: 70%; /* The width is 60%, by default */
}

.right {
  //background-color: #04AA6D;
  padding: 20px;
  float: left;
  width: 15%; /* The width is 20%, by default */
}

/* Use a media query to add a break point at 800px: */
@media screen and (max-width: 800px) {
  .container {
    flex-direction: column;
  }
  .left, .main, .right {
    width: 100%; /* The width is 100%, when the viewport is 800px or smaller */
  }
}

header {
  text-align: center;
  padding: 40px 0;
}

footer {
  text-align: center;
  margin-top: 50px;
  color: #666;
}

.action-container {
   display: flex;       /* horizontal layout */
   gap: 10px;           /* space between buttons */
   flex-wrap: wrap;     /* allow wrapping on small screens */
  /*position: relative; */
  /*width: 150px;*/       /* fixed width to prevent layout shift */
}

.action-container button {
  flex: 1;        /* evenly distribute width */
  min-width: 100px; /* optional minimum */
  //width: 100%;
}

.gallery {
 display: grid;
 justify-content: center;
 

 width: 100%;          /* container takes full width of screen */
  max-width: 500px;    /* optional: limit max width for large screens */
  margin: 0 auto; 

 grid-template-columns: repeat(2, 1fr);
   gap: 10px;
    padding: 10px;
}

.actions {
  display: flex;
  gap: 6px;
}

.btn {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  border: none;
}

.btn.edit { background-color: #007bff; color: #fff; }
.btn.delete { background-color: #dc3545; color: #fff; }

/* Mobile stack */
@media (max-width: 768px) {
  .actions {
    flex-direction: column;
    gap: 4px;
  }
}

.gallery img {
  

  width: 100%;           /* image scales to container width */
  height: auto; 
  margin: 0 auto;         /* keeps the aspect ratio */
  //display: block;        /* removes small gaps under image */
  object-fit: cover; 

      //max-width: 50%;
      border-radius: 8px;
      transition: transform 0.3s ease, filter 0.3s ease;
}

  .gallery img:hover {
    
    transform: scale(1.05);
      filter: brightness(0.9);
  }

/* LIGHTBOX */

        .lightbox {

            position: fixed;

            top: 0;

            left: 0;

            width: 100%;

            height: 100%;

            background: rgba(0,0,0,0.85);

            display: flex;

            flex-direction: column;

            align-items: center;

            justify-content: center;

            visibility: hidden;

            opacity: 0;

            transition: opacity .3s ease;

            z-index: 9999;

        }

        .lightbox.active {

          visibility: visible;

          opacity: 1;

      }


      .lightbox img {

         /* max-width: 90%;

          max-height: 80%;*/

          max-width: 90%;

          max-height: 80%;

          /*width: 30%;
          height:  600px;*/

          border-radius: 8px;

          box-shadow: 0 0 20px rgba(255,255,255,0.4);

      }


      .caption {

          margin-top: 15px;

          color: #fff;

          font-size: 18px;

          text-align: center;

      }


      .close-btn {

          position: absolute;

          top: 20px;

          right: 30px;

          font-size: 40px;

          color: white;

          cursor: pointer;

          user-select: none;

      }

.modal {
  display: none;
  //align-items: center; /* Flex properties for centering */
  //justify-content: center;
  position: fixed;  //relative
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  margin: 10% auto;
  text-align: center;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-secondary,
.btn-danger {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

//slide menu
 body {
        margin: 0;
        font-family: Arial, sans-serif;
    }

    /* Top black bar */
    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: black;
        color: white;
        display: flex;
        align-items: center;
        padding: 0 20px;
        z-index: 1000;
    }

    /* Menu button */
    .menu-btn {
        font-size: 28px;
        cursor: pointer;
        margin-right: 20px;
    }

    /* Sliding side menu */
    .side-menu {
        position: fixed;
        top: 60px;
        left: -250px;
        width: 250px;
        height: 100%;
        background: #222;
        transition: left 0.3s ease;
        padding-top: 20px;
    }

    .side-menu a {
        display: block;
        color: white;
        padding: 15px 20px;
        text-decoration: none;
    }

    .side-menu a:hover {
        background: #444;
    }

    /* Active menu state */
    .side-menu.active {
        left: 0;
    }

    /* Main content */
    .content {
        padding: 100px 20px;
    }

 figure {
    text-align: center;
}

figcaption {
    font-size: 0.9em;
    color: #555;
}