:root {
    --header-font-size: 3em;
    --header-height: 6em;
    --accent-color: #333;
    --bg-light: #f9f9f9;
    --border-radius: 10px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  /* ------------------- Header ------------------- */
  header {
    background-image: url('imgs/gallery-header.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  header::before {
    content: "";
    background-image: url('imgs/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 60px;
    height: 60px;
    position: absolute;
    top: 20px;
    left: 20px;
  }
  
  header h1 {
    color: white;
    font-size: var(--header-font-size);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: var(--border-radius);
  }
  
  /* ------------------- Gallery ------------------- */
  main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    background-color: var(--bg-light);
  }
  
  main a {
    flex: 0 0 24%;
    max-width: 24%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
  }
  
  main a:hover {
    transform: translateY(-5px);
  }
  
  main img {
    max-width: 100%;
    display: block;
    transition: opacity 1s, filter 0.3s;
  }
  
  main a:hover img {
    filter: saturate(150%);
    opacity: 0.95;
  }
  
  /* ------------------- Form & Table ------------------- */
  .form-table-container {
    padding: 30px 20px;
    background-color: #fff;
    margin: 0 auto;
    width: 95%;
    max-width: 1200px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .gallery-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
  }
  
  .gallery-form input[type="text"],
  .gallery-form select {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    min-width: 150px;
    flex-grow: 1;
  }
  
  .radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  /* ------------------- Table Styling ------------------- */
  .painting-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    background-color: #fff;
  }
  
  .painting-table th,
  .painting-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
  }
  
  .painting-table th {
    background-color: #f0f0f0;
    font-weight: bold;
  }
  
  .painting-table td button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
  }
  
  .painting-table td img {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
  }
  
  .painting-table td button:hover img {
    transform: scale(1.2);
  }
  
  /* ------------------- Responsive ------------------- */
  @media (max-width: 480px) {
    main a {
      flex: 0 0 100%;
    }
  
    header {
      height: 4em;
    }
  
    header h1 {
      font-size: 1.5em;
    }
  
    .gallery-form {
      flex-direction: column;
      align-items: stretch;
    }
  }
  
  @media (min-width: 481px) and (max-width: 768px) {
    main a {
      flex: 0 0 45%;
    }
  
    header h1 {
      font-size: 2em;
    }
  }
  