* { box-sizing: border-box; margin: 0; padding: 0; }
    
    body { 
      font-family: 'Playfair Display', Georgia, serif; 
      background-color: #fcfbfa; 
      background-image: 
        linear-gradient(rgba(252, 251, 250, 0.40), rgba(252, 251, 250, 0.40)),
        url('../images/background.jpeg'),
        linear-gradient(90deg, rgba(210, 195, 175, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(210, 195, 175, 0.07) 1px, transparent 1px);
      background-size: cover, cover, 20px 20px, 20px 20px;
      background-position: center center, center center, 0 0, 0 0;
      background-attachment: fixed, fixed, scroll, scroll;
      color: #1a2428; 
    }

    header {
      background: linear-gradient(rgba(14, 30, 36, 0.91), rgba(14, 30, 36, 0.96)), 
                  url('../images/background.jpeg') center/cover;
      padding: 4.5rem 2rem;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      border-bottom: 4px solid #dfba81;
      box-shadow: 0 4px 20px rgba(14, 30, 36, 0.15);
    }
    .brand-lockup {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      width: min(100%, 720px);
      margin: 0 auto;
    }
    .brand-logo {
      width: 140px;
      height: 140px;
      border-radius: 8px;
      display: block;
      object-fit: contain;
      border: 2px solid rgba(223, 186, 129, 0.9);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
      background: #fcfbfa;
    }
    header h1 { 
      font-size: 2.8rem; 
      font-weight: 300; 
      color: #f6ebd8; 
      letter-spacing: 6px; 
      text-transform: uppercase;
      text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
    }
    header p { 
      color: #dfba81; 
      margin-top: 12px; 
      font-size: 15px; 
      font-style: italic; 
      letter-spacing: 2.5px;
      text-transform: uppercase;
    }

    nav {
      background: #091317;
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      padding: 1rem;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    }
    nav a {
      color: #cedcdf;
      text-decoration: none;
      font-size: 13px;
      cursor: pointer;
      padding: 8px 24px;
      border-radius: 30px;
      transition: all 0.3s ease;
      font-family: 'Montserrat', Arial, sans-serif;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      border: 1px solid transparent;
    }
    nav a:hover, nav a.active { 
      background: #dfba81; 
      color: #091317; 
      font-weight: 600;
      box-shadow: 0 2px 10px rgba(223, 186, 129, 0.4);
    }

    #gallery { position: relative; }
    #gallery::before {
      content: "";
      position: absolute;
      top: 35%; left: 50%;
      transform: translate(-50%, -50%);
      width: 85%; height: 700px;
      background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=1000&q=80') center/contain no-repeat;
      opacity: 0.04;
      pointer-events: none;
      z-index: 0;
    }

    .section { padding: 3rem 2rem; max-width: 1300px; margin: 0 auto; min-height: 60vh; display: none; position: relative; z-index: 1; }
    .section.active { display: block; animation: fadeIn 0.5s ease-in-out; }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .section-title {
      font-size: 1.5rem; font-weight: 700; color: #0e1e24;
      border-bottom: 2px solid #dfba81; padding-bottom: 12px;
      margin-bottom: 2.5rem; letter-spacing: 2.5px; text-transform: uppercase; text-align: center;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
      gap: 30px;
    }
    .art-card {
      background: #faf9f6;
      border-radius: 6px; overflow: hidden;
      box-shadow: 0 4px 18px rgba(14,30,36,0.06);
      border: 1px solid #dce5e7;
      transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
      cursor: pointer;
      position: relative;
    }
    .art-card:hover { 
      transform: translateY(-8px) scale(1.01); 
      box-shadow: 0 16px 34px rgba(14,30,36,0.18); 
      border-color: #dfba81;
    }
    .inner-frame { overflow: hidden; position: relative; background: #fafaf9; }
    .inner-frame::after {
      content: "";
      position: absolute;
      top: 0;
      left: -130%;
      width: 60%;
      height: 100%;
      background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.42) 50%, transparent 100%);
      transform: skewX(-18deg);
      transition: left 0.6s ease;
      pointer-events: none;
    }
    .art-card img { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform 0.6s ease, filter 0.45s ease; }
    .art-card:hover img { transform: scale(1.06); filter: saturate(1.08) contrast(1.04); }
    .art-card:hover .inner-frame::after { left: 140%; }
    
    .art-card .art-label {
      padding: 18px 14px; font-size: 13px; color: #0e1e24; font-weight: 700;
      font-family: 'Montserrat', sans-serif; text-align: left;
      letter-spacing: 0.5px; text-transform: uppercase; line-height: 1.5;
      border-top: 1px solid rgba(223, 186, 129, 0.2);
      transition: background-color 0.3s ease, letter-spacing 0.25s ease, color 0.25s ease;
    }
    .art-card:hover .art-label { background: #fffdf8; letter-spacing: 0.8px; color: #071014; }
    .art-card .photo-count {
      display: inline-block; background: #0e1e24; color: #dfba81;
      font-size: 10px; padding: 2px 8px; border-radius: 10px; margin-top: 5px;
      transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    }
    .art-card:hover .photo-count { transform: translateY(-1px); background: #dfba81; color: #0e1e24; }

    .sub-gallery-container { display: none; }
    .sub-gallery-container.active { display: block; animation: fadeIn 0.4s ease; }
    .back-btn {
      display: inline-flex; align-items: center; gap: 8px;
      color: #0e1e24; background: transparent; border: 1px solid #0e1e24;
      padding: 8px 16px; font-family: 'Montserrat', sans-serif; font-weight: 600;
      font-size: 12px; text-transform: uppercase; cursor: pointer; margin-bottom: 2rem;
      transition: all 0.2s;
    }
    .back-btn:hover { background: #0e1e24; color: #dfba81; }

    .lightbox {
      display: none; position: fixed; inset: 0; background: rgba(7, 16, 20, 0.97);
      z-index: 999; align-items: center; justify-content: center; flex-direction: column;
      backdrop-filter: blur(4px);
    }
    .lightbox.open { display: flex; }
    .lightbox img { max-width: 90vw; max-height: 78vh; border: 3px solid #dfba81; box-shadow: 0 0 35px rgba(0,0,0,0.6); object-fit: contain; }
    .lightbox-title { color: #f6ebd8; margin-top: 18px; font-size: 17px; letter-spacing: 1px; text-transform: uppercase; font-family: 'Montserrat', sans-serif; }
    .lightbox-close {
      position: absolute; top: 25px; right: 35px; font-size: 40px; color: #dfba81;
      background: none; border: none; cursor: pointer; transition: color 0.2s;
    }
    .lightbox-close:hover { color: #fff; }

    .about-container {
      display: flex; gap: 3rem; align-items: center; background: #ffffff;
      border: 1px solid #dce5e7; padding: 3.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    }
    .about-art-bg {
      flex: 1; min-width: 280px; height: 380px;
      background: url('https://images.unsplash.com/photo-1513364776144-60967b0f800f?auto=format&fit=crop&w=600&q=80') center/cover;
      border: 4px solid #dfba81;
    }
    .about-box { flex: 1.5; }
    .about-box h2 { color: #0e1e24; font-size: 2rem; font-weight: 300; margin-bottom: 1.2rem; letter-spacing: 1px; text-transform: uppercase; }
    .about-box p { color: #354449; line-height: 1.9; font-size: 15.5px; text-align: justify; font-family: Georgia, serif; }

    .lock-screen {
      max-width: 400px; margin: 4rem auto; background: #ffffff;
      border: 1px solid #dce5e7; padding: 3rem 2.5rem; text-align: center;
      box-shadow: 0 10px 30px rgba(14,30,36,0.06);
    }
    .lock-screen h2 { font-size: 1.3rem; color: #0e1e24; margin-bottom: 0.5rem; font-weight: normal; letter-spacing: 1px; text-transform: uppercase; }
    .lock-screen .hint { font-size: 12px; color: #596b73; margin-bottom: 1.5rem; font-family: Arial, sans-serif; }
    .lock-screen input {
      width: 100%; padding: 12px 14px; border: 1px solid #b2c4c7; font-size: 16px;
      margin-bottom: 1.2rem; text-align: center; letter-spacing: 5px; background: #fdfdfd; color: #0e1e24;
    }

    .admin-panel { background: #ffffff; border: 1px solid #dce5e7; padding: 2.2rem; margin-bottom: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.01); }
    .admin-panel h3 {
      font-size: 15px; font-weight: bold; color: #0e1e24; margin-bottom: 1.5rem;
      font-family: Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px;
      border-left: 3px solid #dfba81; padding-left: 10px;
    }

    .form-row { margin-bottom: 1.2rem; }
    .form-row label { display: block; font-size: 13px; color: #354449; margin-bottom: 6px; font-family: Arial, sans-serif; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
    .form-row input[type="text"], .form-row input[type="password"], .form-row select, .form-row textarea {
      width: 100%; padding: 11px 14px; border: 1px solid #b2c4c7; background: #fdfdfd; font-size: 14px; color: #0e1e24; font-family: Arial, sans-serif;
    }
    .form-row textarea { height: 140px; resize: vertical; line-height: 1.6; }

    .btn {
      padding: 11px 24px; font-size: 13px; cursor: pointer; border: none;
      font-family: Arial, sans-serif; font-weight: bold; text-transform: uppercase;
      letter-spacing: 1px; transition: all 0.2s;
    }
    .btn-primary { background: #0e1e24; color: #dfba81; border: 1px solid #dfba81; }
    .btn-primary:hover { background: #dfba81; color: #0e1e24; }
    .btn-secondary { background: #dfba81; color: #0e1e24; padding: 6px 12px; font-size: 11px; }
    .btn-secondary:hover { background: #c79b53; }
    .btn-danger { background: #a63a3a; color: #fff; font-size: 11px; padding: 6px 12px; }
    .btn-danger:hover { background: #822b2b; }
    .btn-active-cover { background: #2d5a1e; color: white; font-size: 11px; padding: 6px 12px; cursor: default; }

    .upload-area {
      border: 2px dashed #dfba81; padding: 2.5rem; text-align: center;
      cursor: pointer; color: #354449; font-size: 14px; background: #fdfcfb; transition: all 0.2s;
    }
    .upload-area:hover { border-color: #c79b53; background: #fff; }
    .upload-area .icon { font-size: 36px; display: block; margin-bottom: 10px; color: #dfba81; }

    .preview-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
      gap: 10px; margin-top: 15px; justify-content: center;
    }
    .preview-grid img { width: 100%; height: 80px; object-fit: cover; border: 2px solid #dfba81; padding: 2px; background: #fff; }

    .image-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 12px; }
    .image-row {
      display: flex; align-items: center; gap: 15px; background: #fafafa;
      border: 1px solid #dce5e7; padding: 12px 16px;
    }
    .image-row img { width: 65px; height: 65px; object-fit: cover; border: 1px solid #b2c4c7; }
    .image-row .meta { flex: 1; display: flex; flex-direction: column; gap: 4px; font-family: Arial, sans-serif; }
    .image-row .meta .title-lbl { font-size: 14px; color: #0e1e24; font-weight: bold; }
    .image-row .meta .cover-tag { font-size: 11px; color: #2d5a1e; font-weight: bold; }
    .image-row .actions { display: flex; gap: 8px; }

    .success-msg { font-size: 13px; color: #2d5a1e; margin-left: 12px; display: none; font-family: Arial, sans-serif; font-weight: bold; }
    .error-msg { color: #a63a3a; font-size: 13px; margin-top: 8px; display: none; font-family: Arial, sans-serif; }
    .status-note { margin-top: 10px; font-size: 12px; color: #596b73; font-family: Arial, sans-serif; }

    .btn[disabled] {
      opacity: 0.65;
      cursor: not-allowed;
    }

    footer {
      text-align: center; padding: 2.5rem; color: #596b73; font-size: 13px;
      font-family: Arial, sans-serif; border-top: 1px solid #dce5e7; margin-top: 3rem; letter-spacing: 1px;
    }

    @media (max-width: 768px) {
      body {
        background-attachment: scroll, scroll, scroll, scroll;
        background-size: cover, cover, 18px 18px, 18px 18px;
      }

      header {
        padding: 2.5rem 1rem;
      }

      .brand-lockup {
        gap: 0.75rem;
      }

      .brand-logo {
        width: 96px;
        height: 96px;
      }

      header h1 {
        font-size: 1.65rem;
        line-height: 1.15;
        letter-spacing: 3px;
      }

      header p {
        font-size: 11px;
        letter-spacing: 1.6px;
        margin-top: 0.25rem;
      }

      nav {
        gap: 0.5rem;
        padding: 0.75rem;
        flex-wrap: wrap;
      }

      nav a {
        flex: 1 1 30%;
        min-width: 96px;
        text-align: center;
        padding: 10px 12px;
        font-size: 11px;
        letter-spacing: 0.9px;
      }

      .section {
        padding: 1.5rem 0.9rem;
        min-height: auto;
      }

      .section-title {
        font-size: 1.05rem;
        letter-spacing: 1.4px;
        margin-bottom: 1.5rem;
      }

      .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      .art-card img {
        height: 210px;
      }

      .art-card .art-label {
        padding: 14px 12px;
        font-size: 12px;
      }

      .back-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 1.25rem;
      }

      .about-container {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
      }

      .about-art-bg {
        height: 220px;
        width: 100%;
        min-width: 0;
      }

      .about-box h2 {
        font-size: 1.45rem;
      }

      .about-box p {
        font-size: 14px;
        line-height: 1.75;
      }

      .lock-screen,
      .admin-panel {
        padding: 1.25rem;
      }

      .lock-screen {
        margin: 2rem auto;
      }

      .lock-screen input,
      .form-row input[type="text"],
      .form-row input[type="password"],
      .form-row select,
      .form-row textarea {
        font-size: 16px;
      }

      .btn,
      .btn-primary,
      .btn-secondary,
      .btn-danger {
        width: 100%;
      }

      .btn + .btn,
      .actions .btn + .btn {
        margin-top: 0.5rem;
      }

      .upload-area {
        padding: 1.5rem 1rem;
      }

      .upload-area .icon {
        font-size: 30px;
      }

      .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
      }

      .preview-grid img {
        height: 70px;
      }

      .image-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 12px;
      }

      .image-row img {
        width: 100%;
        height: 180px;
      }

      .image-row .actions {
        margin-top: 0.25rem;
        width: 100%;
        flex-direction: column;
      }

      .image-row .actions .btn,
      .image-row .actions .btn-secondary,
      .image-row .actions .btn-danger,
      .image-row .actions .btn-active-cover {
        width: 100%;
      }

      .lightbox-close {
        top: 14px;
        right: 16px;
        font-size: 34px;
      }

      .lightbox img {
        max-width: 94vw;
        max-height: 68vh;
      }

      .lightbox-title {
        font-size: 13px;
        text-align: center;
        padding: 0 1rem;
      }
    }

    @media (max-width: 420px) {
      header h1 {
        font-size: 1.4rem;
        letter-spacing: 2px;
      }

      nav a {
        flex: 1 1 100%;
      }

      .section-title {
        font-size: 0.98rem;
        letter-spacing: 1px;
      }

      .art-card img {
        height: 190px;
      }

      .about-box h2 {
        font-size: 1.25rem;
      }

      .about-box p {
        font-size: 13px;
      }

      .image-row img {
        height: 150px;
      }
    }
